gaoluyang
2025-11-28 1ab015896fcf64ba99c5271837169a342109adae
src/views/inventoryManagement/receiptManagement/index.vue
@@ -164,6 +164,7 @@
import { ref, reactive, toRefs, onMounted, getCurrentInstance, nextTick } from 'vue'
import { ElMessageBox } from "element-plus";
import useUserStore from '@/store/modules/user'
import dayjs from 'dayjs'
import {
   getStockInPage,
   getStockInPageByProduction,
@@ -173,6 +174,11 @@
} from "@/api/inventoryManagement/stockIn.js";
import FormDia from './components/formDia.vue'
import FormDiaManual from './components/formDiaManual.vue'
// 获取当前日期
function getCurrentDate() {
  return dayjs().format('YYYY-MM-DD')
}
const userStore = useUserStore()
const { proxy } = getCurrentInstance()
@@ -194,7 +200,7 @@
  searchForm: {
    supplierName: '',
    customerName: '',
    timeStr: '',
    timeStr: getCurrentDate(),
  },
})
const { searchForm } = toRefs(data)