Constants.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. /**
  2. * 导出常量
  3. */
  4. module.exports = {
  5. //一页条数
  6. PAGE_SIZE: 5,
  7. // 成功的code
  8. SUCESS_CODE: 200,
  9. // 默认语言
  10. lan: 'zh_CN',
  11. // 应用代码
  12. APP_CODE: 'CP-WXP',
  13. //页面加载数据API
  14. BASIC_COMMON_API: "mdm-server/mst/common/",
  15. //供应商停用api
  16. BASIC_SUPLIER_API: "mdm-server/mst/supplier/",
  17. // 系统用户接口
  18. SYS_OPENID_API: "oauth-server/",
  19. // 最大的数量
  20. Mess_Max_Quantity: '超过最大值或最小值,最大值为9999999999.999999',
  21. // 手机号正则表达式 目前只有位数校验(11位)
  22. Mobile_Phone_Number_Regular_Expression: /^[0-9][0-9][0-9]{9}$/,
  23. // 提示信息
  24. Messages: {
  25. save_sucess: '保存成功',
  26. },
  27. lang: {
  28. //中文编码
  29. langCN: 'zh-CN',
  30. //英文编码
  31. langEN: 'en-US',
  32. },
  33. // 数据类型
  34. dataType: {
  35. number: 'number',
  36. date: 'date'
  37. },
  38. // 查询条件组件类型
  39. searchType: {
  40. // 日期
  41. date: 'date',
  42. // 下拉
  43. drop: 'drop',
  44. // 筛选
  45. pick: 'pick',
  46. // 开关
  47. switch: 'switch',
  48. // 单选
  49. radio: 'radio',
  50. },
  51. // 筛选中的组件类型
  52. pullType: {
  53. // 多选
  54. mSelect: 'mSelect',
  55. },
  56. // 下拉类型
  57. dropType: {
  58. // 业务员
  59. staff: 'staff'
  60. },
  61. // 选择页面的类型
  62. chooseType: {
  63. // 部门
  64. org: 'org',
  65. // 对象类别
  66. objectType: 'objectType',
  67. // 员工
  68. staff: 'staff',
  69. // 供应商
  70. supplier: 'supplier',
  71. // 数据字典
  72. dictionary: 'dictionary',
  73. // 系统数据
  74. kindData: 'kindData',
  75. // 仓库
  76. warehouse: 'warehouse',
  77. // 品牌
  78. brand: 'brand',
  79. },
  80. // 表单类型
  81. gradeCode: {
  82. // 标准版
  83. STD: 'STD',
  84. // 专业版
  85. PRO: 'PRO',
  86. // 旗舰版
  87. PLUS: 'PLUS',
  88. // 独立会员vip
  89. VIPS: 'VIPS'
  90. },
  91. // 表单类型
  92. formMode: {
  93. // 列表
  94. index: 'index',
  95. // 新建
  96. add: 'add',
  97. // 编辑
  98. edit: 'edit',
  99. // 明细
  100. detail: 'detail',
  101. // 其他
  102. other: 'other'
  103. },
  104. // 查询条件日期数据源
  105. searchDateSource: [{
  106. text: '本日',
  107. value: 1
  108. },
  109. {
  110. text: '本周',
  111. value: 2
  112. },
  113. {
  114. text: '本月',
  115. value: 3
  116. },
  117. {
  118. text: '本年',
  119. value: 4
  120. },
  121. {
  122. text: '近7天',
  123. value: 6
  124. },
  125. {
  126. text: '近30天',
  127. value: 5
  128. },
  129. {
  130. text: '自定义',
  131. value: -2
  132. },
  133. ],
  134. // 收付款类型
  135. rpType: {
  136. receipt: '收付款类型-收款',
  137. payment: '收付款类型-付款',
  138. },
  139. // 入库类型
  140. intoType: {
  141. pur: '入库类型-采购入库',
  142. saleReturn: '入库类型-销退入库',
  143. other: '入库类型-其他入库',
  144. },
  145. // 入库状态
  146. intoStatus: {
  147. inBounded: '入库状态-已入库',
  148. inBounding: '入库状态-入库中',
  149. unInBound: '入库状态-待入库',
  150. },
  151. // 出库状态
  152. outStatus: {
  153. outBounded: '出库状态-已出库',
  154. outBounding: '出库状态-出库中',
  155. unOutBound: '出库状态-待出库',
  156. },
  157. // 出库类型
  158. outType: {
  159. purReturn: '出库类型-采退出库',
  160. sale: '出库类型-销售出库',
  161. other: '出库类型-其他出库',
  162. },
  163. // 出库进度
  164. outStatusList: [{
  165. name: '未出库',
  166. code: '出库状态-未出',
  167. id: 0,
  168. infotype: 'default'
  169. },
  170. {
  171. name: '出库中',
  172. code: '出库状态-部分',
  173. id: 1,
  174. infotype: 'default'
  175. },
  176. {
  177. name: '已出库',
  178. code: '出库状态-完成',
  179. id: 2,
  180. infotype: 'default'
  181. },
  182. {
  183. name: '有退货',
  184. code: '出库状态-退货',
  185. id: 3,
  186. infotype: 'default'
  187. }
  188. ],
  189. // 对象类型
  190. objType: {
  191. customer: 'customer',
  192. supplier: 'supplier'
  193. },
  194. // dk-form-more-items组件类型
  195. moreItemsType: {
  196. // 收款单
  197. collect: 'collect',
  198. // 付款单
  199. pay: 'pay',
  200. },
  201. // dk-form-bill组件类型
  202. billType: {
  203. // 销售订单
  204. sale: 'sale',
  205. // 采购订单
  206. pur: 'pur',
  207. out: 'out',
  208. purReturn: 'purReturn',
  209. },
  210. // 收款状态
  211. receiveStatus: {
  212. no: '未收款',
  213. part: '部分收款',
  214. all: '收款完成'
  215. },
  216. /**
  217. * @desc : 数据种类
  218. * @author : 周兴
  219. * @date : 2024/3/9 16:17
  220. */
  221. kindType: {
  222. supType: '供应商类别',
  223. serviceCategories: '服务类别',
  224. goodsAttr: '商品属性',
  225. basicData: '基础资料'
  226. },
  227. /**
  228. * @desc : 订单状态
  229. * @author : 于继渤
  230. * @date : 2024/3/9 16:17
  231. */
  232. orderStatus: {
  233. STATUS_DEAL: '订单状态-成交',
  234. STATUS_STAGING: '订单状态-暂存',
  235. STAGING: '暂存'
  236. },
  237. /**
  238. * @desc : 单据类型
  239. * @author : 周兴
  240. * @date : 2024/3/9 16:17
  241. */
  242. documentType: {
  243. purOrder: "单据类型-采购订单"
  244. },
  245. /**
  246. * @desc : 表名
  247. * @author : 周兴
  248. * @date : 2024/3/27 10:07
  249. */
  250. tables:{
  251. // 销售订单
  252. order:'t_psi_order',
  253. // 采购订单
  254. purchase:'t_psi_purchase',
  255. // 出库单
  256. outbound:'t_psi_outbound',
  257. // 入库单
  258. inbound:'t_psi_inbound',
  259. // 库存盘点
  260. check:'t_psi_check',
  261. // 库存调整
  262. transfer:'t_psi_transfer',
  263. // 资金转账
  264. macTransfer:'t_mac_transfer',
  265. // 收付款单
  266. recPay:'t_mac_rec_pay',
  267. // 其他收入单
  268. income:'t_mac_income',
  269. // 其他支出单
  270. outlay:'t_mac_outlay',
  271. },
  272. /**
  273. * @desc : 上传文件大小
  274. * @author : 周兴
  275. * @date : 2024/3/27 10:07
  276. */
  277. uploadFileConfig: {
  278. maxSize: 10485760,//图片大小的最大值 10MB 10240kb 10485760字节
  279. maxSizeMB :'10MB',
  280. acceptPicType: 'image/png,image/jpeg,image/jpg',// 接受上传的图片类型
  281. acceptVideoType: 'video/mp4,video/avi,video/mov',// 接受上传的视频类型
  282. acceptExcel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel ',
  283. acceptPdf: 'application/pdf',
  284. },
  285. /**
  286. * @desc : 数据种类数据
  287. * @author : 周兴
  288. * @date : 2024/3/9 16:17
  289. */
  290. kindCode: {
  291. supplierPur: '供应商类别-采购',
  292. supplierService: '供应商类别-服务',
  293. serviceDelivery: '服务类别-配送',
  294. serviceInstall: '服务类别-安装',
  295. serviceManu: '服务类别-加工',
  296. goodsBrand: '商品属性-品牌',
  297. goodsCategory: '商品属性-种类',
  298. goodsSeries: '商品属性-系列',
  299. goodsUnit: '商品属性-单位',
  300. basicWarehouse: '基础资料-仓库',
  301. basicChannel: '基础资料-渠道',
  302. basicIncome: '基础资料-收入',
  303. basicOutlay: '基础资料-支出',
  304. basicEnter: '基础资料-入库',
  305. basicOut: '基础资料-出库',
  306. basicMacType: '基础资料-账户',
  307. basicSource: '基础资料-来源',
  308. basicTags: '基础资料-标签',
  309. },
  310. // 收款进度
  311. receiveStatusList: [{
  312. name: '未收款',
  313. code: '收款状态-未收',
  314. id: 0,
  315. infotype: 'default'
  316. },
  317. {
  318. name: '部分收款',
  319. code: '收款状态-部分',
  320. id: 1,
  321. infotype: 'default'
  322. },
  323. {
  324. name: '收款完成',
  325. code: '收款状态-完成',
  326. id: 2,
  327. infotype: 'default'
  328. }
  329. ],
  330. //菜单编码 客户退款
  331. CUSTOMER_EFUND_FUNCTIONCODE:'2260c936-c469-404c-85ed-aa5046fc8684',
  332. //销售订单相关API
  333. SALE_ORDER_API: "order-server/wxapi/sale/order/",
  334. WARE_HOUSE: "mdm-server/mst/warehouse/",
  335. PAGE_ITEM_MUST_API: "basic-server/basic/pageItemMust",
  336. };