loulijun2021
2022-07-19 d71436544198b7b051115662fc9cf4b12ce0cda3
src/views/zzmx/jpgj.vue
@@ -594,27 +594,18 @@
    },
    async partDialogChange(val) {
      const { data: res } = await PartSelectRpute({ partcode: val })
      console.log(this.routeDialogArr = res, 888)
      this.routeDialogArr = res
      this.stepDialogArr = []
      this.eqpDialogArr = []
    },
    async routeDialogChange(val) {
      const { data: res } = await RouteSelectStep({ routecode: val })
      this.stepDialogArr = res
      // this.stepDialogArr = [
      //   { code: '1001', name: '测试工序1' },
      //   { code: '1002', name: '测试工序2' },
      //   { code: '1003', name: '测试工序3' },
      //   { code: '1004', name: '测试工序4' },
      //   { code: '1005', name: '测试工序5' },
      //   { code: '1006', name: '测试工序6' },
      //   { code: '1007', name: '测试工序7' },
      //   { code: '1008', name: '测试工序8' },
      //   { code: '1009', name: '测试工序9' }
      // ]
      this.eqpDialogArr = []
    },
    radioChange(val) {
      this.isEqpTableEdit = true
      // this.dialogForm.stepcode = this.stepDialogArr.find(item => item.name === val).code
      this.getEqpTable(val)
    },
@@ -662,7 +653,7 @@
        cavity_qty: row.cavity_qty, // 型腔数
        unprice: row.unprice//  计件单价
      }
      console.log(data, 7)
      // row.isVisible = 0
      const res = await SaveBeatRate(data)
      if (res.code === '200') {
@@ -687,7 +678,6 @@
    },
    // 复制行
    async  copyRow(row) {
      console.log(row)
      let currentData = {}// 当前行对象
      let nextData = {}// 下一行对象
      if (row.RowNum === this.eqpDialogArr.length) {
@@ -700,8 +690,6 @@
          }
        })
      }
      console.log(currentData, 2)
      console.log(nextData, 3)
      const newData = {
        partcode: this.eqpTable.partcode, //  产品编码
        routecode: this.eqpTable.routecode, //  工艺路线编码
@@ -713,7 +701,7 @@
        cavity_qty: currentData.cavity_qty, // 型腔数
        unprice: currentData.unprice//  计件单价
      }
      console.log(newData, 4)
      const res = await SaveBeatRate(newData)
      if (res.code === '200') {
        this.$message.success('复制成功!')
@@ -746,7 +734,6 @@
    async  edit(operation, row) {
      this.operation = operation
      this.dialogVisible = true
      console.log(row)
      this.editPartName = row.partname
      this.editRouteName = row.route_name