Constants.js 11 KB

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