1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
| import {defineStore} from "pinia";
|
| export default defineStore('companyInfo', {
|
| state: () => ({
| companyName: '天津北玻玻璃工业技术有限公司(TJBB-QR7.1-01)',
| address:'天津宝坻区节能环保工业区天兴路西侧宝中道南侧',
| telephone:'022-59280088',
| fax:'022-59280066',
| errorArea:0.4,
| widHeiLength:{//订单宽高长度
| regexp:/^(0|[1-9][0-9]{0,4}([.][0-9]{1,2})?)$/,//正则0.00-99999.99
| //regexp:/^(0|[1-9][0-9]{0,3}([.][0-9]{1,2})?)$/,//正则0.00-9999.99
| msg:'basicData.msg.range99999Dec2'
| },
| orderIdType:'year',//后端生成订单号类型,day:每天生成,month:每月生成,year:每年生成
| deliveryIdType:'day',
| columnName:'图号',
| selectOrderReviewShow:true, //订单首页加工单审核按钮是否显示
| productName:"product_name",//产品创建查重字段
| decValue:3,//订单保留位数,天津3位,常州2位
| label:1,//标签类型
| calculateType:1,//订单计算方式
| reportType:1,//报工是否查询样品订单2查询,1不查询
| qualityInsStatus:1,//跨工序质检审核,1不需要,2需要
| remarkSwitch:1,//流程卡上是否显示其它备注,1显示,2不显示
| icon:"",//商标参数
| printShowTitle:true,//流程卡自定义打印是否显示标签
| longSide:null,//订单创建最长边提示颜色 null不提示颜色
| showDeliveryCreator:true,//发货单创建人先显示或者后显示 false后显示
| deliveryRemark: ['备注:本批玻璃为优等合格品,请在卸货时,当面消点验收、如有质量问题在一周内与本公司联系,否则概不负责!'],
| deliveryOutbound: false,//发货默认出库
| //天津
| printLabel: {
| custom: (item1) => {
| return `<div class="row3" style="text-align: center;font-weight: bolder;">
| <label style="font-size: 22px;margin-top: 28px;">W:${item1.width}</label>
|
|
|
|
| <label style="font-size: 22px;margin-top: 28px;">H:${item1.height}</label>
| </div>`
| },
| customSemi: (item1) => {
| return `<div class="row3" style="text-align: center;font-weight: bolder;">
| <label style="font-weight: bolder;font-size: 10px;margin-top: 8px;">W:${item1.width}</label>
|
| <label style="font-weight: bolder;font-size: 10px;margin-top: 8px;">H:${item1.height}</label>
| </div>`
| },
| labelType: '半品标签',
| labelValue:2,
| labelType3: '成品标签3',
| labelValue3:3,
| 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`
| }
| },
|
|
| },
| printFlowCard: {//流程卡打印样式
| patch:'补',
| lackOf:'欠',
| processingNote: (itemtextarea) => {
| return ``
| },
| },
| hideButton:'true',//流程卡打印界面按钮是否显示
| getSelectFlowCard:1,//流程卡打印查询是否合并 1合并2不合并
| columnsLabel:2,//一行两列成品标签 1新疆一行两列成品标签,2其它
| },
|
| //常州
| printLabel1: {
| custom: (item1) => {
| return `<div class="row3" style="text-align: center;font-weight: bolder;">
| <label style="font-weight: bolder;font-size:12px;">${item1.width}*${item1.height}=${item1.quantity}</label>
| </div>`
|
| },
| customSemi: (item1) => {
| return `<div class="row3" style="text-align: center;font-weight: bolder;">
| <label style="font-weight: bolder;font-size:10px;">${item1.width}*${item1.height}=${item1.quantity}</label>
| </div>`
| },
| labelType: '成品标签2',
| labelValue:3,
|
| printFlowCard: {
| patch:'正品',
| lackOf:'次品',
| processingNote: (itemtextarea) => {
| return `${itemtextarea.processing_note}`
| },
| },
| hideButton:'false',
| },
|
|
| }),
| actions: {
| //
| }
| })
|
|