import {defineStore} from "pinia";
export default defineStore('companyInfo', {
state: () => ({
companyName: '常州市吉利玻璃有限公司',
address:'常州市天宁区郑陆镇大明南路8号',
telephone:'022-59280088',
fax:'022-59280066',
widHeiLength:{//订单宽高长度
regexp:/^(\d{1,4})$/,//正则四位整数
//regexp:/^(0|[1-9][0-9]{0,3}([.][0-9]{1,2})?)$/,//正则0.00-9999.99
msg:'basicData.msg.range9999Dec'
},
orderIdType:'month',//后端生成订单号类型,day:每天生成,month:每月生成
deliveryIdType:'month',//后端生成发货单号类型,day:每天生成,month:每月生成
columnName:'异形参数',
selectOrderReviewShow:false, //订单首页加工单审核按钮是否显示
productName:"product_abbreviation", //产品创建查重字段
decValue:2,//订单保存面积位数
label:2,//标签类型
calculateType:2,//订单计算方式
//天津
printLabel: {
custom: (item1) => {
return `
`
},
customSemi: (item1) => {
return `
`
},
labelType: '成品标签2',
labelValue:2,
labelType3: '成品标签3',
labelValue3:3,
printFlowCard: {
patch:'正品',
lackOf:'次品',
processingNote: (itemtextarea) => {
return `${itemtextarea.processing_note}`
},
},
hideButton:'false',
getSelectFlowCard:2,//打印流程卡查询状态
className:{
custom:{
printFlowCardName: () => {
return `printFlowCard_finished`
},
entiretyName: () => {
return `entirety_finished`
},
contentRowName: () => {
return `contentRow`
}
},
semi:{
printFlowCardName: () => {
return `printFlowCard_semi`
},
entiretyName: () => {
return `entirety_semi`
},
contentRowName: () => {
return `contentRow`
}
}
}
}
}),
actions: {
//
}
})