| | |
| | | import StockSelect from "./StockSelect.vue"; |
| | | import SelectedStock from "./SelectedStock.vue"; |
| | | import NoStockOut from "./NoStockOut.vue"; |
| | | import { stationManager, STATION_STORAGE_KEY } from "@/../src/uitils/stationManager"; |
| | | import { h, createVNode, render, reactive } from "vue"; |
| | | import { |
| | | ElDialog, |
| | |
| | | dictionaryList: null, |
| | | }; |
| | | }, |
| | | onMounted() { |
| | | // 仿¬å°åå¨å è½½ä¿åçç«å°å¼ |
| | | const savedStation = stationManager.getStation(); |
| | | console.log(savedStation); |
| | | if (savedStation) { |
| | | outboundForm.selectedPlatform = savedStation; |
| | | } else if (stationOptions.length > 0) { |
| | | // å¦ææ²¡æä¿åçå¼ï¼ä½¿ç¨ç¬¬ä¸ä¸ªé项 |
| | | //stationValue.value = stationOptions[0].value; |
| | | } |
| | | }, |
| | | methods: { |
| | | toggleAssignStockColumn() { |
| | | const assignStockColumn = this.tableColumns.find( |
| | |
| | | }); |
| | | }, |
| | | outbound() { |
| | | const savedStation = stationManager.getStation(); |
| | | console.log(savedStation); |
| | | if (this.selection.length === 0) { |
| | | return this.$message.error("è¯·éæ©åæ®æç»"); |
| | | } |
| | |
| | | selectedPlatform: platformOptions[0].value, |
| | | }); |
| | | |
| | | if (savedStation) { |
| | | formData.selectedPlatform = savedStation; |
| | | } |
| | | const vnode = createVNode( |
| | | ElDialog, |
| | | { |
| | |
| | | render(vnode, mountNode); |
| | | }, |
| | | outboundbatch() { |
| | | const savedStation = stationManager.getStation(); |
| | | console.log(savedStation); |
| | | if (this.selection.length === 0) { |
| | | return this.$message.error("è¯·éæ©åæ®æç»"); |
| | | } |
| | |
| | | selectedPlatform: platformOptions[0].value, |
| | | outboundDecimal: "", |
| | | }); |
| | | if (savedStation) { |
| | | formData.selectedPlatform = savedStation; |
| | | } |
| | | |
| | | const vnode = createVNode( |
| | | ElDialog, |
| | | { |