|
|
@ -67,45 +67,8 @@ |
|
|
|
/> |
|
|
|
<!-- 记录子包装弹窗 --> |
|
|
|
<BasicForm |
|
|
|
ref="teamListRef" |
|
|
|
@success="getList" |
|
|
|
:tableAllSchemas="Team.allSchemas" |
|
|
|
:tableData="WorkstationApi.checkTeamPageList" |
|
|
|
:isBusiness="true" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowFooterButtton="false" |
|
|
|
/> |
|
|
|
<BasicForm |
|
|
|
ref="equipmentListRef" |
|
|
|
@success="getList" |
|
|
|
:tableAllSchemas="Equipment.allSchemas" |
|
|
|
:tableData="selectEquipmentListTableData.tableList" |
|
|
|
:isBusiness="true" |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowFooterButtton="false" |
|
|
|
/> |
|
|
|
<BasicForm |
|
|
|
ref="processListRef" |
|
|
|
@success="getList" |
|
|
|
:tableAllSchemas="Process.allSchemas" |
|
|
|
:tableData="selectProcessListTableData.tableList" |
|
|
|
:isBusiness="true" |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowFooterButtton="false" |
|
|
|
/> |
|
|
|
<BasicForm |
|
|
|
ref="operstepsListRef" |
|
|
|
@success="getList" |
|
|
|
:tableAllSchemas="Opersteps.allSchemas" |
|
|
|
:tableData="selectOperstepsListTableData.tableList" |
|
|
|
:isBusiness="true" |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowFooterButtton="false" |
|
|
|
ref="popCheckListRef" |
|
|
|
:tableAllSchemas="popCheckList.allSchemas" |
|
|
|
/> |
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/mes/workstation/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
@ -120,7 +83,7 @@ import { |
|
|
|
TabsList, |
|
|
|
Team, |
|
|
|
Workstation, |
|
|
|
WorkstationRules |
|
|
|
WorkstationRules, popCheckList |
|
|
|
} from './workstation.data' |
|
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
@ -328,54 +291,8 @@ const changeTabs = (data) =>{ |
|
|
|
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation |
|
|
|
} |
|
|
|
} |
|
|
|
const teamListRef = ref() |
|
|
|
const { tableObject: selectTeamListTableData, tableMethods: selectTeamListTableMethods } = useTable({ |
|
|
|
getListApi: WorkstationApi.checkTeamPageList |
|
|
|
}) |
|
|
|
const { getList:selectTeamList } = selectTeamListTableMethods |
|
|
|
|
|
|
|
const equipmentListRef = ref() |
|
|
|
const { tableObject: selectEquipmentListTableData, tableMethods: selectEquipmentListTableMethods } = useTable({ |
|
|
|
getListApi: WorkstationApi.checkEquipmentPageList |
|
|
|
}) |
|
|
|
const { getList:selectEquipmentList } = selectEquipmentListTableMethods |
|
|
|
|
|
|
|
const processListRef = ref() |
|
|
|
const { tableObject: selectProcessListTableData, tableMethods: processListTableMethods } = useTable({ |
|
|
|
getListApi: WorkstationApi.checkProcessPageList |
|
|
|
}) |
|
|
|
const { getList:selectProcessListList } = processListTableMethods |
|
|
|
|
|
|
|
const operstepsListRef = ref() |
|
|
|
const { tableObject: selectOperstepsListTableData, tableMethods: OperstepsListTableMethods } = useTable({ |
|
|
|
getListApi: WorkstationApi.checkOperstepsPageList |
|
|
|
}) |
|
|
|
const { getList:selectOperstepsList } = OperstepsListTableMethods |
|
|
|
const popCheckListRef = ref() |
|
|
|
const detailOpenForm = async (type, params) => { |
|
|
|
if (tableKey.value == 'Team') { |
|
|
|
selectTeamListTableData.params = { |
|
|
|
workstationCode: params.code |
|
|
|
} |
|
|
|
await selectTeamList() |
|
|
|
teamListRef.value.open('viewDetail', params, null, 'viewDetail')//查看明细数据 |
|
|
|
} else if (tableKey.value == 'Equipment') { |
|
|
|
selectEquipmentListTableData.params = { |
|
|
|
workstationCode: params.code |
|
|
|
} |
|
|
|
await selectEquipmentList() |
|
|
|
equipmentListRef.value.open('viewDetail', params.code, null, 'viewDetail')//查看明细数据 |
|
|
|
} else if (tableKey.value == 'Process') { |
|
|
|
selectProcessListTableData.params = { |
|
|
|
workstationCode: params.code |
|
|
|
} |
|
|
|
await selectProcessListList() |
|
|
|
processListRef.value.open('viewDetail', params.code, null, 'viewDetail')//查看明细数据 |
|
|
|
} else if (tableKey.value == 'Production') { |
|
|
|
selectOperstepsListTableData.params = { |
|
|
|
workstationCode: params.code |
|
|
|
} |
|
|
|
await selectOperstepsList() |
|
|
|
operstepsListRef.value.open('viewDetail', params.code, null, 'viewDetail')//查看明细数据 |
|
|
|
} |
|
|
|
popCheckListRef.value.open('create', params.code, null, 'viewDetail') |
|
|
|
} |
|
|
|
</script> |
|
|
|