This commit is contained in:
wangshiming
2022-03-28 16:02:44 +08:00
parent dc5c0a666b
commit 66e12a6eb3
8 changed files with 348 additions and 31 deletions

View File

@ -29,6 +29,7 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
isVisibleEvaluate = false;
isVisible = false;
loading: boolean = true;
paramsList: any;
changeId: any; // 主页面查看运费变更记录id - 用于运费变更记录
changeViewId: any; // 查看运费变更记录id - 用于查看
ViewCause: any; // 变更运费查看数据
@ -102,31 +103,26 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
return {
...a,
...params,
createTime: {
start: this.sf?.value?.createTime?.[0] || '',
end: this.sf?.value?.createTime?.[1] || ''
}
};
}
beforeReq = (requestOptions: STRequestOptions) => {
const a: any = {};
if (this.resourceStatus) {
a.billStatus = this.resourceStatus;
Object.assign(requestOptions.body, {
...a
});
// Object.assign(requestOptions.body, {
// ...a
// });
}
const params: any = Object.assign({}, this.sf?.value || {});
const params: any = Object.assign({}, this.sf?.value || this.paramsList);
console.log(this.sf?.value);
console.log(this.paramsList);
delete params._$expand;
if (this.sf) {
this.paramsList = params
Object.assign(requestOptions.body, {
...params,
createTime: {
start: this.sf?.value?.createTime?.[0] || '',
end: this.sf?.value?.createTime?.[1] || ''
}
...a,
...this.paramsList,
});
}
this.loading = true;
return requestOptions;
};
@ -282,14 +278,19 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
containsAllLable: true
} as SFSelectWidgetSchema
},
// createTime: {
// title: '创建时间',
// type: 'string',
// ui: {
// widget: 'date',
// mode: 'range',
// format: 'yyyy-MM-dd'
// } as SFDateWidgetSchema
// },
createTime: {
title: '创建时间',
type: 'string',
ui: {
widget: 'date',
mode: 'range',
format: 'yyyy-MM-dd'
} as SFDateWidgetSchema
title: '创建时间',
ui: { widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd' } as SFDateWidgetSchema,
},
riskStatus: {
type: 'string',
@ -578,7 +579,7 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
this.resourceStatus = e;
this.initST();
setTimeout(() => {
this.st.load(1);
this.st.load();
}, 500);
}
/**