Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
Taric Xin
2021-12-22 11:13:30 +08:00
2 changed files with 22 additions and 2 deletions

View File

@ -273,7 +273,7 @@ export class SupplyManagementBulkComponent implements OnInit {
},
{
text: '取消货源',
// click: (_record) => this.delOne(_record),
click: (_record) => this.delOne(_record),
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
},
{
@ -417,6 +417,24 @@ handleOK() {
sta: 4
},
})
}
// 取消货源
delOne(item: any) {
this.modal.confirm({
nzTitle: '<b>确定取消货源吗?</b>',
nzContent: `<b>取消后不可恢复,谨慎操作</b>`,
nzOnOk: () =>
this.service.request(this.service.$api_cancelSource, {id: item.id}).subscribe((res) => {
if(res) {
this.service.msgSrv.success('已取消货源!')
this.st?.reload();
this.getGoodsSourceStatistical();
} else {
this.service.msgSrv.error(res.msg)
}
})
})
}
// 获取货源状态统计
getGoodsSourceStatistical() {