From a177ad6532fcdc1e9d2b3910276bd88d04791469 Mon Sep 17 00:00:00 2001
From: fcx <2246384483@qq.com>
Date: 星期二, 02 十二月 2025 20:19:13 +0800
Subject: [PATCH] 1.XJ新增照片查看,不良描述

---
 pages/QC/SJ/Add.vue |  739 +++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 567 insertions(+), 172 deletions(-)

diff --git a/pages/QC/SJ/Add.vue b/pages/QC/SJ/Add.vue
index ff7d5ef..c237ce7 100644
--- a/pages/QC/SJ/Add.vue
+++ b/pages/QC/SJ/Add.vue
@@ -1,113 +1,127 @@
 <template>
-  <view>
-    <view class="form-container">
-      <form :modelValue="formData">
-        <view class="form-group">
-          <label class="form-label">棣栨鍗曞彿:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.billNo"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">鍒涘缓鏃堕棿:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.createTime"/>
-        </view>
-        <view class="uni-form-item uni-column form-item edit">
-          <text class="form-label">鐢熶骇绾垮埆:</text>
-          <superwei-combox v-if="isUpdate" :candidates="DAA020List" placeholder="璇烽�夋嫨鎴栬緭鍏�"
-                           v-model="formData.line"
-                           @select="onDaa020Change"
-                           class="picker form-input"
-                           style="border: none;"></superwei-combox>
-          <input v-else class="form-input" disabled="true" type="text" v-model="formData.line"/>
-        </view>
-        <view class="uni-form-item uni-column form-item edit">
-          <text class="form-label">鐗╂枡缂栫爜:</text>
-          <superwei-combox v-if="isUpdate" :candidates="boardItems" placeholder="璇烽�夋嫨鎴栬緭鍏�"
-                           v-model="formData.itemNo"
-                           :isJSON="true" keyName="itemName"
-                           @select="onItemChange"
-                           class="picker form-input"
-                           style="border: none;"></superwei-combox>
-          <input v-else class="form-input" disabled="true" type="text" v-model="formData.itemNo"/>
-        </view>
-       <view class="uni-form-item uni-column form-item edit">
-          <text class="form-label">璁″垝缂栧彿:</text>
-          <picker v-if="isUpdate" class="picker form-input" name="selector" :range="DAA001List"
-                  @change="onDaa001Change">
-            <text>{{ DAA001List[DAA001Index] }}</text>
-          </picker>
-          <input v-else class="form-input" disabled="true" type="text" v-model="formData.daa001"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">浜у搧鍚嶇О:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.daa003"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">瑙勬牸鍨嬪彿:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.daa004"/>
-        </view>
-       <view class="form-group">
-          <label class="form-label">宸ュ崟鏁伴噺:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.daa008"/>
-        </view> 
-        <view class="form-group">
-          <label class="form-label">涓嶅悎鏍兼弿杩�:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.remarks"/>
-        </view>
-      </form>
+  <view class="inspection-sheet">
+    <!-- 澶撮儴淇℃伅 -->
+    <view class="sheet-header">
+      <h1>棣栨鍗�</h1>
+      <view class="inspection-number">妫�楠屽崟鍙凤細{{ formData.billNo }}</view>
     </view>
-    <view class="list-container">
-      <uni-table ref="table" border emptyText="鏆傛棤鏇村鏁版嵁">
-        <uni-tr>
-          <uni-th align="center" class="th" style="color: #FFFFFF;">妫�楠岄」鐩�</uni-th>
-          <uni-th align="center" class="th" style="color: #FFFFFF">鏄惁鍚堟牸</uni-th>
-          <uni-th align="center" class="th" style="color: #FFFFFF">璁板綍(鐐瑰嚮)</uni-th>
-        </uni-tr>
-        <uni-tr v-for="(item, index) in tableData" :key="index">
-          <uni-td align="center">
-            <input class="form-input" disabled="true" type="text" v-model="item.projName"/>
-          </uni-td>
-          <uni-td align="center">
-            <input class="form-input" disabled="true" type="text" v-model="item.result"/>
-          </uni-td>
-          <uni-td>
-            <view class="uni-group">
-              <button v-if="item.isCheck >=item.levelNum" type="default" @click="toDetail(item)">
-                {{ item.levelNum + '/' + item.isCheck }}
-              </button>
-              <button v-else type="warn" @click="toDetail(item)"> {{ item.levelNum + '/' + item.isCheck }}</button>
-            </view>
-          </uni-td>
-        </uni-tr>
-      </uni-table>
+
+    <!-- 鍩烘湰淇℃伅鍖� -->
+    <view class="basic-info">
+      <view class="info-row">
+        <span class="info-label">鍒涘缓鏃堕棿锛�</span>
+        <span class="info-value">{{ formData.createTime }}</span>
+        <span class="info-label">妫�楠屼汉锛�</span>
+        <span class="info-value">{{ formData.statusUser }}</span>
+      </view>
     </view>
-    <view class="plus-button">
-      <button type="warn" v-if="isUpdate && !isShowTable" @click="save">鍒涘缓妫�楠屽崟骞剁敓鎴愰儴鍒嗛粯璁ゅ��</button>
+
+    <!-- 鐗╂枡淇℃伅鍖� -->
+    <view class="material-info">
+      <view class="info-block">
+        <view class="info-label">鐢熶骇绾垮埆锛�</view>
+        <view v-if="!isUpdate" class="info-value">{{ formData.line }}</view>
+        <superwei-combox v-else v-model="formData.line" :candidates="DAA020List"
+                         class="picker info-value-input" placeholder="璇烽�夋嫨鎴栬緭鍏�"
+                         @select="onDaa020Change"></superwei-combox>
+      </view>
+      <view class="info-block">
+        <view class="info-label">鐗╂枡缂栫爜锛�</view>
+        <view v-if="!isUpdate" class="info-value">{{ formData.itemNo }}</view>
+        <superwei-combox v-else v-model="formData.itemNo" :candidates="boardItems" :isJSON="true"
+                         class="picker info-value-input" keyName="itemName" placeholder="璇烽�夋嫨鎴栬緭鍏�"
+                         @select="onItemChange"></superwei-combox>
+      </view>
+      <view class="info-block">
+        <view class="info-label">浜у搧鍚嶇О锛�</view>
+        <view class="info-value">{{ formData.daa003 }}</view>
+      </view>
+      <view class="info-block">
+        <view class="info-label">瑙勬牸鍨嬪彿锛�</view>
+        <view class="info-value">{{ formData.daa004 }}</view>
+      </view>
+      <view class="info-block">
+        <view class="info-label">宸ュ崟缂栧彿锛�</view>
+        <view v-if="!isUpdate" class="info-value">{{ formData.daa001 }}</view>
+        <picker v-else :range="DAA001List" class="picker info-value-input" name="selector"
+                @change="onDaa001Change">
+          <view>{{ DAA001List[DAA001Index] }}</view>
+        </picker>
+        <view class="info-label">椤圭洰锛�</view>
+        <view class="info-value">{{ formData.projecT_CODE }}</view>
+        <view class="info-label">宸ュ崟鏁伴噺锛�</view>
+        <view class="info-value highlight">{{ formData.daa008 }}</view>
+      </view>
+      <view v-if="formData.remarks && current" class="info-block">
+        <view class="info-label">澶囨敞锛�</view>
+        <view class="info-value">{{ formData.remarks }}</view>
+      </view>
     </view>
-    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && !isShowTable" @click="toImage">涓婁紶/鏌ョ湅鍥剧墖</button>
+
+    <!-- 鎿嶄綔鎸夐挳鍖� -->
+    <view class="action-buttons">
+				<button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="toSNScanCode(formData.releaseNo)">SN纭</button>
+		<button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="toYzxSubmitFrom(formData.releaseNo)">涓�鑷存�ф牳瀵�</button>
+		<button class="secondary-btn" @click="getTable">鑾峰彇妫�楠岄」鐩�</button>
     </view>
-    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && formData.result == '鏈畬鎴�' && !isShowTable" @click="removeXJ">鍒犻櫎鍗曟嵁
-      </button>
+
+    <!-- 妫�楠岄」鐩〃鏍� -->
+    <view v-if="tableData.length > 0" class="inspection-table">
+      <table>
+        <thead>
+        <tr>
+          <th style="text-align: center;" width="15%">妫�楠岄」鐩�</th>
+          <th style="text-align: center;" width="50%">妫�楠屾弿杩�</th>
+          <th style="text-align: center;" width="20%">璁板綍(鐐瑰嚮)</th>
+        </tr>
+        </thead>
+        <tbody>
+        <tr v-for="(item, index) in tableData" :key="index">
+          <td>{{ item.projName }}</td>
+          <td>
+            <view v-if="item.result=='鍚堟牸'" class="watermark approved">鍚堟牸</view>
+            <view v-if="item.result=='涓嶅悎鏍�'" class="watermark rejected">涓嶅悎鏍�</view>
+            <view v-if="item.result=='鏈畬鎴�'" class="watermark pending">寰呯‘璁�</view>
+            <view class="description-text">{{ item.itemMod }}</view>
+          </td>
+          <td>
+            <button v-if="item.isCheck < item.levelNum" class="record-btn record-btn-fill"
+                    @click="toDetail(item, index)">
+              濉啓 <!--({{ item.isCheck }}/{{ item.levelNum }})-->
+            </button>
+            <button v-else class="record-btn record-btn-view" @click="toDetail(item, index)">
+              鏌ョ湅<!--({{ item.isCheck }}/{{ item.levelNum }})--> 
+            </button>
+          </td>
+        </tr>
+        </tbody>
+      </table>
     </view>
-    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate &&  !isShowTable" @click="saveRemarks">娣诲姞涓嶅悎鏍兼弿杩�</button>
+
+    <!-- 鎿嶄綔鎸夐挳鍖� -->
+    <view class="action-buttons">
+      <button v-if="isUpdate && !isShowTable" class="secondary-btn" @click="save">鍒涘缓妫�楠屽崟骞剁敓鎴愰儴鍒嗛粯璁ゅ��</button>
+      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="uploadImages">鏌ョ湅鎵�鏈夊浘鐗�</button>
+      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="addDefectDescription">鏌ョ湅涓嶈壇鎻忚堪</button>
+	<!--  <button v-if="!isUpdate && !formData.statusUser && !isShowTable" class="secondary-btn" @click="removeXJ">
+        鍒犻櫎鍗曟嵁
+      </button> -->
+      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="saveRemarks">娣诲姞澶囨敞</button>
+      <button v-if="!isUpdate && !isShowTable && formData.fSubmit != 1" class="primary-btn" @click="submit">妫�楠屾彁浜�</button>
+   <!--   <button  class="secondary-btn" @click="getTable">鑾峰彇妫�楠岄」鐩�</button> -->
+<!--      <button v-if="isShowTable && isUpdate" class="primary-btn" @click="saveTable">鐢熸垚妫�楠岄」鐩�</button> -->
     </view>
-    <view class="plus-button">
-      <button type="warn" v-if="isShowTable" @click="getTable">鑾峰彇妫�楠岄」鐩�</button>
-    </view>
-    <view class="plus-button">
-      <button type="warn" v-if="isShowTable && isUpdate" @click="saveTable">鐢熸垚妫�楠岄」鐩�</button>
-    </view>
+
+    <!-- 寮圭獥 -->
     <view v-if="remarksPopup" class="overlay">
       <view class="popup">
-        <h3>淇敼涓嶅悎鏍兼弿杩�</h3>
+        <h3>淇敼澶囨敞</h3>
         <form>
           <view class="form-group">
-            <label class="form-label">涓嶅悎鏍兼弿杩�:</label>
-            <input class="form-input" type="text" v-model="remarks"/>
+            <label class="form-label">澶囨敞:</label>
+            <textarea v-model="remarks" class="form-input form-textarea" placeholder="璇疯緭鍏ュ娉ㄤ俊鎭�..."></textarea>
           </view>
-          <button type="warn" @click="editRemarks">淇敼</button>
+          <button class="updateBut" @click="editRemarks">淇敼</button>
           <button @click="remarksPopup = !remarksPopup">鍙栨秷</button>
         </form>
       </view>
@@ -129,7 +143,9 @@
         line: "",
         lineName: "",
         comments: "",
-        statusUser: ""
+        statusUser: "",
+        itemId: "",
+        fSubmit: 0,
       },
 
       DAA020List: [],
@@ -154,13 +170,23 @@
 
       remarks: "",
       remarksPopup: false,
+
+      comments: "",
+      commentsPopup: false,
+      current: true,
+
     };
   },
   onLoad(options) {
     //options涓寘鍚簡url闄勫甫鐨勫弬鏁�
 
     let params = options;
-
+	if(params["current"]==='A')
+		{
+			this.current=true;
+		}else if(params["current"]==='B'){
+			this.current=false;
+		}
     if (params["id"]) {
       this.isUpdate = false;
       this.formData.id = params["id"];
@@ -192,6 +218,18 @@
     }
   },
   methods: {
+    // 鑾峰彇鍚堟牸椤圭洰鏁伴噺
+    getPassedCount() {
+      return this.tableData.filter(item => item.result === '鍚堟牸').length;
+    },
+    // 鑾峰彇涓嶅悎鏍奸」鐩暟閲�
+    getFailedCount() {
+      return this.tableData.filter(item => item.result === '涓嶅悎鏍�').length;
+    },
+    // 鑾峰彇寰呮楠岄」鐩暟閲�
+    getPendingCount() {
+      return this.tableData.filter(item => item.result === '鏈畬鎴�').length;
+    },
     removeXJ() {
       if (this.formData.id) {
         this.$post({
@@ -212,6 +250,40 @@
         this.$showMessage("璇峰厛閫夋嫨妫�楠屽崟鍙�");
       }
     },
+
+    submit() {
+      this.$post({
+        url: "/SJ/SJQaSubmit",
+        data: {
+          userNo: this.$loginInfo.account,
+          gid: this.formData.id
+        }
+      }).then(res => {
+
+        //2024-11-28 kyy 鏍¢獙鍚堟牸鎻愪氦澧炲姞鎻愮ず
+        console.log("瀹屾暣鍝嶅簲鏁版嵁:", res);
+        console.log("Status Code鐨勫��:", res.statusCode);
+        console.log("杩斿洖鐨勬暟鎹�:", res.data);
+        
+        // 妫�鏌ュ绉嶆垚鍔熸潯浠�
+        if (res.statusCode === 200 || res.status === 0 || res.data === true || res.data.tbBillList === true) {
+
+          this.$showMessage("鎴愬姛鎻愪氦妫�楠�");
+          // 鎻愪氦鎴愬姛鍚庤烦杞埌鍒楄〃椤甸潰
+          setTimeout(() => {
+            uni.navigateTo({
+              url: '/pages/QC/SJ/List'
+            });
+          }, 1500); // 1.5绉掑悗璺宠浆锛岃鐢ㄦ埛鐪嬪埌鎴愬姛鎻愮ず
+        } else {
+          this.$showMessage(res.data.message || res.message || "鎻愪氦澶辫触");
+        }
+      }).catch(err => {
+        console.log("鎻愪氦鍑洪敊:", err);
+        this.$showMessage("鎻愪氦澶辫触锛岃閲嶈瘯");
+      })
+    },
+
     init() {
       if (this.formData.id) {
         this.$post({
@@ -339,7 +411,7 @@
 
       });
     },
-    toDetail(item) {
+    toDetail(item, index) {
       if (this.isUpdate) {
         uni.showToast({
           icon: "none",
@@ -348,7 +420,8 @@
         });
       } else {
         uni.navigateTo({
-          url: 'detail?id=' + item.id + '&billNo=' + this.formData.billNo + '&gid=' + this.formData.id
+          url: 'detail?id=' + item.id + '&billNo=' + this.formData.billNo + '&gid=' + this.formData
+              .id + '&index=' + index
         });
       }
     },
@@ -360,9 +433,28 @@
         }
       }).then(res => {
         if (res.data.tbBillList.length > 0) {
+			
           this.tableData = res.data.tbBillList; // 鍦ㄧ澶村嚱鏁颁腑锛宼his 鎸囧悜澶栧眰浣滅敤鍩熺殑 this
           this.isShowTable = true;
           this.isUpdate = true;
+		  //鐢熸垚妫�楠岄」鐩�
+		  if (this.tableData.length === 0) {
+		    return;
+		  }
+		  
+		  this.$post({
+		    url: "/SJ/SaveItem",
+		    data: {
+		      gid: this.formData.id,
+		      items: this.tableData,
+		      statusUser: this.$loginInfo.account,
+			  ItemNo:this.formData.itemNo
+		    }
+		  }).then(res => {
+		    this.tableData = res.data.tbBillList.items;
+		    this.isShowTable = false;
+		    this.isUpdate = false;
+		  })
         } else {
           this.$showMessage("姝ょ墿鏂欐病鏈夊惎鐢ㄧ殑妫�楠岄」鐩紝璇风淮鎶�!");
           this.isShowTable = true;
@@ -389,12 +481,22 @@
         this.isUpdate = false;
       })
     },
+		toYzxSubmitFrom(releaseNo){
+			uni.navigateTo({
+				url: 'yzxFrom?id=' +this.formData.id+'&current='+(this.current ? 'true' : 'false')
+			});
+		},
+		toSNScanCode(releaseNo){
+			uni.navigateTo({
+				url: 'ScanCode?id=' +this.formData.id+'&current='+(this.current ? 'true' : 'false')
+			});
+		},
     save() {
 
-      if (this.tableData.length === 0) {
-        this.$showMessage(this.formData.itemNo + "鐗╂枡娌℃湁妫�楠岄」鐩�");
-        return;
-      }
+      // if (this.tableData.length === 0) {
+      // 	this.$showMessage(this.formData.itemNo + "鐗╂枡娌℃湁妫�楠岄」鐩�");
+      // 	return;
+      // }
 
       if (!this.formData.daa001) {
         this.$showMessage("璇烽�夋嫨璁″垝缂栧彿");
@@ -414,9 +516,14 @@
         this.tableData = res.data.tbBillList.items;
         this.isUpdate = false;
       })
-    }, saveRemarks() {
+    },
+    saveRemarks() {
       this.remarksPopup = !this.remarksPopup;
       this.remarks = this.formData.remarks;
+    },
+    saveComments() {
+      this.commentsPopup = !this.commentsPopup;
+      this.comments = this.formData.comments;
     },
     editRemarks() {
       if (this.remarks) {
@@ -436,9 +543,36 @@
         })
       }
     },
-    toImage() {
+    editComments() {
+      if (this.comments) {
+        //saveRemarksGid
+        this.$post({
+          url: "/SJ/saveCommentGid",
+          data: {
+            gid: this.formData.id,
+            comments: this.comments
+          }
+        }).then(res => {
+          if (res.data.tbBillList > 0) {
+            this.formData.comments = this.comments;
+            this.commentsPopup = !this.commentsPopup;
+            this.$showMessage("淇濆瓨鎴愬姛");
+          }
+        })
+      }
+    },
+    uploadImages() {
+      // 鏌ョ湅鎵�鏈夊浘鐗囩殑閫昏緫
+      console.log('鐐瑰嚮浜嗘煡鐪嬫墍鏈夊浘鐗囨寜閽紝billNo:', this.formData.billNo);
       uni.navigateTo({
-        url: 'ImageItem?id=' + this.formData.id
+        url: 'ImageItemALL?id=' + this.formData.id
+      });
+    },
+    addDefectDescription() {
+      // 鏌ョ湅鎵�鏈変笉鑹弿杩扮殑閫昏緫
+      console.log('鐐瑰嚮浜嗘煡鐪嬩笉鑹弿杩版寜閽紝billNo:', this.formData.billNo);
+      uni.navigateTo({
+        url: 'Blms?id=' + this.formData.id
       });
     }
   },
@@ -450,78 +584,255 @@
 </script>
 
 <style>
-.form-group {
+/* 鍩虹鏍峰紡 */
+.inspection-sheet {
+  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
+  max-width: 1000px;
+  margin: 0 auto;
+  padding: 20px;
+  background-color: #fff;
+  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
+}
+
+/* 澶撮儴鏍峰紡 */
+.sheet-header {
+  text-align: center;
+  margin-bottom: 20px;
+  padding-bottom: 15px;
+  border-bottom: 2px solid #e0e0e0;
+}
+
+.sheet-header h1 {
+  color: #2c3e50;
+  font-size: 24px;
+  margin-bottom: 5px;
+}
+
+.inspection-number {
+  font-size: 16px;
+  font-weight: bold;
+  color: #3498db;
+}
+
+/* 鍩烘湰淇℃伅鍖烘牱寮� */
+.basic-info,
+.material-info {
+  margin-bottom: 20px;
+}
+
+.info-row {
+  display: flex;
+  margin-bottom: 10px;
+  flex-wrap: wrap;
+}
+
+.info-label {
+  font-weight: bold;
+  color: #34495e;
+  min-width: 80px;
+  margin-right: 5px;
+}
+
+.info-value {
+  color: #2c3e50;
+  margin-right: 20px;
+}
+
+.highlight {
+  font-weight: bold;
+  color: #e74c3c;
+}
+
+/* 鐗╂枡淇℃伅鍖烘牱寮� */
+.material-info {
+  border: 1px solid #eee;
+  padding: 15px;
+  border-radius: 5px;
+}
+
+.info-block {
   display: flex;
   align-items: center;
-  border-bottom: 1px solid #c9c9c9;
+  margin-bottom: 10px;
+  flex-wrap: wrap;
 }
 
-.form-label {
-  margin-bottom: 0;
-  padding: 5px;
-}
-
-.form-input {
+.info-value-input {
   flex: 1;
-  margin-bottom: 0;
-  padding: 5px;
+  padding: 8px 12px;
+  border: 1px solid #e9ecef;
+  border-radius: 6px;
+  background: #ffffff;
+  font-size: 14px;
+  margin-top: 6px;
 }
-
 
 .picker {
-  flex: 1;
-  margin-bottom: 0;
-  padding: 5px;
+  width: 100%;
+  padding: 8px 12px;
+  border: 1px solid #e9ecef;
+  border-radius: 6px;
+  background: #ffffff;
+  font-size: 14px;
+  margin-top: 6px;
+}
+
+/* 琛ㄦ牸鏍峰紡 */
+.inspection-table {
+  margin: 25px 0;
+}
+
+.inspection-table table {
+  width: 100%;
+  border-collapse: collapse;
+}
+
+.inspection-table th, .inspection-table td {
+  padding: 12px 15px;
+  border: 1px solid #ddd;
+  text-align: left;
+}
+
+.inspection-table th {
+  background-color: #f8f9fa;
+  font-weight: bold;
+  color: #34495e;
+}
+
+.inspection-table tr:nth-child(even) {
+  background-color: #f9f9f9;
+}
+
+.inspection-table tr:hover {
+  background-color: #f1f5f9;
+}
+
+/* 妫�楠屾弿杩板垪鐗规畩鏍峰紡 */
+.inspection-table td:nth-child(2) {
+  position: relative;
+  overflow: hidden;
+  padding: 0;
+}
+
+/* 鎸夐挳鏍峰紡 */
+.action-buttons {
+  display: flex;
+  justify-content: flex-end;
+  gap: 10px;
+  margin-top: 20px;
+}
+
+.primary-btn,
+.secondary-btn {
+  padding: 10px 20px;
+  border: none;
+  border-radius: 4px;
+  font-size: 14px;
+  cursor: pointer;
+  transition: all 0.3s;
+}
+
+.primary-btn {
+  background-color: #3498db;
+  color: white;
+}
+
+.primary-btn:hover {
+  background-color: #2980b9;
+}
+
+.secondary-btn {
+  background-color: #ecf0f1;
+  color: #7f8c8d;
+}
+
+.secondary-btn:hover {
+  background-color: #d5dbdb;
+}
+
+.record-btn {
+  padding: 6px 12px;
+  background-color: #f8f9fa;
+  border: 1px solid #ddd;
+  cursor: pointer;
+  transition: all 0.2s;
+}
+
+.record-btn:hover {
+  background-color: #e9ecef;
+}
+
+/* 濉啓鐘舵�佹寜閽� */
+.record-btn-fill {
+  background-color: #f8f9fa;
+  border: 1px solid #ddd;
+}
+
+.record-btn-fill:hover {
+  background-color: #e9ecef;
+}
+
+/* 鏌ョ湅鐘舵�佹寜閽� */
+.record-btn-view {
+  background-color: #f8f9fa;
+  border: 1px solid #ddd;
+}
+
+.record-btn-view:hover {
+  background-color: #e9ecef;
+}
+
+/* 姘村嵃鏍峰紡 */
+.watermark {
+  position: absolute;
+  font-size: 40px;
+  font-weight: bold;
+  opacity: 1;
+  z-index: 1;
+  pointer-events: none;
+  transform: rotate(-15deg);
+  width: 100%;
+  text-align: center;
+  top: 50%;
+  left: 50%;
+  transform: translate(-50%, -50%) rotate(-15deg);
+}
+
+.watermark.approved {
+  color: #2ecc71; /* 缁胯壊 */
+}
+
+.watermark.rejected {
+  color: #e74c3c; /* 绾㈣壊 */
+}
+
+.watermark.pending {
+  color: #f39c12; /* 姗欒壊 */
+}
+
+/* 鎻忚堪鏂囨湰瀹瑰櫒 */
+.description-text {
+  position: relative;
+  z-index: 2;
+  padding: 25px;
+  background-color: rgba(255, 255, 255, 0.7);
+}
+
+.sysLike {
+  color: #3498db;
+  text-decoration: none;
+  margin-left: 15px;
+  padding: 3px 8px;
+  border: 1px solid #3498db;
+  border-radius: 3px;
   font-size: 12px;
 }
 
-.uni-form-item {
-  display: flex;
-  border-bottom: 1px solid #c9c9c9;
+.sysLike:hover {
+  background-color: #f0f8ff;
 }
 
-.edit {
-  background-color: white;
-}
-
-/* 榛樿鏍峰紡 */
-.list-container {
-  height: 60vh;
-  /* 璁剧疆鍒楄〃瀹瑰櫒鐨勯珮搴︿负鍓╀綑绌洪棿锛屽苟鍑忓幓琛ㄥ崟瀹瑰櫒鐨勯珮搴� */
-  overflow-y: auto;
-  /* 鍏佽鍒楄〃瀹瑰櫒鍨傜洿婊氬姩 */
-  padding: 10px;
-  /* 鍙�夛細娣诲姞涓�浜涘唴杈硅窛锛屼娇鍒楄〃鍐呭鏇寸編瑙� */
-}
-
-/* 鍦ㄥ皬灞忓箷璁惧涓婏紝閲嶇疆楂樺害涓洪�傚簲灞忓箷 */
-@media (max-width: 768px) {
-  .list-container {
-    height: calc(100vh - 376px);
-    /* 閫傚綋璋冩暣楂樺害 */
-  }
-}
-
-
-.form-container {
-  padding: 10px;
-  /* 鍙�夛細娣诲姞涓�浜涘唴杈硅窛锛屼娇琛ㄥ崟鍐呭鏇寸編瑙� */
-}
-
-.th {
-  background-color: lightskyblue;
-  color: #FFFFFF;
-}
-
-
-.plus-button {
-  line-height: 59px;
-  font-size: 24px;
-  cursor: pointer;
-  z-index: 1000;
-  margin-bottom: 10px;
-}
-
+/* 寮瑰嚭灞傛牱寮� */
 .overlay {
   position: fixed;
   top: 0;
@@ -532,6 +843,7 @@
   display: flex;
   justify-content: center;
   align-items: center;
+  z-index: 10;
 }
 
 .popup {
@@ -539,9 +851,92 @@
   padding: 20px;
   border: 1px solid #ccc;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
-  width: 68vw;
-  /* 璁剧疆瀹藉害涓鸿鍙e搴︾殑80% */
-  height: 25vh;
-  /* 璁剧疆楂樺害涓鸿鍙i珮搴︾殑80% */
+  width: 85vw;
+  min-height: 35vh;
+  max-height: 60vh;
+  border-radius: 8px;
+}
+
+.popup h3 {
+  margin-top: 0;
+  color: #2c3e50;
+  border-bottom: 1px solid #eee;
+  padding-bottom: 10px;
+  margin-bottom: 15px;
+  font-size: 16px;
+  text-align: center;
+}
+
+.popup .form-group {
+  margin-bottom: 15px;
+  display: flex;
+  flex-direction: column;
+}
+
+.popup .form-label {
+  margin-bottom: 5px;
+  font-weight: bold;
+  font-size: 14px;
+}
+
+.popup .form-input {
+  width: 100%;
+  padding: 8px;
+  border: 1px solid #ddd;
+  border-radius: 4px;
+  font-size: 14px;
+  box-sizing: border-box;
+}
+
+.popup .form-textarea {
+  min-height: 120px;
+  resize: vertical;
+  font-family: inherit;
+  line-height: 1.5;
+}
+
+.popup-buttons {
+  display: flex;
+  justify-content: flex-end;
+  gap: 10px;
+  margin-top: 20px;
+}
+
+.updateBut {
+  background-color: #3498db;
+  color: white;
+  border: none;
+  padding: 8px 15px;
+  border-radius: 4px;
+  margin-right: 10px;
+  cursor: pointer;
+  transition: all 0.3s;
+}
+
+.updateBut:hover {
+  background-color: #2980b9;
+}
+
+/* 鍝嶅簲寮忚璁� */
+@media (max-width: 500px) {
+  .info-row,
+  .info-block {
+    flex-direction: column;
+    align-items: flex-start;
+  }
+
+  .doc-links {
+    margin-left: 0;
+    margin-top: 10px;
+  }
+
+  .action-buttons {
+    flex-direction: column;
+  }
+
+  .inspection-table table {
+    display: block;
+    overflow-x: auto;
+  }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3