| | |
| | | // this.submitButtonIsDisabled = false |
| | | }, |
| | | // 工艺路线值改变 |
| | | async routecodeChange(partcode, routecode) { |
| | | // const data = { |
| | | // partcode, |
| | | // routecode |
| | | // } |
| | | async routecodeChange() { |
| | | const data = { |
| | | partcode: this.dialogForm.partcode, |
| | | routecode: this.dialogForm.routecode, |
| | | wkshopcode: this.dialogForm.wkshopcode |
| | | } |
| | | await SelectRouteOrWkshop(data).then((res) => { |
| | | // console.log(res, 1) |
| | | this.submitButtonIsDisabled = false |
| | | }).catch(err => { |
| | | // console.log(err, 2) |
| | | this.submitButtonIsDisabled = true |
| | | }) |
| | | }, |
| | | // 生产车间值改变时 |
| | | async wkshopcodeChange(wkshopcode, partcode) { |
| | |
| | | |
| | | if (res.length === 1) { |
| | | this.dialogForm.routecode = res[0].code |
| | | await this.routecodeChange() |
| | | } else { |
| | | this.dialogForm.routecode = '' |
| | | } |