Constants.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. /**
  2. * 导出常量
  3. */
  4. module.exports = {
  5. //一页条数
  6. PAGE_SIZE: 5,
  7. // 成功的code
  8. SUCESS_CODE: 200,
  9. // 默认语言
  10. lan: 'zh_CN',
  11. // 应用代码
  12. APP_CODE: 'CP-WXP',
  13. //页面加载数据API
  14. BASIC_COMMON_API: "mdm-server/mst/common/",
  15. //页面加载数据API
  16. BASIC_WX_COMMON_API: "mdm-server/wxapi/basic/common/",
  17. //供应商停用api
  18. BASIC_SUPLIER_API: "mdm-server/mst/supplier/",
  19. // 系统用户接口
  20. SYS_OPENID_API: "oauth-server/",
  21. // 最大的数量
  22. Mess_Max_Quantity: '超过最大值或最小值,最大值为9999999999.999999',
  23. // 手机号正则表达式 目前只有位数校验(11位)
  24. Mobile_Phone_Number_Regular_Expression: /^[0-9][0-9][0-9]{9}$/,
  25. // 提示信息
  26. Messages: {
  27. save_sucess: '保存成功',
  28. },
  29. lang: {
  30. //中文编码
  31. langCN: 'zh-CN',
  32. //英文编码
  33. langEN: 'en-US',
  34. },
  35. // 数据类型
  36. dataType: {
  37. number: 'number',
  38. date: 'date'
  39. },
  40. // 查询条件组件类型
  41. searchType: {
  42. // 日期
  43. date: 'date',
  44. // 下拉
  45. drop: 'drop',
  46. // 筛选
  47. pick: 'pick',
  48. // 开关
  49. switch: 'switch',
  50. // 单选
  51. radio: 'radio',
  52. },
  53. // 筛选中的组件类型
  54. pullType: {
  55. // 多选
  56. mSelect: 'mSelect',
  57. },
  58. // 下拉类型
  59. dropType: {
  60. // 业务员
  61. staff: 'staff'
  62. },
  63. // 选择页面的类型
  64. chooseType: {
  65. // 部门
  66. org: 'org',
  67. // 对象类别
  68. objectType: 'objectType',
  69. // 员工
  70. staff: 'staff',
  71. // 供应商
  72. supplier: 'supplier',
  73. // 数据字典
  74. dictionary: 'dictionary',
  75. // 系统数据
  76. kindData: 'kindData',
  77. // 仓库
  78. warehouse: 'warehouse',
  79. // 品牌
  80. brand: 'brand',
  81. inventorySku: 'inventorySku', //sku库存
  82.   saleChannel: 'saleChannel', //销售渠道
  83.     cusFrom: 'customerFrom', //客户来源
  84. },
  85. // 范围权限
  86. purviewType: {
  87. org: 'PU10000001',
  88. channel: 'PU10000002',
  89. make: 'PU10000003',
  90. },
  91. // 表单类型
  92. gradeCode: {
  93. // 标准版
  94. STD: 'STD',
  95. // 专业版
  96. PRO: 'PRO',
  97. // 旗舰版
  98. PLUS: 'PLUS',
  99. // 独立会员vip
  100. VIPS: 'VIPS'
  101. },
  102. // 表单类型
  103. formMode: {
  104. // 列表
  105. index: 'index',
  106. // 新建
  107. add: 'add',
  108. // 编辑
  109. edit: 'edit',
  110. // 明细
  111. detail: 'detail',
  112. // 其他
  113. other: 'other',
  114. //详情编辑
  115. detailEdit: 'detailEdit'
  116. },
  117. // 查询条件日期数据源
  118. searchDateSource: [{
  119. text: '本日',
  120. value: 1
  121. },
  122. {
  123. text: '本周',
  124. value: 2
  125. },
  126. {
  127. text: '本月',
  128. value: 3
  129. },
  130. {
  131. text: '本年',
  132. value: 4
  133. },
  134. {
  135. text: '近7天',
  136. value: 6
  137. },
  138. {
  139. text: '近30天',
  140. value: 5
  141. },
  142. {
  143. text: '自定义',
  144. value: -2
  145. },
  146. ],
  147. // 收付款类型
  148. rpType: {
  149. receipt: '收付款类型-收款',
  150. returnReceipt: '收付款类型-退收款',
  151. payment: '收付款类型-付款',
  152. returnPayment: '收付款类型-退付款',
  153. },
  154. // 入库类型
  155. intoType: {
  156. pur: '入库类型-采购入库',
  157. saleReturn: '入库类型-采退入库',
  158. other: '入库类型-其他入库',
  159. },
  160. // 入库状态
  161. intoStatus: {
  162. inBounded: '入库状态-已入库',
  163. inBounding: '入库状态-入库中',
  164. unInBound: '入库状态-待入库',
  165. },
  166. // 出库状态
  167. outStatus: {
  168. outBounded: '出库状态-已出库',
  169. outBounding: '出库状态-出库中',
  170. unOutBound: '出库状态-待出库',
  171. },
  172. // 出库类型
  173. outType: {
  174. purReturn: '出库类型-销退出库',
  175. sale: '出库类型-销售出库',
  176. other: '出库类型-其他出库',
  177. },
  178. // 出库进度
  179. outStatusList: [{
  180. name: '未出库',
  181. code: '出库状态-未出',
  182. id: 0,
  183. infotype: 'default'
  184. },
  185. {
  186. name: '出库中',
  187. code: '出库状态-部分',
  188. id: 1,
  189. infotype: 'default'
  190. },
  191. {
  192. name: '已出库',
  193. code: '出库状态-完成',
  194. id: 2,
  195. infotype: 'default'
  196. },
  197. {
  198. name: '有退货',
  199. code: '出库状态-退货',
  200. id: 3,
  201. infotype: 'default'
  202. }
  203. ],
  204. // 对象类型
  205. objType: {
  206. customer: 'customer',
  207. supplier: 'supplier'
  208. },
  209. // dk-form-more-items组件类型
  210. moreItemsType: {
  211. // 收款单
  212. collect: 'collect',
  213. // 付款单
  214. pay: 'pay',
  215. },
  216. // dk-form-bill组件类型
  217. billType: {
  218. // 销售订单
  219. sale: 'sale',
  220. // 采购订单
  221. pur: 'pur',
  222. out: 'out',
  223. purReturn: 'purReturn',
  224. saleOut: 'saleOut',
  225. },
  226. // 收款状态
  227. receiveStatus: {
  228. no: '未收款',
  229. part: '部分收款',
  230. all: '收款完成'
  231. },
  232. /**
  233. * @desc : 数据种类
  234. * @author : 周兴
  235. * @date : 2024/3/9 16:17
  236. */
  237. kindType: {
  238. supType: '供应商类别',
  239. serviceCategories: '服务类别',
  240. goodsAttr: '商品属性',
  241. basicData: '基础资料'
  242. },
  243. /**
  244. * @desc : 订单状态
  245. * @author : 于继渤
  246. * @date : 2024/3/9 16:17
  247. */
  248. orderStatus: {
  249. STATUS_DEAL: '订单状态-成交',
  250. STATUS_STAGING: '订单状态-暂存',
  251. STAGING: '暂存'
  252. },
  253. /**
  254. * @desc : 盘点状态
  255. * @author : 王英杰
  256. * @date : 2024/3/9 16:17
  257. */
  258. checkStaus: {
  259. STAGING: '盘点状态-暂存',
  260. COMPLETE: '盘点状态-完成'
  261. },
  262. /**
  263. * @desc : 单据类型
  264. * @author : 周兴
  265. * @date : 2024/3/9 16:17
  266. */
  267. documentType: {
  268. purOrder: "单据类型-采购订单"
  269. },
  270. /**
  271. * @desc : 表名
  272. * @author : 周兴
  273. * @date : 2024/3/27 10:07
  274. */
  275. tables: {
  276. // 销售订单
  277. order: 't_psi_order',
  278. // 采购订单
  279. purchase: 't_psi_purchase',
  280. // 出库单
  281. outbound: 't_psi_outbound',
  282. // 入库单
  283. inbound: 't_psi_inbound',
  284. // 库存盘点
  285. check: 't_psi_check',
  286. // 库存调整
  287. transfer: 't_psi_transfer',
  288. // 资金转账
  289. macTransfer: 't_mac_transfer',
  290. // 收付款单
  291. recPay: 't_mac_rec_pay',
  292. // 其他收入单
  293. income: 't_mac_other_receivable',
  294. // 其他支出单
  295. outlay: 't_mac_other_payable',
  296. cusFollow: 't_crm_cus_follow',
  297. },
  298. /**
  299. * @desc : 系统参数
  300. * @author : 周兴
  301. * @date : 2024/4/1 10:18
  302. */
  303. settingCode: {
  304. // 自动办理标识
  305. IVT001: 'IVT_001',
  306. // 允许负库存
  307. IVT002: 'IVT_002',
  308. },
  309. /**
  310. * @desc : 上传文件大小
  311. * @author : 周兴
  312. * @date : 2024/3/27 10:07
  313. */
  314. uploadFileConfig: {
  315. maxSize: 10485760,//图片大小的最大值 10MB 10240kb 10485760字节
  316. maxSizeMB: '10MB',
  317. acceptPicType: 'image/png,image/jpeg,image/jpg',// 接受上传的图片类型
  318. acceptVideoType: 'video/mp4,video/avi,video/mov',// 接受上传的视频类型
  319. acceptExcel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel ',
  320. acceptPdf: 'application/pdf',
  321. },
  322. /**
  323. * @desc : 数据种类数据
  324. * @author : 周兴
  325. * @date : 2024/3/9 16:17
  326. */
  327. kindCode: {
  328. supplierPur: '供应商类别-采购',
  329. supplierService: '供应商类别-服务',
  330. serviceDelivery: '服务类别-配送',
  331. serviceInstall: '服务类别-安装',
  332. serviceManu: '服务类别-加工',
  333. goodsBrand: '商品属性-品牌',
  334. goodsCategory: '商品属性-种类',
  335. goodsSeries: '商品属性-系列',
  336. goodsUnit: '商品属性-单位',
  337. basicWarehouse: '基础资料-仓库',
  338. basicChannel: '基础资料-渠道',
  339. basicIncome: '基础资料-收入',
  340. basicOutlay: '基础资料-支出',
  341. basicEnter: '基础资料-入库',
  342. basicOut: '基础资料-出库',
  343. basicMacType: '基础资料-账户',
  344. basicSource: '基础资料-来源',
  345. basicTags: '基础资料-标签',
  346. },
  347. // 收款进度
  348. receiveStatusList: [{
  349. name: '未收款',
  350. code: '收款状态-未收',
  351. id: 0,
  352. infotype: 'default'
  353. },
  354. {
  355. name: '部分收款',
  356. code: '收款状态-部分',
  357. id: 1,
  358. infotype: 'default'
  359. },
  360. {
  361. name: '收款完成',
  362. code: '收款状态-完成',
  363. id: 2,
  364. infotype: 'default'
  365. }
  366. ],
  367. //菜单编码 客户退款
  368. CUSTOMER_EFUND_FUNCTIONCODE: '2260c936-c469-404c-85ed-aa5046fc8684',
  369. //销售订单相关API
  370. SALE_ORDER_API: "order-server/wxapi/sale/order/",
  371. WARE_HOUSE: "mdm-server/mst/warehouse/",
  372. PAGE_ITEM_MUST_API: "basic-server/basic/pageItemMust",
  373. };