guoyuji
2024-09-26 0fdd72b434d1e2566dac02d9cee87c19f32ad361
Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override
3个文件已修改
127 ■■■■■ 已修改文件
north-glass-erp/northglass-erp/src/components/pp/PrintCustomLabelDetails.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/components/pp/TagStyleDesigner.vue 102 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/components/pp/PrintCustomLabelDetails.vue
@@ -90,13 +90,10 @@
  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);
@@ -129,6 +126,21 @@
    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;
    }
  });
}
north-glass-erp/northglass-erp/src/components/pp/TagStyleDesigner.vue
@@ -128,12 +128,34 @@
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",
@@ -145,6 +167,7 @@
    options: {
      field: 'project',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -156,6 +179,7 @@
    options: {
      field: 'orderType',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -167,6 +191,7 @@
    options: {
      field: 'customerName',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -178,6 +203,7 @@
    options: {
      field: 'productName',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -189,6 +215,7 @@
    options: {
      field: 'edgingType',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -200,6 +227,7 @@
    options: {
      field: 'buildingNumber',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -211,6 +239,7 @@
    options: {
      field: 'customerAbbreviation',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -222,6 +251,7 @@
    options: {
      field: 'productAbbreviation',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -233,6 +263,7 @@
    options: {
      field: 'processId',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -244,6 +275,7 @@
    options: {
      field: 'orderNumber',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -266,6 +298,7 @@
    options: {
      field: 'process',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -321,6 +354,7 @@
    options: {
      field: 'remarks',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -332,6 +366,7 @@
    options: {
      field: 'remarks1',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -343,6 +378,7 @@
    options: {
      field: 'remarks2',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -354,6 +390,7 @@
    options: {
      field: 'remarks3',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -365,6 +402,7 @@
    options: {
      field: 'remarks4',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -376,6 +414,7 @@
    options: {
      field: 'filmNumber',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -398,6 +437,7 @@
    options: {
      field: 'glassChild',
      testData: '',
      width:270,
      height: 16,
      fontSize: 6.75,
      textAlign: "left",
@@ -437,6 +477,66 @@
      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"
    }
  },
])
north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -2103,7 +2103,12 @@
               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