| | |
| | | v-model="form.workshop" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @change="getWhkspIsEqpSearch" |
| | | > |
| | | <el-option |
| | | v-for="item in workshopArr" |
| | |
| | | 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> |
| | |
| | | } from '@/api/scgl' |
| | | import { DeviceTypeSelect, WorkShopSelect } from '@/api/sbgl' |
| | | import { handleDatetime3 } from '@/utils/global' |
| | | import { WhkspIsEqpSearch } from '@/api/jcsz' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | this.getCapacityPlanningSearch().then(res => { |
| | | if (res.code === '200') { |
| | | this.getWorkShopSelect() |
| | | this.getDeviceTypeSelect() |
| | | // this.getDeviceTypeSelect() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | 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) { |