gaoluyang
6 天以前 6b35989783d91899169f89e21a7d3734d8cadc1d
src/views/basicData/supplierManage/index.vue
@@ -42,6 +42,7 @@
      v-model="dialogFormVisible"
      :title="operationType === 'add' ? '新增供应商信息' : '编辑供应商信息'"
      width="70%"
         draggable
      @close="closeDia"
    >
      <el-form
@@ -183,6 +184,7 @@
      v-model="upload.open"
      width="400px"
      append-to-body
         draggable
    >
      <el-upload
        ref="uploadRef"
@@ -236,6 +238,7 @@
} from "@/api/basicData/supplierManageFile.js";
import useUserStore from "@/store/modules/user";
import { getToken } from "@/utils/auth.js";
import { getCurrentDate } from "@/utils/index.js";
const { proxy } = getCurrentInstance();
const userStore = useUserStore();
@@ -521,14 +524,6 @@
    });
};
// 获取当前日期并格式化为 YYYY-MM-DD
function getCurrentDate() {
  const today = new Date();
  const year = today.getFullYear();
  const month = String(today.getMonth() + 1).padStart(2, "0"); // 月份从0开始
  const day = String(today.getDate()).padStart(2, "0");
  return `${year}-${month}-${day}`;
}
onMounted(() => {
  getList();