From 9df24dd94096b622e42230498e2f679f0c5dbb37 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 23 七月 2025 15:36:49 +0800
Subject: [PATCH] '个人中心修改企业资料'

---
 src/views/item/index.vue |   91 +++++++++++----------------------------------
 1 files changed, 23 insertions(+), 68 deletions(-)

diff --git a/src/views/item/index.vue b/src/views/item/index.vue
index fa46f25..c733f4c 100644
--- a/src/views/item/index.vue
+++ b/src/views/item/index.vue
@@ -2,15 +2,16 @@
 import { ref, reactive, onMounted } from "vue";
 import { ElMessageBox, ElMessage } from "element-plus";
 // import { downloadStreamFile } from "@/utils/download";
-import { useProcurementComplaintApi } from "/@/api/fb_p_complaints/procurementComplaint";
-import editDialog from "/@/views/fb_p_complaints/procurementComplaint/component/editDialog.vue";
-import printDialog from "/@/views/system/print/component/hiprint/preview.vue";
+// import { useProcurementComplaintApi } from "/@/api/fb_p_complaints/procurementComplaint";
+import { shouyeOrder } from "@/api/item/index";
+// import editDialog from "/@/views/fb_p_complaints/procurementComplaint/component/editDialog.vue";
+// import printDialog from "/@/views/system/print/component/hiprint/preview.vue";
 import ModifyRecord from "/@/components/table/modifyRecord.vue";
-import ImportData from "/@/components/table/importData.vue";
-import commonFunction from "@/utils/commonFunction";
+// import ImportData from "/@/components/table/importData.vue";
+// import commonFunction from "@/utils/commonFunction";
 
-const { dateFormatYMD } = commonFunction();
-const procurementComplaintApi = useProcurementComplaintApi();
+// const { dateFormatYMD } = commonFunction();
+// const procurementComplaintApi = useProcurementComplaintApi();
 const printDialogRef = ref();
 const editDialogRef = ref();
 const importDataRef = ref();
@@ -34,15 +35,19 @@
 });
 
 // 椤甸潰鍔犺浇鏃�
-onMounted(async () => {});
+onMounted(async () => {
+  handleQuery();
+});
 
 // 鏌ヨ鎿嶄綔
 const handleQuery = async (params: any = {}) => {
   state.tableLoading = true;
   state.tableParams = Object.assign(state.tableParams, params);
-  const result = await procurementComplaintApi
-    .page(Object.assign(state.tableQueryParams, state.tableParams))
-    .then(res => res.data.result);
+  const result = await shouyeOrder();
+  console.log(result);
+
+  // .page(Object.assign(state.tableQueryParams, state.tableParams))
+  // .then(res => res.data.result);
   state.tableParams.total = result?.total;
   state.tableData = result?.items ?? [];
   state.tableLoading = false;
@@ -91,46 +96,6 @@
     })
     .catch(() => {});
 };
-
-// 瀵煎嚭鏁版嵁
-const exportProcurementComplaintCommand = async (command: string) => {
-  try {
-    state.exportLoading = true;
-    if (command === "select") {
-      const params = Object.assign(
-        {},
-        state.tableQueryParams,
-        state.tableParams,
-        { selectKeyList: state.selectData.map(u => u.id) }
-      );
-      await procurementComplaintApi
-        .exportData(params)
-        .then(res => downloadStreamFile(res));
-    } else if (command === "current") {
-      const params = Object.assign(
-        {},
-        state.tableQueryParams,
-        state.tableParams
-      );
-      await procurementComplaintApi
-        .exportData(params)
-        .then(res => downloadStreamFile(res));
-    } else if (command === "all") {
-      const params = Object.assign(
-        {},
-        state.tableQueryParams,
-        state.tableParams,
-        { page: 1, pageSize: 99999999 }
-      );
-      await procurementComplaintApi
-        .exportData(params)
-        .then(res => downloadStreamFile(res));
-    }
-  } finally {
-    state.exportLoading = false;
-  }
-};
-
 handleQuery();
 </script>
 <template>
@@ -301,12 +266,7 @@
           <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10">
             <el-form-item>
               <el-button-group style="display: flex; align-items: center">
-                <el-button
-                  v-reclick="1000"
-                  type="primary"
-                  icon="ele-Search"
-                  @click="handleQuery"
-                >
+                <el-button type="primary" icon="Search" @click="handleQuery">
                   鏌ヨ
                 </el-button>
                 <el-button
@@ -315,14 +275,14 @@
                 >
                   閲嶇疆
                 </el-button>
-                <el-button
+                <!-- <el-button
                   v-if="!state.showAdvanceQueryUI"
                   icon="ele-ZoomIn"
                   style="margin-left: 5px"
                   @click="() => (state.showAdvanceQueryUI = true)"
                 >
                   楂樼骇鏌ヨ
-                </el-button>
+                </el-button> -->
                 <el-button
                   v-if="state.showAdvanceQueryUI"
                   icon="ele-ZoomOut"
@@ -334,7 +294,7 @@
                 <el-button
                   type="danger"
                   style="margin-left: 5px"
-                  icon="ele-Delete"
+                  icon="Delete"
                   :disabled="state.selectData.length == 0"
                   @click="batchDelProcurementComplaint"
                 >
@@ -351,7 +311,7 @@
                   鏂板
                 </el-button>
                 <!-- <el-dropdown :show-timeout="70" :hide-timeout="50" @command="exportProcurementComplaintCommand">
-                  <el-button type="primary" style="margin-left:5px;" icon="ele-FolderOpened" v-reclick="20000"
+                  <el-button type="primary" style="margin-left:5px;" icon="ele-FolderOpened" 
                     v-auth="'procurementComplaint:export'"> 瀵煎嚭 </el-button>
                   <template #dropdown>
                     <el-dropdown-menu>
@@ -396,7 +356,7 @@
           sortable
         >
           <template #default="{ row }">
-            <span>{{ dateFormatYMD(null, null, row.decisionDate) }}</span>
+            <span>{{ row.decisionDate }}</span>
           </template>
         </el-table-column>
         <el-table-column
@@ -482,12 +442,7 @@
         @size-change="(val: any) => handleQuery({ pageSize: val })"
         @current-change="(val: any) => handleQuery({ page: val })"
       />
-      <ImportData
-        ref="importDataRef"
-        :import="procurementComplaintApi.importData"
-        :download="procurementComplaintApi.downloadTemplate"
-        @refresh="handleQuery"
-      />
+
       <printDialog
         ref="printDialogRef"
         :title="'鎵撳嵃鏀垮簻閲囪喘鎶曡瘔鏁版嵁澶勭悊'"

--
Gitblit v1.9.1