loulijun2021
2022-11-05 c4b49d08cef0805e17646eef03e1c1a62316c3b2
src/views/scgl/cngh.vue
@@ -19,6 +19,7 @@
                v-model="form.workshop"
                style="width: 200px"
                placeholder="请选择"
                @change="getWhkspIsEqpSearch"
              >
                <el-option
                  v-for="item in workshopArr"
@@ -33,12 +34,13 @@
                v-model="form.devicetype"
                style="width: 200px"
                placeholder="请选择"
                :disabled="form.workshop===''"
              >
                <el-option
                  v-for="item in devicetypeArr"
                  :key="item.code"
                  :label="item.name"
                  :value="item.code"
                  :key="item.eqp_code"
                  :label="item.eqp_name"
                  :value="item.eqp_code"
                />
              </el-select>
            </el-form-item>
@@ -602,6 +604,7 @@
} from '@/api/scgl'
import { DeviceTypeSelect, WorkShopSelect } from '@/api/sbgl'
import { handleDatetime3 } from '@/utils/global'
import { WhkspIsEqpSearch } from '@/api/jcsz'
export default {
  name: 'Zzjg',
@@ -824,7 +827,7 @@
      this.getCapacityPlanningSearch().then(res => {
        if (res.code === '200') {
          this.getWorkShopSelect()
          this.getDeviceTypeSelect()
          // this.getDeviceTypeSelect()
        }
      })
    },
@@ -842,8 +845,13 @@
      const { data: res } = await WorkShopSelect()
      this.workshopArr = res
    },
    async getDeviceTypeSelect() {
      const { data: res } = await DeviceTypeSelect()
    // async getDeviceTypeSelect() {
    //   const { data: res } = await DeviceTypeSelect()
    //   this.devicetypeArr = res
    // },
    async  getWhkspIsEqpSearch(val) {
      this.form.devicetype = ''
      const { data: res } = await WhkspIsEqpSearch({ wkshpcode: val })
      this.devicetypeArr = res
    },
    mrfaSearch(row, operation) {