pan
4 天以前 e4e304318532574e418bc01b5a45b8836dac3e1a
ÏîÄ¿´úÂë/WIDESEA_WMSClient/src/extension/inbound/extend/AllocateStockSelect.vue
@@ -126,7 +126,7 @@
<script>
import VolBox from "@/components/basic/VolBox.vue";
import { ElMessage } from "element-plus";
import { stationManager, STATION_STORAGE_KEY } from "@/../src/uitils/stationManager";
export default {
  components: { VolBox },
  data() {
@@ -161,6 +161,17 @@
      ],
    };
  },
        onMounted() {
      // ä»Žæœ¬åœ°å­˜å‚¨åŠ è½½ä¿å­˜çš„ç«™å°å€¼
      const savedStation = stationManager.getStation();
      console.log(savedStation);
      if (savedStation) {
        outboundForm.selectedPlatform = savedStation;
      } else if (stationOptions.length > 0) {
        // å¦‚果没有保存的值,使用第一个选项
        //stationValue.value = stationOptions[0].value;
      }
    },
  methods: {
    open(row) {
      this.row = row;
@@ -193,6 +204,11 @@
      }
      // é‡ç½®è¡¨å•避免残留值
      this.outboundForm.selectedPlatform = "";
         const savedStation = stationManager.getStation();
         console.log(savedStation);
      if (savedStation) {
        this.outboundForm.selectedPlatform = savedStation;
      }
      this.showOutboundDialog = true;
    },
@@ -209,7 +225,7 @@
        ? "api/Task/GenerateAllocatOutboundTask?orderDetailId="
        : "api/Task/GenerateAllocatOutboundTask?orderDetailId=";
      this.http
        .post(url + this.row.id, this.selection, "数据处理中")
        .post(url + this.row.id+"&station="+this.outboundForm.selectedPlatform, this.selection, "数据处理中")
        .then((x) => {
          if (!x.status) return this.$message.error(x.message);
          this.$message.success("操作成功");
@@ -227,7 +243,7 @@
      const url = "api/StockInfo/GetAllocateStockSelect?materielCode=";
      this.http
        .post(
          url + this.row.materielCode + "&orderId=" + this.row.orderId,
          url + this.row.materielCode + "&orderId=" + this.row.orderId + "&orderDetailId=" + this.row.id,
          null,
          "查询中"
        )