| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- /**
- * 导出常量
- */
- module.exports = {
- //一页条数
- PAGE_SIZE: 5,
- // 成功的code
- SUCESS_CODE: 200,
- // 默认语言
- lan:'zh_CN',
- //页面加载数据API
- BASIC_COMMON_API: "mdm-server-dkic-b1/mst/common/",
- //供应商停用api
- BASIC_SUPLIER_API: "mdm-server-dkic-b1/mst/supplier/",
- // 系统用户接口
- SYS_OPENID_API : "oauth-server/",
- // 最大的数量
- Mess_Max_Quantity: '超过最大值或最小值,最大值为9999999999.999999',
- // 手机号正则表达式 目前只有位数校验(11位)
- Mobile_Phone_Number_Regular_Expression: /^[0-9][0-9][0-9]{9}$/,
- // 提示信息
- Messages: {
- save_sucess: '保存成功',
- },
- lang: {
- //中文编码
- langCN: 'zh-CN',
- //英文编码
- langEN: 'en-US',
- },
- // 数据类型
- dataType:{
- number:'number',
- date:'date'
- },
- // 查询条件组件类型
- searchType: {
- // 日期
- date: 'date',
- // 下拉
- drop: 'drop',
- // 筛选
- pick: 'pick',
- // 开关
- switch:'switch',
- // 单选
- radio:'radio',
- },
- // 筛选中的组件类型
- pullType:{
- // 多选
- mSelect:'mSelect',
- },
- // 下拉类型
- dropType:{
- // 业务员
- staff:'staff'
- },
- // 表单类型
- gradeCode:{
- // 标准版
- STD:'STD',
- // 专业版
- PRO:'PRO',
- // 旗舰版
- PLUS:'PLUS',
- // 独立会员vip
- VIPS:'VIPS'
- },
- // 表单类型
- formMode:{
- // 列表
- index:'index',
- // 新建
- add:'add',
- // 编辑
- edit:'edit',
- // 明细
- detail:'detail',
- // 其他
- other:'other'
- },
- // 查询条件日期数据源
- searchDateSource:[
- { text: '本日', value: 1 },
- { text: '本周', value: 2 },
- { text: '本月', value: 3 },
- { text: '本年', value: 4 },
- { text: '近7天', value: 6 },
- { text: '近30天', value: 5 },
- { text: '自定义', value: -2 },
- ],
- // 出库进度
- outStatusList: [
- {
- name: '未出库',
- code: '出库状态-未出',
- id: 0,
- infotype: 'default'
- },
- {
- name: '出库中',
- code: '出库状态-部分',
- id: 1,
- infotype: 'default'
- },
- {
- name: '已出库',
- code: '出库状态-完成',
- id: 2,
- infotype: 'default'
- },
- {
- name: '有退货',
- code: '出库状态-退货',
- id: 3,
- infotype: 'default'
- }
- ],
- // 对象类型
- objType:{
- customer:'customer',
- supplier:'supplier'
- },
- // dk-form-more-items组件类型
- moreItemsType:{
- // 收款单
- collect:'collect',
- // 付款单
- pay:'pay',
- },
- // dk-form-bill组件类型
- billType:{
- // 销售订单
- sale:'sale',
- // 采购订单
- porder:'porder',
- },
- // 收款状态
- receiveStatus:{
- no:'未收款',
- part:'部分收款',
- all:'收款完成'
- },
- /**
- * @desc : 数据种类
- * @author : 周兴
- * @date : 2024/3/9 16:17
- */
- kindType: {
- supType: '供应商类别',
- serviceCategories: '服务类别',
- goodsAttr :'商品属性',
- basicData:'基础资料'
- },
- /**
- * @desc : 数据种类数据
- * @author : 周兴
- * @date : 2024/3/9 16:17
- */
- kindCode:{
- supplierPur:'供应商类别-采购',
- supplierService:'供应商类别-服务',
- serviceDelivery:'服务类别-配送',
- serviceInstall:'服务类别-安装',
- serviceManu:'服务类别-加工',
- goodsBrand:'商品属性-品牌',
- goodsCategory:'商品属性-种类',
- goodsSeries:'商品属性-系列',
- goodsUnit:'商品属性-单位',
- basicWarehouse:'基础资料-仓库',
- basicChannel:'基础资料-渠道',
- basicIncome:'基础资料-收入',
- basicOutlay:'基础资料-支出',
- basicEnter:'基础资料-入库',
- basicOut:'基础资料-出库',
- basicMacType:'基础资料-账户',
- basicSource:'基础资料-来源',
- basicTags:'基础资料-标签',
- },
- // 收款进度
- receiveStatusList: [{ name: '未收款',code:'收款状态-未收', id: 0, infotype: 'default' },
- { name: '部分收款',code:'收款状态-部分', id: 1, infotype: 'default' },
- { name: '收款完成',code:'收款状态-完成', id: 2, infotype: 'default' }],
- //销售订单相关API
- SALE_ORDER_API: "order-server/wxapi/sale/order/",
- WARE_HOUSE: "mdm-server/mst/warehouse/",
- PAGE_ITEM_MUST_API: "basic-server/basic/pageItemMust",
- };
|