| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565 |
- /**
- * 导出常量
- */
- module.exports = {
- //一页条数
- PAGE_SIZE: 10,
- //最大条数(导出excel使用)
- MAX_PAGE_SIZE: 100000,
- // 成功的code
- SUCESS_CODE: 200,
- // 最小值
- MIN_VALUE:-10000000,
- // 最大值
- MAX_VALUE:10000000,
- // 默认语言
- lan: 'zh_CN',
- // 企业到期提醒时间
- CP_ALERT_TIME: 15,
- // 智云微信客服
- WX_SERVICE: 'https://work.weixin.qq.com/kfid/kfc2aeb7d6dc99a4f16',
- // 企业微信ID
- WX_CPID: 'wwcfaf272c61fae45e',
- // 应用代码
- APP_CODE: 'CP-WXP',
- //页面加载数据API
- BASIC_COMMON_API: "mdm-server/mst/common/",
- //页面加载数据API
- BASIC_WX_COMMON_API: "mdm-server/wxapi/basic/common/",
- //供应商停用api
- BASIC_SUPLIER_API: "mdm-server/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}$/,
- //验证一个字符串是否为有效的邮箱地址
- Emai_Regular_Expression: /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
-
- // 提示信息
- Messages: {
- save_sucess: '保存成功',
- },
- miniMessageModelIds:['z3REuwft6NLPxVW8s5HN1UgWjFstWjD0QfCXNLTa0LA'],
- lang: {
- //中文编码
- langCN: 'zh-CN',
- //英文编码
- langEN: 'en-US',
- },
- // 数据类型
- dataType: {
- number: 'number',
- date: 'date'
- },
- // 角色
- role: {
- // 店长
- shopKeeper: 'PR00001'
- },
- // 查询条件组件类型
- searchType: {
- // 日期
- date: 'date',
- // 下拉
- drop: 'drop',
- // 下拉
- dropSingle: 'dropSingle',
- // 筛选
- pick: 'pick',
- // 开关
- switch: 'switch',
- // 单选
- radio: 'radio',
- },
- // 筛选中的组件类型
- pullType: {
- // 多选
- mSelect: 'mSelect',
- },
- // 下拉类型
- dropType: {
- // 业务员
- staff: 'staff'
- },
- // 选择页面的类型
- chooseType: {
- // 角色
- role: 'role',
- // 部门
- org: 'org',
- // 对象类别
- objectType: 'objectType',
- // 员工
- staff: 'staff',
- // 供应商
- supplier: 'supplier',
- // 外协供应商
- outSupplier: 'outSupplier',
- // 数据字典
- dictionary: 'dictionary',
- // 系统数据
- kindData: 'kindData',
- // 仓库
- warehouse: 'warehouse',
- // 品牌
- brand: 'brand',
- // 系列
- series: 'series',
- unit: 'unit',// 基本单位
- inventorySku: 'inventorySku', //sku库存
- saleChannel: 'saleChannel', //销售渠道
- cusFrom: 'customerFrom', //客户来源
- moneyAccount: 'moneyAccount',//资金账户
- invoiceType:"invoiceType",//发票抬头
- },
- // 范围权限
- purviewType: {
- org: 'PU10000001',
- channel: 'PU10000002',
- make: 'PU10000003',
- },
- // 体验企业编码
- testCpCodes: {
- // 标准版企业
- std_test: 'std_test',
- // 专业版企业
- pro_test: 'pro_test'
- },
- // 体验企业信息
- testCpList: [{
- cpId: 2,
- cpName: '东科智云-标准版-体验',
- svcCode: 'dkic_b1',
- openid: 'std_test',
- svcIp: 'http://127.0.0.1',
- gradeCode: 'STD',
- svcPort: '7001'
- },
- // {
- // cpId: 3,
- // cpName: '东科智云-专业版-体验',
- // svcCode: 'dkic_b1',
- // gradeCode: 'PRO',
- // openid: 'pro_test',
- // svcIp: 'http://127.0.0.1',
- // svcPort: '7001'
- // }
- ],
- // 1:PC端,2:移动端,3:PC+移动端 4 无
- loginType: {
- loginTypePc: 1,
- loginTypeWx: 2,
- loginTypeWxPc: 3,
- loginTypeNo: 4,
- },
- noticeInfo: {
- proTitle:'六大模块功能',
- title: '注册须知:',
- cpName: '用于登录系统时显示公司信息。',
- contact: '联系电话:用于登录系统。',
- cpSize: '公司规模及门店规模:用于开通系统配置基础档案。'
- },
- // 表单类型
- gradeCode: {
- // 标准版
- STD: 'STD',
- // 专业版
- PRO: 'PRO',
- // 旗舰版
- PLUS: 'PLUS',
- // 独立会员vip
- VIPS: 'VIPS'
- },
- // 表单类型
- formMode: {
- // 列表
- index: 'index',
- // 新建
- add: 'add',
- // 编辑
- edit: 'edit',
- // 明细
- detail: 'detail',
- // 其他
- other: 'other',
- //详情编辑
- detailEdit: 'detailEdit'
- },
- //是否返回原始页面
- formReturnMode:{
- beginnerGuide:'beginnerGuide'
- },
- formType: {
- shopping: 'shopping'
- },
- // 查询条件日期数据源
- searchDateSource: [{
- text: '本日',
- value: 1
- },
- {
- text: '本周',
- value: 2
- },
- {
- text: '本月',
- value: 3
- },
- {
- text: '本年',
- value: 4
- },
- {
- text: '近7天',
- value: 6
- },
- {
- text: '近30天',
- value: 5
- },
- {
- text: '自定义',
- value: -2
- },
- ],
- // 初始款项
- initialPayType: {
- none: '初始款项-无',
- debt: '初始款项-欠款',
- payment: '初始款项-预收',
- },
- // 收付款类型
- rpType: {
- receipt: '收付款类型-收款',
- returnReceipt: '收付款类型-退收款',
- payment: '收付款类型-付款',
- returnPayment: '收付款类型-退付款',
- },
- //库存调整
- inventoryAdjustment: {
- warehouse: '调整类型-仓库调整',
- batchNumber: '调整类型-色号调整',
- },
- // 入库类型
- intoType: {
- pur: '入库类型-采购入库',
- saleReturn: '入库类型-采退出库',
- other: '入库类型-其他入库',
- first: '入库类型-期初入库',
- },
- // 入库状态
- intoStatus: {
- inBounded: '入库状态-已入库',
- inBounding: '入库状态-入库中',
- unInBound: '入库状态-待入库',
- },
- // 出库状态
- outStatus: {
- outBounded: '出库状态-已出库',
- outBounding: '出库状态-出库中',
- unOutBound: '出库状态-待出库',
- },
- // 出库类型
- outType: {
- purReturn: '出库类型-销退回库',
- sale: '出库类型-销售出库',
- other: '出库类型-其他出库',
- intoReturn: '出库类型-销退回库',
- },
- // 出库进度
- 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',
- // 采购订单
- pur: 'pur',
- // 库存预警
- winning: 'winning',
- purInto: 'purInto',
- out: 'out',
- purReturn: 'purReturn',
- inventory: 'inventory',
- saleOut: 'saleOut',
- saleOutReturn: 'saleOutReturn',
- },
- // 收款状态
- 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
- */
- orderStatus: {
- STATUS_DEAL: '订单状态-成交',
- STATUS_STAGING: '订单状态-暂存',
- STAGING: '暂存'
- },
- /**
- * @desc : 盘点状态
- * @author : 王英杰
- * @date : 2024/3/9 16:17
- */
- checkStaus: {
- STAGING: '盘点状态-暂存',
- COMPLETE: '盘点状态-完成'
- },
- /**
- * @desc : 单据类型
- * @author : 周兴
- * @date : 2024/3/9 16:17
- */
- documentType: {
- purOrder: "单据类型-采购订单"
- },
- /**
- * @desc : 积分类型
- * @author : 姜永辉
- * @date : 2024/3/9 16:17
- */
- integralType: {
- register: "积分类型-注册",
- sign: "积分类型-签到",
- share: "积分类型-分享",
- invite: "积分类型-邀请",
- use: "积分类型-使用",
- },
- /**
- * @desc : 优惠券状态
- * @author : 姜永辉
- * @date : 2024/3/9 16:17
- */
- couponStatus: {
- use: "优惠券状态-已使用",
- unused: "优惠券状态-未使用",
- expired: "优惠券状态-已失效"
- },
- /**
- * @desc : 表名
- * @author : 周兴
- * @date : 2024/3/27 10:07
- */
- tables: {
- // 销售订单
- order: 't_psi_order',
- // 采购订单
- purchase: 't_psi_purchase',
- // 出库单
- outbound: 't_psi_outbound',
- // 入库单
- inbound: 't_psi_inbound',
- // 库存盘点
- check: 't_psi_check',
- // 库存调整
- transfer: 't_psi_transfer',
- // 资金账户
- moneyAccount: 't_mst_money_account',
- // 资金转账
- macTransfer: 't_mac_transfer',
- // 收付款单
- recPay: 't_mac_rec_pay',
- // 其他收入单
- income: 't_mac_other_receivable',
- // 其他支出单
- outlay: 't_mac_other_payable',
- cusFollow: 't_crm_cus_follow',
- //商品档案
- goodsSku: 't_mst_goods_sku',
- },
- /**
- * @desc : 系统参数
- * @author : 周兴
- * @date : 2024/4/1 10:18
- */
- settingCode: {
- // 自动办理标识
- IVT001: 'IVT_001',
- // 允许负库存
- IVT002: 'IVT_002',
- },
- /**
- * @desc : 上传文件大小
- * @author : 周兴
- * @date : 2024/3/27 10:07
- */
- uploadFileConfig: {
- maxSize: 10485760,//图片大小的最大值 10MB 10240kb 10485760字节
- maxSizeMB: '10MB',
- acceptPicType: 'image/png,image/jpeg,image/jpg',// 接受上传的图片类型
- acceptVideoType: 'video/mp4,video/avi,video/mov',// 接受上传的视频类型
- acceptExcel: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel ',
- acceptPdf: 'application/pdf',
- },
- /**
- * @desc : 菜单编码
- * @author : 周兴
- * @date : 2024/3/27 10:07
- */
- menuCode: {
- // 入库明细表
- inboundDetailReport: 'entry-detail-report',
- // 出库明细表
- outboundDetailReport: 'out-detail-report',
- // 销售单明细表
- orderDetailReport: 'order-detail-report',
- // 采购明细表
- purDetailReport: 'pur-detail-report',
- //客户收款明细表
- cusReceiptDetailReport: 'cus-receipt-report',
- // 销售订单
- order: 'order',
- // 客户收款
- cusReceipt: 'cus-receipt',
- // 入库办理
- entryHandle: 'entry-handle',
- // 出库办理
- outHandle: 'out-handle',
- // 库存查询
- ivtDetailReport: 'ivt-detail-report',
- },
- /**
- * @desc : 数据种类数据
- * @author : 周兴
- * @date : 2024/3/9 16:17
- */
- kindCode: {
- supplierPur: '供应商类别-采购',
- supplierOutsourcing: '供应商类别-外协',
- supplierService: '供应商类别-服务',
- serviceDelivery: '服务类别-配送',
- serviceInstall: '服务类别-安装',
- serviceManu: '服务类别-加工',
- goodsBrand: '商品属性-品牌',
- goodsCategory: '商品属性-种类',
- goodsSeries: '商品属性-系列',
- goodsUnit: '商品属性-单位',
- basicWarehouse: '基础资料-仓库',
- basicChannel: '基础资料-渠道',
- basicIncome: '基础资料-收入',
- basicOutlay: '基础资料-支出',
- basicEnter: '基础资料-入库',
- basicOut: '基础资料-出库',
- basicMacType: '基础资料-账户',
- basicSource: '基础资料-来源',
- basicTags: '基础资料-标签',
- activityGrade: '活动分类-版本',
- activityAd: '活动分类-广告',
- activityMenu: '活动分类-功能',
- activityVip: '活动分类-VIP',
- activityStatus: '活动状态-发布',
- activityFunc: '活动分类-功能包',
- },
- // 收款进度
- receiveStatusList: [{
- name: '未收款',
- code: '收款状态-未收',
- id: 0,
- infotype: 'default'
- },
- {
- name: '部分收款',
- code: '收款状态-部分',
- id: 1,
- infotype: 'default'
- },
- {
- name: '收款完成',
- code: '收款状态-完成',
- id: 2,
- infotype: 'default'
- }
- ],
- //菜单编码 客户退款
- CUSTOMER_EFUND_FUNCTIONCODE: 'cus-refund',
- //销售订单相关API
- SALE_ORDER_API: "order-server/wxapi/sale/order/",
- WARE_HOUSE: "mdm-server/mst/warehouse/",
- PAGE_ITEM_MUST_API: "basic-server/basic/pageItemMust",
- };
|