新增字段、修改计算逻辑
This commit is contained in:
parent
c66a8b3b06
commit
4e9aeb7ab4
|
|
@ -81,11 +81,17 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="已修数量"
|
label="已维修数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="typeRepairedNum"
|
prop="typeRepairedNum"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="报废数量"
|
||||||
|
align="center"
|
||||||
|
prop="typeScrapNum"
|
||||||
|
show-overflow-tooltip
|
||||||
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="待修数量"
|
label="待修数量"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
@ -174,7 +180,7 @@ export default {
|
||||||
const res = await getAppRepairMaTypeList(param);
|
const res = await getAppRepairMaTypeList(param);
|
||||||
this.equipmentList = res.data;
|
this.equipmentList = res.data;
|
||||||
this.equipmentList.forEach((e) => {
|
this.equipmentList.forEach((e) => {
|
||||||
e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum);
|
e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum) - Number(e.typeScrapNum);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -131,11 +131,17 @@
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="维修单号"
|
label="维修审核单号"
|
||||||
align="center"
|
align="center"
|
||||||
prop="repairNum"
|
prop="repairNum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="任务单号"
|
||||||
|
align="center"
|
||||||
|
prop="repairTaskCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="物资类型"
|
label="物资类型"
|
||||||
align="center"
|
align="center"
|
||||||
|
|
|
||||||
|
|
@ -80,15 +80,20 @@
|
||||||
prop="repairedNum"
|
prop="repairedNum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="报废数量"
|
||||||
|
align="center"
|
||||||
|
prop="scrapNum"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="待修数量"
|
label="待修数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="waitNum"
|
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
{{ scope.row.repairNum - scope.row.repairedNum }}
|
{{ scope.row.repairNum - scope.row.repairedNum - scope.row.scrapNum }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue