Constants.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /**
  2. * 导出常量
  3. */
  4. module.exports = {
  5. //一页条数
  6. PAGE_SIZE: 5,
  7. // 成功的code
  8. SUCESS_CODE: 200,
  9. //页面加载数据API
  10. BASIC_COMMON_API: "mdm-server/wxapi/basic/common/",
  11. // 最大的数量
  12. Mess_Max_Quantity: '超过最大值或最小值,最大值为9999999999.999999',
  13. // 手机号正则表达式 目前只有位数校验(11位)
  14. Mobile_Phone_Number_Regular_Expression: /^[0-9][0-9][0-9]{9}$/,
  15. // 提示信息
  16. Messages: {
  17. save_sucess: '保存成功',
  18. },
  19. lang: {
  20. //中文编码
  21. langCN: 'zh-CN',
  22. //英文编码
  23. langEN: 'en-US',
  24. },
  25. // 数据类型
  26. dataType:{
  27. number:'number',
  28. date:'date'
  29. },
  30. // 查询条件组件类型
  31. searchType: {
  32. // 日期
  33. date: 'date',
  34. // 下拉
  35. drop: 'drop',
  36. // 筛选
  37. pick: 'pick'
  38. },
  39. // 筛选中的组件类型
  40. pullType:{
  41. // 多选
  42. mSelect:'mSelect',
  43. },
  44. // 查询条件日期数据源
  45. searchDateSource:[
  46. { text: '本日', value: 1 },
  47. { text: '本周', value: 2 },
  48. { text: '本月', value: 3 },
  49. { text: '本年', value: 4 },
  50. { text: '近7天', value: 6 },
  51. { text: '近30天', value: 5 },
  52. { text: '自定义', value: -2 },
  53. ],
  54. // 出库进度
  55. outStatusList: [
  56. {
  57. name: '未出库',
  58. code: '出库状态-未出',
  59. id: 0,
  60. infotype: 'default'
  61. },
  62. {
  63. name: '出库中',
  64. code: '出库状态-部分',
  65. id: 1,
  66. infotype: 'default'
  67. },
  68. {
  69. name: '已出库',
  70. code: '出库状态-完成',
  71. id: 2,
  72. infotype: 'default'
  73. },
  74. {
  75. name: '有退货',
  76. code: '出库状态-退货',
  77. id: 3,
  78. infotype: 'default'
  79. }
  80. ],
  81. // 收款进度
  82. receiveStatusList: [{ name: '未收款',code:'收款状态-未收', id: 0, infotype: 'default' },
  83. { name: '部分收款',code:'收款状态-部分', id: 1, infotype: 'default' },
  84. { name: '收款完成',code:'收款状态-完成', id: 2, infotype: 'default' }],
  85. //销售订单相关API
  86. SALE_ORDER_API: "order-server/wxapi/sale/order/",
  87. WARE_HOUSE: "mdm-server/mst/warehouse/",
  88. PAGE_ITEM_MUST_API: "basic-server/basic/pageItemMust",
  89. };