Constants.js 12 KB

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