fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-15 13:17:42
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-01 15:48:01
|
||||
* @LastEditTime : 2022-04-21 13:29:36
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\audit\\voucher-view\\voucher-view.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -208,6 +208,12 @@ export class OrderManagementService extends ShipperBaseService {
|
||||
public $api_get_log_list = `/api/mdc/pbc/operationLogRecords/getOperationLogRecordsList`;
|
||||
// 查看补充协议
|
||||
public $api_getSupplementaryAgreement = `/api/sdc/billShipper/getSupplementaryAgreement`;
|
||||
|
||||
|
||||
// 获取电子提货单签章附件
|
||||
public $api_getBillTakeEsignFile = `/api/sdc/billOperate/getBillTakeEsignFile`;
|
||||
// 获取电子卸货单签章附件
|
||||
public $api_getBillDischargeEsignFile = `/api/sdc/billOperate/getBillDischargeEsignFile`;
|
||||
/**
|
||||
* 根据企业ID,获取企业历史网络货运人
|
||||
* @returns
|
||||
|
||||
Reference in New Issue
Block a user