Commit a686f53f authored by 张海景's avatar 张海景

update:修改生产报工新增报工数量

parent d52930f4
......@@ -133,6 +133,11 @@
<el-table-column label="规格型号" width="100" align="center" prop="specification" />
<el-table-column label="指令号" width="120" align="center" prop="clientCmd" />
<el-table-column label="标准SIZE" width="120" align="center" prop="standardSize" />
<el-table-column label="报工数量" align="center" prop="feedbackTime" width="180">
<template slot-scope="scope">
<span>{{ getSumNumber(scope.row) }}</span>
</template>
</el-table-column>
<el-table-column label="合格数量" width="100" align="center" prop="quantityQualify" />
<el-table-column label="不合格数量" width="100" align="center" prop="quantityUnqualify" />
<el-table-column label="报工人" width="100" align="center" prop="nickName" />
......@@ -430,6 +435,11 @@ export default {
this.getList();
},
methods: {
getSumNumber(row) {
const first = row.quantityQualify? Number(row.quantityQualify): 0
const last = row.quantityUnqualify? Number(row.quantityUnqualify): 0
return first + last
},
/** 查询生产报工记录列表 */
getList() {
this.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment