作业编码初始化 bug 修复

This commit is contained in:
tao
2026-01-13 17:00:10 +08:00
parent 7e32e9931d
commit 1728ed1b3a
2 changed files with 3 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ export const useTraceOrderStore = defineStore("traceOrder", () => {
async function selectStation(stationId: string) {
currentStationId.value = stationId;
stationInfo.value = stationList.value.find((s: any) => s.id === stationId) ?? {};
currentStationCode.value = stationInfo.value.code;
}
async function refreshAll() {

View File

@@ -33,10 +33,12 @@ const columns = [
const handleInfeed = (record: any) => {
router.push({ name: 'Infeed' });
traceOrderStore.selectStation(record.id);
};
const handleOutfeed = (record: any) => {
router.push({ name: 'Outfeed' });
traceOrderStore.selectStation(record.id);
};
function rowClick(record: TableItem) {