调整基础数据、车船务、项目、合同
This commit is contained in:
@@ -150,6 +150,22 @@ const createTimeRangeMap = {
|
||||
createTimeRange: ['createTimeStart', 'createTimeEnd'],
|
||||
};
|
||||
|
||||
const exportColumns = [
|
||||
{ prop: 'vehicleType', label: '车船类型' },
|
||||
{ prop: 'vehicleNo', label: '车牌号/船号' },
|
||||
{ prop: 'maintainer', label: '维修人' },
|
||||
{ prop: 'maintenanceTime', label: '维修时间' },
|
||||
{ prop: 'location', label: '维修位置' },
|
||||
{ prop: 'replacedPart', label: '更换零件' },
|
||||
{ prop: 'cost', label: '费用' },
|
||||
{ prop: 'company', label: '维修单位' },
|
||||
{ prop: 'contact', label: '联系方式' },
|
||||
{ prop: 'address', label: '地址' },
|
||||
{ prop: 'factoryTime', label: '出厂时间' },
|
||||
{ prop: 'mileage', label: '里程/航程数' },
|
||||
{ prop: 'remark', label: '备注' },
|
||||
];
|
||||
|
||||
export default {
|
||||
components: {
|
||||
AddressMapPicker,
|
||||
@@ -321,6 +337,7 @@ export default {
|
||||
{
|
||||
label: '里程/航程数(公里)',
|
||||
prop: 'mileage',
|
||||
renderHeader: () => '里程/航程数',
|
||||
type: 'input',
|
||||
minWidth: 130,
|
||||
slot: true,
|
||||
@@ -749,6 +766,7 @@ export default {
|
||||
return {
|
||||
...this.buildQuery(),
|
||||
ids: this.ids,
|
||||
exportColumns: JSON.stringify(exportColumns),
|
||||
[this.website.tokenHeader]: getToken(),
|
||||
};
|
||||
},
|
||||
@@ -757,9 +775,8 @@ export default {
|
||||
},
|
||||
handleTemplate() {
|
||||
exportBlob(
|
||||
`/blade-transport/maintenance-record/export-template?${
|
||||
this.website.tokenHeader
|
||||
}=${getToken()}`,
|
||||
'/blade-transport/maintenance-record/export-template',
|
||||
{ exportColumns: JSON.stringify(exportColumns), [this.website.tokenHeader]: getToken() },
|
||||
{ feedback: true }
|
||||
).then(res => {
|
||||
downloadXls(res.data, '维修记录模板.xlsx');
|
||||
|
||||
Reference in New Issue
Block a user