车辆对接

This commit is contained in:
wangshiming
2021-12-28 17:23:31 +08:00
parent 34efb8be23
commit 1587602f7e
4 changed files with 46 additions and 41 deletions

View File

@ -259,22 +259,22 @@ export class SupplyManagementBulkComponent implements OnInit {
{
text: '货源审核',
click: (_record) => this.audit(_record, 1),
// iif: item => item.auditStatus === 1,
iif: item => item.auditStatus == 1,
},
{
text: '二维码',
click: (_record) => this.assignedQrcode(_record),
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
iif: item => item.auditStatus == 1 || item.auditStatus == 2,
},
{
text: '修改单价',
click: (_record) => this.modification(_record),
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
iif: item => item.auditStatus == 1 || item.auditStatus == 2,
},
{
text: '取消货源',
click: (_record) => this.delOne(_record),
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
iif: item => item.auditStatus == 1 || item.auditStatus == 2,
},
{
text: '再下一单',
@ -282,8 +282,8 @@ export class SupplyManagementBulkComponent implements OnInit {
},
{
text: '重新指派',
// click: (_record) => this.delOne(_record),
// iif: item => item.auditStatus === 2,
click: (_record) => this.delOne(_record),
iif: item => item.auditStatus == 2,
},
],
},
@ -402,14 +402,31 @@ export class SupplyManagementBulkComponent implements OnInit {
handleOK() {
}
// 修改货源
// 修改单价
modification(item: any) {
this.router.navigate(['/supply-management/bulk-amend', item.id], {
queryParams: {
sta: 3
const modalRef = this.modal.create({
nzTitle: '修改单价',
nzWidth: '600px',
nzContent: SupplyManagementUpdatePriceComponent,
nzComponentParams: {
record: item,
},
nzFooter: null,
});
modalRef.afterClose.subscribe(res => {
if (res) {
console.log(res)
// this.getGoodsSourceDetail();
}
})
}
// getGoodsSourceDetail() {
// this.service.request(this.service.$api_get_bulk_detail, { id: this.id }).subscribe(res => {
// this.i = res;
// this.currentStatus = +this.i?.resourceStatus - 1;
// })
// }
// 再下一单
nextOrder(item: any) {
this.router.navigate(['/supply-management/bulk-amend', item.id], {