Constants.js 9.2 KB

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