fix bug
This commit is contained in:
@ -559,7 +559,13 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
||||
this.modal.destroy(true);
|
||||
}
|
||||
openlaod(value: any) {
|
||||
|
||||
if (value === 1) {
|
||||
if(this.datas?.esignFlowStatus == '1') {
|
||||
this.service.request(this.service.$api_getBillTakeEsignFile, [this.datas?.id]).subscribe((res) => {
|
||||
console.log(res);
|
||||
})
|
||||
}
|
||||
const a = document.createElement('a');
|
||||
a.href = this.datas?.loadingElectronicsLadingBillFilePath;
|
||||
document.body.appendChild(a);
|
||||
@ -567,6 +573,11 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
||||
a.click(); //点击下载
|
||||
document.body.removeChild(a); //下载完成移除元素
|
||||
} else {
|
||||
if(this.datas?.esignFlowStatus == '1') {
|
||||
this.service.request(this.service.$api_getBillTakeEsignFile, [this.datas?.id]).subscribe((res) => {
|
||||
console.log(res);
|
||||
})
|
||||
}
|
||||
const a = document.createElement('a');
|
||||
a.href = this.datas?.unloadingElectronicsLadingBillFilePath;
|
||||
document.body.appendChild(a);
|
||||
|
||||
Reference in New Issue
Block a user