配置出站后路由跳转

This commit is contained in:
tao
2026-01-09 10:11:27 +08:00
parent cd6a96442c
commit 44878e2979

View File

@@ -52,6 +52,7 @@ const handleOutfeed = async () => {
await completeStation(jobStore.jobInfo.id, storage); await completeStation(jobStore.jobInfo.id, storage);
openSelectLocation.value = false; openSelectLocation.value = false;
message.success('出站成功'); message.success('出站成功');
router.push({ name: 'PwoManage' });
} catch (error: any) { } catch (error: any) {
message.error(error.message || '出站失败'); message.error(error.message || '出站失败');
} finally { } finally {
@@ -97,7 +98,7 @@ fetchLocationList();
</a-col> </a-col>
</a-row> </a-row>
<a-modal title="选择出站库位" :open="openSelectLocation" @ok="handleOutfeed" @cancel="openSelectLocation = false"> <a-modal title="选择出站库位" :open="openSelectLocation" @ok="handleOutfeed" >
<a-select style="width: 100%" @change="handleChangeLocation" :options="locationOptions" :fieldNames="{ label: 'storageLocationCode', value: 'id' }" /> <a-select style="width: 100%" @change="handleChangeLocation" :options="locationOptions" :fieldNames="{ label: 'storageLocationCode', value: 'id' }" />
</a-modal> </a-modal>
</a-spin> </a-spin>