|
@ -67,45 +67,8 @@ |
|
|
/> |
|
|
/> |
|
|
<!-- 记录子包装弹窗 --> |
|
|
<!-- 记录子包装弹窗 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="teamListRef" |
|
|
ref="popCheckListRef" |
|
|
@success="getList" |
|
|
:tableAllSchemas="popCheckList.allSchemas" |
|
|
: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" |
|
|
|
|
|
/> |
|
|
/> |
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportForm ref="importFormRef" url="/mes/workstation/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
<ImportForm ref="importFormRef" url="/mes/workstation/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
@ -120,7 +83,7 @@ import { |
|
|
TabsList, |
|
|
TabsList, |
|
|
Team, |
|
|
Team, |
|
|
Workstation, |
|
|
Workstation, |
|
|
WorkstationRules |
|
|
WorkstationRules, popCheckList |
|
|
} from './workstation.data' |
|
|
} from './workstation.data' |
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
import * as WorkstationApi from '@/api/mes/workstation' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
@ -328,54 +291,8 @@ const changeTabs = (data) =>{ |
|
|
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation |
|
|
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const teamListRef = ref() |
|
|
const popCheckListRef = 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 detailOpenForm = async (type, params) => { |
|
|
const detailOpenForm = async (type, params) => { |
|
|
if (tableKey.value == 'Team') { |
|
|
popCheckListRef.value.open('create', params.code, null, 'viewDetail') |
|
|
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')//查看明细数据 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|