|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div class="addStoreVisit">
|
|
|
<!-- 顶部条-->
|
|
|
<div class="navBarTOP">
|
|
|
<van-nav-bar class="navBar" left-arrow title="拜访任务" @click-left="onClickLeft">
|
|
|
@@ -176,7 +176,9 @@
|
|
|
readonly
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'date'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -212,7 +214,9 @@
|
|
|
readonly
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'tel'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -248,7 +252,9 @@
|
|
|
readonly
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'zp'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -271,7 +277,9 @@
|
|
|
@click="imgClick(item, 'A', index)" />
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'wb'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -319,7 +327,9 @@
|
|
|
>回显历史</span
|
|
|
>
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'duox'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -351,7 +361,9 @@
|
|
|
level="A"
|
|
|
:zCheckboxcolumns="item.collectionOptionList"
|
|
|
@zSelectVal="zSelectVal"></z-checkbox>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'sm'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -400,7 +412,9 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'dx'" class="formLabel z-cell">
|
|
|
<div>
|
|
|
@@ -435,7 +449,9 @@
|
|
|
:childindex="index"
|
|
|
@zSelectVal="zSelectVal"
|
|
|
:relevancyItem="item.relevancyItem"></z-radio>
|
|
|
- <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="item.fileInfoList"></delete-upload-img>
|
|
|
<div v-for="(child, indexc) in item.collectionOptionList" :key="indexc">
|
|
|
<div v-if="child.isCheck == 1">
|
|
|
<div v-for="(childitem, childIndex) in child.collectionItems" :key="childIndex">
|
|
|
@@ -488,7 +504,9 @@
|
|
|
>回显历史</span
|
|
|
>
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem.answerType == 'sz'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -534,7 +552,9 @@
|
|
|
readonly
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem.answerType == 'date'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -581,7 +601,9 @@
|
|
|
readonly
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem.answerType == 'tel'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -627,7 +649,9 @@
|
|
|
readonly
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem.answerType == 'zp'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -653,7 +677,9 @@
|
|
|
@click="imgClick(childitem, 'B', index, childIndex)" />
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem.answerType == 'duox'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -690,7 +716,9 @@
|
|
|
:childindex2="childIndex"
|
|
|
level="B"
|
|
|
@zSelectVal="zSelectVal"></z-checkbox>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem.answerType == 'sm'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
@@ -742,7 +770,9 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem.answerType == 'dx'" class="formLabel z-cell">
|
|
|
<div>
|
|
|
@@ -782,7 +812,9 @@
|
|
|
:zRadiocolumns="childitem.collectionOptionList"
|
|
|
@zSelectVal="zSelectVal"
|
|
|
:relevancyItem="childitem.relevancyItem"></z-radio>
|
|
|
- <delete-upload-img :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
+ <delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
+ :imgs="childitem.fileInfoList"></delete-upload-img>
|
|
|
<div
|
|
|
v-for="(child1, indexc1) in childitem.collectionOptionList"
|
|
|
:key="indexc1">
|
|
|
@@ -850,6 +882,7 @@
|
|
|
>
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem1.answerType == 'date'" class="formLabel z-cell">
|
|
|
@@ -923,6 +956,7 @@
|
|
|
>
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem1.answerType == 'sm'" class="formLabel z-cell">
|
|
|
@@ -982,6 +1016,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem1.answerType == 'duox'" class="formLabel z-cell">
|
|
|
@@ -1032,6 +1067,7 @@
|
|
|
:zCheckboxcolumns="childitem1.collectionOptionList"
|
|
|
@zSelectVal="zSelectVal"></z-checkbox>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem1.answerType == 'dx'" class="formLabel z-cell">
|
|
|
@@ -1087,6 +1123,7 @@
|
|
|
@zSelectVal="zSelectVal"
|
|
|
:relevancyItem="childitem1.relevancyItem"></z-radio>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
<div
|
|
|
v-for="(child33, indexc33) in childitem1.collectionOptionList"
|
|
|
@@ -1179,6 +1216,7 @@
|
|
|
>
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -1276,6 +1314,7 @@
|
|
|
>
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -1340,6 +1379,7 @@
|
|
|
:zCheckboxcolumns="child33item1.collectionOptionList"
|
|
|
@zSelectVal="zSelectVal"></z-checkbox>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -1414,6 +1454,7 @@
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -1486,6 +1527,7 @@
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -1535,6 +1577,7 @@
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -1613,6 +1656,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div
|
|
|
@@ -1680,6 +1724,7 @@
|
|
|
@zSelectVal="zSelectVal"
|
|
|
:relevancyItem="child33item1.relevancyItem"></z-radio>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="child33item1.fileInfoList"></delete-upload-img>
|
|
|
<div
|
|
|
v-for="(
|
|
|
@@ -1779,6 +1824,7 @@
|
|
|
>
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -1885,6 +1931,7 @@
|
|
|
>
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -1957,6 +2004,7 @@
|
|
|
"
|
|
|
@zSelectVal="zSelectVal"></z-checkbox>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -2038,6 +2086,7 @@
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -2119,6 +2168,7 @@
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -2171,6 +2221,7 @@
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -2268,6 +2319,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -2351,6 +2403,7 @@
|
|
|
child44item1.relevancyItem
|
|
|
"></z-radio>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="
|
|
|
child44item1.fileInfoList
|
|
|
"></delete-upload-img>
|
|
|
@@ -2421,6 +2474,7 @@
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem1.answerType == 'tel'" class="formLabel z-cell">
|
|
|
@@ -2478,6 +2532,7 @@
|
|
|
type="textarea" />
|
|
|
</p>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="childitem1.answerType == 'zp'" class="formLabel z-cell">
|
|
|
@@ -2515,6 +2570,7 @@
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<delete-upload-img
|
|
|
+ :photoIdentifyType="photoIdentifyType"
|
|
|
:imgs="childitem1.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -2566,7 +2622,8 @@
|
|
|
:deviceCode="deviceCode"
|
|
|
:putInCode="putInCode"
|
|
|
@newimgarr="newimgarr1"
|
|
|
- @typeshow="typeshow"></upload-img>
|
|
|
+ @typeshow="typeshow"
|
|
|
+ :photoIdentifyType="photoIdentifyType"></upload-img>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
</van-dialog>
|
|
|
@@ -2590,7 +2647,8 @@
|
|
|
:uploadid="uploadid2"
|
|
|
:visitsId="visitId"
|
|
|
@newimgarr="newimgarr1"
|
|
|
- @typeshow="typeshow"></upload-img>
|
|
|
+ @typeshow="typeshow"
|
|
|
+ :photoIdentifyType="photoIdentifyType"></upload-img>
|
|
|
</van-popup>
|
|
|
<van-popup v-model="showPicker" capture position="bottom">
|
|
|
<van-picker
|
|
|
@@ -2641,6 +2699,7 @@ import deleteUploadImg from '@/components/deleteUploadImg1';
|
|
|
import jianjie from '@/assets/jianjie.jpg';
|
|
|
import { ImagePreview } from 'vant';
|
|
|
import taskTips from './taskTips';
|
|
|
+import store from '@/store';
|
|
|
export default {
|
|
|
name: 'abnormalVisit',
|
|
|
components: { zRadio, zCheckbox, uploadImg, storeCode, deleteUploadImg, taskTips },
|
|
|
@@ -2726,6 +2785,7 @@ export default {
|
|
|
deviceCode: '',
|
|
|
putInCode: '',
|
|
|
examplePhotoImg: '', //示例-操作说明图标地址
|
|
|
+ photoIdentifyType: null, //图片识别类型
|
|
|
};
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
@@ -2745,6 +2805,7 @@ export default {
|
|
|
this.taskId = this.$route.query.taskId + '';
|
|
|
this.storeId = this.$route.query.storeId + '';
|
|
|
this.isMust == this.$route.query.isMust + '';
|
|
|
+ this.photoIdentifyType = this.$route.query.photoIdentifyType;
|
|
|
this.storeGroupId = this.$route.query.storeGroupId + '';
|
|
|
if (this.$route.query.photoType != null) {
|
|
|
this.indexselect = 0;
|
|
|
@@ -2762,6 +2823,7 @@ export default {
|
|
|
this.taskId = this.$route.query.taskId + '';
|
|
|
this.storeId = this.$route.query.storeId + '';
|
|
|
this.isMust == this.$route.query.isMust + '';
|
|
|
+ this.photoIdentifyType = this.$route.query.photoIdentifyType;
|
|
|
this.storeGroupId = this.$route.query.storeGroupId + '';
|
|
|
if (this.$route.query.photoType != null) {
|
|
|
this.indexselect = 0;
|
|
|
@@ -2769,6 +2831,8 @@ export default {
|
|
|
this.indexselect = 1;
|
|
|
}
|
|
|
this.getPhotoTypeList();
|
|
|
+ // 拍照次数重置
|
|
|
+ store.dispatch('setShotsNum', 0);
|
|
|
},
|
|
|
methods: {
|
|
|
viewSM() {
|
|
|
@@ -4760,4 +4824,7 @@ export default {
|
|
|
.formLabel .mobile-input {
|
|
|
border: 0 !important;
|
|
|
}
|
|
|
+.addStoreVisit .van-dialog {
|
|
|
+ overflow: visible;
|
|
|
+}
|
|
|
</style>
|