fix bug
This commit is contained in:
@ -397,25 +397,25 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
text: '生成电子单据',
|
text: '生成电子单据',
|
||||||
click: _record => this.generate(_record, 2),
|
click: _record => this.generate(_record, 2),
|
||||||
iif: item => !item?.loadingLadingBillFilePath,
|
iif: item => !item?.loadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-electronicBillingOne'] },
|
acl: { ability: ['ORDER-RECEIPTS-electronicBillingOne'] },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '通过',
|
text: '通过',
|
||||||
click: _record => this.sign(_record),
|
click: _record => this.sign(_record),
|
||||||
iif: item => !item?.loadingLadingBillFilePath,
|
iif: item => !item?.loadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-billAuditPassBatch'] },
|
acl: { ability: ['ORDER-RECEIPTS-billAuditPassBatch'] },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '修改',
|
text: '修改',
|
||||||
click: _record => this.modification(_record),
|
click: _record => this.modification(_record),
|
||||||
iif: item => !item?.loadingLadingBillFilePath,
|
iif: item => !item?.loadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-updateBillExamine'] },
|
acl: { ability: ['ORDER-RECEIPTS-updateBillExamine'] },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '查看凭证',
|
text: '查看凭证',
|
||||||
click: _record => this.generate(_record, 3),
|
click: _record => this.generate(_record, 3),
|
||||||
iif: item => item?.loadingLadingBillFilePath,
|
iif: item => item?.loadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-view'] },
|
acl: { ability: ['ORDER-RECEIPTS-view'] },
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@ -505,14 +505,14 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
|||||||
openlaod(value: any) {
|
openlaod(value: any) {
|
||||||
if(value === 1) {
|
if(value === 1) {
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = this.datas?.loadingLadingBillFilePath;
|
a.href = this.datas?.loadingElectronicsLadingBillFilePath;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
console.log(document.body.contains(a))
|
console.log(document.body.contains(a))
|
||||||
a.click(); //点击下载
|
a.click(); //点击下载
|
||||||
document.body.removeChild(a); //下载完成移除元素
|
document.body.removeChild(a); //下载完成移除元素
|
||||||
} else {
|
} else {
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = this.datas?.loadingPeopleVehiclesGoodsFilePath;
|
a.href = this.datas?.unloadingElectronicsLadingBillFilePath;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
console.log(document.body.contains(a))
|
console.log(document.body.contains(a))
|
||||||
a.click(); //点击下载
|
a.click(); //点击下载
|
||||||
|
|||||||
Reference in New Issue
Block a user