loulijun2021
2023-03-16 3d8364629179424c6c1d1496dba01144cb5bfc56
src/views/zzmx/jpgj.vue
@@ -132,6 +132,7 @@
            prop="partname"
            label="产品名称"
            min-width="200"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
@@ -262,7 +263,7 @@
              <el-option
                v-for="item in partArr2"
                :key="item.partcode"
                :label="item.partname"
                :label="item.partname + ' / '+ item.partcode"
                :value="item.partcode"
              />
            </el-select>
@@ -618,17 +619,20 @@
      this.form.routecode = ''
      this.form.stepcode = ''
      this.form.eqpcode = ''
      this.search()
    },
    async routeChange(val) {
      const { data: res } = await RouteSelectStep({ routecode: val })
      this.stepArr = res
      this.form.stepcode = ''
      this.form.eqpcode = ''
      this.search()
    },
    async stepChange(val) {
      const { data: res } = await StepSelectEqp({ stepcode: val })
      this.eqpArr = res
      this.form.eqpcode = ''
      this.search()
    },
    // 重置
    reset() {
@@ -696,6 +700,9 @@
    },
    // 保存行
    async saveRow(row) {
      if (parseFloat(row.unprice) <= 0 && this.eqpTable.steptype !== 'W') {
        return this.$message.info('计件单价必须大于零!')
      }
      const data = {
        partcode: this.eqpTable.partcode, //  产品编码
        routecode: this.eqpTable.routecode, //  工艺路线编码