From a5827ceecd1bc3de6f48a0cfd47c95d8dd429e2b Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期五, 14 十一月 2025 15:37:08 +0800
Subject: [PATCH] 修改新增

---
 src/views/work/sealManagement/apply/index.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/views/work/sealManagement/apply/index.vue b/src/views/work/sealManagement/apply/index.vue
index 4fab369..3e70918 100644
--- a/src/views/work/sealManagement/apply/index.vue
+++ b/src/views/work/sealManagement/apply/index.vue
@@ -28,6 +28,7 @@
       </el-form>
     </div>
     <el-radio-group v-model="data.tabName" style="margin-bottom: 30px" @change="changBtn">
+      <el-radio-button label="all" v-if="data.userType == 0 || data.userType == 6">全部</el-radio-button>
       <el-radio-button label="apply" >我申请的</el-radio-button>
       <el-radio-button label="approval">待审批的</el-radio-button>
     </el-radio-group>
@@ -39,6 +40,11 @@
       <el-table-column label="用章事由" prop="useSealCause" align="center"  />
       <el-table-column label="申请人" prop="applyUserName" align="center"  />
       <el-table-column label="用章时间" prop="useSealTime" align="center"  />
+      <el-table-column label="状态" prop="status" align="center"  >
+        <template #default="scope">
+          <span>{{scope.row.status == 1 ? '审批中' :scope.row.status == 2 ?'已审批' : ''}}</span>
+        </template>
+      </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="160" >
         <template #default="scope">
           <div v-if="data.tabName === 'apply'">
@@ -112,11 +118,12 @@
     nextCheck:null,
     applyUserId: null
   },
-  tabName:'apply',
+  tabName:'',
   companyList: [],
   isAdmin: false,
   userId: null,
   showDialog: false,
+  userType: null,
   applyForm: {
     useSealId: null,
     approveUserId: null,
@@ -132,6 +139,8 @@
   const userInfo = JSON.parse(Cookies.get('userInfo'))
   console.log("userInfo",userInfo)
   data.isAdmin = userInfo.userType === 0;
+  data.userType = userInfo.userType
+  data.tabName = userInfo.userType == 0 || userInfo.userType == 6 ?'all':'apply'
   data.userId = userInfo.id
   data.queryParams.applyUserId = userInfo.id
   if(data.isAdmin){

--
Gitblit v1.9.2