loulijun2021
2023-06-25 0ee16193f6ede38950215bd74b49d58b779595a5
src/views/produceManager/workOrder.vue
@@ -2369,11 +2369,19 @@
      // 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) {
@@ -2387,6 +2395,7 @@
      if (res.length === 1) {
        this.dialogForm.routecode = res[0].code
        await this.routecodeChange()
      } else {
        this.dialogForm.routecode = ''
      }