Constants.js 11 KB

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