zhangwencui
2026-04-24 10d40e15d8d39201469f61100933f36a48b68d6d
src/views/inventoryManagement/stockManagement/New.vue
@@ -99,7 +99,7 @@
</template>
<script setup>
import {ref, computed, getCurrentInstance} from "vue";
import {ref, computed, watch, getCurrentInstance} from "vue";
import ProductSelectDialog from "@/views/basicData/product/ProductSelectDialog.vue";
import {createStockInventory} from "@/api/inventoryManagement/stockInventory.js";
import {createStockUnInventory} from "@/api/inventoryManagement/stockUninventory.js";
@@ -127,7 +127,7 @@
  unit: "",
  type: undefined,
  qualitity: 0,
  batchNo: "",
  batchNo: null,
  warnNum: 0,
  remark: '',
});
@@ -143,6 +143,13 @@
const showProductSelectDialog = ref(false);
// 批号为空时转为 null
watch(() => formState.value.batchNo, (val) => {
  if (val === '') {
    formState.value.batchNo = null;
  }
});
let { proxy } = getCurrentInstance()
const closeModal = () => {
@@ -155,7 +162,7 @@
    unit: "",
    type: undefined,
    qualitity: 0,
    batchNo: "",
    batchNo: null,
    warnNum: 0,
    remark: '',
  };