|
@@ -155,7 +155,7 @@
|
|
|
scope.row.approveStatus ||
|
|
|
(scope.row.status != '待结算' && !scope.row.approveStatus)
|
|
|
"
|
|
|
- @click="print(scope.row)"
|
|
|
+ @click="print1(scope.row)"
|
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
|
|
|
>财务打印</el-button>
|
|
|
<el-button
|
|
@@ -348,24 +348,24 @@ export default {
|
|
|
response.data.imgList = [
|
|
|
{
|
|
|
name:'xml1',
|
|
|
- src: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png"
|
|
|
+ src: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png'
|
|
|
},
|
|
|
{
|
|
|
name:'xml2',
|
|
|
- src: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png"
|
|
|
+ src: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png'
|
|
|
}, {
|
|
|
name:'xml3',
|
|
|
- src: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png"
|
|
|
+ src: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png'
|
|
|
}
|
|
|
]
|
|
|
this.invoicingImgList = response.data.imgList
|
|
|
if(response.data.imgList.length>0){
|
|
|
for(let i = 0;i<response.data.imgList;i++){
|
|
|
//创建标签下载文件
|
|
|
- let a = document.createElement("a");
|
|
|
+ let a = document.createElement('a');
|
|
|
a.href = response.data.imgList[i].src;
|
|
|
- let urlArr = a.href.split(".");
|
|
|
- a.setAttribute('download',response.data.imgList[i].name+".xml");
|
|
|
+ let urlArr = a.href.split('.');
|
|
|
+ a.setAttribute('download',response.data.imgList[i].name+'.xml');
|
|
|
a.click();
|
|
|
a.remove();
|
|
|
}
|
|
@@ -764,13 +764,12 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ print1(row) {
|
|
|
+ this.isShowPrintType = true
|
|
|
+ this.rowData = row
|
|
|
+ },
|
|
|
print(row) {
|
|
|
- console.log('打印数据', row)
|
|
|
- if (sessionStorage.getItem('ws-pf_roleName') == '财务') {
|
|
|
- this.isShowPrintType = true
|
|
|
- this.rowData = row
|
|
|
- } else {
|
|
|
- getpaymentexamine({ id: row.id })
|
|
|
+ getpaymentexamine({ id: row.id })
|
|
|
.toPromise()
|
|
|
.then(response => {
|
|
|
this.printData = response
|
|
@@ -787,7 +786,6 @@ export default {
|
|
|
date.getDate() +
|
|
|
'日'
|
|
|
})
|
|
|
- }
|
|
|
},
|
|
|
examine() {
|
|
|
if (this.modification.length == 0) {
|