From 88fb30f552ae51cc85d969e3a5ce050628ce0b7c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Thu, 07 May 2026 14:30:07 +0800
Subject: [PATCH] 修改

---
 src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue |   26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue b/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue
index 352b5ae..938b4e8 100644
--- a/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue
+++ b/src/views/work/procurementPlatform/incomingInspection/inspectionStandards/index.vue
@@ -21,7 +21,15 @@
             </el-option>
           </el-select>
         </el-form-item>
-        <el-form-item v-if="isAdmin">
+        <el-form-item label="年份:" style="margin-left: 20px">
+          <el-date-picker
+              v-model="data.queryParams.year"
+              type="year"
+              value-format="YYYY"
+              placeholder="请选择年份"
+          />
+        </el-form-item>
+        <el-form-item>
           <el-button  type="primary" @click="getList">查询</el-button>
           <el-button  type="primary" plain @click="reset">重置</el-button>
         </el-form-item>
@@ -30,6 +38,7 @@
     <!-- 表格数据 -->
     <el-table v-loading="loading" :data="dataList" :border="true">
       <el-table-column label="序号" type="index" align="center" width="80"/>
+      <el-table-column label="年份" prop="year" align="center"/>
       <el-table-column label="规范" prop="fileNameSimple" align="center"/>
       <el-table-column label="文件" prop="fileName" align="center">
         <template #default="scope">
@@ -87,7 +96,8 @@
     companyId: null,
     industryType: null,
     type: '',
-    templateName: ''
+    templateName: '',
+    year:''
   },
   total: 0,
   dataList: [],
@@ -111,12 +121,16 @@
     data.isAdmin = false
     data.queryParams.companyId = userStore.companyId
   }
+  await getNowYear()
   await getList()
 })
 
 onUnmounted(()=>{
 
 })
+const getNowYear = () =>{
+  data.queryParams.year = new Date().getFullYear().toString()
+}
 const openFile = async(path)=>{
   const ext = path.split('.').pop().toLowerCase();
   if (ext === 'doc' || ext === 'xls' || ext === 'xlsx'  || ext === 'ppt' || ext === 'pptx') {
@@ -229,7 +243,8 @@
       companyId: null,
       industryType: null,
       type: '',
-      templateName: ''
+      templateName: '',
+      year:''
     }
     await getCompanyList()
   }else {
@@ -239,11 +254,14 @@
       companyId: data.queryParams.companyId,
       industryType: null,
       type: '',
-      templateName: ''
+      templateName: '',
+      year:''
     }
   }
+  await getNowYear()
   await getList()
 }
+
 const handleDelete = (val) => {
   ElMessageBox.confirm(
       '确定删除此条数据?',

--
Gitblit v1.9.2