|
@ -67,6 +67,7 @@ |
|
|
:detailButtonIsShowDelete="true" |
|
|
:detailButtonIsShowDelete="true" |
|
|
:detailButtonIsShowEdit="false" |
|
|
:detailButtonIsShowEdit="false" |
|
|
@detailOpenForm="detailOpenForm" |
|
|
@detailOpenForm="detailOpenForm" |
|
|
|
|
|
@searchTableSuccessDetail="searchTableSuccess" |
|
|
/> |
|
|
/> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="tmpPopListRef" |
|
|
ref="tmpPopListRef" |
|
@ -78,19 +79,19 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import { |
|
|
import { |
|
|
Equipment, |
|
|
Equipment, |
|
|
|
|
|
equipmentPopList, |
|
|
Opersteps, |
|
|
Opersteps, |
|
|
|
|
|
stepPopList, |
|
|
TabsList, |
|
|
TabsList, |
|
|
Workstation, |
|
|
Workstation, |
|
|
WorkstationRules,equipmentPopList,stepPopList |
|
|
WorkstationRules |
|
|
} from './workstation.data' |
|
|
} from './workstation.data' |
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
|
|
|
import {goalParams} from '@/api/mes/workstation' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
|
|
import { |
|
|
|
|
|
goalParams, |
|
|
|
|
|
} from "@/api/mes/workstation"; |
|
|
|
|
|
import Detail from './components/Detail.vue' |
|
|
import Detail from './components/Detail.vue' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'Workstation' }) |
|
|
defineOptions({ name: 'Workstation' }) |
|
|
let tabsDeleteApi = WorkstationApi.deleteEquipmentRelation |
|
|
let tabsDeleteApi = WorkstationApi.deleteEquipmentRelation |
|
|
let tabsCreateApi = WorkstationApi.createEquipmentRelation |
|
|
let tabsCreateApi = WorkstationApi.createEquipmentRelation |
|
@ -103,10 +104,18 @@ const tableColumns = ref(Workstation.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
nextTick(() => { |
|
|
console.log(formField) |
|
|
|
|
|
console.log(searchField) |
|
|
|
|
|
console.log(val) |
|
|
|
|
|
console.log(formRef) |
|
|
|
|
|
nextTick(async () => { |
|
|
|
|
|
debugger |
|
|
|
|
|
if (formRef) { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
|
|
|
} else { |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|