Constants.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  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. proTitle:'六大模块功能',
  152. title: '注册须知:',
  153. cpName: '用于登录系统时显示公司信息。',
  154. contact: '负责人和联系电话:用于开通系统电话确认核实信息。',
  155. cpSize: '公司规模及门店规模:用于开通系统配置基础档案。'
  156. },
  157. // 表单类型
  158. gradeCode: {
  159. // 标准版
  160. STD: 'STD',
  161. // 专业版
  162. PRO: 'PRO',
  163. // 旗舰版
  164. PLUS: 'PLUS',
  165. // 独立会员vip
  166. VIPS: 'VIPS'
  167. },
  168. // 表单类型
  169. formMode: {
  170. // 列表
  171. index: 'index',
  172. // 新建
  173. add: 'add',
  174. // 编辑
  175. edit: 'edit',
  176. // 明细
  177. detail: 'detail',
  178. // 其他
  179. other: 'other',
  180. //详情编辑
  181. detailEdit: 'detailEdit'
  182. },
  183. //是否返回原始页面
  184. formReturnMode:{
  185. beginnerGuide:'beginnerGuide'
  186. },
  187. formType: {
  188. shopping: 'shopping'
  189. },
  190. // 查询条件日期数据源
  191. searchDateSource: [{
  192. text: '本日',
  193. value: 1
  194. },
  195. {
  196. text: '本周',
  197. value: 2
  198. },
  199. {
  200. text: '本月',
  201. value: 3
  202. },
  203. {
  204. text: '本年',
  205. value: 4
  206. },
  207. {
  208. text: '近7天',
  209. value: 6
  210. },
  211. {
  212. text: '近30天',
  213. value: 5
  214. },
  215. {
  216. text: '自定义',
  217. value: -2
  218. },
  219. ],
  220. // 初始款项
  221. initialPayType: {
  222. none: '初始款项-无',
  223. debt: '初始款项-欠款',
  224. payment: '初始款项-预收',
  225. },
  226. // 收付款类型
  227. rpType: {
  228. receipt: '收付款类型-收款',
  229. returnReceipt: '收付款类型-退收款',
  230. payment: '收付款类型-付款',
  231. returnPayment: '收付款类型-退付款',
  232. },
  233. //库存调整
  234. inventoryAdjustment: {
  235. warehouse: '调整类型-仓库调整',
  236. batchNumber: '调整类型-色号调整',
  237. },
  238. // 入库类型
  239. intoType: {
  240. pur: '入库类型-采购入库',
  241. saleReturn: '入库类型-采退出库',
  242. other: '入库类型-其他入库',
  243. first: '入库类型-期初入库',
  244. },
  245. // 入库状态
  246. intoStatus: {
  247. inBounded: '入库状态-已入库',
  248. inBounding: '入库状态-入库中',
  249. unInBound: '入库状态-待入库',
  250. },
  251. // 出库状态
  252. outStatus: {
  253. outBounded: '出库状态-已出库',
  254. outBounding: '出库状态-出库中',
  255. unOutBound: '出库状态-待出库',
  256. },
  257. // 出库类型
  258. outType: {
  259. purReturn: '出库类型-销退回库',
  260. sale: '出库类型-销售出库',
  261. other: '出库类型-其他出库',
  262. intoReturn: '出库类型-销退回库',
  263. },
  264. // 出库进度
  265. outStatusList: [{
  266. name: '未出库',
  267. code: '出库状态-未出',
  268. id: 0,
  269. infotype: 'default'
  270. },
  271. {
  272. name: '出库中',
  273. code: '出库状态-部分',
  274. id: 1,
  275. infotype: 'default'
  276. },
  277. {
  278. name: '已出库',
  279. code: '出库状态-完成',
  280. id: 2,
  281. infotype: 'default'
  282. },
  283. {
  284. name: '有退货',
  285. code: '出库状态-退货',
  286. id: 3,
  287. infotype: 'default'
  288. }
  289. ],
  290. // 对象类型
  291. objType: {
  292. customer: 'customer',
  293. supplier: 'supplier'
  294. },
  295. // dk-form-more-items组件类型
  296. moreItemsType: {
  297. // 收款单
  298. collect: 'collect',
  299. // 付款单
  300. pay: 'pay',
  301. },
  302. // dk-form-bill组件类型
  303. billType: {
  304. // 销售订单
  305. sale: 'sale',
  306. // 采购订单
  307. pur: 'pur',
  308. // 库存预警
  309. winning: 'winning',
  310. purInto: 'purInto',
  311. out: 'out',
  312. purReturn: 'purReturn',
  313. inventory: 'inventory',
  314. saleOut: 'saleOut',
  315. saleOutReturn: 'saleOutReturn',
  316. },
  317. // 收款状态
  318. receiveStatus: {
  319. no: '未收款',
  320. part: '部分收款',
  321. all: '收款完成'
  322. },
  323. /**
  324. * @desc : 数据种类
  325. * @author : 周兴
  326. * @date : 2024/3/9 16:17
  327. */
  328. kindType: {
  329. supType: '供应商类别',
  330. serviceCategories: '服务类别',
  331. goodsAttr: '商品属性',
  332. basicData: '基础资料'
  333. },
  334. /**
  335. * @desc : 订单状态
  336. * @author : 于继渤
  337. * @date : 2024/3/9 16:17
  338. */
  339. orderStatus: {
  340. STATUS_DEAL: '订单状态-成交',
  341. STATUS_STAGING: '订单状态-暂存',
  342. STAGING: '暂存'
  343. },
  344. /**
  345. * @desc : 盘点状态
  346. * @author : 王英杰
  347. * @date : 2024/3/9 16:17
  348. */
  349. checkStaus: {
  350. STAGING: '盘点状态-暂存',
  351. COMPLETE: '盘点状态-完成'
  352. },
  353. /**
  354. * @desc : 单据类型
  355. * @author : 周兴
  356. * @date : 2024/3/9 16:17
  357. */
  358. documentType: {
  359. purOrder: "单据类型-采购订单"
  360. },
  361. /**
  362. * @desc : 表名
  363. * @author : 周兴
  364. * @date : 2024/3/27 10:07
  365. */
  366. tables: {
  367. // 销售订单
  368. order: 't_psi_order',
  369. // 采购订单
  370. purchase: 't_psi_purchase',
  371. // 出库单
  372. outbound: 't_psi_outbound',
  373. // 入库单
  374. inbound: 't_psi_inbound',
  375. // 库存盘点
  376. check: 't_psi_check',
  377. // 库存调整
  378. transfer: 't_psi_transfer',
  379. // 资金账户
  380. moneyAccount: 't_mst_money_account',
  381. // 资金转账
  382. macTransfer: 't_mac_transfer',
  383. // 收付款单
  384. recPay: 't_mac_rec_pay',
  385. // 其他收入单
  386. income: 't_mac_other_receivable',
  387. // 其他支出单
  388. outlay: 't_mac_other_payable',
  389. cusFollow: 't_crm_cus_follow',
  390. //商品档案
  391. goodsSku: 't_mst_goods_sku',
  392. },
  393. /**
  394. * @desc : 系统参数
  395. * @author : 周兴
  396. * @date : 2024/4/1 10:18
  397. */
  398. settingCode: {
  399. // 自动办理标识
  400. IVT001: 'IVT_001',
  401. // 允许负库存
  402. IVT002: 'IVT_002',
  403. },
  404. /**
  405. * @desc : 上传文件大小
  406. * @author : 周兴
  407. * @date : 2024/3/27 10:07
  408. */
  409. uploadFileConfig: {
  410. maxSize: 10485760,//图片大小的最大值 10MB 10240kb 10485760字节
  411. maxSizeMB: '10MB',
  412. acceptPicType: 'image/png,image/jpeg,image/jpg',// 接受上传的图片类型
  413. acceptVideoType: 'video/mp4,video/avi,video/mov',// 接受上传的视频类型
  414. acceptExcel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel ',
  415. acceptPdf: 'application/pdf',
  416. },
  417. /**
  418. * @desc : 菜单编码
  419. * @author : 周兴
  420. * @date : 2024/3/27 10:07
  421. */
  422. menuCode: {
  423. // 入库明细表
  424. inboundDetailReport: 'entry-detail-report',
  425. // 出库明细表
  426. outboundDetailReport: 'out-detail-report',
  427. // 销售单明细表
  428. orderDetailReport: 'order-detail-report',
  429. // 采购明细表
  430. purDetailReport: 'pur-detail-report',
  431. //客户收款明细表
  432. cusReceiptDetailReport: 'cus-receipt-report',
  433. // 销售订单
  434. order: 'order',
  435. // 客户收款
  436. cusReceipt: 'cus-receipt',
  437. // 入库办理
  438. entryHandle: 'entry-handle',
  439. // 出库办理
  440. outHandle: 'out-handle',
  441. // 库存查询
  442. ivtDetailReport: 'ivt-detail-report',
  443. },
  444. /**
  445. * @desc : 数据种类数据
  446. * @author : 周兴
  447. * @date : 2024/3/9 16:17
  448. */
  449. kindCode: {
  450. supplierPur: '供应商类别-采购',
  451. supplierOutsourcing: '供应商类别-外协',
  452. supplierService: '供应商类别-服务',
  453. serviceDelivery: '服务类别-配送',
  454. serviceInstall: '服务类别-安装',
  455. serviceManu: '服务类别-加工',
  456. goodsBrand: '商品属性-品牌',
  457. goodsCategory: '商品属性-种类',
  458. goodsSeries: '商品属性-系列',
  459. goodsUnit: '商品属性-单位',
  460. basicWarehouse: '基础资料-仓库',
  461. basicChannel: '基础资料-渠道',
  462. basicIncome: '基础资料-收入',
  463. basicOutlay: '基础资料-支出',
  464. basicEnter: '基础资料-入库',
  465. basicOut: '基础资料-出库',
  466. basicMacType: '基础资料-账户',
  467. basicSource: '基础资料-来源',
  468. basicTags: '基础资料-标签',
  469. activityGrade: '活动分类-版本',
  470. activityAd: '活动分类-广告',
  471. activityMenu: '活动分类-功能',
  472. activityVip: '活动分类-VIP',
  473. activityStatus: '活动状态-发布',
  474. activityFunc: '活动分类-功能包',
  475. },
  476. // 收款进度
  477. receiveStatusList: [{
  478. name: '未收款',
  479. code: '收款状态-未收',
  480. id: 0,
  481. infotype: 'default'
  482. },
  483. {
  484. name: '部分收款',
  485. code: '收款状态-部分',
  486. id: 1,
  487. infotype: 'default'
  488. },
  489. {
  490. name: '收款完成',
  491. code: '收款状态-完成',
  492. id: 2,
  493. infotype: 'default'
  494. }
  495. ],
  496. //菜单编码 客户退款
  497. CUSTOMER_EFUND_FUNCTIONCODE: 'cus-refund',
  498. //销售订单相关API
  499. SALE_ORDER_API: "order-server/wxapi/sale/order/",
  500. WARE_HOUSE: "mdm-server/mst/warehouse/",
  501. PAGE_ITEM_MUST_API: "basic-server/basic/pageItemMust",
  502. };