From b6665b9f4913f5b31bd3379dd3e1032f8769f9a1 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 01 四月 2025 17:28:32 +0800
Subject: [PATCH] 原材料下单-添加权限

---
 src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue |   95 ++++++++---------------------------------------
 1 files changed, 17 insertions(+), 78 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue b/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
index 4bd35e0..181d5a7 100644
--- a/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
+++ b/src/views/CNAS/systemManagement/documentControl/components/FileObsoletionRequest.vue
@@ -1,18 +1,21 @@
 <template>
   <!-- 鏂囦欢浣滃簾鐢宠 -->
-  <div class="file-obsoletion-request" style="height: 100%;">
-    <div class="search">
-      <div class="search_thing">
-        <div class="search_label">鏂囦欢缂栧彿锛�</div>
-        <div class="search_input"><el-input v-model="queryParams.documentCode" clearable placeholder="璇疯緭鍏�" size="small"
-            @keyup.enter.native="refreshTable()"></el-input></div>
+  <div>
+    <div style="display: flex;justify-content: space-between">
+      <div style="display: flex;">
+        <div style="margin-bottom: 18px;margin-right: 10px;display: flex;align-items: center;line-height: 32px;">
+          <span style="width: 88px;font-size: 14px;font-weight: 700;color: #606266;">鏂囦欢缂栧彿</span>
+          <el-input v-model="queryParams.documentCode" clearable placeholder="璇疯緭鍏�" size="small"
+                    @keyup.enter.native="refreshTable()"></el-input>
+        </div>
+        <div style="line-height: 30px;">
+          <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
+          <el-button size="mini" @click="refresh">閲嶇疆</el-button>
+        </div>
       </div>
-      <div class="search_thing" style="padding-left: 30px;">
-        <el-button size="small" @click="refresh()">閲� 缃�</el-button>
-        <el-button size="small" type="primary" @click="refreshTable()">鏌� 璇�</el-button>
-      </div>
-      <div class="btns" style="padding-left: 30px;">
-        <el-button size="small" type="primary" @click="addDialogVisible = true, addInfo = {}">鏂囦欢浣滃簾鐢宠</el-button>
+      <div style="line-height: 30px;">
+        <el-button size="small" type="primary" icon="el-icon-plus"
+                   @click="addDialogVisible = true, addInfo = {}">鏂囦欢浣滃簾鐢宠</el-button>
         <el-button :loading="outLoading" size="small" type="primary" @click="handleOut">瀵煎嚭</el-button>
       </div>
     </div>
@@ -71,17 +74,6 @@
             </div>
           </div>
         </el-col>
-        <!-- <el-col :span="12" style="margin-bottom: 16px;">
-          <div class="search_thing">
-            <div class="search_label">浣滃簾鏂瑰紡锛�</div>
-            <div class="search_input">
-              <el-select v-model="addInfo.method" size="small" style="width: 100%;">
-                <el-option label="浣滃簾" value="浣滃簾"></el-option>
-                <el-option label="鏃犳晥" value="鏃犳晥"></el-option>
-              </el-select>
-            </div>
-          </div>
-        </el-col> -->
         <el-col :span="12" style="margin-bottom: 16px;">
           <div class="search_thing">
             <div class="search_label">鏈熸湜浣滃簾鏃堕棿锛�</div>
@@ -228,38 +220,6 @@
     this.selectEnumByCategory()
   },
   methods: {
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let out = false
-      let del = false
-      let add = false
-      // let check = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'exportManageDocumentCancel') {
-          out = true
-        }
-        if (power[i].menuMethod == 'addManageDocumentCancel') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delManageDocumentCancel') {
-          del = true
-        }
-        // if (power[i].menuMethod == 'checkManageDocumentControlled') {
-        //   check = true
-        // }
-      }
-      // if (!check) {
-      //   this.componentData.do.splice(2, 1)
-      // }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      if (!add) {
-        this.componentData.do.splice(0, 1)
-      }
-      this.addPower = add
-      this.outPower = out
-    },
     getList() {
       this.tableLoading = true;
       let param = { ...this.queryParams, ...this.page };
@@ -427,7 +387,6 @@
         this.outLoading = false
         const blob = new Blob([res], { type: 'application/octet-stream' });
         this.$download.saveAs(blob, '鏂囦欢浣滃簾琛�.xlsx')
-        this.$message.success('瀵煎嚭鎴愬姛')
       })
     },
     handleDelete(row) {
@@ -438,7 +397,6 @@
       })
         .then(() => {
           delManageDocumentCancel({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refresh();
           });
@@ -450,17 +408,10 @@
 </script>
 
 <style scoped>
-.title {
-  height: 60px;
-  line-height: 60px;
-}
-
 .search {
-  background-color: #fff;
-  height: 40px;
+  height: 46px;
   display: flex;
-  align-items: center;
-  position: relative;
+  justify-content: space-between;
 }
 
 .search_thing {
@@ -477,17 +428,5 @@
 
 .search_input {
   width: calc(100% - 110px);
-}
-
-.table {
-  background-color: #fff;
-  height: calc(100% - 60px - 80px);
-  padding: 20px;
-}
-
-.btns {
-  position: absolute;
-  right: 20px;
-  top: 5px;
 }
 </style>

--
Gitblit v1.9.3