Prechádzať zdrojové kódy

feature_20260121_陈列奖励案任务复制暂

zhujindu 4 dní pred
rodič
commit
f632545dc5

+ 1 - 1
src/views/historicalVisit/historicalDetails.vue

@@ -461,7 +461,7 @@ export default {
       } else {
         this.$router.push({
           path: '/historiStoreVisit',
-          query: { visitId: this.visitsId, ids: index, taskType: val.taskType },
+          query: { visitId: this.visitsId, ids: index, taskType: val.taskType, taskId: val.taskId },
         });
       }
       sessionStorage.setItem('collectionItemList', JSON.stringify(val.collectionItemList));

+ 17 - 11
src/views/historicalVisit/hisvistdeils.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="hisvistdeils">
     <!--        顶部条-->
-    <van-nav-bar class="navBar" title="拜访任务详情" left-arrow @click-left="onClickLeft" />
+    <van-nav-bar class="navBar" :title="title" left-arrow @click-left="onClickLeft" />
     <!--right-text="保存"-->
     <!--@click-right="onSubmit"-->
     <!--        主体内容-->
@@ -274,7 +274,9 @@
     <div class="identifyResult" v-if="taskPhotoRecognitionResult" style="padding: 0 10px">
       <div style="font-weight: bold; padding: 10px; font-size: 16px">
         <span>识别结果:</span>
-        <!-- <span>{{ taskPhotoConditionPassed }}</span> -->
+        <span style="color: red">{{
+          activatedSfaTask.taskPhotoConditionPassed == '1' ? 'AI识别通过' : 'AI识别不通过'
+        }}</span>
       </div>
       <div class="resultContent">
         <el-table
@@ -361,6 +363,7 @@ export default {
       yfNumFlage: false,
       spanArr: [],
       pos: 0,
+      title: '',
     };
   },
   activated() {
@@ -463,22 +466,25 @@ export default {
       getVisitsDetail({ visitsId: this.visitId }).then((res) => {
         this.toastLoading().clear();
         this.infoData = res.data;
-        this.taskPhotoRecognitionResult =
-          res.data.sfaTaskList[this.$route.query.ids].taskPhotoRecognitionResult;
+        let filterSfaTask = res.data.sfaTaskList.filter((val) => val.taskId == this.taskId);
+        this.activatedSfaTask = filterSfaTask.length ? filterSfaTask[0] : null;
+        if (!this.activatedSfaTask) return false;
+        this.title = this.activatedSfaTask.taskName;
+        this.taskPhotoRecognitionResult = this.activatedSfaTask.taskPhotoRecognitionResult;
         this.getSpanArr(this.taskPhotoRecognitionResult);
-        var collectionItemLists = res.data.sfaTaskList[this.$route.query.ids].collectionItemList;
-        if (res.data.sfaTaskList[this.$route.query.ids].checkUnManage == 'Y') {
+        var collectionItemLists = this.activatedSfaTask.collectionItemList;
+        if (this.activatedSfaTask.checkUnManage == 'Y') {
           this.checkShow = true;
         } else {
           this.checkShow = false;
         }
         // this.deviceCode=res.data.deviceCode;
         // 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 || ''; // 投放编号
-        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.deviceCode = this.activatedSfaTask.deviceCode || ''; // 设备编号
+        this.putInCode = this.activatedSfaTask.putInCode || ''; // 投放编号
+        this.equipmentCode = this.activatedSfaTask.equipmentCode || ''; // 机资产编号
+        this.inspectionType = this.activatedSfaTask.inspectionType;
+        // if (this.activatedSfaTask.inspectionType == 'buy') {
         //   this.showCode = true;
         // } else {
         //   this.showCode = false;