From 97af26e2ad64d7974367df80a900c1f680bd19c5 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 23 七月 2025 10:38:08 +0800
Subject: [PATCH] 首检,巡检,入库检

---
 pages/QC/RKJ/Add.vue | 1135 ++++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 913 insertions(+), 222 deletions(-)

diff --git a/pages/QC/RKJ/Add.vue b/pages/QC/RKJ/Add.vue
index 36fd29b..9ef2f5f 100644
--- a/pages/QC/RKJ/Add.vue
+++ b/pages/QC/RKJ/Add.vue
@@ -1,139 +1,188 @@
 <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.releaseNo"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">鍒涘缓浜�:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.createBy"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">鍒涘缓鏃堕棿:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.createDate"/>
-        </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.lineName"
-                           @select="onDaa020Change"
-                           class="picker form-input"
-                           style="border: none;"></superwei-combox>
-          <input v-else class="form-input" disabled="true" type="text" v-model="formData.daa015"/>
-        </view>
+  <view class="inspection-sheet">
+    <!-- 澶撮儴淇℃伅 -->
+    <view class="sheet-header">
+      <h1>鍏ュ簱妫�楠屽崟</h1>
+      <view class="inspection-number">妫�楠屽崟鍙凤細{{ formData.releaseNo }}</view>
+    </view>
 
-        <view class="uni-form-item uni-column form-item edit">
-          <text class="form-label">閫佹鎵规鍙�:</text>
-          <superwei-combox v-if="isUpdate" :candidates="DAA001List" placeholder="璇烽�夋嫨鎴栬緭鍏�"
-                           v-model="formData.billNo"
-                           @select="onDaa001Change"
-                           class="picker form-input"
-                           style="border: none;"></superwei-combox>
-          <input v-else class="form-input" disabled="true" type="text" v-model="formData.billNo"/>
+    <!-- 鍩烘湰淇℃伅鍖� -->
+    <view class="basic-info">
+      <view class="info-row">
+        <span class="info-label">鍒涘缓浜猴細</span>
+        <span class="info-value">{{ formData.createBy }}</span>
+        <span class="info-label">鍒涘缓鏃堕棿锛�</span>
+        <span class="info-value">{{ formData.createDate }}</span>
+      </view>
+    </view>
+
+    <!-- 鐗╂枡淇℃伅鍖� -->
+    <view class="material-info">
+      <view class="info-block">
+        <view class="info-label">鐢熶骇绾垮埆锛�</view>
+        <view v-if="!isUpdate" class="info-value">{{ formData.lineNo }}</view>
+        <superwei-combox v-if="isUpdate" v-model="formData.lineNo" :candidates="DAA020List"
+                         class="modern-picker" placeholder="璇烽�夋嫨鎴栬緭鍏�" @select="onDaa020Change"></superwei-combox>
+      </view>
+      <view class="info-block">
+        <view class="info-label">閫佹鎵规鍙凤細</view>
+        <view v-if="!isUpdate" class="info-value">{{ formData.billNo }}</view>
+        <superwei-combox v-if="isUpdate" v-model="formData.billNo" :candidates="DAA001List"
+                         class="modern-picker" placeholder="璇烽�夋嫨鎴栬緭鍏�" @select="onDaa001Change"></superwei-combox>
+      </view>
+      <view class="info-block">
+        <view class="info-label">鐗╂枡缂栫爜锛�</view>
+        <view class="info-value">{{ formData.itemNo }}</view>
+      </view>
+      <view class="info-block">
+        <view class="info-label">浠诲姟鍗曞彿锛�</view>
+        <view class="info-value">{{ formData.taskNo }}</view>
+      </view>
+      <view class="info-block">
+        <view class="info-label">浜у搧鍚嶇О锛�</view>
+        <view class="info-value">{{ formData.itemName }}</view>
+      </view>
+      <view class="info-block">
+        <view class="info-label">閫佹鏁伴噺锛�</view>
+        <view class="info-value highlight">{{ formData.quantity }}</view>
+      </view>
+      <view v-if="formData.remarks" class="info-block">
+        <view class="info-label">涓嶅悎鏍兼弿杩帮細</view>
+        <view class="info-value remarks-text">{{ formData.remarks }}</view>
+      </view>
+    </view>
+
+    <!-- 鎿嶄綔鎸夐挳鍖� - 妫�楠岄」鐩幏鍙� -->
+    <view v-if="isShowTable && current" class="action-buttons">
+      <button class="secondary-btn" @click="getTable">鑾峰彇妫�楠岄」鐩�</button>
+      <button v-if="isUpdate" class="primary-btn" @click="saveTable">鐢熸垚妫�楠岄」鐩�</button>
+    </view>
+
+    <!-- 妫�楠岄」鐩〃鏍� -->
+    <view v-if="!isShowTable" class="inspection-table">
+      <!-- 琛ㄦ牸澶撮儴缁熻淇℃伅 -->
+      <view class="table-header-stats">
+        <view class="stats-left">
+          <view class="stats-title">妫�楠岄」鐩竻鍗�</view>
+          <view class="stats-subtitle">鍏� {{ tableData.length }} 涓楠岄」鐩�</view>
         </view>
-        <view class="form-group">
-          <label class="form-label">鐗╂枡缂栫爜:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.itemNo"/>
-        </view>
-        <view class="uni-title-sub uni-ellipsis-2">
-          <view class="form-group">
-            <label class="form-label">浜у搧鍚嶇О:</label>
-            <input class="form-input" disabled="true" type="text" v-model="formData.itemName"/>
+        <view class="stats-right">
+          <view class="stat-item passed">
+            <span class="stat-count">{{ getPassedCount() }}</span>
+            <span class="stat-label">宸插悎鏍�</span>
+          </view>
+          <view class="stat-item failed">
+            <span class="stat-count">{{ getFailedCount() }}</span>
+            <span class="stat-label">涓嶅悎鏍�</span>
+          </view>
+          <view class="stat-item pending">
+            <span class="stat-count">{{ getPendingCount() }}</span>
+            <span class="stat-label">寰呮楠�</span>
           </view>
         </view>
-        <view class="form-group">
-          <label class="form-label">瑙勬牸鍨嬪彿:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.itemModel"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">閫佹鏁伴噺:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.quantity"/>
-        </view>
-		<view class="form-group">
-		  <label class="form-label">鎶ュ伐浜�:</label>
-		  <input class="form-input" disabled="true" type="text" v-model="formData.bgr"/>
-		</view>
-		<view class="form-group">
-		  <label class="form-label">妫�楠岀粨鏋�:</label>
-		  <input class="form-input" disabled="true" type="text" v-model="formData.fcheckResu"/>
-		</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>
-
-    <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>
+      <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>
+            <view class="project-name-wrapper">
+								<span :class="{
+									'status-approved': item.result=='鍚堟牸',
+									'status-rejected': item.result=='涓嶅悎鏍�',
+									'status-pending': item.result=='鏈畬鎴�'
+								}" class="status-indicator"></span>
+              {{ item.projName }}
             </view>
-          </uni-td>
-        </uni-tr>
-      </uni-table>
+          </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="getItem">鐢熸垚妫�楠屽崟</button>
-    </view>
-	
-    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && !isShowTable" @click="toImage">涓婁紶/鏌ョ湅鍥剧墖</button>
-    </view>
-	
-    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && !isShowTable" @click="saveRemarks">娣诲姞涓嶅悎鏍兼弿杩�</button>
-    </view>
-	
-	<view class="plus-button">
-	  <button type="warn" v-if="!isUpdate && !isShowTable && this.formData.fsubmit != 1" @click="cleanResult">娓呴櫎妫�楠岀粨鏋�</button>
-	</view>
-	
-<!--    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && !formData.fcheckResu && !isShowTable" @click="removeXJ">鍒犻櫎鍗曟嵁</button>
-    </view> -->
-
-    <view class="plus-button">
-      <button type="warn" v-if="isShowTable" @click="getTable">鑾峰彇妫�楠岄」鐩�</button>
+    <!-- 涓绘搷浣滄寜閽尯 -->
+    <view class="action-buttons">
+      <button v-if="isUpdate && !isShowTable && current" class="primary-btn" @click="getItem">鐢熸垚妫�楠屽崟</button>
+      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="toImage">鍥剧墖绠$悊</button>
+      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="saveRemarks">娣诲姞鎻忚堪</button>
+      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="showTablePopup = true">鏌ョ湅鏁版嵁</button>
+      <button v-if="!isUpdate && !isShowTable && current" class="primary-btn" @click="submitInspection">妫�楠屾彁浜�
+      </button>
+      <button v-if="!isUpdate && !isShowTable && current && !formData.fcheckResu" class="danger-btn" @click="removeXJ">
+        鍒犻櫎鍗曟嵁
+      </button>
     </view>
 
-    <view class="plus-button">
-      <button type="warn" v-if="isShowTable && isUpdate" @click="saveTable">鐢熸垚妫�楠岄」鐩�</button>
-    </view>
-
-
+    <!-- 寮瑰嚭灞� -->
     <view v-if="showPopup" class="overlay">
       <view class="popup">
         <h3>淇敼涓嶅悎鏍兼弿杩�</h3>
         <form>
           <view class="form-group">
             <label class="form-label">涓嶅悎鏍兼弿杩�:</label>
-            <input class="form-input" type="text" v-model="remarks"/>
+            <input v-model="remarks" class="form-input" type="text"/>
           </view>
-          <button type="warn" @click="edit">淇敼</button>
-          <button @click="showPopup = !showPopup">鍙栨秷</button>
+          <view class="popup-buttons">
+            <button class="primary-btn" @click="edit">淇敼</button>
+            <button class="secondary-btn" @click="showPopup = !showPopup">鍙栨秷</button>
+          </view>
         </form>
+      </view>
+    </view>
+
+    <!-- 琛ㄦ牸寮瑰嚭灞� -->
+    <view v-if="showTablePopup" class="overlay">
+      <view class="popup table-popup">
+        <h3>璇︾粏鏁版嵁琛ㄦ牸</h3>
+        <view class="table-container">
+          <table>
+            <thead>
+            <tr>
+              <th>搴忓彿</th>
+              <th>椤圭洰鍚嶇О</th>
+              <th>妫�楠屾爣鍑�</th>
+              <th>妫�楠岀粨鏋�</th>
+            </tr>
+            </thead>
+            <tbody>
+            <tr v-for="(item, index) in popupTableData" :key="index">
+              <td>{{ index + 1 }}</td>
+              <td>{{ item.projName }}</td>
+              <td>{{ item.standard || '鏍囧噯鍊�' }}</td>
+              <td :class="item.result === '鍚堟牸' ? 'text-success' : item.result === '涓嶅悎鏍�' ? 'text-danger' : ''">
+                {{ item.result }}
+              </td>
+            </tr>
+            </tbody>
+          </table>
+        </view>
+        <view class="popup-buttons">
+          <button class="secondary-btn" @click="showTablePopup = false">鍏抽棴</button>
+        </view>
       </view>
     </view>
 
@@ -156,7 +205,10 @@
         detailMem: "",
         taskNo: "",
         fcheckResu: "",
-        remarks: ""
+        remarks: "",
+        itemId: "",
+        itemName: "",
+        itemModel: "",
       },
 
       DAA020List: [],
@@ -180,6 +232,13 @@
       remarks: "",
 
       showPopup: false,
+
+      showTablePopup: false,
+
+      popupTableData: [],
+
+      current: true, // 鏍囪褰撳墠鐢ㄦ埛鏄惁鏈夋搷浣滄潈闄�
+      msgId: 0
     };
   },
   onLoad(options) {
@@ -191,6 +250,19 @@
       this.isUpdate = false;
       this.formData.id = params["id"];
       this.formData.releaseNo = params["releaseNo"];
+      this.msgId = params["msgId"];
+
+      // 妫�鏌ユ槸鍚︽湁鏉冮檺鎿嶄綔
+      if (params["current"] === 'A') {
+        this.current = true;
+      } else if (params["current"] === 'B') {
+        this.current = false;
+      }
+
+      if (this.msgId > 0) {
+        this.msgRead();
+      }
+
       //getQaItemXj02
       this.init();
     } else {
@@ -211,8 +283,80 @@
         this.DAA020List = res.data.tbBillList.map(item => item.lineName);
       })
     }
+
+    // 鍒濆鍖栧脊绐楄〃鏍兼暟鎹ず渚�
+    this.initPopupTableData();
   },
   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;
+    },
+    // 鑾峰彇鐘舵�佹枃鏈�
+    getStatusText(status) {
+      const statusMap = {
+        '鍚堟牸': '鍚堟牸',
+        '涓嶅悎鏍�': '涓嶅悎鏍�',
+        '鏈畬鎴�': '寰呯‘璁�'
+      }
+      return statusMap[status] || '寰呯‘璁�';
+    },
+
+    // 鍒濆鍖栧脊绐楄〃鏍兼暟鎹�
+    initPopupTableData() {
+      // 杩欓噷鍙互浠嶢PI鑾峰彇鏁版嵁锛岃繖閲屼娇鐢ㄧず渚嬫暟鎹�
+      this.popupTableData = [
+        {projName: '澶栬妫�鏌�', standard: '鏃犳槑鏄惧垝鐥�', result: '鍚堟牸'},
+        {projName: '灏哄妫�鏌�', standard: '10卤0.5mm', result: '鍚堟牸'},
+        {projName: '鍔熻兘娴嬭瘯', standard: '姝e父宸ヤ綔', result: '涓嶅悎鏍�'},
+        {projName: '鐢垫皵鎬ц兘', standard: '5V卤0.1V', result: '鍚堟牸'},
+        {projName: '鑰愬帇娴嬭瘯', standard: '鈮�1000V', result: '鏈畬鎴�'}
+      ];
+    },
+
+    // 妫�楠屾彁浜�
+    submitInspection() {
+      this.$post({
+        url: "/RKJ/IqcQaSubmit",
+        data: {
+          userNo: this.$loginInfo.account,
+          releaseNo: this.formData.releaseNo
+        }
+      }).then(res => {
+        if (res.status == 0) {
+          uni.showToast({
+            title: res.message.toString(),
+            icon: 'success',
+            duration: 2000
+          })
+          // 濡傛灉鏈夐〉闈㈣烦杞紝闇�瑕佺敤瀹氭椂鍣ㄥ欢杩�
+          setTimeout(() => {
+            uni.navigateTo({
+              url: 'List'
+            });
+          }, 2000); // 淇濇寔涓� duration 鐩稿悓鐨勬椂闀�
+        } else {
+          uni.showModal({
+            title: "鎻愮ず",
+            content: res.message.toString(),
+            confirmText: "纭畾",
+            showCancel: false,
+            success: (res) => {
+
+            }
+          })
+        }
+      })
+    },
+
     removeXJ() {
       if (this.formData.id) {
         this.$post({
@@ -272,7 +416,7 @@
       this.$post({
         url: "/RKJ/getDaa001",
         data: {
-          lineNo: this.formData.lineName
+          lineNo: this.lineNo
         }
       }).then(res => {
         this.BillNoList = res.data.tbBillList;
@@ -320,13 +464,13 @@
       this.$post({
         url: "/RKJ/setJYItem",
         data: {
-          itemNo: this.formData.itemNo,
-          quantity:this.formData.quantity
+          itemId: this.formData.itemId,
+          quantity: this.formData.quantity
         }
       }).then(res => {
         this.tableData = res.data.tbBillList;
         if (this.tableData.length === 0) {
-          this.$showMessage("璇ョ墿鏂欐潯鐮佹病鏈夋楠岄」鐩�");
+          this.$showMessage("璇ョ墿鏂欐病鏈夋楠岄」鐩�");
           this.isSubmit = true;
           this.tableData = [];
         } else {
@@ -335,11 +479,12 @@
       });
     },
     init() {
+      let userName = this.$loginInfo.account;
+
       this.$post({
         url: "/RKJ/getPage",
         data: {
           id: this.formData.id,
-		  createUser: this.$loginInfo.account,
           pageIndex: 1,
           limit: 1,
         }
@@ -370,14 +515,20 @@
             this.tableData = tableData;
 
             if (this.tableData.length === 0) {
-              this.isShowTable = true;
+              this.isShowTable = true; // 鏃犳楠岄」鐩紝鏄剧ず鑾峰彇鎸夐挳
+            } else {
+              this.isShowTable = false; // 鏈夋楠岄」鐩紝鏄剧ず琛ㄦ牸
             }
+
+            // 涓烘瘡涓�椤规坊鍔燾urrent灞炴�э紝琛ㄧず鏄惁鍙紪杈�
+            this.tableData.forEach((item, index) => {
+              this.$set(item, 'current', this.current);
+            });
           })
         }
       });
     },
-    toDetail(item) {
-
+    toDetail(item, index) {
       if (this.isUpdate) {
         uni.showToast({
           icon: "none",
@@ -386,8 +537,7 @@
         });
       } else {
         uni.navigateTo({
-          url: 'detail?id=' + item.id + '&billNo=' + this.formData.billNo + '&gid=' + this.formData
-              .id + '&itemInId=' + this.formData.itemInId
+          url: 'detail?id=' + item.id + '&billNo=' + this.formData.billNo + '&gid=' + this.formData.id + '&index=' + index + '&current=' + this.current
         });
       }
     },
@@ -410,32 +560,51 @@
             remarks: this.remarks
           }
         }).then(res => {
-          if(res.data.tbBillList > 0){
+          if (res.data.tbBillList > 0) {
             this.formData.remarks = this.remarks;
             this.showPopup = !this.showPopup;
             this.$showMessage("淇濆瓨鎴愬姛");
           }
         })
+      } else {
+        // 鍏佽娓呯┖鎻忚堪
+        this.$post({
+          url: "/RKJ/saveRemarksGid",
+          data: {
+            gid: this.formData.id,
+            remarks: '',
+            releaseNo: this.formData.releaseNo
+          }
+        }).then(res => {
+          if (res.data.tbBillList > 0) {
+            this.formData.remarks = '';
+            this.showPopup = !this.showPopup;
+            this.$showMessage("淇濆瓨鎴愬姛");
+          }
+        })
       }
-    },getTable() {
+    },
+    getTable() {
       this.$post({
         url: "/RKJ/setJYItem",
         data: {
+          //itemId: this.formData.itemId,
           itemNo: this.formData.itemNo,
-          quantity:this.formData.quantity
+          quantity: this.formData.quantity
         }
       }).then(res => {
 
         this.tableData = res.data.tbBillList;
+
         if (this.tableData.length === 0) {
           this.$showMessage("璇ョ墿鏂欐潯鐮佹病鏈夋楠岄」鐩�");
           this.isSubmit = true;
           this.tableData = [];
-          this.isShowTable = true;
+          this.isShowTable = true; // 淇濇寔涓簍rue锛屾樉绀烘寜閽紝鍥犱负娌℃湁妫�楠岄」鐩�
           this.isUpdate = false;
         } else {
           this.isSubmit = false;
-          this.isShowTable = true;
+          this.isShowTable = false; // 璁句负false锛屼互鏄剧ず琛ㄦ牸锛屽洜涓烘湁妫�楠岄」鐩�
           this.isUpdate = true;
         }
       });
@@ -444,7 +613,6 @@
       if (this.tableData.length === 0) {
         return;
       }
-
       this.$post({
         url: "/RKJ/saveItem",
         data: {
@@ -454,28 +622,11 @@
         }
       }).then(res => {
         this.formData.id = res.data.tbBillList;
-        this.isShowTable = false;
+        this.isShowTable = false; // 纭繚琛ㄦ牸鏄剧ず
         this.isUpdate = false;
         this.init();
       })
     },
-	cleanResult(){
-		this.$post({
-		  url: "/RKJ/cleanReqResult",
-		  data: {
-		    gid: this.formData.id,
-		    userNo: this.$loginInfo.account
-		  }
-		}).then(res => {
-			console.log(res);
-			if(res.status == 0){
-				this.init();
-			}else{
-				this.$showMessage(res.message);
-			}
-		  
-		})
-	}
   },
   onShow() {
     //姣忔杩涘叆椤甸潰閮戒細鎵ц鐨勬柟娉�
@@ -487,78 +638,404 @@
 </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;
-}
-
-.form-label {
-  margin-bottom: 0;
-  padding: 5px;
-}
-
-.form-input {
-  flex: 1;
-  margin-bottom: 0;
-  padding: 5px;
-}
-
-
-.picker {
-  flex: 1;
-  margin-bottom: 0;
-  padding: 5px;
-  font-size: 12px;
-}
-
-.uni-form-item {
-  display: flex;
-  border-bottom: 1px solid #c9c9c9;
-}
-
-.edit {
-  background-color: white;
-}
-
-/* 榛樿鏍峰紡 */
-.list-container {
-  height: 60vh;
-  /* 璁剧疆鍒楄〃瀹瑰櫒鐨勯珮搴︿负鍓╀綑绌洪棿锛屽苟鍑忓幓琛ㄥ崟瀹瑰櫒鐨勯珮搴� */
-  overflow-y: auto;
-  /* 鍏佽鍒楄〃瀹瑰櫒鍨傜洿婊氬姩 */
-  padding: 10px;
-  /* 鍙�夛細娣诲姞涓�浜涘唴杈硅窛锛屼娇鍒楄〃鍐呭鏇寸編瑙� */
-}
-
-/* 鍦ㄥ皬灞忓箷璁惧涓婏紝閲嶇疆楂樺害涓洪�傚簲灞忓箷 */
-@media (max-width: 768px) {
-  .list-container {
-    height: calc(100vh - 500px);
-    /* 閫傚綋璋冩暣楂樺害 */
-  }
-}
-
-
-.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;
+  flex-wrap: wrap;
 }
 
+.modern-picker {
+  width: 100%;
+  padding: 8px 12px;
+  border: 1px solid #e9ecef;
+  border-radius: 6px;
+  background: #ffffff;
+  font-size: 14px;
+  margin-top: 6px;
+}
+
+.remarks-text {
+  color: #e74c3c;
+  font-style: italic;
+}
+
+/* 琛ㄦ牸鏍峰紡 */
+.inspection-table {
+  margin: 25px 0;
+  border-radius: 8px;
+  overflow: hidden;
+  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+  background: #fff;
+}
+
+/* 琛ㄦ牸澶撮儴缁熻淇℃伅 */
+.table-header-stats {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  padding: 16px 20px;
+  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
+  border-bottom: 1px solid #e0e0e0;
+}
+
+.stats-left .stats-title {
+  font-size: 18px;
+  font-weight: bold;
+  color: #2c3e50;
+  margin-bottom: 4px;
+}
+
+.stats-left .stats-subtitle {
+  font-size: 14px;
+  color: #7f8c8d;
+}
+
+.stats-right {
+  display: flex;
+  gap: 16px;
+}
+
+.stat-item {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  padding: 8px 12px;
+  border-radius: 6px;
+  min-width: 60px;
+  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+}
+
+.stat-item.passed {
+  background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.2));
+  border: 1px solid rgba(39, 174, 96, 0.3);
+}
+
+.stat-item.failed {
+  background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.2));
+  border: 1px solid rgba(230, 126, 34, 0.3);
+}
+
+.stat-item.pending {
+  background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(243, 156, 18, 0.2));
+  border: 1px solid rgba(243, 156, 18, 0.3);
+}
+
+.stat-count {
+  font-size: 20px;
+  font-weight: bold;
+  line-height: 1;
+  margin-bottom: 2px;
+}
+
+.stat-item.passed .stat-count {
+  color: #27ae60;
+}
+
+.stat-item.failed .stat-count {
+  color: #e67e22;
+}
+
+.stat-item.pending .stat-count {
+  color: #f39c12;
+}
+
+.stat-label {
+  font-size: 12px;
+  color: #7f8c8d;
+  font-weight: 500;
+}
+
+.inspection-table table {
+  width: 100%;
+  border-collapse: collapse;
+}
+
+.inspection-table th, .inspection-table td {
+  padding: 16px 20px;
+  border: none;
+  text-align: left;
+  border-bottom: 1px solid #eee;
+}
+
+.inspection-table th {
+  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+  font-weight: 600;
+  color: #fff;
+  font-size: 14px;
+  letter-spacing: 0.5px;
+  position: relative;
+}
+
+.inspection-table tbody tr {
+  transition: all 0.3s ease;
+  border-left: 4px solid transparent;
+}
+
+.inspection-table tbody tr:nth-child(even) {
+  background-color: #f8fafc;
+}
+
+.inspection-table tbody tr:hover {
+  background-color: #e8f4fd;
+  border-left-color: #3498db;
+  transform: translateY(-1px);
+  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
+}
+
+/* 妫�楠岄」鐩垪鏍峰紡 */
+.inspection-table td:first-child {
+  font-weight: 600;
+  color: #2c3e50;
+  font-size: 15px;
+}
+
+/* 椤圭洰鍚嶇О鍖呰鍣� */
+.project-name-wrapper {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+}
+
+/* 鐘舵�佹寚绀哄櫒 */
+.status-indicator {
+  width: 8px;
+  height: 8px;
+  border-radius: 50%;
+  display: inline-block;
+  flex-shrink: 0;
+  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
+}
+
+.status-indicator.status-approved {
+  background-color: #27ae60;
+  box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.3);
+}
+
+.status-indicator.status-rejected {
+  background-color: #e67e22;
+  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.3);
+}
+
+.status-indicator.status-pending {
+  background-color: #f39c12;
+  box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.3);
+}
+
+/* 妫�楠屾弿杩板垪鐗规畩鏍峰紡 */
+.inspection-table td:nth-child(2) {
+  position: relative;
+  min-height: 80px;
+  vertical-align: top;
+  padding: 16px 20px;
+}
+
+/* 鎻忚堪鏂囨湰鏍峰紡 */
+.description-text {
+  position: relative;
+  z-index: 2;
+  padding: 12px 16px;
+  background: transparent;
+  line-height: 1.6;
+  font-size: 14px;
+  color: #555;
+  margin: 0;
+  word-wrap: break-word;
+  word-break: break-word;
+  max-width: 100%;
+  /* 纭繚鏂囧瓧涓嶄細澶暱閬尅姘村嵃 */
+  padding-right: 80px;
+  min-height: 20px;
+  display: block;
+}
+
+/* 鎸夐挳鏍峰紡 */
+.action-buttons {
+  display: flex;
+  justify-content: flex-end;
+  gap: 10px;
+  margin-top: 20px;
+}
+
+.primary-btn,
+.secondary-btn,
+.danger-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;
+}
+
+.danger-btn {
+  background-color: #e74c3c;
+  color: white;
+}
+
+.danger-btn:hover {
+  background-color: #c0392b;
+}
+
+.record-btn {
+  padding: 8px 16px;
+  background: linear-gradient(135deg, #3498db, #2980b9);
+  color: #fff;
+  border: none;
+  border-radius: 6px;
+  cursor: pointer;
+  transition: all 0.3s ease;
+  font-weight: 500;
+  font-size: 13px;
+  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
+}
+
+.record-btn:hover {
+  background: linear-gradient(135deg, #2980b9, #1f618d);
+  transform: translateY(-1px);
+  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
+}
+
+.record-btn:active {
+  transform: translateY(0);
+}
+
+/* 濉啓鐘舵�佹寜閽� */
+.record-btn-fill {
+  background: linear-gradient(135deg, #2ecc71, #27ae60);
+  box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
+}
+
+.record-btn-fill:hover {
+  background: linear-gradient(135deg, #27ae60, #229954);
+  box-shadow: 0 4px 8px rgba(46, 204, 113, 0.4);
+}
+
+/* 鏌ョ湅鐘舵�佹寜閽� */
+.record-btn-view {
+  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
+  box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
+}
+
+.record-btn-view:hover {
+  background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
+  box-shadow: 0 4px 8px rgba(149, 165, 166, 0.4);
+}
+
+/* 姘村嵃鏍峰紡 */
+.watermark {
+  position: absolute;
+  font-size: 32px;
+  font-weight: bold;
+  opacity: 0.4;
+  z-index: 3;
+  pointer-events: none;
+  bottom: 8px;
+  right: 8px;
+  transform: rotate(-15deg);
+  transform-origin: bottom right;
+  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
+  min-width: 60px;
+  text-align: center;
+}
+
+.watermark.approved {
+  color: #27ae60; /* 鏇存贰鐨勭豢鑹� */
+}
+
+.watermark.rejected {
+  color: #e67e22; /* 鏇存贰鐨勭孩鑹� */
+}
+
+.watermark.pending {
+  color: #f39c12; /* 姗欒壊 */
+}
+
+/* 寮瑰嚭灞傛牱寮� */
 .overlay {
   position: fixed;
   top: 0;
@@ -569,6 +1046,7 @@
   display: flex;
   justify-content: center;
   align-items: center;
+  z-index: 10;
 }
 
 .popup {
@@ -577,8 +1055,221 @@
   border: 1px solid #ccc;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
   width: 68vw;
-  /* 璁剧疆瀹藉害涓鸿鍙e搴︾殑80% */
   height: 25vh;
-  /* 璁剧疆楂樺害涓鸿鍙i珮搴︾殑80% */
+}
+
+.table-popup {
+  max-width: 700px;
+  width: 90%;
+  max-height: 80vh;
+  display: flex;
+  flex-direction: column;
+}
+
+.table-container {
+  overflow-y: auto;
+  max-height: 60vh;
+  margin: 15px 0;
+}
+
+.table-container table {
+  width: 100%;
+  border-collapse: collapse;
+}
+
+.table-container th,
+.table-container td {
+  padding: 10px;
+  border: 1px solid #ddd;
+  text-align: left;
+}
+
+.table-container th {
+  background-color: #f8f9fa;
+  position: sticky;
+  top: 0;
+  z-index: 1;
+}
+
+.table-container tr:nth-child(even) {
+  background-color: #f9f9f9;
+}
+
+.table-container tr:hover {
+  background-color: #f1f5f9;
+}
+
+.text-success {
+  color: #2ecc71;
+}
+
+.text-danger {
+  color: #e74c3c;
+}
+
+.popup h3 {
+  margin-top: 0;
+  color: #2c3e50;
+  border-bottom: 1px solid #eee;
+  padding-bottom: 10px;
+}
+
+.popup .form-group {
+  margin-bottom: 15px;
+  display: flex;
+  flex-direction: column;
+}
+
+.popup .form-label {
+  margin-bottom: 5px;
+  font-weight: bold;
+}
+
+.popup .form-input {
+  padding: 8px;
+  border: 1px solid #ddd;
+  border-radius: 4px;
+}
+
+.popup-buttons {
+  display: flex;
+  justify-content: flex-end;
+  gap: 10px;
+  margin-top: 20px;
+}
+
+/* 鍝嶅簲寮忚璁� */
+@media (max-width: 500px) {
+  .info-row,
+  .info-block {
+    flex-direction: column;
+    align-items: flex-start;
+  }
+
+  .action-buttons {
+    flex-direction: column;
+  }
+
+  .inspection-table {
+    margin: 15px -10px;
+    border-radius: 0;
+  }
+
+  .inspection-table th,
+  .inspection-table td {
+    padding: 12px 8px;
+    font-size: 13px;
+  }
+
+  .inspection-table th {
+    font-size: 12px;
+  }
+
+  .description-text {
+    padding: 8px 12px;
+    padding-right: 50px;
+    font-size: 13px;
+  }
+
+  .record-btn {
+    padding: 6px 12px;
+    font-size: 12px;
+  }
+
+  /* 绉诲姩绔按鍗版牱寮忚皟鏁� */
+  .watermark {
+    font-size: 24px;
+    bottom: 4px;
+    right: 4px;
+  }
+
+  /* 绉诲姩绔〃鏍煎ご閮ㄧ粺璁� */
+  .table-header-stats {
+    flex-direction: column;
+    gap: 12px;
+    align-items: flex-start;
+    padding: 12px 16px;
+  }
+
+  .stats-right {
+    width: 100%;
+    justify-content: space-around;
+    gap: 8px;
+  }
+
+  .stat-item {
+    flex: 1;
+    min-width: auto;
+    padding: 6px 8px;
+  }
+
+  .stat-count {
+    font-size: 16px;
+  }
+
+  .stat-label {
+    font-size: 11px;
+  }
+
+  .stats-left .stats-title {
+    font-size: 16px;
+  }
+
+  .stats-left .stats-subtitle {
+    font-size: 13px;
+  }
+
+  /* 绉诲姩绔〃鏍糷over鏁堟灉鍑忓急 */
+  .inspection-table tbody tr:hover {
+    transform: none;
+    box-shadow: none;
+  }
+
+  /* 绉诲姩绔姸鎬佹寚绀哄櫒璋冩暣 */
+  .project-name-wrapper {
+    gap: 6px;
+  }
+
+  .status-indicator {
+    width: 6px;
+    height: 6px;
+  }
+}
+
+/* 骞虫澘璁惧鏍峰紡 */
+@media (min-width: 501px) and (max-width: 768px) {
+  .watermark {
+    font-size: 28px;
+    bottom: 6px;
+    right: 6px;
+  }
+
+  .inspection-table th,
+  .inspection-table td {
+    padding: 14px 16px;
+  }
+
+  .description-text {
+    font-size: 14px;
+    padding-right: 70px;
+  }
+
+  .record-btn {
+    padding: 7px 14px;
+    font-size: 13px;
+  }
+}
+
+/* 澶у睆璁惧浼樺寲 */
+@media (min-width: 1200px) {
+  .inspection-table {
+    margin: 30px 0;
+  }
+
+  .watermark {
+    font-size: 36px;
+    bottom: 10px;
+    right: 10px;
+  }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3