更新
This commit is contained in:
@@ -29,20 +29,29 @@
|
||||
<el-col style="width: 37%">
|
||||
<el-card>
|
||||
<el-table v-loading="loading2" :data="tableData1" :row-class-name="tableRowClassName1" class="table" style="max-height: 830px" highlight-current-row empty-text=" " border @row-click="getRow">
|
||||
<el-table-column type="index" label="序号" width="50"/>
|
||||
<el-table-column align="center" label="工序" show-overflow-tooltip width="50">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工序顺序 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="工艺名" show-overflow-tooltip min-width="70">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工艺名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="质检" width="60">
|
||||
<!--<el-table-column align="center" label="已完数量" show-overflow-tooltip min-width="70">-->
|
||||
<!--<template slot-scope="scope">-->
|
||||
<!--{{ scope.row.完成数量 }}-->
|
||||
<!--</template>-->
|
||||
<!--</el-table-column>-->
|
||||
<el-table-column align="center" label="投产数" width="80">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.序间质检 }}
|
||||
{{ scope.row.批次数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="不合格数" width="80">
|
||||
<el-table-column align="center" label="完成数" width="80">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.不合格数量 }}
|
||||
{{ scope.row.完成数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作者" show-overflow-tooltip width="70">
|
||||
@@ -50,7 +59,12 @@
|
||||
{{ scope.row.操作者 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="完成日期" width="95">
|
||||
<el-table-column align="center" label="扫码开始" show-overflow-tooltip width="90">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.加工开始时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="加工完成" width="95">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.完成日期 }}
|
||||
</template>
|
||||
@@ -367,15 +381,16 @@ export default {
|
||||
gettabledata1(row).then(response => {
|
||||
if (response.data.length !== 0) {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
console.log(response.data[i])
|
||||
this.tableData1.push({
|
||||
工艺名称: response.data[i].工艺名称,
|
||||
序间质检: response.data[i].质检结果,
|
||||
排产日期: response.data[i].排产时间 ? response.data[i].排产时间.split(' ')[0] : '',
|
||||
完成日期: response.data[i].工序完成日期 ? response.data[i].工序完成日期.split(' ')[0] : '',
|
||||
操作者: response.data[i].操作者,
|
||||
不合格数量: response.data[i].不合格数量,
|
||||
质检数量: response.data[i].数量,
|
||||
工序顺序: response.data[i].工序顺序,
|
||||
加工开始时间: response.data[i].加工开始时间 ? response.data[i].加工开始时间 : '',
|
||||
完成日期: response.data[i].加工完成时间 ? response.data[i].加工完成时间 : '',
|
||||
操作者: response.data[i].姓名,
|
||||
批次数量: response.data[i].批次数量,
|
||||
工序流水号: response.data[i].工序流水号,
|
||||
完成过程流水号: response.data[i].完成过程流水号,
|
||||
工序状态: response.data[i].工序状态,
|
||||
完成数量: response.data[i].完成数量
|
||||
})
|
||||
@@ -538,13 +553,13 @@ export default {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.tableData1.push({
|
||||
工艺名称: response.data[i].工艺名称,
|
||||
序间质检: response.data[i].质检结果,
|
||||
排产日期: response.data[i].排产时间 ? response.data[i].排产时间.split(' ')[0] : '',
|
||||
完成日期: response.data[i].工序完成日期 ? response.data[i].工序完成日期.split(' ')[0] : '',
|
||||
操作者: response.data[i].操作者,
|
||||
不合格数量: response.data[i].不合格数量,
|
||||
质检数量: response.data[i].数量,
|
||||
工序顺序: response.data[i].工序顺序,
|
||||
加工开始时间: response.data[i].加工开始时间 ? response.data[i].加工开始时间 : '',
|
||||
完成日期: response.data[i].加工完成时间 ? response.data[i].加工完成时间 : '',
|
||||
操作者: response.data[i].姓名,
|
||||
批次数量: response.data[i].批次数量,
|
||||
工序流水号: response.data[i].工序流水号,
|
||||
完成过程流水号: response.data[i].完成过程流水号,
|
||||
工序状态: response.data[i].工序状态,
|
||||
完成数量: response.data[i].完成数量
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user