ZengTao
2025-08-12 9a5c167f99649b610eb36c39e75017517073a6a4
打印方法修改(可编辑标签内容)
3个文件已修改
26 ■■■■■ 已修改文件
UI-Project/src/views/hollow/PrintCustomLabelTwo.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/application-prod.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application-dev.yml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/views/hollow/PrintCustomLabelTwo.vue
@@ -95,7 +95,7 @@
)
//修改相同产品名称标签
const updateProductName = (event, index, id) => {
const updateProductName = (event, id, index) => {
  console.log(event, index, id)
  // 创建映射对象
  const propertyMapping = {};
@@ -111,7 +111,7 @@
  const keys = Object.keys(propertyMapping);
  // 根据 index 获取对应的属性名
  const propertyName = keys[index];
  const propertyName = keys[id];
  // 如果映射中没有该 index,直接返回
  if (!propertyName) {
@@ -122,9 +122,9 @@
  // 遍历 lastList 并更新对应的属性
  props.lastList.forEach(obj => {
    // 获取前缀和 orderId
    const prefix = props.lastList[id].processId.substring(0, 11);
    const prefix = props.lastList[index].processId.substring(0, 11);
    const orderId = obj.orderId;
    const glassNumber = props.lastList[id].glassNumber
    const glassNumber = props.lastList[index].glassNumber
    // 根据 propertyName 更新属性
    if (propertyName === 'productAbbreviation' && prefix === obj.processId.substring(0, 11)) {
      obj.productAbbreviation = result;
@@ -174,12 +174,12 @@
<template>
  <div id="print" class="printFlowCard_semi">
    <template v-for="(item1, id) in props.lastList">
    <template v-for="(item1, index) in props.lastList">
      <div class="entirety_semi">
        <div class="row4">{{ faceOrientation }}</div>
        <div v-for="(item, id ,index) in labelList" class="contentRow">
        <div v-for="(item, id) in labelList" class="contentRow">
          <div contenteditable="true" v-if="item1[item.name] != null && item1[item.name] !== ''" class="row1"
            @input="updateProductName($event, id, id)">{{ item.title }}:{{ item1[item.name] }}</div>
            @input="updateProductName($event, id, index)">{{ item.title }}:{{ item1[item.name] }}</div>
          <!--        <div v-if="item1[item.name] != null && item1[item.name] !== ''" class="row2">{{ item1[item.name] }}</div>-->
        </div>
        <!-- <div v-html="company.printLabel.customSemi(item1)"></div> -->
hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/application-prod.yml
@@ -30,7 +30,7 @@
    password: 123456
kangaroohy:
  milo:
    enabled: true
    enabled: false
    primary: default
    config:
      default:
hangzhoumesParent/moduleService/LoadGlassModule/src/main/resources/application-dev.yml
@@ -41,14 +41,4 @@
        endpoint: opc.tcp://10.153.19.150:49320
        security-policy: basic256sha256
        username: admin
        password: 1qaz2wsx3edc4rfv
kangaroohy:
  milo:
    enabled: true
    primary: default
    config:
      default:
        endpoint: opc.tcp://10.153.19.150:49320
        security-policy: basic256sha256
        username: admin
        password: 1qaz2wsx3edc4rfv