Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
| | |
| | | const newValue = event.target.innerText; |
| | | const parts = newValue.split(':'); |
| | | const result = parts[1]; // 获取冒号后的部分 |
| | | |
| | | // 获取映射中所有的键 |
| | | const keys = Object.keys(propertyMapping); |
| | | |
| | | // 根据 index 获取对应的属性名 |
| | | const propertyName = keys[index]; |
| | | |
| | | // 如果映射中没有该 index,直接返回 |
| | | if (!propertyName) { |
| | | console.warn('Unsupported index:', index); |
| | |
| | | if (propertyName === 'glassNumber' && glassNumber === obj.glassNumber){ |
| | | obj.glassNumber = result; |
| | | } |
| | | if (propertyName === 'custom1' && orderId === obj.orderId){ |
| | | obj.custom1 = result; |
| | | } |
| | | if (propertyName === 'custom2' && orderId === obj.orderId){ |
| | | obj.custom2 = result; |
| | | } |
| | | if (propertyName === 'custom3' && orderId === obj.orderId){ |
| | | obj.custom3 = result; |
| | | } |
| | | if (propertyName === 'custom4' && orderId === obj.orderId){ |
| | | obj.custom4 = result; |
| | | } |
| | | if (propertyName === 'custom5' && orderId === obj.orderId){ |
| | | obj.custom5 = result; |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | const TgaStyleSet = ref([ |
| | | |
| | | { |
| | | tid: 'INSIDE', title: '此面为室内面', data: '', type: 'text', |
| | | options: { |
| | | testData: '', |
| | | width:55, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'OUTSIDE', title: '此面为室外面', data: '', type: 'text', |
| | | options: { |
| | | testData: '', |
| | | width:55, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'orderId', title: '订单号', data: '', type: 'text', |
| | | options: { |
| | | field: 'orderId', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'project', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'orderType', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'customerName', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'productName', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'edgingType', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'buildingNumber', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'customerAbbreviation', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'productAbbreviation', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'processId', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'orderNumber', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'process', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'remarks', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'remarks1', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'remarks2', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'remarks3', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'remarks4', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'filmNumber', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | options: { |
| | | field: 'glassChild', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'custom1', title: '自定义1', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom1', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'custom2', title: '自定义2', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom2', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'custom3', title: '自定义3', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom3', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'custom4', title: '自定义4', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom4', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'custom5', title: '自定义5', data: '', type: 'text', |
| | | options: { |
| | | field: 'custom5', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 6.75, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | |
| | | ]) |
| | | |
| | |
| | | od.other_columns, |
| | | ogd.glass_child as glassChild, |
| | | ogd.glass_address as glassAddress, |
| | | JSON_UNQUOTE(JSON_EXTRACT(pd.separation, '$.color')) AS color |
| | | JSON_UNQUOTE(JSON_EXTRACT(pd.separation, '$.color')) AS color, |
| | | '文本' as custom1, |
| | | '文本' as custom2, |
| | | '文本' as custom3, |
| | | '文本' as custom4, |
| | | '文本' as custom5 |
| | | from sd.order as o |
| | | left join sd.order_detail as od on o.order_id = od.order_id |
| | | left join flow_card as fc on o.order_id = fc.order_id and |