Commit 29800b17 by swl

gx

parent b479eb50
No preview for this file type
......@@ -336,10 +336,12 @@
<p class="label">契税完税凭证</p>
<p class="value">
<el-image
v-for="(item, index) in viewDetail.voucher"
:key="index"
style="width: 100px; height: 100px"
:src="viewDetail.voucher"
:src="item.picture"
:z-index="7777777"
:preview-src-list="[viewDetail.voucher]"
:preview-src-list="[item.picture]"
>
</el-image>
</p>
......@@ -764,15 +766,21 @@ export default {
item.pictureType !== 5 &&
item.pictureType !== 6 &&
item.pictureType !== 7 &&
item.pictureType !== 8
item.pictureType !== 8 &&
item.pictureType !== 9
);
});
this.viewDetail.certificate = res.data.pictureList.find((item) => {
return item.pictureType === 5;
}).picture;
this.viewDetail.voucher = res.data.pictureList.find((item) => {
return item.pictureType === 6;
}).picture;
let voucher = [];
res.data.pictureList.forEach((item) => {
if (item.pictureType === 6 || item.pictureType === 9) {
voucher.push(item);
}
});
this.viewDetail.voucher = voucher;
this.viewDetail.labour = [];
res.data.pictureList.map((item) => {
if (item.pictureType == 7) {
......
......@@ -321,10 +321,12 @@
<p class="label">契税完税凭证</p>
<p class="value">
<el-image
v-for="(item, index) in viewDetail.voucher"
:key="index"
style="width: 100px; height: 100px"
:src="viewDetail.voucher"
:src="item.picture"
:z-index="7777777"
:preview-src-list="[viewDetail.voucher]"
:preview-src-list="[item.picture]"
>
</el-image>
</p>
......@@ -858,15 +860,20 @@ export default {
item.pictureType !== 5 &&
item.pictureType !== 6 &&
item.pictureType !== 7 &&
item.pictureType !== 8
item.pictureType !== 8 &&
item.pictureType !== 9
);
});
this.viewDetail.certificate = res.data.pictureList.find((item) => {
return item.pictureType === 5;
}).picture;
this.viewDetail.voucher = res.data.pictureList.find((item) => {
return item.pictureType === 6;
}).picture;
let voucher = [];
res.data.pictureList.forEach((item) => {
if (item.pictureType === 6 || item.pictureType === 9) {
voucher.push(item);
}
});
this.viewDetail.voucher = voucher;
this.viewDetail.labour = [];
res.data.pictureList.map((item) => {
if (item.pictureType == 7) {
......
......@@ -310,10 +310,12 @@
<p class="label">契税完税凭证</p>
<p class="value">
<el-image
v-for="(item, index) in viewDetail.voucher"
:key="index"
style="width: 100px; height: 100px"
:src="viewDetail.voucher"
:src="item.picture"
:z-index="7777777"
:preview-src-list="[viewDetail.voucher]"
:preview-src-list="[item.picture]"
>
</el-image>
</p>
......@@ -634,15 +636,20 @@ export default {
item.pictureType !== 5 &&
item.pictureType !== 6 &&
item.pictureType !== 7 &&
item.pictureType !== 8
item.pictureType !== 8 &&
item.pictureType !== 9
);
});
this.viewDetail.certificate = res.data.pictureList.find((item) => {
return item.pictureType === 5;
}).picture;
this.viewDetail.voucher = res.data.pictureList.find((item) => {
return item.pictureType === 6;
}).picture;
let voucher = [];
res.data.pictureList.forEach((item) => {
if (item.pictureType === 6 || item.pictureType === 9) {
voucher.push(item);
}
});
this.viewDetail.voucher = voucher;
this.viewDetail.labour = [];
res.data.pictureList.map((item) => {
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