diff --git a/src/app/routes/order-management/components/compliance-audit/compliance-audit.component.ts b/src/app/routes/order-management/components/compliance-audit/compliance-audit.component.ts index 12bcadef..df351650 100644 --- a/src/app/routes/order-management/components/compliance-audit/compliance-audit.component.ts +++ b/src/app/routes/order-management/components/compliance-audit/compliance-audit.component.ts @@ -10,7 +10,6 @@ import { ConfirReceiptComponent } from '../../modal/bulk/confir-receipt/confir-r import { of } from 'rxjs'; import { ShipperBaseService } from '@shared'; import { Router } from '@angular/router'; -import { orderManagementVoucherViewComponent } from '../../modal/audit/voucher-view/voucher-view.component'; @Component({ selector: 'app-order-management-compliance-audit', diff --git a/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.html b/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.html index 412ccb1b..8402a5ee 100644 --- a/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.html +++ b/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.html @@ -4,19 +4,26 @@ * @Author : Shiming * @Date : 2022-01-12 10:52:50 * @LastEditors : Shiming - * @LastEditTime : 2022-02-15 15:03:39 + * @LastEditTime : 2022-02-21 20:16:13 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\receipts-audit\\receipts-audit.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> - - +
- +
@@ -25,10 +32,10 @@
- - + + - + +
- \ No newline at end of file + diff --git a/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.ts b/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.ts index cf8a24d4..27389f1a 100644 --- a/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.ts +++ b/src/app/routes/order-management/components/receipts-audit/receipts-audit.component.ts @@ -81,9 +81,9 @@ export class OrderManagementReceiptsAuditComponent implements OnInit { if (res) { let totalCount = 0; res.forEach((element: any) => { - if (element.billStatusLabel === '待审核') { + if (element.auditStatus == '1') { this.tabs.receivedQuantity = element.quantity; - } else if (element.billStatusLabel === '已审核') { + } else if (element.auditStatus == '2') { this.tabs.stayQuantity = element.quantity; } totalCount += element.quantity; @@ -329,33 +329,33 @@ export class OrderManagementReceiptsAuditComponent implements OnInit { { title: '操作', fixed: 'right', - width: '120px', + width: '136px', className: 'text-left', buttons: [ { - text: '通过', + text: '生成电子单据', + click: _record => this.generate(_record, 2), + iif: item => item.auditStatus == '1', + acl: { ability: ['ORDER-RECEIPTS-electronicBillingOne'] }, + }, + { + text: '通过    ', click: _record => this.sign(_record), iif: item => item.auditStatus == '1', acl: { ability: ['ORDER-RECEIPTS-billAuditPassBatch'] }, }, { - text: '生成电子单据', - click: _record => this.generate(_record, 2), - iif: item => item.auditStatus == '1', - acl: { ability: ['ORDER-RECEIPTS-generate'] }, - }, - { - text: '查看凭证', - click: _record => this.generate(_record, 3), - iif: item => item.auditStatus == '2', - acl: { ability: ['ORDER-RECEIPTS-view'] }, - }, - { - text: '修改', + text: '修改    ', click: _record => this.modification(_record), iif: item => item.auditStatus == '1' , acl: { ability: ['ORDER-RECEIPTS-updateBillExamine'] }, }, + { + text: '查看凭证 ', + click: _record => this.generate(_record, 3), + iif: item => item.auditStatus == '2', + acl: { ability: ['ORDER-RECEIPTS-view'] }, + }, ] } ]; @@ -414,8 +414,12 @@ export class OrderManagementReceiptsAuditComponent implements OnInit { } // 生成电子单据 generate(item: any, sts?: number) { + let text = '查看凭证'; + if(sts == 2) { + text = '生成电子单据'; + } const modalRef = this.modal.create({ - nzTitle: '查看凭证', + nzTitle: text, nzWidth: '50%', nzContent: orderManagementVoucherViewComponent, nzComponentParams: { diff --git a/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html b/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html index 79c0788c..95f1d062 100644 --- a/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html +++ b/src/app/routes/order-management/modal/audit/voucher-view/voucher-view.component.html @@ -4,11 +4,11 @@ * @Author : Shiming * @Date : 2021-12-15 13:17:42 * @LastEditors : Shiming - * @LastEditTime : 2022-02-15 15:12:02 + * @LastEditTime : 2022-02-21 20:25:47 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\audit\\voucher-view\\voucher-view.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> - +
@@ -23,6 +23,7 @@
+