|
|
@@ -404,16 +404,41 @@
|
|
|
<van-collapse-item title="今日拜访照片" name="10" v-if="reportTarget.photos">
|
|
|
<div v-for="(item, index) in reportTarget.photos" :key="index">
|
|
|
<p style="margin-bottom: 10px; margin-top: 0">{{ item.taskName }}</p>
|
|
|
- <van-row gutter="10" class="visitIMG1">
|
|
|
+ <van-row
|
|
|
+ gutter="10"
|
|
|
+ class="visitIMG1"
|
|
|
+ :style="{
|
|
|
+ overflow: 'hidden',
|
|
|
+ height: item.visitIMG1Flag ? 'auto' : '85px',
|
|
|
+ }">
|
|
|
<van-col
|
|
|
span="6"
|
|
|
style="padding-bottom: 10px"
|
|
|
- @click="pviewFn(index, indexImg)"
|
|
|
+ @click="pviewFn(index, indexImg, item)"
|
|
|
v-for="(itemImg, indexImg) in item.photos"
|
|
|
:key="indexImg">
|
|
|
<img :src="itemImg.fileUrl" alt="" />
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
+ <div
|
|
|
+ v-if="item.photos.length > 4"
|
|
|
+ class="arrowIcon"
|
|
|
+ style="text-align: center; padding: 3px 0"
|
|
|
+ @click="setVisitIMG1Flag(item)">
|
|
|
+ <van-icon size="28" :name="item.visitIMG1Flag ? 'arrow-up' : 'arrow-down'" />
|
|
|
+ </div>
|
|
|
+ <!-- 生动化陈列 sku -->
|
|
|
+ <template v-if="photoSkuImgSummaryeList && item.photoSkuImgSummaryeList.length">
|
|
|
+ <!-- <div class="skuNum">SKU识别:{{ item.num }}个</div> -->
|
|
|
+ <el-table
|
|
|
+ :data="item.productDetail"
|
|
|
+ border
|
|
|
+ class="table-headermd table-headermdhome"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-table-column label="SKU名称" prop="name" align="center" />
|
|
|
+ <el-table-column label="数量" prop="cont" width="80px" align="center" />
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</van-collapse-item>
|
|
|
</van-collapse>
|
|
|
@@ -728,6 +753,10 @@ export default {
|
|
|
this.shareImgFlag = false;
|
|
|
this.setShareFlag = true;
|
|
|
},
|
|
|
+ setVisitIMG1Flag(item) {
|
|
|
+ this.$set(item, 'visitIMG1Flag', !item.visitIMG1Flag);
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
pviewFn(val, imgVal) {
|
|
|
var imgList = [];
|
|
|
var photos = this.reportTarget.photos[val].photos;
|
|
|
@@ -791,9 +820,11 @@ export default {
|
|
|
var imgList = [];
|
|
|
if (res.data.photos != null) {
|
|
|
for (var k = 0; k < res.data.photos.length; k++) {
|
|
|
+ res.data.photos[k].visitIMG1Flag = false;
|
|
|
imgList.push(res.data.photos[k].fileUrl + '');
|
|
|
}
|
|
|
}
|
|
|
+ console.log(res.data.photos);
|
|
|
this.imgList = imgList;
|
|
|
if (this.sourceType == 'daily') {
|
|
|
this.$nextTick(() => {
|
|
|
@@ -951,11 +982,13 @@ export default {
|
|
|
.colorbalck {
|
|
|
color: #333;
|
|
|
}
|
|
|
-.visitIMG1 img {
|
|
|
- display: block;
|
|
|
- width: 100%;
|
|
|
- height: 75px;
|
|
|
- border-radius: 6px;
|
|
|
+.visitIMG1 {
|
|
|
+ img {
|
|
|
+ display: block;
|
|
|
+ width: 100%;
|
|
|
+ height: 75px;
|
|
|
+ border-radius: 6px;
|
|
|
+ }
|
|
|
}
|
|
|
.el-dialog__wrapper {
|
|
|
z-index: 9999 !important;
|