质量统计完成
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<vxe-table :data="QualityStatisticsTable" align="center" :loading="loading">
|
||||
<vxe-table :data="QualityStatisticsTable" align="center" :loading="loading" border :column-config="{ resizable: true }">
|
||||
<vxe-column type="seq" width="60"></vxe-column>
|
||||
<vxe-column field="id" title="id"></vxe-column>
|
||||
<vxe-column field="fk_workorder_id" title="工单id"></vxe-column>
|
||||
<vxe-column field="fkWorkorderId" title="工单id"></vxe-column>
|
||||
<vxe-column field="productName" title="产品名称"></vxe-column>
|
||||
<vxe-column field="color" title="颜色"></vxe-column>
|
||||
<vxe-column field="require" title="投入数"></vxe-column>
|
||||
@@ -44,6 +44,14 @@
|
||||
<vxe-column field="polishNum03" title="三检打磨数量"></vxe-column>
|
||||
<vxe-column field="scrapNum03" title="三检报废数量"></vxe-column>
|
||||
</vxe-colgroup>
|
||||
<vxe-colgroup title="统计分析" fixed="right">
|
||||
<vxe-column field="firstgoodNum" title="一次合格数量"></vxe-column>
|
||||
<vxe-column field="firstgoodRate" title="一次合格率"></vxe-column>
|
||||
<vxe-column field="finalgoodNum" title="最终合格数量"></vxe-column>
|
||||
<vxe-column field="finalgoodRate" title="最终合格率"></vxe-column>
|
||||
<vxe-column field="scrapNum" title="报废数"></vxe-column>
|
||||
<vxe-column field="scrapRate" title="报废率"></vxe-column>
|
||||
</vxe-colgroup>
|
||||
</vxe-table>
|
||||
<pagination
|
||||
:total="pagination.total"
|
||||
@@ -64,7 +72,7 @@ export default {
|
||||
year: 2023,
|
||||
week: null,
|
||||
date: null,
|
||||
workorderid: "",
|
||||
workorderid: '',
|
||||
},
|
||||
pagination: {
|
||||
total: 0,
|
||||
@@ -76,22 +84,22 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.GetQualityStatisticsTable();
|
||||
this.GetQualityStatisticsTable()
|
||||
},
|
||||
methods: {
|
||||
// todo 获取表格
|
||||
GetQualityStatisticsTable() {
|
||||
const query = { ...this.search, ...this.pagination }
|
||||
if (query.year == null||query.year==0) query.year = -1
|
||||
if (query.week == null||query.week==0) query.week = -1
|
||||
if (query.date == null||query.date==0) query.date = -1
|
||||
if (query.date == null||query.date==0) query.date = -1
|
||||
if (query.year == null || query.year == 0) query.year = -1
|
||||
if (query.week == null || query.week == 0) query.week = -1
|
||||
if (query.date == null || query.date == 0) query.date = -1
|
||||
if (query.date == null || query.date == 0) query.date = -1
|
||||
|
||||
QueryQualityStatisticsTable(query)
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.QualityStatisticsTable = res.data.item1;
|
||||
this.pagination.total = res.data.item2;
|
||||
this.QualityStatisticsTable = res.data.item1
|
||||
this.pagination.total = res.data.item2
|
||||
this.loading = false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user