车辆对接

This commit is contained in:
wangshiming
2021-12-22 10:49:49 +08:00
parent 657cd16ab1
commit ad0abccf0f
3 changed files with 26 additions and 6 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() {