替换containsAllLable

This commit is contained in:
潘晓云
2022-03-09 16:33:45 +08:00
parent 957a66254f
commit b0a7611ae4
28 changed files with 1365 additions and 1105 deletions

View File

@ -72,7 +72,7 @@ export class OrderManagementBulkComponent implements OnInit {
private modal: NzModalService,
public shipperservice: ShipperBaseService,
private router: Router
) {}
) { }
/**
* 查询参数
@ -257,7 +257,7 @@ export class OrderManagementBulkComponent implements OnInit {
ui: {
widget: 'dict-select',
params: { dictKey: 'overall:payment:status' },
containsAllLable: true,
containsAllLabel: true,
visibleIf: {
_$expand: (value: boolean) => value
}
@ -312,7 +312,7 @@ export class OrderManagementBulkComponent implements OnInit {
ui: {
widget: 'dict-select',
params: { dictKey: 'service:type' },
containsAllLable: true,
containsAllLabel: true,
visibleIf: {
_$expand: (value: boolean) => value
}
@ -323,7 +323,7 @@ export class OrderManagementBulkComponent implements OnInit {
type: 'string',
ui: {
widget: 'dict-select',
containsAllLable: true,
containsAllLabel: true,
params: { dictKey: 'goodresource:settlement:type' },
containAllLable: true,
visibleIf: {
@ -372,27 +372,27 @@ export class OrderManagementBulkComponent implements OnInit {
};
this.uiView = { '*': { spanLabelFixed: 80, grid: { span: 12, gutter: 4 } } };
}
// 获取城市列表
getRegionCode(regionCode: any) {
console.log(regionCode);
return this.service
.request(this.service.$api_get_enterprise_project, { id: regionCode })
.pipe(
map(res =>
res.map((item: any) => ({
label: item.projectName,
value: item.id
}))
)
// 获取城市列表
getRegionCode(regionCode: any) {
console.log(regionCode);
return this.service
.request(this.service.$api_get_enterprise_project, { id: regionCode })
.pipe(
map(res =>
res.map((item: any) => ({
label: item.projectName,
value: item.id
}))
)
.subscribe(res => {
this.sf.getProperty('/enterpriseProjectId')!.schema.enum = res;
this.sf.getProperty('/enterpriseProjectId')!.widget.reset(res);
// if (this.enterpriseProjectIds) {
// this.sf1.setValue('/enterpriseProjectId', this.enterpriseProjectIds);
// }
});
}
)
.subscribe(res => {
this.sf.getProperty('/enterpriseProjectId')!.schema.enum = res;
this.sf.getProperty('/enterpriseProjectId')!.widget.reset(res);
// if (this.enterpriseProjectIds) {
// this.sf1.setValue('/enterpriseProjectId', this.enterpriseProjectIds);
// }
});
}
/**
* 初始化数据列表
*/
@ -510,7 +510,7 @@ export class OrderManagementBulkComponent implements OnInit {
click: _record => this.cancellation(_record),
iif: item =>
item.billStatus == '4' || item.billStatus == '5' || item.billStatus == '2' || item.billStatus == '3' || item.billStatus == '1',
acl: { ability: ['ORDER-BULK-signBulkOrder'] },
acl: { ability: ['ORDER-BULK-signBulkOrder'] },
},
{
text: '申请退款 ',
@ -605,7 +605,7 @@ export class OrderManagementBulkComponent implements OnInit {
this._$expand = !this._$expand;
this.sf?.setValue('/_$expand', this._$expand);
}
tabChange(item: any) {}
tabChange(item: any) { }
/**
* 重置表单
*/
@ -617,8 +617,8 @@ export class OrderManagementBulkComponent implements OnInit {
/**
* 导入货源
*/
importGoodsSource() {}
audit(item: any) {}
importGoodsSource() { }
audit(item: any) { }
/*
* 审核关闭弹窗
@ -639,7 +639,7 @@ export class OrderManagementBulkComponent implements OnInit {
/**
* 审核通过按钮
*/
handleOK() {}
handleOK() { }
OpenPrice(item: any) {
this.changeId = item.id;
this.isVisible = true;
@ -692,10 +692,10 @@ export class OrderManagementBulkComponent implements OnInit {
nzFooter: null
});
modal.afterClose.subscribe((res: any) => {
if(res) {
this.st.reload(1);
this.getGoodsSourceStatistical();
}
if (res) {
this.st.reload(1);
this.getGoodsSourceStatistical();
}
});
}
});
@ -772,10 +772,10 @@ export class OrderManagementBulkComponent implements OnInit {
changeOrder(value: any) {
this.router.navigate(['order-management/bulk-detailChange', value.id]);
}
/**
*申请退款
*/
applyRefund(item: any) {
/**
*申请退款
*/
applyRefund(item: any) {
const modalRef = this.modal.create({
nzTitle: '申请退款',
nzContent: OneCarOrderCancelConfirmComponent,
@ -786,7 +786,7 @@ export class OrderManagementBulkComponent implements OnInit {
nzFooter: null
});
modalRef.afterClose.subscribe((res: boolean) => {
if(res) {
if (res) {
this.resetSF;
this.st.load();
}