From e5454b769d44a34af423bf87ac8a740bf8c20341 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 29 四月 2025 13:25:29 +0800
Subject: [PATCH] Merge branch 'dev' into dev_tides

---
 src/views/CNAS/process/demand/index.vue |   41 +++++++++++++++++++++--------------------
 1 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/src/views/CNAS/process/demand/index.vue b/src/views/CNAS/process/demand/index.vue
index da42835..e77260c 100644
--- a/src/views/CNAS/process/demand/index.vue
+++ b/src/views/CNAS/process/demand/index.vue
@@ -19,23 +19,24 @@
             @keyup.enter.native="refreshTable()"></el-input>
         </el-form-item>
         <el-form-item>
-          <el-button icon="el-icon-refresh" size="mini" @click="refresh">閲� 缃�</el-button>
-          <el-button type="primary" icon="el-icon-search" size="mini" @click="refreshTable">鏌� 璇�</el-button>
+          <el-button type="primary" size="mini" @click="refreshTable">鏌ヨ</el-button>
+          <el-button size="mini" @click="refresh">閲嶇疆</el-button>
         </el-form-item>
       </el-form>
     </div>
-    <div style="text-align: right; margin-bottom: 20px">
-      <el-button size="medium" type="primary" @click="goAdd">鏂板</el-button>
+    <div style="text-align: right; margin-bottom: 10px">
+      <el-button size="small" type="primary" @click="goAdd">鏂板</el-button>
     </div>
     <div class="table">
-      <el-table v-loading="tableListLoading" :data="tableList" height="530" style="width: 100%">
-        <el-table-column align="center" label="搴忓彿" type="index" width="60"></el-table-column>
-        <el-table-column label="璇曟牱鍚嶇О" prop="sampleName" show-overflow-tooltip width="120"></el-table-column>
-        <el-table-column label="濮旀墭缂栧彿" prop="entrustCode" show-overflow-tooltip width="120"></el-table-column>
-        <el-table-column label="濮旀墭鏃堕棿" prop="commissionDate" width="120"></el-table-column>
-        <el-table-column label="鍨嬪彿" prop="modelNo"></el-table-column>
-        <el-table-column label="濮旀墭鍗曚綅" prop="commissionUnit" show-overflow-tooltip width="120"></el-table-column>
-        <el-table-column label="鐢熶骇鍗曚綅" prop="production" show-overflow-tooltip width="120"></el-table-column>
+      <el-table v-loading="tableListLoading" :data="tableList"
+                height="630" border :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }">
+        <el-table-column align="center" label="搴忓彿" type="index"></el-table-column>
+        <el-table-column label="璇曟牱鍚嶇О" prop="sampleName" show-overflow-tooltip></el-table-column>
+        <el-table-column label="濮旀墭缂栧彿" prop="entrustCode" show-overflow-tooltip></el-table-column>
+        <el-table-column label="濮旀墭鏃堕棿" prop="commissionDate" show-overflow-tooltip></el-table-column>
+        <el-table-column label="鍨嬪彿" prop="modelNo" show-overflow-tooltip></el-table-column>
+        <el-table-column label="濮旀墭鍗曚綅" prop="commissionUnit" show-overflow-tooltip></el-table-column>
+        <el-table-column label="鐢熶骇鍗曚綅" prop="production" show-overflow-tooltip></el-table-column>
         <el-table-column label="濮旀墭浜�" prop="commissionUser"></el-table-column>
         <el-table-column label="鏍峰搧鏁伴噺" prop="quantity"></el-table-column>
         <el-table-column label="鏍峰搧鐘舵��" prop="sampleStatus"></el-table-column>
@@ -45,13 +46,13 @@
             <span v-if="scope.row.isLeave === 0">鍚�</span>
           </template>
         </el-table-column>
-        <el-table-column label="鏍峰搧澶勭悊鏂瑰紡" prop="processing">
+        <el-table-column label="鏍峰搧澶勭悊鏂瑰紡" prop="processing" width="150">
           <template slot-scope="scope">
             <span v-if="scope.row.processing === 1">瀹為獙瀹ゅ鐞�</span>
             <span v-if="scope.row.processing === 0">濮旀墭鍗曚綅鍙栧洖</span>
           </template>
         </el-table-column>
-        <el-table-column align="center" label="鎿嶄綔" width="240" fixed="right">
+        <el-table-column align="center" label="鎿嶄綔" width="240">
           <template slot-scope="scope">
             <el-button size="mini" type="text" @click="goUpdate(scope.row)">缂栬緫</el-button>
             <el-button size="mini" type="text" @click="handleLook(scope.row)">鏌ョ湅</el-button>
@@ -80,7 +81,9 @@
         <el-button size="small" type="primary" @click="searchTableData">鏌ヨ</el-button>
         <el-button size="small" @click="refreshTableData">閲� 缃�</el-button>
       </div>
-      <el-table v-loading="tableLoading" :data="tableData" height="550" style="width: 100%">
+      <el-table v-loading="tableLoading" :data="tableData"
+                :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border
+                height="550" style="width: 100%">
         <el-table-column align="center" label="搴忓彿" type="index" width="60"></el-table-column>
         <el-table-column label="濮旀墭缂栧彿" prop="entrustCode"></el-table-column>
         <el-table-column label="鏍峰搧鍚嶇О" prop="sample"></el-table-column>
@@ -99,7 +102,7 @@
       :modal="title != '涓嬭浇'" :title="title" :visible.sync="detailDialogVisible" top="20px" width="1200px">
       <div style="max-height: 75vh;overflow-y: auto;">
         <div id="dialogBody">
-          <table border="1" cellpadding="10" class="tables heads" style="border: 1px dashed black;">
+          <table border="1" cellpadding="10" class="tables heads" style="border: 1px dashed black;width: 100%">
             <tr>
               <td rowspan="2">
                 <img alt="" src="@/assets/logo/ZTTlogo.png" style="width: 80%;">
@@ -130,7 +133,7 @@
           <p v-if="operationType === 'view'" style="margin-top: 16px;margin-left: 600px;">濮旀墭缂栧彿锛歿{
             currentInfo.entrustCode }}
           </p>
-          <table border="1" cellpadding="10" class="tables">
+          <table border="1" cellpadding="10" class="tables" style="width: 100%">
             <tr>
               <td colspan="2">
                 <p>璇曟牱鍚嶇О</p>
@@ -413,7 +416,7 @@
 import { selectUserCondition } from "@/api/business/inspectionTask";
 
 export default {
-  name: "a7-Inspection-Order-Form",
+  name: "Demand",
   components: { limsTable },
   data() {
     return {
@@ -477,7 +480,6 @@
     };
   },
   mounted() {
-    // this.getPower()
     this.getAuthorizedPerson()
     this.refreshTable()
   },
@@ -595,7 +597,6 @@
       this.buttonLoading = true
       updateInspectionOrder(this.currentInfo).then(res => {
         this.buttonLoading = false
-        if (res.code === 201) return
         this.$message.success('鏂板鎴愬姛')
         this.detailDialogVisible = false
         this.orderRowsVisible = false

--
Gitblit v1.9.3