Commit 29800b17 by swl

gx

parent b479eb50
No preview for this file type
...@@ -336,10 +336,12 @@ ...@@ -336,10 +336,12 @@
<p class="label">契税完税凭证</p> <p class="label">契税完税凭证</p>
<p class="value"> <p class="value">
<el-image <el-image
v-for="(item, index) in viewDetail.voucher"
:key="index"
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
:src="viewDetail.voucher" :src="item.picture"
:z-index="7777777" :z-index="7777777"
:preview-src-list="[viewDetail.voucher]" :preview-src-list="[item.picture]"
> >
</el-image> </el-image>
</p> </p>
...@@ -764,15 +766,21 @@ export default { ...@@ -764,15 +766,21 @@ export default {
item.pictureType !== 5 && item.pictureType !== 5 &&
item.pictureType !== 6 && item.pictureType !== 6 &&
item.pictureType !== 7 && item.pictureType !== 7 &&
item.pictureType !== 8 item.pictureType !== 8 &&
item.pictureType !== 9
); );
}); });
this.viewDetail.certificate = res.data.pictureList.find((item) => { this.viewDetail.certificate = res.data.pictureList.find((item) => {
return item.pictureType === 5; return item.pictureType === 5;
}).picture; }).picture;
this.viewDetail.voucher = res.data.pictureList.find((item) => { let voucher = [];
return item.pictureType === 6; res.data.pictureList.forEach((item) => {
}).picture; if (item.pictureType === 6 || item.pictureType === 9) {
voucher.push(item);
}
});
this.viewDetail.voucher = voucher;
this.viewDetail.labour = []; this.viewDetail.labour = [];
res.data.pictureList.map((item) => { res.data.pictureList.map((item) => {
if (item.pictureType == 7) { if (item.pictureType == 7) {
......
...@@ -321,10 +321,12 @@ ...@@ -321,10 +321,12 @@
<p class="label">契税完税凭证</p> <p class="label">契税完税凭证</p>
<p class="value"> <p class="value">
<el-image <el-image
v-for="(item, index) in viewDetail.voucher"
:key="index"
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
:src="viewDetail.voucher" :src="item.picture"
:z-index="7777777" :z-index="7777777"
:preview-src-list="[viewDetail.voucher]" :preview-src-list="[item.picture]"
> >
</el-image> </el-image>
</p> </p>
...@@ -858,15 +860,20 @@ export default { ...@@ -858,15 +860,20 @@ export default {
item.pictureType !== 5 && item.pictureType !== 5 &&
item.pictureType !== 6 && item.pictureType !== 6 &&
item.pictureType !== 7 && item.pictureType !== 7 &&
item.pictureType !== 8 item.pictureType !== 8 &&
item.pictureType !== 9
); );
}); });
this.viewDetail.certificate = res.data.pictureList.find((item) => { this.viewDetail.certificate = res.data.pictureList.find((item) => {
return item.pictureType === 5; return item.pictureType === 5;
}).picture; }).picture;
this.viewDetail.voucher = res.data.pictureList.find((item) => { let voucher = [];
return item.pictureType === 6; res.data.pictureList.forEach((item) => {
}).picture; if (item.pictureType === 6 || item.pictureType === 9) {
voucher.push(item);
}
});
this.viewDetail.voucher = voucher;
this.viewDetail.labour = []; this.viewDetail.labour = [];
res.data.pictureList.map((item) => { res.data.pictureList.map((item) => {
if (item.pictureType == 7) { if (item.pictureType == 7) {
......
...@@ -310,10 +310,12 @@ ...@@ -310,10 +310,12 @@
<p class="label">契税完税凭证</p> <p class="label">契税完税凭证</p>
<p class="value"> <p class="value">
<el-image <el-image
v-for="(item, index) in viewDetail.voucher"
:key="index"
style="width: 100px; height: 100px" style="width: 100px; height: 100px"
:src="viewDetail.voucher" :src="item.picture"
:z-index="7777777" :z-index="7777777"
:preview-src-list="[viewDetail.voucher]" :preview-src-list="[item.picture]"
> >
</el-image> </el-image>
</p> </p>
...@@ -634,15 +636,20 @@ export default { ...@@ -634,15 +636,20 @@ export default {
item.pictureType !== 5 && item.pictureType !== 5 &&
item.pictureType !== 6 && item.pictureType !== 6 &&
item.pictureType !== 7 && item.pictureType !== 7 &&
item.pictureType !== 8 item.pictureType !== 8 &&
item.pictureType !== 9
); );
}); });
this.viewDetail.certificate = res.data.pictureList.find((item) => { this.viewDetail.certificate = res.data.pictureList.find((item) => {
return item.pictureType === 5; return item.pictureType === 5;
}).picture; }).picture;
this.viewDetail.voucher = res.data.pictureList.find((item) => { let voucher = [];
return item.pictureType === 6; res.data.pictureList.forEach((item) => {
}).picture; if (item.pictureType === 6 || item.pictureType === 9) {
voucher.push(item);
}
});
this.viewDetail.voucher = voucher;
this.viewDetail.labour = []; this.viewDetail.labour = [];
res.data.pictureList.map((item) => { res.data.pictureList.map((item) => {
if (item.pictureType == 7) { if (item.pictureType == 7) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment