+
+
+
+
+
+
-
- {{ item.freightPrice | currency}}
-
-
-
-
![]()
-
![]()
-
-
-
-
-
-
-
- 装 | {{item?.loadingTime}}
- 卸 | {{item?.unloadingTime}}
-
-
-
- {{item?.driverName}}/{{item?.driverPhone}}/{{item?.carNo}}
-
+
+ {{ item.freightPrice | currency }}
+
+
+
+
![]()
+
![]()
+
+
+
+
+
+
+
+ 装 | {{ item?.loadingTime }}
+ 卸 | {{ item?.unloadingTime }}
+
+
+ {{ item?.driverName }}/{{ item?.driverPhone }}/{{ item?.carNo }}
-
- {{item?.payeeName}}/{{item?.payeePhone}}
-
+ {{ item?.payeeName }}/{{ item?.payeePhone }}
+
+
+ {{ item.billCode }}
+
+ {{item?.billStatusLabel}}
+
+
+ {{item?.billTypeLabel}}{{item?.serviceTypeLabel}}
+
+
+
+ {{ item?.goodsName }}
+
+ {{ item?.weight ? item?.weight + '吨/' : '' }}
+ {{ item?.volume ? item?.volume + '方/' : '' }}
+ {{ item?.goodsNumber ? item?.goodsNumber + '件' : '' }}
+
+
+
+ 0">
+
+ {{ data.expenseName }}:{{ data.price | currency }}
+ {{ data.paymentStatusLabel }}
+
+
-
- {{item.billCode}}
-
- {{item?.serviceTypeName}}
-
-
- {{item?.auditStatusLabel}}
-
-
-
- {{item?.goodsName}}
-
- {{item?.weight ? item?.weight + '吨/' : '' }}
- {{item?.volume ? item?.volume + '方/' : '' }}
- {{item?.goodsNumber ? item?.goodsNumber + '吨' : '' }}
-
-
-
- 0">
-
- {{ data.expenseName }}:{{ data.price | currency }}
- {{ data.paymentStatusLabel }}
-
-
-
-
-
+
+
-
\ 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.
-->
-
+