loulijun2021
2022-11-09 ed892500022adbfa8da4bcb5982079533b22a58a
src/views/zzmx/jpgj.vue
@@ -150,6 +150,7 @@
            prop="wksp_name"
            label="生产车间"
            min-width="110"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
@@ -163,12 +164,13 @@
            prop="stepname"
            label="加工工序"
            sortable="custom"
            min-width="110"
            min-width="90"
          />
          <el-table-column
            prop="eqp_name"
            label="加工设备"
            label="加工设备/供方"
            min-width="110"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
@@ -344,23 +346,25 @@
          />
          <el-table-column
            prop="eqpcode"
            label="设备编码"
            :label="eqpTable.steptype==='Z'?'设备编码':'外协供方编码'"
            sortable="custom"
            min-width="110"
          />
          <el-table-column
            prop="eqpname"
            label="设备名称"
            :label="eqpTable.steptype==='Z'?'设备名称':'外协供方名称'"
            min-width="110"
            sortable="custom"
          />
          <el-table-column
            v-if="eqpTable.steptype==='Z'"
            prop="wksp_name"
            sortable="custom"
            label="生产车间"
            min-width="110"
          />
          <el-table-column
            v-if="eqpTable.steptype==='Z'"
            sortable="custom"
            prop="eqp_value"
            label="设备节拍"
@@ -380,6 +384,7 @@
            </template>
          </el-table-column>
          <el-table-column
            v-if="eqpTable.steptype==='Z'"
            prop="stand_value"
            label="生产节拍"
            sortable="custom"
@@ -390,6 +395,7 @@
            </template>
          </el-table-column>
          <el-table-column
            v-if="eqpTable.steptype==='Z'"
            prop="cavity_qty"
            label="腔型数"
            sortable="custom"
@@ -533,10 +539,11 @@
        partcode: '',
        routecode: '',
        stepcode: '',
        steptype: '',
        page: 1,
        rows: 10,
        prop: 'eqpcode',
        order: 'desc'
        order: 'asc'
      },
      eqpTableLength: 0,
      isEqpTableEdit: true,
@@ -665,10 +672,15 @@
    },
    async getEqpTable(val) {
      if (typeof val === 'string') {
        console.log('执行1')
        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') {
        console.log('执行2')
        // console.log(this.stepDialogArr)
        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