备料出库
This commit is contained in:
@@ -154,7 +154,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 查询表格数据
|
// 查询表格数据
|
||||||
searchTable() {
|
searchTable() {
|
||||||
console.log(this.id, this.name)
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.tableData = []
|
this.tableData = []
|
||||||
this.Data = []
|
this.Data = []
|
||||||
@@ -201,7 +200,7 @@ export default {
|
|||||||
searchTable2() {
|
searchTable2() {
|
||||||
this.loading2 = true
|
this.loading2 = true
|
||||||
this.tableData2 = []
|
this.tableData2 = []
|
||||||
this.Data = []
|
this.Data2 = []
|
||||||
if (this.partName2 !== '' && this.partName2 !== null) {
|
if (this.partName2 !== '' && this.partName2 !== null) {
|
||||||
this.partNamecheck2 = 1
|
this.partNamecheck2 = 1
|
||||||
} else {
|
} else {
|
||||||
@@ -211,19 +210,19 @@ export default {
|
|||||||
if (response.data.total === 0) {
|
if (response.data.total === 0) {
|
||||||
this.loading2 = false
|
this.loading2 = false
|
||||||
} else {
|
} else {
|
||||||
this.Data = response.data.rows
|
this.Data2 = response.data.rows
|
||||||
this.total2 = response.data.total
|
this.total2 = response.data.total
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
for (let i = 0; i < this.Data.length; i++) {
|
for (let i = 0; i < this.Data2.length; i++) {
|
||||||
searchtable2(this.Data[i].工艺计划流水号).then(response => {
|
searchtable2(this.Data2[i].工艺计划流水号).then(response => {
|
||||||
this.tableData2.push({
|
this.tableData2.push({
|
||||||
工艺计划流水号: this.Data[i].工艺计划流水号,
|
工艺计划流水号: this.Data2[i].工艺计划流水号,
|
||||||
零件名称: this.Data[i].零件名称,
|
零件名称: this.Data2[i].零件名称,
|
||||||
零件图号: this.Data[i].零件图号,
|
零件图号: this.Data2[i].零件图号,
|
||||||
重量1: this.Data[i].重量1,
|
重量1: this.Data2[i].重量1,
|
||||||
单价: this.Data[i].单价,
|
单价: this.Data2[i].单价,
|
||||||
备注1: this.Data[i].备注1,
|
备注1: this.Data2[i].备注1,
|
||||||
工序流水号: response.data[0].工序流水号
|
工序流水号: response.data[0].工序流水号
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user