clear machine

This commit is contained in:
chenjianan
2019-05-04 12:09:51 +08:00
parent 89819186aa
commit de0ad780ca

View File

@@ -401,22 +401,18 @@ export default {
}) })
}, },
typeChange() { typeChange() {
if (this.projectValue === '' || this.projectValue === null) { this.toolNumValue = ''
this.toolNumValue = '' this.toolNum = []
this.toolNum = [] getToolNum(1, this.projectValue).then(response => {
} else { for (let i = 0; i < response.data.length; i++) {
getToolNum(1, this.projectValue).then(response => { this.toolNum.push({
for (let i = 0; i < response.data.length; i++) { label: response.data[i].机床图号,
this.toolNum.push({ value: response.data[i].机床流水号
label: response.data[i].机床图号, })
value: response.data[i].机床流水号 }
}) })
}
})
}
}, },
groupChange(row, index) { groupChange(row, index) {
console.log(row.组件流水号)
if (row.组件流水号 !== '') { if (row.组件流水号 !== '') {
searchgroupName(row.组件流水号).then(response => { searchgroupName(row.组件流水号).then(response => {
console.log(response.data) console.log(response.data)