This commit is contained in:
wangshiming
2021-12-13 14:42:21 +08:00
parent abafcd8326
commit a77b5f8c01
5 changed files with 35 additions and 23 deletions

View File

@ -1,4 +1,5 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { STColumn, STComponent } from '@delon/abc/st';
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
import { ModalHelper, _HttpClient } from '@delon/theme';
@ -46,7 +47,7 @@ export class SupplyManagementBulkComponent implements OnInit {
count: 0,
},
];
constructor(public service: SupplyManagementService, private modal: NzModalService) { }
constructor(public service: SupplyManagementService, private modal: NzModalService, private router: Router) { }
ngOnInit(): void {
this.initSF();
@ -103,12 +104,9 @@ export class SupplyManagementBulkComponent implements OnInit {
settlementBasis: {
title: '结算依据',
type: 'string',
default: 0,
enum: [
{ label: '未知', value: 0 },
{ label: '', value: 1 },
{ label: '女', value: 2 },
{ label: '保密', value: 3 },
{ label: '以收获为准', value: 1 },
{ label: '以发货为准', value: 2 },
],
ui: {
widget: 'select',
@ -275,26 +273,31 @@ export class SupplyManagementBulkComponent implements OnInit {
{
text: '货源审核',
click: (_record) => this.audit(_record, 1),
// iif: item => item.auditStatus === 1,
},
{
text: '二维码',
click: (_record) => this.assignedQrcode(_record),
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
},
{
text: '修改单价',
click: (_record) => this.updatePrice(_record),
click: (_record) => this.modification(_record),
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
},
{
text: '取消货源',
// click: (_record) => this.delOne(_record),
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
},
{
text: '再下一单',
// click: (_record) => this.editOne(_record),
click: (_record) => this.nextOrder(_record),
},
{
text: '重新指派',
// click: (_record) => this.delOne(_record),
// iif: item => item.auditStatus === 2,
},
],
},
@ -413,4 +416,20 @@ export class SupplyManagementBulkComponent implements OnInit {
handleOK() {
}
// 修改货源
modification(item: any) {
this.router.navigate(['/supply-management/vehicle-amend', item.id], {
queryParams: {
sta: 3
},
})
}
// 再下一单
nextOrder(item: any) {
this.router.navigate(['/supply-management/vehicle-amend', item.id], {
queryParams: {
sta: 4
},
})
}
}