|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="hisvistdeils">
|
|
<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="保存"-->
|
|
<!--right-text="保存"-->
|
|
|
<!--@click-right="onSubmit"-->
|
|
<!--@click-right="onSubmit"-->
|
|
|
<!-- 主体内容-->
|
|
<!-- 主体内容-->
|
|
@@ -274,7 +274,9 @@
|
|
|
<div class="identifyResult" v-if="taskPhotoRecognitionResult" style="padding: 0 10px">
|
|
<div class="identifyResult" v-if="taskPhotoRecognitionResult" style="padding: 0 10px">
|
|
|
<div style="font-weight: bold; padding: 10px; font-size: 16px">
|
|
<div style="font-weight: bold; padding: 10px; font-size: 16px">
|
|
|
<span>识别结果:</span>
|
|
<span>识别结果:</span>
|
|
|
- <!-- <span>{{ taskPhotoConditionPassed }}</span> -->
|
|
|
|
|
|
|
+ <span style="color: red">{{
|
|
|
|
|
+ activatedSfaTask.taskPhotoConditionPassed == '1' ? 'AI识别通过' : 'AI识别不通过'
|
|
|
|
|
+ }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="resultContent">
|
|
<div class="resultContent">
|
|
|
<el-table
|
|
<el-table
|
|
@@ -361,6 +363,7 @@ export default {
|
|
|
yfNumFlage: false,
|
|
yfNumFlage: false,
|
|
|
spanArr: [],
|
|
spanArr: [],
|
|
|
pos: 0,
|
|
pos: 0,
|
|
|
|
|
+ title: '',
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
@@ -463,22 +466,25 @@ export default {
|
|
|
getVisitsDetail({ visitsId: this.visitId }).then((res) => {
|
|
getVisitsDetail({ visitsId: this.visitId }).then((res) => {
|
|
|
this.toastLoading().clear();
|
|
this.toastLoading().clear();
|
|
|
this.infoData = res.data;
|
|
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);
|
|
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;
|
|
this.checkShow = true;
|
|
|
} else {
|
|
} else {
|
|
|
this.checkShow = false;
|
|
this.checkShow = false;
|
|
|
}
|
|
}
|
|
|
// this.deviceCode=res.data.deviceCode;
|
|
// this.deviceCode=res.data.deviceCode;
|
|
|
// this.putInCode=res.data.putInCode;
|
|
// 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;
|
|
// this.showCode = true;
|
|
|
// } else {
|
|
// } else {
|
|
|
// this.showCode = false;
|
|
// this.showCode = false;
|