库存盘点
This commit is contained in:
@@ -712,10 +712,13 @@ export default {
|
|||||||
this.getSelect(initProject, ['项目名称', '项目流水号'], 'Project') // 项目名称
|
this.getSelect(initProject, ['项目名称', '项目流水号'], 'Project') // 项目名称
|
||||||
},
|
},
|
||||||
searchMachine() { // 查询机床
|
searchMachine() { // 查询机床
|
||||||
if (this.ProjectValue === ' ') {
|
this.Machine = []
|
||||||
this.ProjectValue_check = 0
|
this.GroupNum = []
|
||||||
}
|
this.MachineValue = ''
|
||||||
searchmachine(this.ProjectValue_check, this.ProjectValue).then(response => {
|
this.GroupNumValue = ''
|
||||||
|
console.log(this.ProjectValue)
|
||||||
|
if (this.ProjectValue !== '') {
|
||||||
|
searchmachine(1, this.ProjectValue).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.Machine.push({
|
this.Machine.push({
|
||||||
label: response.data[i].机床图号,
|
label: response.data[i].机床图号,
|
||||||
@@ -723,12 +726,15 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
searchGroupList() { // 查询组号
|
searchGroupList() { // 查询组号
|
||||||
|
this.GroupNum = []
|
||||||
|
this.GroupNumValue = ''
|
||||||
searchTeam(this.MachineValue).then(response => {
|
searchTeam(this.MachineValue).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.GroupNum.push({
|
this.GroupNum.push({
|
||||||
label: response.data[i].组件名称,
|
label: response.data[i].组号,
|
||||||
value: response.data[i].组件流水号
|
value: response.data[i].组件流水号
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -740,21 +746,24 @@ export default {
|
|||||||
this.tableDataPurchase = []
|
this.tableDataPurchase = []
|
||||||
if (this.ProjectValue === '') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === '') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === '') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchPurchasePart(this.PageCurrent2, this.PageSize2, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchPurchasePart(this.PageCurrent2, this.PageSize2, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataPurchase = response.data.rows
|
this.tableDataPurchase = response.data.rows
|
||||||
this.total2 = response.data.total
|
this.total2 = response.data.total
|
||||||
this.listLoading6 = false
|
this.listLoading6 = false
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
// 查询外购件记录
|
// 查询外购件记录
|
||||||
searchPurchasePartRecord(row) {
|
searchPurchasePartRecord(row) {
|
||||||
@@ -777,12 +786,18 @@ export default {
|
|||||||
this.tableDataStandard = []
|
this.tableDataStandard = []
|
||||||
if (this.ProjectValue === '') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === '') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === '') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchStandardPart(this.PageCurrent3, this.PageSize3, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchStandardPart(this.PageCurrent3, this.PageSize3, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataStandard = response.data.rows
|
this.tableDataStandard = response.data.rows
|
||||||
@@ -790,9 +805,6 @@ export default {
|
|||||||
this.listLoading9 = false
|
this.listLoading9 = false
|
||||||
console.log(this.tableDataPurchase)
|
console.log(this.tableDataPurchase)
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
standardselecting(row) {
|
standardselecting(row) {
|
||||||
this.contractDeatilNumber = row.采购合同明细流水号
|
this.contractDeatilNumber = row.采购合同明细流水号
|
||||||
@@ -822,21 +834,24 @@ export default {
|
|||||||
this.tableDataGeneral = []
|
this.tableDataGeneral = []
|
||||||
if (this.ProjectValue === '') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === '') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === '') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchGeneralPart(this.PageCurrent1, this.PageSize1, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchGeneralPart(this.PageCurrent1, this.PageSize1, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataGeneral = response.data.rows
|
this.tableDataGeneral = response.data.rows
|
||||||
this.total1 = response.data.total
|
this.total1 = response.data.total
|
||||||
this.listLoading3 = false
|
this.listLoading3 = false
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
// 查询基本件
|
// 查询基本件
|
||||||
searchBasciPartinfo() {
|
searchBasciPartinfo() {
|
||||||
@@ -844,21 +859,24 @@ export default {
|
|||||||
this.tableDataBasic = []
|
this.tableDataBasic = []
|
||||||
if (this.ProjectValue === '') {
|
if (this.ProjectValue === '') {
|
||||||
this.ProjectValue_check = 0
|
this.ProjectValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.ProjectValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.MachineValue === '') {
|
if (this.MachineValue === '') {
|
||||||
this.MachineValue_check = 0
|
this.MachineValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.MachineValue_check = 1
|
||||||
}
|
}
|
||||||
if (this.GroupNumValue === '') {
|
if (this.GroupNumValue === '') {
|
||||||
this.GroupNumValue_check = 0
|
this.GroupNumValue_check = 0
|
||||||
|
} else {
|
||||||
|
this.GroupNumValue_check = 1
|
||||||
}
|
}
|
||||||
searchBasicPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
searchBasicPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||||
this.tableDataBasic = response.data.rows
|
this.tableDataBasic = response.data.rows
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
})
|
})
|
||||||
this.projectValue = ' '
|
|
||||||
this.MachineValue = ' '
|
|
||||||
this.GroupNumValue = ' '
|
|
||||||
},
|
},
|
||||||
// 查询基本件记录
|
// 查询基本件记录
|
||||||
searchBasicPartRecord(row) {
|
searchBasicPartRecord(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user