From a05d27a8148b8f2fe3061c4fb3908d7333ac45d3 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期四, 22 五月 2025 19:50:48 +0800
Subject: [PATCH] 代码提交

---
 pages/QC/LLJ/detail.vue |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 50 insertions(+), 4 deletions(-)

diff --git a/pages/QC/LLJ/detail.vue b/pages/QC/LLJ/detail.vue
index 3b8923b..9ff375e 100644
--- a/pages/QC/LLJ/detail.vue
+++ b/pages/QC/LLJ/detail.vue
@@ -61,14 +61,17 @@
 
 			<!-- 瑙勬牸瑕佹眰 -->
 			<view class="section">
-				<view class="section-header">瑙勬牸瑕佹眰</view>
+				<view class="section-header">瑙勬牸瑕佹眰 <!-- 閫犳ⅵ鑰呯壒娈婂姛鑳� -->
+				<a class="doc-link" @click="toFileUrlByU9List(1,itemNo)">鍥剧焊瑙勬牸涔�</a>
+            </view>
 				<view class="section-body">
 					<text class="spec-text">{{ formData.fspecRequ }}</text>
 				</view>
+				
 			</view>
 			<!-- 瑙勬牸瑕佹眰 -->
 			<view class="section">
-				<view class="section-header">妫�楠屾弿杩�</view>
+				<view class="section-header">妫�楠屾弿杩� <a class="doc-link" @click="toFileUrlByU9List(2,itemNo)">杩涙枡妫�楠屾枃浠�</a></view>
 				<view class="section-body">
 					<text class="spec-text">{{ formData.fcheckItemDesc }}</text>
 				</view>
@@ -237,7 +240,8 @@
 				releaseNo:'',
 				current:false,
 				Remarks:[],
-				RemarksIndex:0
+				RemarksIndex:0,
+				itemNo:'',
 			}
 		},
 		methods: {
@@ -358,11 +362,38 @@
 					this.$showMessage("淇濆瓨鎴愬姛");
 					this.refreshResult();
 					this.inputTxt = '';
+					
 				})
-
+				// debugger
+				//console.log()
+				//杈撳叆鍒版渶鍚庝竴涓�兼椂锛屽鏋滀负涓嶅悎鏍硷紝鍒欏脊绐楁彁绀轰笂浼犲浘鐗囧拰涓嶈壇鎻忚堪
+				//console.log(this.tableData.length+'=銆�'+this.formData.checkQyt+'=銆�'+this.formData.fngQty)
+				if(!(this.tableData.length < this.formData.checkQyt-1)&&this.formData.fngQty>0){
+					uni.showModal({
+						title: "鎻愮ず",
+						content: "缁撴灉杈撳叆鎴愬姛!鍒ゅ畾涓嶅悎鏍煎悗闇�瑕佸~鍐欎笉鑹弿杩板苟涓婁紶鍥剧墖",
+						confirmText: "纭畾",
+						showCancel: false,
+						success: (res) => {
+							
+						}
+					})
+				}
 			},
 			goBack() {
 				uni.navigateBack()
+			},
+			//鍘绘枃浠跺垪琛ㄩ〉闈紙鏂囦欢绫诲瀷锛岀墿鏂欑紪鍙凤級
+			toFileUrlByU9List(type,u9No){
+				if(type===1){
+					uni.navigateTo({
+						url: 'FileUrlByU9List?type=' + type+'&itemID='+u9No
+					});
+				}else{
+					uni.navigateTo({
+						url: 'FileUrlByU9List2?type=' + type+'&itemID='+u9No
+					});
+				}
 			},
 			//鑾峰彇妫�楠屽崟璇︽儏
 			refreshResult() {
@@ -505,6 +536,7 @@
 			this.releaseNo= params["releaseNo"];
             this.currentTab=parseInt(params["index"]);
 			this.current=params["current"] === 'true' ? true : false;
+			this.itemNo=params["itemNo"];
 			this.$post({
 				url: "/LLJ/getJYItem",
 				data: {
@@ -784,6 +816,20 @@
  .input2{
  		   display: none;
  }
+ // .doc-links {
+ //   margin-left: auto;
+ // }
+ 
+ .doc-link {
+   color: #3498db;
+   text-decoration: none;
+   margin-left: 15px;
+   padding: 3px 8px;
+   border: 1px solid #3498db;
+   border-radius: 3px;
+   font-size: 12px;
+   margin-left: 70%;
+ }
 	/* 鍝嶅簲寮忚璁� */
 	@media (max-width: 500px) {
 	   .input1{

--
Gitblit v1.9.3