车辆对接

This commit is contained in:
wangshiming
2021-12-20 17:18:40 +08:00
parent f18f512aac
commit 0a31c9eb4e
33 changed files with 1275 additions and 768 deletions

View File

@ -83,13 +83,13 @@ export class SupplyManagementVehicleComponent implements OnInit {
} as SFSelectWidgetSchema,
},
goodsName: {
type: 'string',
title: '货物名称',
type: 'string',
default: '',
ui: {
widget: 'dict-select',
// params: { dictKey: 'GoodsName' },
placeholder: '请选择',
widget: 'select',
// asyncData: () =>[]
} as SFSelectWidgetSchema,
},
loadingPlace: {
@ -280,7 +280,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
{
text: '取消货源',
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
// click: (_record) => this.delOne(_record),
click: (_record) => this.cancleGoodsSource(_record),
},
{
text: '再下一单',
@ -288,7 +288,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
},
{
text: '重新指派',
click: (_record) => this.assignedCar(_record),
// click: (_record) => this.assignedCar(_record),
// iif: item => item.auditStatus === 2,
},
],
@ -431,6 +431,23 @@ export class SupplyManagementVehicleComponent implements OnInit {
},
})
}
/**
* 取消货源
*/
cancleGoodsSource(record: any) {
this.modal.confirm({
nzTitle: '<b>确定取消货源吗?</b>',
nzContent: `<b>取消后不可恢复,谨慎操作</b>`,
nzOnOk: () =>
this.service.request(this.service.$api_cancle_goods_source, [record.id]).subscribe((res) => {
if (res === true) {
this.service.msgSrv.success('操作成功!');
this.st?.reload();
this.getGoodsSourceStatistical();
}
}),
})
}
// 获取货源状态统计
getGoodsSourceStatistical() {
this.service.request(this.service.$api_get_goods_resource_statistical, { resourceType: 1 }).subscribe(res => {