This commit is contained in:
Vergil
2020-03-14 09:42:54 +08:00
parent fb25d5036c
commit 634a9e6b5b
6 changed files with 48 additions and 57 deletions

View File

@@ -549,16 +549,12 @@ export default {
})
},
searchTable() {
if (this.Machine === '' || this.Machine === null) {
this.$message.warning('请先选择机床组号')
} else {
if (this.PartType === '标准件') {
this.searchTable0()
} else if (this.PartType === '外购件') {
this.searchTable1()
} else if (this.PartType === '基本件') {
this.searchTable2()
}
if (this.PartType === '标准件') {
this.searchTable0()
} else if (this.PartType === '外购件') {
this.searchTable1()
} else if (this.PartType === '基本件') {
this.searchTable2()
}
},
searchTable0() { // 查询标准件

View File

@@ -251,7 +251,7 @@ export default {
querySearch(queryString, cb) {
this.restaurantsPick = []
if (this.searchPick !== '' && this.searchPick !== null) {
SelectPart(0, '', 0, '', 0, '', 1, this.searchPick, 0, '', 0, '', 0, '', '', '', '').then(response => {
SelectPart(this.searchPick).then(response => {
const res = response.data
res.forEach(item => {
this.restaurantsPick.push({