替换containsAllLable
This commit is contained in:
@ -40,34 +40,34 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
public shipperservice: ShipperBaseService,
|
||||
private modal: NzModalService,
|
||||
public router: Router
|
||||
) {}
|
||||
) { }
|
||||
|
||||
/**
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
get reqParams() {
|
||||
// const a:any = {};
|
||||
// if(this.resourceStatus) {
|
||||
// a.representationsStatus = this.resourceStatus
|
||||
// a.representationsStatus = this.resourceStatus
|
||||
// }
|
||||
// return {
|
||||
// ...a,
|
||||
// ...this.sf?.value,
|
||||
// };
|
||||
const a:any = {};
|
||||
if(this.resourceStatus) {
|
||||
a.representationsStatus = this.resourceStatus
|
||||
const a: any = {};
|
||||
if (this.resourceStatus) {
|
||||
a.representationsStatus = this.resourceStatus
|
||||
}
|
||||
const params: any = Object.assign({}, this.sf?.value || {});
|
||||
delete params._$expand;
|
||||
return {
|
||||
return {
|
||||
...a,
|
||||
...params,
|
||||
createTime: {
|
||||
start: this.sf?.value?.createTime?.[0] || '',
|
||||
end: this.sf?.value?.createTime?.[1] || '',
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
search() {
|
||||
this.st?.load(1);
|
||||
@ -84,17 +84,17 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
getGoodsSourceStatistical() {
|
||||
this.service.request(this.service.$api_get_listStatisticalStatus, this.reqParams).subscribe(res => {
|
||||
if (res) {
|
||||
res.forEach((element: any) => {
|
||||
if(element.representationsStatusLabel === '待申述') {
|
||||
this.tabs.stayQuantity = element.quantity
|
||||
} else if (element.representationsStatusLabel === '申诉失败') {
|
||||
this.tabs.receivedQuantity = element.quantity
|
||||
} else if (element.representationsStatusLabel === '申述成功') {
|
||||
this.tabs.cancelQuantity = element.quantity
|
||||
} else if (element.representationsStatusLabel === '申诉中') {
|
||||
this.tabs.underwayQuantity = element.quantity
|
||||
}
|
||||
});
|
||||
res.forEach((element: any) => {
|
||||
if (element.representationsStatusLabel === '待申述') {
|
||||
this.tabs.stayQuantity = element.quantity
|
||||
} else if (element.representationsStatusLabel === '申诉失败') {
|
||||
this.tabs.receivedQuantity = element.quantity
|
||||
} else if (element.representationsStatusLabel === '申述成功') {
|
||||
this.tabs.cancelQuantity = element.quantity
|
||||
} else if (element.representationsStatusLabel === '申诉中') {
|
||||
this.tabs.underwayQuantity = element.quantity
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -168,7 +168,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'freight:type' },
|
||||
containsAllLable: true,
|
||||
containsAllLabel: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
@ -180,7 +180,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'BulkFreightUnitPriceType' },
|
||||
containsAllLable: true,
|
||||
containsAllLabel: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value
|
||||
}
|
||||
@ -307,7 +307,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
{
|
||||
text: '审核',
|
||||
click: _record => this.audit(_record),
|
||||
iif: item => item.representationsStatus == '1' || item.representationsStatus == '2' ,
|
||||
iif: item => item.representationsStatus == '1' || item.representationsStatus == '2',
|
||||
acl: { ability: ['ORDER-RISK-audit'] },
|
||||
},
|
||||
{
|
||||
@ -405,7 +405,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
/**
|
||||
* 导入货源
|
||||
*/
|
||||
importGoodsSource() {}
|
||||
importGoodsSource() { }
|
||||
|
||||
/*
|
||||
* 审核关闭弹窗
|
||||
@ -418,7 +418,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
*/
|
||||
handleOK() {
|
||||
let idList: any[] = [];
|
||||
if(this.selectedRows.length > 0) {
|
||||
if (this.selectedRows.length > 0) {
|
||||
this.selectedRows.forEach(item => {
|
||||
idList.push(item.id);
|
||||
});
|
||||
@ -435,7 +435,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
this.service.msgSrv.success('审核通过成功!');
|
||||
this.isVisibleRE = false;
|
||||
this.st?.load(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
this.getGoodsSourceStatistical()
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -444,14 +444,14 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
*/
|
||||
reject() {
|
||||
let idList: any[] = [];
|
||||
if(this.selectedRows.length > 0) {
|
||||
if (this.selectedRows.length > 0) {
|
||||
this.selectedRows.forEach(item => {
|
||||
idList.push(item.id);
|
||||
});
|
||||
} else {
|
||||
idList.push(this.sfView.value.billCode)
|
||||
}
|
||||
if(!this.sfView.value.representationsCause) {
|
||||
if (!this.sfView.value.representationsCause) {
|
||||
this.service.msgSrv.error('拒绝原因为空!');
|
||||
return;
|
||||
}
|
||||
@ -476,14 +476,14 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
if (item) {
|
||||
this.auditId = item.id;
|
||||
this.initSTAudit(1);
|
||||
this.isVisibleRE = true;
|
||||
this.isVisibleRE = true;
|
||||
} else {
|
||||
if(this.selectedRows.length <= 0) {
|
||||
if (this.selectedRows.length <= 0) {
|
||||
this.service.msgSrv.error('请选择订单!')
|
||||
return;
|
||||
} else {
|
||||
this.initSTAudit(2);
|
||||
this.isVisibleRE = true;
|
||||
this.initSTAudit(2);
|
||||
this.isVisibleRE = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user