|
@ -60,18 +60,19 @@ |
|
|
:tabs="TabsList" |
|
|
:tabs="TabsList" |
|
|
:apiDelete=tabsDeleteApi |
|
|
:apiDelete=tabsDeleteApi |
|
|
@changeTabs="changeTabs" |
|
|
@changeTabs="changeTabs" |
|
|
@tableFormButton="tableFormButton" |
|
|
|
|
|
:detailButtonIsShowAdd="true" |
|
|
:detailButtonIsShowAdd="true" |
|
|
:detailButtonIsShowDelete="true" |
|
|
:detailButtonIsShowDelete="true" |
|
|
:detailButtonIsShowEdit="false" |
|
|
:detailButtonIsShowEdit="false" |
|
|
|
|
|
@detailOpenForm="detailOpenForm" |
|
|
/> |
|
|
/> |
|
|
<!-- 记录子包装弹窗 --> |
|
|
<!-- 记录子包装弹窗 --> |
|
|
<BasicForm |
|
|
<BasicForm |
|
|
ref="teamListRef" |
|
|
ref="teamListRef" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:tableAllSchemas="Team.allSchemas" |
|
|
:tableAllSchemas="Team.allSchemas" |
|
|
:tableData="selectTeamListTableData.tableList" |
|
|
:tableData="WorkstationApi.checkTeamPageList" |
|
|
:isBusiness="true" |
|
|
:isBusiness="true" |
|
|
|
|
|
:isOpenSearchTable="true" |
|
|
:isShowButton="false" |
|
|
:isShowButton="false" |
|
|
:isShowReduceButton="false" |
|
|
:isShowReduceButton="false" |
|
|
:isShowFooterButtton="false" |
|
|
:isShowFooterButtton="false" |
|
@ -305,7 +306,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
// 子包装数据 |
|
|
// 子包装数据 |
|
|
const detailAllSchemas = ref(Team.allSchemas) |
|
|
const detailAllSchemas = ref(Team.allSchemas) |
|
|
const apiPage = ref(WorkstationApi.getTeamPage) |
|
|
const apiPage = ref(WorkstationApi.getTeamPage) |
|
|
const tableKey = ref("workstationDetail"); |
|
|
const tableKey = ref("Team"); |
|
|
// tabs 切换事件 |
|
|
// tabs 切换事件 |
|
|
const changeTabs = (data) =>{ |
|
|
const changeTabs = (data) =>{ |
|
|
tableKey.value = data.prop |
|
|
tableKey.value = data.prop |
|
@ -327,16 +328,6 @@ const changeTabs = (data) =>{ |
|
|
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation |
|
|
tabsDeleteApi = WorkstationApi.deleteOperstepsRelation |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// const buttondataTable = ref([{ |
|
|
|
|
|
// label: '取消关联', |
|
|
|
|
|
// name: 'viewParentPickingNumber', |
|
|
|
|
|
// hide: false, |
|
|
|
|
|
// type: 'primary', |
|
|
|
|
|
// icon: '', |
|
|
|
|
|
// color: '', |
|
|
|
|
|
// hasPermi: '', |
|
|
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
|
|
// }]) |
|
|
|
|
|
const teamListRef = ref() |
|
|
const teamListRef = ref() |
|
|
const { tableObject: selectTeamListTableData, tableMethods: selectTeamListTableMethods } = useTable({ |
|
|
const { tableObject: selectTeamListTableData, tableMethods: selectTeamListTableMethods } = useTable({ |
|
|
getListApi: WorkstationApi.checkTeamPageList |
|
|
getListApi: WorkstationApi.checkTeamPageList |
|
@ -360,32 +351,31 @@ const { tableObject: selectOperstepsListTableData, tableMethods: OperstepsListTa |
|
|
getListApi: WorkstationApi.checkOperstepsPageList |
|
|
getListApi: WorkstationApi.checkOperstepsPageList |
|
|
}) |
|
|
}) |
|
|
const { getList:selectOperstepsList } = OperstepsListTableMethods |
|
|
const { getList:selectOperstepsList } = OperstepsListTableMethods |
|
|
|
|
|
const detailOpenForm = async (type, params) => { |
|
|
const tableFormButton = async (val , row) => { |
|
|
if (tableKey.value == 'Team') { |
|
|
if(val == 'Team'){ |
|
|
|
|
|
selectTeamListTableData.params = { |
|
|
selectTeamListTableData.params = { |
|
|
workstationCode:row.workstationCode |
|
|
workstationCode: params.code |
|
|
} |
|
|
} |
|
|
await selectTeamList() |
|
|
await selectTeamList() |
|
|
teamListRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
teamListRef.value.open('viewDetail', params, null, 'viewDetail')//查看明细数据 |
|
|
}else if(val == 'Equipment'){ |
|
|
} else if (tableKey.value == 'Equipment') { |
|
|
selectEquipmentListTableData.params = { |
|
|
selectEquipmentListTableData.params = { |
|
|
workstationCode:row.workstationCode |
|
|
workstationCode: params.code |
|
|
} |
|
|
} |
|
|
await selectEquipmentList() |
|
|
await selectEquipmentList() |
|
|
equipmentListRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
equipmentListRef.value.open('viewDetail', params.code, null, 'viewDetail')//查看明细数据 |
|
|
}else if(val == 'Process'){ |
|
|
} else if (tableKey.value == 'Process') { |
|
|
selectProcessListTableData.params = { |
|
|
selectProcessListTableData.params = { |
|
|
workstationCode:row.workstationCode |
|
|
workstationCode: params.code |
|
|
} |
|
|
} |
|
|
await selectProcessListList() |
|
|
await selectProcessListList() |
|
|
processListRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
processListRef.value.open('viewDetail', params.code, null, 'viewDetail')//查看明细数据 |
|
|
}else if(val == 'Production'){ |
|
|
} else if (tableKey.value == 'Production') { |
|
|
selectOperstepsListTableData.params = { |
|
|
selectOperstepsListTableData.params = { |
|
|
workstationCode:row.workstationCode |
|
|
workstationCode: params.code |
|
|
} |
|
|
} |
|
|
await selectOperstepsList() |
|
|
await selectOperstepsList() |
|
|
operstepsListRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
operstepsListRef.value.open('viewDetail', params.code, null, 'viewDetail')//查看明细数据 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|