Constants.js 11 KB

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