loulijun2021
2023-01-05 23695c99c212e97ac901504a01d8985ea4081296
src/views/zzmx/jpgj.vue
@@ -124,14 +124,14 @@
          />
          <el-table-column
            prop="partcode"
            min-width="160"
            min-width="120"
            label="产品编码"
            sortable="custom"
          />
          <el-table-column
            prop="partname"
            label="产品名称"
            min-width="160"
            min-width="200"
            sortable="custom"
          />
          <el-table-column
@@ -304,11 +304,13 @@
        <div>
          <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />工序集合
        </div>
        <div style="display: flex;background-color: #F2F6FC;padding:20px 0  20px 20px; min-height: 100px">
        <div style="display: flex;background-color: #F2F6FC;padding:10px; min-height: 100px">
          <el-radio-group v-model="dialogForm.stepcode" @change="radioChange">
            <el-radio
              v-for="item in stepDialogArr"
              v-for="(item,index) in stepDialogArr"
              :key="item.code"
              :style="{marginLeft:index%7===0?0:'10px',marginBottom:'10px'}"
              :label="item.name"
              border
            />
@@ -431,10 +433,10 @@
          >
            <template slot-scope="{row}">
              <div class="operationClass">
                <el-button v-show="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button>
                <el-button v-show="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button>
                <el-button v-show="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button>
                <el-button v-show="row.isVisible===0" type="text" @click="copyRow(row)">复制</el-button>
                <el-button v-if="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button>
                <el-button v-if="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button>
                <el-button v-if="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button>
                <el-button v-if="row.isVisible===0" type="text" @click="copyRow(row)">复制</el-button>
              </div>
            </template>
          </el-table-column>
@@ -533,6 +535,7 @@
        partcode: '',
        routecode: '',
        stepcode: '',
        steptype: '',
        page: 1,
        rows: 10,
        prop: 'eqpcode',
@@ -669,11 +672,13 @@
    },
    async getEqpTable(val) {
      if (typeof val === 'string') {
        this.eqpTable.steptype = this.stepDialogArr.find(item => item.name === val).flag
        this.eqpTable.partcode = this.dialogForm.partcode
        this.eqpTable.routecode = this.dialogForm.routecode
        this.eqpTable.stepcode = this.stepDialogArr.find(item => item.name === val).code
        // } else if (typeof val === 'number') {
      } else {
        this.eqpTable.steptype = this.stepDialogArr[0].flag
        this.eqpTable.partcode = this.dialogForm.partcode
        this.eqpTable.routecode = this.dialogForm.routecode
        this.eqpTable.stepcode = this.stepDialogArr[0].code
@@ -714,6 +719,8 @@
    // 取消行
    cancelRow(row) {
      this.getEqpTable()
      this.radioChange(this.radioChangeTempValue)
      this.dialogForm.stepcode = this.radioChangeTempValue
      this.isEqpTableEdit = true
    },
    // 编辑行