车间排产
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col style="width: 600px">
|
<el-col style="width: 600px">
|
||||||
<el-card style="height: 680px">
|
<el-card style="height: 680px">
|
||||||
<el-table :data="tableData2" height="380" highlight-current-row size="mini" style="width: 100%" border stripe @row-dblclick="XuanChu">
|
<el-table v-loading="loading2" :data="tableData2" height="380" highlight-current-row size="mini" style="width: 100%" border stripe @row-dblclick="XuanChu">
|
||||||
<el-table-column label="零件图号" align="center" width="190px">
|
<el-table-column label="零件图号" align="center" width="190px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.零件图号 }}
|
{{ scope.row.零件图号 }}
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-table :data="tableData3" :row-class-name="tableData3ClassName" height="280" size="mini" style="width: 100%" border @row-dblclick="XuanRu">
|
<el-table v-loading="loading3" :data="tableData3" :row-class-name="tableData3ClassName" height="280" size="mini" style="width: 100%" border @row-dblclick="XuanRu">
|
||||||
<el-table-column label="序号" align="center" width="50px">
|
<el-table-column label="序号" align="center" width="50px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.工序顺序 }}
|
{{ scope.row.工序顺序 }}
|
||||||
@@ -181,25 +181,27 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getGongxu(row) {
|
getGongxu(row) {
|
||||||
this.loading3 = true
|
if (!this.loading3) {
|
||||||
this.tableData3 = []
|
this.loading3 = true
|
||||||
this.index = row.index
|
this.tableData3 = []
|
||||||
this.工艺计划流水号 = row.工艺计划流水号
|
this.index = row.index
|
||||||
getGongxu(row.工艺计划流水号).then(response => {
|
this.工艺计划流水号 = row.工艺计划流水号
|
||||||
response.data.map(v => {
|
getGongxu(row.工艺计划流水号).then(response => {
|
||||||
this.tableData3.push({
|
response.data.map(v => {
|
||||||
工序流水号: v.工序流水号,
|
this.tableData3.push({
|
||||||
工序状态: v.工序状态,
|
工序流水号: v.工序流水号,
|
||||||
工序顺序: v.工序顺序,
|
工序状态: v.工序状态,
|
||||||
工艺名称: v.工艺名称,
|
工序顺序: v.工序顺序,
|
||||||
姓名: parseInt(v.工序间是否外协) === 2 ? '外协' : v.姓名,
|
工艺名称: v.工艺名称,
|
||||||
排产时间: v.排产时间 ? v.排产时间.split(' ')[0] : '',
|
姓名: parseInt(v.工序间是否外协) === 2 ? '外协' : v.姓名,
|
||||||
完成日期: v.完成日期 ? v.完成日期.split(' ')[0] : '',
|
排产时间: v.排产时间 ? v.排产时间.split(' ')[0] : '',
|
||||||
工序间是否外协: v.工序间是否外协
|
完成日期: v.完成日期 ? v.完成日期.split(' ')[0] : '',
|
||||||
|
工序间是否外协: v.工序间是否外协
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
this.loading3 = false
|
||||||
})
|
})
|
||||||
this.loading3 = false
|
}
|
||||||
})
|
|
||||||
},
|
},
|
||||||
tableData1ClassName({ row, rowIndex }) {
|
tableData1ClassName({ row, rowIndex }) {
|
||||||
row.index = rowIndex
|
row.index = rowIndex
|
||||||
|
|||||||
Reference in New Issue
Block a user