状态
This commit is contained in:
@@ -83,15 +83,16 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="投产时间" width="100px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.传递时间 }}
|
||||
{{ scope.row.传递时间 ? scope.row.传递时间 : '—' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件状态" min-width="960px">
|
||||
<template slot-scope="scope">
|
||||
<el-steps id="StatusQuery" :active="scope.row.考核状态" finish-status="success" simple>
|
||||
<el-steps id="StatusQuery" :active="scope.row.零件状态码" finish-status="success" simple>
|
||||
<el-step title="分配" />
|
||||
<el-step title="投产" />
|
||||
<el-step title="工艺定额" />
|
||||
<!--<el-step title="定额" />-->
|
||||
<el-step title="工艺" />
|
||||
<el-step title="定额" />
|
||||
<el-step title="平衡" />
|
||||
<el-step title="完成" />
|
||||
<el-step title="入库" />
|
||||
@@ -351,12 +352,10 @@ export default {
|
||||
}
|
||||
this.loading0 = true
|
||||
searchTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.partNumber, this.check4, this.partStateValue, this.check5, this.partTypeValue, this.pageSize, this.pageCurrent).then(response => {
|
||||
for (let i = 0; i < response.data.rows.length; i++) {
|
||||
response.data.rows[i].考核状态 = parseInt(response.data.rows[i].考核状态) - 2
|
||||
if (response.data.rows[i].传递时间 !== undefined || response.data.rows[i].hasOwnProperty('传递时间')) {
|
||||
response.data.rows[i].传递时间 = response.data.rows[i].传递时间.split(' ', 2)[0]
|
||||
}
|
||||
}
|
||||
response.data.rows.map(v => {
|
||||
this.$set(v, '零件状态码', v.考核状态 ? parseInt(v.考核状态) - 2 : 0)
|
||||
v.传递时间 = v.传递时间.split(' ')[0]
|
||||
})
|
||||
this.loading0 = false
|
||||
this.tableData = response.data.rows
|
||||
this.total = parseInt(response.data.total)
|
||||
|
||||
Reference in New Issue
Block a user