فهرست منبع

fix: 更新字段信息

xiaweibo 2 ماه پیش
والد
کامیت
31eb209d65

+ 6 - 5
src/views/production-safety/risk-identification-and-control/labor-products-purchase-apply-manage/components/detail.vue

@@ -171,13 +171,14 @@
           <el-table-column label="商品编号" min-width="150">
             <template #default="{ row }">
               <!-- v-if="isViewMode || isAuditMode || isCreateMode" -->
-              <span>{{ row.productNo || row.equipmentId || '-' }}</span>
-              <!-- <el-input
+              <!-- <span>{{ row.productNo || row.equipmentId || '-' }}</span> -->
+              <span v-if="isViewMode || isAuditMode">{{ row.equipmentId ?? '-' }}</span>
+              <el-input
                 v-else
-                v-model="row.productNo"
+                v-model="row.equipmentId"
                 placeholder="请输入..."
                 clearable
-              /> -->
+              />
             </template>
           </el-table-column>
           <el-table-column label="备注" min-width="150">
@@ -562,7 +563,7 @@
     const found = ppeOptions.value.find((p) => p.ppeName === ppeName);
     if (found?.id) {
       row.ppeId = found.id;
-      row.equipmentId = found.id;
+      // row.equipmentId = found.id;
       row.productNo = String(found.id);
     }
   }