更新
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<el-card>
|
||||
<el-row>
|
||||
<span>机床编号:</span>
|
||||
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="searchTable1();searchTable2()">
|
||||
<el-select v-model="machineNumberValue" filterable placeholder="机床编号" size="small" clearable @change="searchTable1()">
|
||||
<el-option
|
||||
v-for="item in machineNumber"
|
||||
:key="item.value"
|
||||
@@ -207,26 +207,30 @@ export default {
|
||||
} else {
|
||||
searchTable1(this.machineNumberValue, this.check2).then(response => {
|
||||
this.tableData1 = response.data
|
||||
}).then(() => {
|
||||
this.searchTable2()
|
||||
})
|
||||
}
|
||||
},
|
||||
searchTable2() {
|
||||
this.tableData2 = []
|
||||
if (this.machineNumberValue !== '' && this.machineNumberValue !== null) { this.check2 = 1 } else { this.check2 = 0 }
|
||||
if (this.groupNumberValue !== '' && this.groupNumberValue !== null) { this.check3 = 1 } else { this.check3 = 0 }
|
||||
searchTable2(this.machineNumberValue, this.check2).then(response => {
|
||||
this.tableData2 = response.data
|
||||
this.tableData2.map(v => {
|
||||
if (v.组件是否完成 === null || v.组件是否完成 === 0) {
|
||||
this.$set(v, 'buttonStatus', 1)
|
||||
} else if (v.组件是否完成 === 1) {
|
||||
this.$set(v, 'buttonStatus', 2)
|
||||
} else {
|
||||
this.$set(v, 'buttonStatus', 3)
|
||||
}
|
||||
return v
|
||||
if (this.machineNumberValue !== '' && this.machineNumberValue !== null) {
|
||||
this.check2 = 1
|
||||
searchTable2(this.machineNumberValue, this.check2).then(response => {
|
||||
console.log(response.data, 111)
|
||||
this.tableData2 = response.data
|
||||
this.tableData2.map(v => {
|
||||
if (v.组件是否完成 === null || v.组件是否完成 === 0) {
|
||||
this.$set(v, 'buttonStatus', 1)
|
||||
} else if (v.组件是否完成 === 1) {
|
||||
this.$set(v, 'buttonStatus', 2)
|
||||
} else {
|
||||
this.$set(v, 'buttonStatus', 3)
|
||||
}
|
||||
return v
|
||||
})
|
||||
})
|
||||
})
|
||||
} else { this.check2 = 0 }
|
||||
},
|
||||
// 总装开始装配
|
||||
handlestart_1(row) { // 弹出单据编辑
|
||||
|
||||
Reference in New Issue
Block a user