车辆对接
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user