|
|
@@ -6,7 +6,7 @@
|
|
|
<!-- right-text="保存" @click-right="onSubmit"-->
|
|
|
<template #right>
|
|
|
<span
|
|
|
- v-if="processKey"
|
|
|
+ v-if="processKey && isEditSDHCL"
|
|
|
@click="onSubmit"
|
|
|
style="
|
|
|
color: white;
|
|
|
@@ -285,27 +285,34 @@
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'zp'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
- <template #title
|
|
|
- ><span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
|
|
|
+ <template #title>
|
|
|
+ <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.collectionName }}
|
|
|
<!-- 操作说明图片和电话 -->
|
|
|
<taskTips
|
|
|
v-if="item.contactPhone || item.examplePhoto"
|
|
|
:contactPhone="item.contactPhone"
|
|
|
:examplePhoto="item.examplePhoto">
|
|
|
- </taskTips
|
|
|
- ></template>
|
|
|
+ </taskTips>
|
|
|
+ </template>
|
|
|
<template #right-icon>
|
|
|
- <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
|
|
|
- <van-icon
|
|
|
- v-if="item.isPicture == 0"
|
|
|
- color="#666"
|
|
|
- name="photograph"
|
|
|
- size="24"
|
|
|
- @click="imgClick(item, 'A', index)" />
|
|
|
+ <template v-if="isEditSDHCL">
|
|
|
+ <span v-if="item.isMustPicture == '0'" class="van-f-red">*</span>
|
|
|
+ <van-icon
|
|
|
+ v-if="item.isPicture == 0"
|
|
|
+ color="#666"
|
|
|
+ name="photograph"
|
|
|
+ size="24"
|
|
|
+ @click="imgClick(item, 'A', index)" />
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
+ <!-- 生动化陈列备注 只能有一层采集项 -->
|
|
|
+ <div class="sdhclTips" v-if="photoIdentifyType == '6'" style="color: red">
|
|
|
+ 请拍摄该店内所有立邦陈列产品,将用于计算该店经营SKU数量
|
|
|
+ </div>
|
|
|
<delete-upload-img
|
|
|
:photoIdentifyType="photoIdentifyType"
|
|
|
+ :types="$route.query.types"
|
|
|
:imgs="item.fileInfoList"></delete-upload-img>
|
|
|
</div>
|
|
|
<div v-if="item.answerType == 'wb'" class="formLabel z-cell">
|
|
|
@@ -2724,7 +2731,7 @@
|
|
|
font-size: 14px;
|
|
|
left: 14px;
|
|
|
"
|
|
|
- v-if="processKey"
|
|
|
+ v-if="processKey && isEditSDHCL"
|
|
|
@click="removeFn">
|
|
|
<van-icon name="cross" /> 清空内容
|
|
|
</div>
|
|
|
@@ -2842,6 +2849,7 @@ export default {
|
|
|
productTitles: null,
|
|
|
inspectionType: '',
|
|
|
competitortableData: [],
|
|
|
+ isEditSDHCL: true, //是否可以编辑生动化陈列
|
|
|
};
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
@@ -3380,6 +3388,12 @@ export default {
|
|
|
this.equipmentCode = this.equipmentCode || '';
|
|
|
this.showCode = false;
|
|
|
}
|
|
|
+ // 生动化陈列是否可以编辑
|
|
|
+ if (this.$route.query.types == 'edit' && this.photoIdentifyType == '6') {
|
|
|
+ this.isEditSDHCL = false;
|
|
|
+ } else {
|
|
|
+ this.isEditSDHCL = true;
|
|
|
+ }
|
|
|
if (
|
|
|
(res.data.processStatus == 3 && this.$route.query.types == 'edit') ||
|
|
|
res.data.processStatus == undefined
|