From 5c30f301d6d4a5b8fc1183e06aaea8dc366d3540 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期五, 29 五月 2026 17:56:25 +0800
Subject: [PATCH] feat: 调整

---
 src/views/basicData/supplierManage/components/HomeTab.vue |   38 +++++++++++++-------------------------
 1 files changed, 13 insertions(+), 25 deletions(-)

diff --git a/src/views/basicData/supplierManage/components/HomeTab.vue b/src/views/basicData/supplierManage/components/HomeTab.vue
index b2debcb..ec5af2e 100644
--- a/src/views/basicData/supplierManage/components/HomeTab.vue
+++ b/src/views/basicData/supplierManage/components/HomeTab.vue
@@ -153,21 +153,6 @@
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item label="缁存姢鏃堕棿锛�" prop="maintainTime">
-              <el-date-picker
-                  style="width: 100%"
-                  v-model="form.maintainTime"
-                  value-format="YYYY-MM-DD"
-                  format="YYYY-MM-DD"
-                  type="date"
-                  placeholder="璇烽�夋嫨"
-                  clearable
-              />
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
             <el-form-item label="鏄惁鐧藉悕鍗曪細" prop="isWhite">
               <el-select v-model="form.isWhite" placeholder="璇烽�夋嫨" clearable>
                 <el-option label="鏄�" :value="0" />
@@ -246,7 +231,6 @@
 import useUserStore from "@/store/modules/user";
 import { getToken } from "@/utils/auth.js";
 import FilesDia from "../filesDia.vue";
-import { getCurrentDate } from "@/utils/index.js";
 const { proxy } = getCurrentInstance();
 const userStore = useUserStore();
 
@@ -293,12 +277,6 @@
   {
     label: "缁存姢浜�",
     prop: "maintainUserName",
-  },
-
-  {
-    label: "缁存姢鏃堕棿",
-    prop: "maintainTime",
-    width:100
   },
   {
     dataType: "action",
@@ -352,7 +330,6 @@
     contactUserName: "",
     contactUserPhone: "",
     maintainUserId: "",
-    maintainTime: "",
     isWhite: "",
   },
   rules: {
@@ -367,7 +344,6 @@
     contactUserName: [{ required: false, message: "璇疯緭鍏�", trigger: "blur" }],
     contactUserPhone: [{ required: false, message: "璇疯緭鍏�", trigger: "blur" }],
     maintainUserId: [{ required: false, message: "璇烽�夋嫨", trigger: "change" }],
-    maintainTime: [{ required: false, message: "璇烽�夋嫨", trigger: "change" }],
   },
 });
 const { searchForm, form, rules } = toRefs(data);
@@ -506,7 +482,7 @@
     type: "warning",
   })
       .then(() => {
-        proxy.download("/system/supplier/export", {}, "渚涘簲鍟嗘。妗�.xlsx");
+        proxy.download("/system/supplier/export", { isWhite: 0 }, "渚涘簲鍟嗘。妗�.xlsx");
       })
       .catch(() => {
         proxy.$modal.msg("宸插彇娑�");
@@ -548,6 +524,14 @@
       });
 };
 
+// 鑾峰彇褰撳墠鏃ユ湡骞舵牸寮忓寲涓� 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}`;
+}
 // 鎵撳紑闄勪欢寮规
 const openFilesFormDia = (row) => {
   nextTick(() => {
@@ -558,5 +542,9 @@
 onMounted(() => {
   getList();
 });
+
+defineExpose({
+  getList,
+});
 </script>
 

--
Gitblit v1.9.3