Kaynağa Gözat

feature_20250904_调色机识别结果提示

zhujindu 2 ay önce
ebeveyn
işleme
0cd4a05d9f
1 değiştirilmiş dosya ile 12 ekleme ve 7 silme
  1. 12 7
      src/views/historicalVisit/hisvistdeils.vue

+ 12 - 7
src/views/historicalVisit/hisvistdeils.vue

@@ -6,12 +6,13 @@
     <!--@click-right="onSubmit"-->
     <!--        主体内容-->
     <div class="lineGrey"></div>
-    <div class="deviceCode" v-if="showCode">
+    <div class="deviceCode" v-if="inspectionType">
       <div class="vertical"></div>
       <p>设备编号:{{ deviceCode }}</p>
       <p>投放编号:{{ putInCode }}</p>
+      <p v-if="inspectionType == 'place'">资产编号:{{ equipmentCode }}</p>
     </div>
-    <div class="lineGrey" v-if="showCode"></div>
+    <div class="lineGrey" v-if="inspectionType"></div>
     <div
       class="container containert"
       style="width: 100%; margin: 0 auto; padding: 10px 0"
@@ -318,6 +319,8 @@ export default {
       checkShow: false,
       infoData: {},
       putInCode: '',
+      inspectionType: '',
+      equipmentCode: '',
     };
   },
   activated() {
@@ -398,11 +401,13 @@ export default {
         // this.putInCode=res.data.putInCode;
         this.deviceCode = res.data.sfaTaskList[this.$route.query.ids].deviceCode || ''; // 设备编号
         this.putInCode = res.data.sfaTaskList[this.$route.query.ids].putInCode || ''; // 投放编号
-        if (res.data.sfaTaskList[this.$route.query.ids].inspectionType == 'buy') {
-          this.showCode = true;
-        } else {
-          this.showCode = false;
-        }
+        this.equipmentCode = res.data.sfaTaskList[this.$route.query.ids].equipmentCode || ''; // 机资产编号
+        this.inspectionType = res.data.sfaTaskList[this.$route.query.ids].inspectionType;
+        // if (res.data.sfaTaskList[this.$route.query.ids].inspectionType == 'buy') {
+        //   this.showCode = true;
+        // } else {
+        //   this.showCode = false;
+        // }
         if (this.$route.query.taskType == 1 || this.$route.query.taskType == 4) {
           for (var q = 0; q < collectionItemLists.length; q++) {
             if (