fix bug
This commit is contained in:
@ -438,7 +438,7 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
||||
})
|
||||
}
|
||||
sure() {
|
||||
const params = [this.i.id];
|
||||
const params = [this.i?.id];
|
||||
this.service.downloadFile(this.service.$api_createBillTakeGoods,params)
|
||||
this.service.downloadFile(this.service.$api_createBillDischargeGoods,params)
|
||||
this.service.msgSrv.success('生成电子单据成功!')
|
||||
@ -505,14 +505,18 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
||||
openlaod(value: any) {
|
||||
if(value === 1) {
|
||||
const a = document.createElement('a');
|
||||
console.log(this.datas?.loadingLadingBillFilePath);
|
||||
a.href = this.datas?.loadingLadingBillFilePath;
|
||||
a.click();
|
||||
document.body.appendChild(a);
|
||||
console.log(document.body.contains(a))
|
||||
a.click(); //点击下载
|
||||
document.body.removeChild(a); //下载完成移除元素
|
||||
} else {
|
||||
const a = document.createElement('a');
|
||||
console.log(this.datas?.loadingPeopleVehiclesGoodsFilePath);
|
||||
a.href = this.datas?.loadingPeopleVehiclesGoodsFilePath;
|
||||
a.click();
|
||||
document.body.appendChild(a);
|
||||
console.log(document.body.contains(a))
|
||||
a.click(); //点击下载
|
||||
document.body.removeChild(a); //下载完成移除元素
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user