|
|
@@ -106,23 +106,23 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
- <div class="dataList" v-if="dataList">
|
|
|
+ <div class="dataList" v-if="formData">
|
|
|
<div class="headline" style="margin-top: 10px">
|
|
|
<span class="headlineIcon"></span>
|
|
|
<span class="headlineTitle">陈列任务要求</span>
|
|
|
</div>
|
|
|
- <div class="dataItem" v-for="(item, index) in dataList">
|
|
|
+ <div class="dataItem">
|
|
|
<div class="itemTop">
|
|
|
<div class="itemIndex">
|
|
|
- <p>{{ index + 1 }}、</p>
|
|
|
+ <p>1、</p>
|
|
|
</div>
|
|
|
- <div class="itemHtml" v-html="item.displayInstructions"></div>
|
|
|
+ <div class="itemHtml" v-html="formData.displayInstructions"></div>
|
|
|
</div>
|
|
|
<div class="itemBottom" v-if="insert == '0'">
|
|
|
- <van-button round type="primary" v-if="item.taskPhotoConditionPassed == 1"
|
|
|
+ <van-button round type="primary" v-if="formData.taskPhotoConditionPassed == 1"
|
|
|
>通过</van-button
|
|
|
>
|
|
|
- <van-button round type="danger" v-if="item.taskPhotoConditionPassed == 0"
|
|
|
+ <van-button round type="danger" v-if="formData.taskPhotoConditionPassed == 0"
|
|
|
>不通过</van-button
|
|
|
>
|
|
|
</div>
|
|
|
@@ -171,7 +171,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { addCollectionAnswerBatch, getVisitsDetailPerfectStore } from '@/api/index';
|
|
|
+import {
|
|
|
+ addCollectionAnswerBatch,
|
|
|
+ getVisitsDetailPerfectStore,
|
|
|
+ getVisitsDetailPerfectStoreByTaskId,
|
|
|
+} from '@/api/index';
|
|
|
import taskTips from '@/views/deviceWithin/taskTips';
|
|
|
import deleteUploadImg from '@/components/deleteUploadImgTaskPhoto';
|
|
|
import { ImagePreview } from 'vant';
|
|
|
@@ -236,13 +240,13 @@ export default {
|
|
|
},
|
|
|
getVisitsDetailFun() {
|
|
|
this.toastLoading(0, '加载中...', true);
|
|
|
- getVisitsDetailPerfectStore({ visitsId: this.visitsId }).then((res) => {
|
|
|
+ getVisitsDetailPerfectStoreByTaskId({
|
|
|
+ visitsId: this.visitsId,
|
|
|
+ taskId: this.$route.query.taskId,
|
|
|
+ }).then((res) => {
|
|
|
this.toastLoading().clear();
|
|
|
- if (res.data.sfaTaskList) {
|
|
|
- this.dataList = res.data.sfaTaskList.filter(
|
|
|
- (val) => val.taskId == this.$route.query.taskId,
|
|
|
- );
|
|
|
- this.formData = this.dataList[0];
|
|
|
+ if (res.code == 200 && res.data) {
|
|
|
+ this.formData = res.data;
|
|
|
console.log(this.formData.taskPhotoRecognitionResult);
|
|
|
this.getSpanArr(this.formData.taskPhotoRecognitionResult);
|
|
|
console.log(this.formData);
|