| | |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in wkshopSelectArr" |
| | | :key="item.org_code" |
| | | :label="item.org_name" |
| | | :value="item.org_code" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import { getCookie } from '@/utils/auth' |
| | | import ImportPicker from '@/components/ImportPicker' |
| | | import { handleDatetime, validateCode } from '@/utils/global' |
| | | import { DeviceCheckSubTakeSearch, DeviceCheckTakeOutExcel, DeviceCheckTakeSearch } from '@/api/deviceManager' |
| | | import { ShopSearch } from '@/api/kanbanManager' |
| | | import { |
| | | DeviceCheckSubTakeSearch, |
| | | DeviceCheckTakeOutExcel, |
| | | DeviceCheckTakeSearch, |
| | | WorkShopSelect |
| | | } from '@/api/deviceManager' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import TableColumnSettings from '@/components/TableColumnSettings' |
| | |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | wkshopcode: '', // 车间编码 |
| | | wkshopcode: this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode'), // 所属车间 |
| | | eqpcode: '', // 设备编码 |
| | | eqpname: '', // 设备名称 |
| | | stanedname: '', // 标准名称 |
| | |
| | | }, |
| | | // 获取执行车间下拉数组 |
| | | async getShopSearch() { |
| | | const { data: res } = await ShopSearch() |
| | | const { data: res } = await WorkShopSelect() |
| | | this.wkshopSelectArr = res |
| | | }, |
| | | // 排序改变时 |
| | |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | | this.form.wkshopcode = '' |
| | | this.form.wkshopcode = this.$store.state.settings.orgType !== 'W' ? '' : getCookie('stu_torgcode') // 所属车间 |
| | | this.form.eqpcode = '' |
| | | this.form.eqpname = '' |
| | | this.form.stanedname = '' |