Constants.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  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. dictionary: 'dictionary',
  92. // 系统数据
  93. kindData: 'kindData',
  94. // 仓库
  95. warehouse: 'warehouse',
  96. // 品牌
  97. brand: 'brand',
  98. inventorySku: 'inventorySku', //sku库存
  99. saleChannel: 'saleChannel', //销售渠道
  100. cusFrom: 'customerFrom', //客户来源
  101. moneyAccount: 'moneyAccount',//资金账户
  102. },
  103. // 范围权限
  104. purviewType: {
  105. org: 'PU10000001',
  106. channel: 'PU10000002',
  107. make: 'PU10000003',
  108. },
  109. // 体验企业编码
  110. testCpCodes:{
  111. // 标准版企业
  112. std_test:'std_test',
  113. // 专业版企业
  114. pro_test:'pro_test'
  115. },
  116. // 体验企业信息
  117. testCpList: [{
  118. cpId: 2,
  119. cpName: '东科智云-免费版-体验',
  120. svcCode: 'dkic_b1',
  121. openid: 'std_test',
  122. svcIp: 'http://127.0.0.1',
  123. gradeCode: 'STD',
  124. svcPort: '7001'
  125. }, {
  126. cpId: 3,
  127. cpName: '东科智云-专业版-体验',
  128. svcCode: 'dkic_b1',
  129. gradeCode: 'PRO',
  130. openid: 'pro_test',
  131. svcIp: 'http://127.0.0.1',
  132. svcPort: '7001'
  133. }],
  134. // 表单类型
  135. gradeCode: {
  136. // 标准版
  137. STD: 'STD',
  138. // 专业版
  139. PRO: 'PRO',
  140. // 旗舰版
  141. PLUS: 'PLUS',
  142. // 独立会员vip
  143. VIPS: 'VIPS'
  144. },
  145. // 表单类型
  146. formMode: {
  147. // 列表
  148. index: 'index',
  149. // 新建
  150. add: 'add',
  151. // 编辑
  152. edit: 'edit',
  153. // 明细
  154. detail: 'detail',
  155. // 其他
  156. other: 'other',
  157. //详情编辑
  158. detailEdit: 'detailEdit'
  159. },
  160. formType:{
  161. shopping:'shopping'
  162. },
  163. // 查询条件日期数据源
  164. searchDateSource: [{
  165. text: '本日',
  166. value: 1
  167. },
  168. {
  169. text: '本周',
  170. value: 2
  171. },
  172. {
  173. text: '本月',
  174. value: 3
  175. },
  176. {
  177. text: '本年',
  178. value: 4
  179. },
  180. {
  181. text: '近7天',
  182. value: 6
  183. },
  184. {
  185. text: '近30天',
  186. value: 5
  187. },
  188. {
  189. text: '自定义',
  190. value: -2
  191. },
  192. ],
  193. // 收付款类型
  194. rpType: {
  195. receipt: '收付款类型-收款',
  196. returnReceipt: '收付款类型-退收款',
  197. payment: '收付款类型-付款',
  198. returnPayment: '收付款类型-退付款',
  199. },
  200. //库存调整
  201. inventoryAdjustment: {
  202. warehouse: '调整类型-仓库调整',
  203. batchNumber: '调整类型-色号调整',
  204. },
  205. // 入库类型
  206. intoType: {
  207. pur: '入库类型-采购入库',
  208. saleReturn: '入库类型-采退出库',
  209. other: '入库类型-其他入库',
  210. first: '入库类型-期初入库',
  211. },
  212. // 入库状态
  213. intoStatus: {
  214. inBounded: '入库状态-已入库',
  215. inBounding: '入库状态-入库中',
  216. unInBound: '入库状态-待入库',
  217. },
  218. // 出库状态
  219. outStatus: {
  220. outBounded: '出库状态-已出库',
  221. outBounding: '出库状态-出库中',
  222. unOutBound: '出库状态-待出库',
  223. },
  224. // 出库类型
  225. outType: {
  226. purReturn: '出库类型-销退回库',
  227. sale: '出库类型-销售出库',
  228. other: '出库类型-其他出库',
  229. intoReturn: '出库类型-销退回库',
  230. },
  231. // 出库进度
  232. outStatusList: [{
  233. name: '未出库',
  234. code: '出库状态-未出',
  235. id: 0,
  236. infotype: 'default'
  237. },
  238. {
  239. name: '出库中',
  240. code: '出库状态-部分',
  241. id: 1,
  242. infotype: 'default'
  243. },
  244. {
  245. name: '已出库',
  246. code: '出库状态-完成',
  247. id: 2,
  248. infotype: 'default'
  249. },
  250. {
  251. name: '有退货',
  252. code: '出库状态-退货',
  253. id: 3,
  254. infotype: 'default'
  255. }
  256. ],
  257. // 对象类型
  258. objType: {
  259. customer: 'customer',
  260. supplier: 'supplier'
  261. },
  262. // dk-form-more-items组件类型
  263. moreItemsType: {
  264. // 收款单
  265. collect: 'collect',
  266. // 付款单
  267. pay: 'pay',
  268. },
  269. // dk-form-bill组件类型
  270. billType: {
  271. // 销售订单
  272. sale: 'sale',
  273. // 采购订单
  274. pur: 'pur',
  275. purInto:'purInto',
  276. out: 'out',
  277. purReturn: 'purReturn',
  278. inventory: 'inventory',
  279. saleOut: 'saleOut',
  280. saleOutReturn: 'saleOutReturn',
  281. },
  282. // 收款状态
  283. receiveStatus: {
  284. no: '未收款',
  285. part: '部分收款',
  286. all: '收款完成'
  287. },
  288. /**
  289. * @desc : 数据种类
  290. * @author : 周兴
  291. * @date : 2024/3/9 16:17
  292. */
  293. kindType: {
  294. supType: '供应商类别',
  295. serviceCategories: '服务类别',
  296. goodsAttr: '商品属性',
  297. basicData: '基础资料'
  298. },
  299. /**
  300. * @desc : 订单状态
  301. * @author : 于继渤
  302. * @date : 2024/3/9 16:17
  303. */
  304. orderStatus: {
  305. STATUS_DEAL: '订单状态-成交',
  306. STATUS_STAGING: '订单状态-暂存',
  307. STAGING: '暂存'
  308. },
  309. /**
  310. * @desc : 盘点状态
  311. * @author : 王英杰
  312. * @date : 2024/3/9 16:17
  313. */
  314. checkStaus: {
  315. STAGING: '盘点状态-暂存',
  316. COMPLETE: '盘点状态-完成'
  317. },
  318. /**
  319. * @desc : 单据类型
  320. * @author : 周兴
  321. * @date : 2024/3/9 16:17
  322. */
  323. documentType: {
  324. purOrder: "单据类型-采购订单"
  325. },
  326. /**
  327. * @desc : 表名
  328. * @author : 周兴
  329. * @date : 2024/3/27 10:07
  330. */
  331. tables: {
  332. // 销售订单
  333. order: 't_psi_order',
  334. // 采购订单
  335. purchase: 't_psi_purchase',
  336. // 出库单
  337. outbound: 't_psi_outbound',
  338. // 入库单
  339. inbound: 't_psi_inbound',
  340. // 库存盘点
  341. check: 't_psi_check',
  342. // 库存调整
  343. transfer: 't_psi_transfer',
  344. // 资金账户
  345. moneyAccount: 't_mst_money_account',
  346. // 资金转账
  347. macTransfer: 't_mac_transfer',
  348. // 收付款单
  349. recPay: 't_mac_rec_pay',
  350. // 其他收入单
  351. income: 't_mac_other_receivable',
  352. // 其他支出单
  353. outlay: 't_mac_other_payable',
  354. cusFollow: 't_crm_cus_follow',
  355. //商品档案
  356. goodsSku: 't_mst_goods_sku',
  357. },
  358. /**
  359. * @desc : 系统参数
  360. * @author : 周兴
  361. * @date : 2024/4/1 10:18
  362. */
  363. settingCode: {
  364. // 自动办理标识
  365. IVT001: 'IVT_001',
  366. // 允许负库存
  367. IVT002: 'IVT_002',
  368. },
  369. /**
  370. * @desc : 上传文件大小
  371. * @author : 周兴
  372. * @date : 2024/3/27 10:07
  373. */
  374. uploadFileConfig: {
  375. maxSize: 10485760,//图片大小的最大值 10MB 10240kb 10485760字节
  376. maxSizeMB: '10MB',
  377. acceptPicType: 'image/png,image/jpeg,image/jpg',// 接受上传的图片类型
  378. acceptVideoType: 'video/mp4,video/avi,video/mov',// 接受上传的视频类型
  379. acceptExcel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel ',
  380. acceptPdf: 'application/pdf',
  381. },
  382. /**
  383. * @desc : 菜单编码
  384. * @author : 周兴
  385. * @date : 2024/3/27 10:07
  386. */
  387. menuCode: {
  388. // 入库明细表
  389. inboundDetailReport: 'entry-detail-report',
  390. // 出库明细表
  391. outboundDetailReport: 'out-detail-report',
  392. // 销售单明细表
  393. orderDetailReport: 'order-detail-report',
  394. // 采购明细表
  395. purDetailReport: 'pur-detail-report',
  396. //客户收款明细表
  397. cusReceiptDetailReport: 'cus-receipt-report',
  398. // 销售订单
  399. order: 'order',
  400. // 客户收款
  401. cusReceipt: 'cus-receipt',
  402. // 入库办理
  403. entryHandle: 'entry-handle',
  404. // 出库办理
  405. outHandle: 'out-handle',
  406. },
  407. /**
  408. * @desc : 数据种类数据
  409. * @author : 周兴
  410. * @date : 2024/3/9 16:17
  411. */
  412. kindCode: {
  413. supplierPur: '供应商类别-采购',
  414. supplierOutsourcing: '供应商类别-外协',
  415. supplierService: '供应商类别-服务',
  416. serviceDelivery: '服务类别-配送',
  417. serviceInstall: '服务类别-安装',
  418. serviceManu: '服务类别-加工',
  419. goodsBrand: '商品属性-品牌',
  420. goodsCategory: '商品属性-种类',
  421. goodsSeries: '商品属性-系列',
  422. goodsUnit: '商品属性-单位',
  423. basicWarehouse: '基础资料-仓库',
  424. basicChannel: '基础资料-渠道',
  425. basicIncome: '基础资料-收入',
  426. basicOutlay: '基础资料-支出',
  427. basicEnter: '基础资料-入库',
  428. basicOut: '基础资料-出库',
  429. basicMacType: '基础资料-账户',
  430. basicSource: '基础资料-来源',
  431. basicTags: '基础资料-标签',
  432. activityGrade:'活动分类-版本',
  433. activityAd:'活动分类-广告',
  434. activityMenu:'活动分类-功能',
  435. },
  436. // 收款进度
  437. receiveStatusList: [{
  438. name: '未收款',
  439. code: '收款状态-未收',
  440. id: 0,
  441. infotype: 'default'
  442. },
  443. {
  444. name: '部分收款',
  445. code: '收款状态-部分',
  446. id: 1,
  447. infotype: 'default'
  448. },
  449. {
  450. name: '收款完成',
  451. code: '收款状态-完成',
  452. id: 2,
  453. infotype: 'default'
  454. }
  455. ],
  456. //菜单编码 客户退款
  457. CUSTOMER_EFUND_FUNCTIONCODE: '2260c936-c469-404c-85ed-aa5046fc8684',
  458. //销售订单相关API
  459. SALE_ORDER_API: "order-server/wxapi/sale/order/",
  460. WARE_HOUSE: "mdm-server/mst/warehouse/",
  461. PAGE_ITEM_MUST_API: "basic-server/basic/pageItemMust",
  462. };