|
|
@ -52,21 +52,22 @@ |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<Detail ref="detailRef" |
|
|
|
:isBasic="false" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
:apiCreate="tabsCreateApi" |
|
|
|
:apiDelete="tabsDeleteApi" |
|
|
|
:allSchemas="Workstation.allSchemas" |
|
|
|
:detailAllSchemas="detailAllSchemas" |
|
|
|
:searchTableSchema="tmpPopList" |
|
|
|
:detailAllSchemasRules="WorkstationRules" |
|
|
|
:apiPage="apiPage" |
|
|
|
:tabs="TabsList" |
|
|
|
@changeTabs="changeTabs" |
|
|
|
:detailButtonIsShowAdd="true" |
|
|
|
:detailButtonIsShowDelete="true" |
|
|
|
:detailButtonIsShowEdit="false" |
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
|
:isBasic="false" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
:apiCreate="tabsCreateApi" |
|
|
|
:apiDelete="tabsDeleteApi" |
|
|
|
:allSchemas="Workstation.allSchemas" |
|
|
|
:detailAllSchemas="detailAllSchemas" |
|
|
|
:searchTableSchema="tmpPopList" |
|
|
|
:detailAllSchemasRules="WorkstationRules" |
|
|
|
:apiPage="apiPage" |
|
|
|
:tabs="TabsList" |
|
|
|
@changeTabs="changeTabs" |
|
|
|
:detailButtonIsShowAdd="true" |
|
|
|
:detailButtonIsShowDelete="true" |
|
|
|
:detailButtonIsShowEdit="false" |
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
|
@searchTableSuccessDetail="searchTableSuccess" |
|
|
|
/> |
|
|
|
<BasicForm |
|
|
|
ref="tmpPopListRef" |
|
|
@ -78,19 +79,19 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import { |
|
|
|
Equipment, |
|
|
|
equipmentPopList, |
|
|
|
Opersteps, |
|
|
|
stepPopList, |
|
|
|
TabsList, |
|
|
|
Workstation, |
|
|
|
WorkstationRules,equipmentPopList,stepPopList |
|
|
|
WorkstationRules |
|
|
|
} from './workstation.data' |
|
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
|
import {goalParams} from '@/api/mes/workstation' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
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' |
|
|
|
|
|
|
|
defineOptions({ name: 'Workstation' }) |
|
|
|
let tabsDeleteApi = WorkstationApi.deleteEquipmentRelation |
|
|
|
let tabsCreateApi = WorkstationApi.createEquipmentRelation |
|
|
@ -103,10 +104,18 @@ const tableColumns = ref(Workstation.allSchemas.tableColumns) |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
formRef.setValues(setV) |
|
|
|
console.log(formField) |
|
|
|
console.log(searchField) |
|
|
|
console.log(val) |
|
|
|
console.log(formRef) |
|
|
|
nextTick(async () => { |
|
|
|
debugger |
|
|
|
if (formRef) { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
formRef.setValues(setV) |
|
|
|
} else { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|