批量审核

This commit is contained in:
wangshiming
2022-01-18 18:48:29 +08:00
parent 958b468a51
commit c4e4441354
2 changed files with 11 additions and 9 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-12 10:52:50 * @Date : 2022-01-12 10:52:50
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-18 17:19:12 * @LastEditTime : 2022-01-18 18:45:48
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\risk\\risk.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\risk\\risk.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -16,7 +16,7 @@
<!-- 查询字段小于或等于3个时不显示伸缩按钮 --> <!-- 查询字段小于或等于3个时不显示伸缩按钮 -->
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4"> <div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
<sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [disabled]="!sf?.valid" [loading]="service.http.loading" <sf #sf [schema]="schema" [ui]="ui" [mode]="'search'" [disabled]="!sf?.valid" [loading]="service.http.loading"
(formSubmit)="st?.load(1)" (formReset)="resetSF()"></sf> (formSubmit)="search()" (formReset)="resetSF()"></sf>
</div> </div>
<!-- 查询字段大于3个时根据展开状态调整布局 --> <!-- 查询字段大于3个时根据展开状态调整布局 -->
@ -26,7 +26,7 @@
</div> </div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right"> <div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" <button nz-button nzType="primary" [nzLoading]="service.http.loading"
(click)="st?.load(1)">查询</button> (click)="search()">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" <button nz-button nzType="primary" [disabled]="service.http.loading"
>导出</button> >导出</button>
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button> <button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>

View File

@ -68,6 +68,10 @@ export class OrderManagementRiskComponent implements OnInit {
}, },
}; };
} }
search() {
this.st?.load(1);
this.getGoodsSourceStatistical()
}
get selectedRows() { get selectedRows() {
return this.st?.list.filter(item => item.checked) || []; return this.st?.list.filter(item => item.checked) || [];
} }
@ -420,9 +424,8 @@ export class OrderManagementRiskComponent implements OnInit {
if (res) { if (res) {
this.service.msgSrv.success('审核通过成功!'); this.service.msgSrv.success('审核通过成功!');
this.isVisibleRE = false; this.isVisibleRE = false;
this.st.reload() this.st?.load(1);
} else { this.getGoodsSourceStatistical()
this.service.msgSrv.error(res?.msg);
} }
}); });
} }
@ -447,9 +450,8 @@ export class OrderManagementRiskComponent implements OnInit {
if (res) { if (res) {
this.service.msgSrv.success('审核拒绝成功!'); this.service.msgSrv.success('审核拒绝成功!');
this.isVisibleRE = false; this.isVisibleRE = false;
this.st.reload() this.st?.load(1);
} else { this.getGoodsSourceStatistical()
this.service.msgSrv.error(res?.msg);
} }
}); });
} }