From 61a07fff05fbaf6ea85e48af0eed43f379011a45 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期四, 05 六月 2025 21:48:35 +0800
Subject: [PATCH] 11

---
 pages/QC/LLJ/detail.vue |  144 +++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 131 insertions(+), 13 deletions(-)

diff --git a/pages/QC/LLJ/detail.vue b/pages/QC/LLJ/detail.vue
index c3ee72e..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>
@@ -97,9 +100,9 @@
 						<view class="info-value">{{formData.result}}</view>
 					</view>
 
-					<view v-if="formData.remarks!=null" class="result-ng">
+					<view v-if="formData.funit!=null" class="result-ng">
 						<view class="info-label">涓嶈壇鎻忚堪</view>
-						<view class="info-value danger">{{formData.remarks}}</view>
+						<view class="info-value danger">{{formData.funit}}</view>
 					</view>
 				</view>
 			</view>
@@ -108,7 +111,7 @@
 			<view class="section">
 				<view class="section-header">妫�楠岀粨鏋滃綍鍏�</view>
 				<view class="section-body">
-					<view class="input-group">
+					<view class="input-group input1">
 						<view class="input-wrapper">
 
 							<button class="btn upload-btn" @tap="chooseImage">
@@ -119,6 +122,29 @@
 								<uni-icons type="compose" size="16" color="#fff"></uni-icons>
 								涓嶈壇鎻忚堪
 							</button>
+							<input v-if="(tableData.length < formData.checkQyt)" @input="search($event)"
+								v-model="inputTxt" type="text" class="result-input" placeholder="璇疯緭鍏ユ楠岀粨鏋�..."
+								placeholder-class="placeholder" />
+							<button v-if="(tableData.length < formData.checkQyt)"
+								style="margin: 0px;background-color: #3498db;color:#ffffff ;" class="btn primary-btn"
+								@tap="saveResult">淇濆瓨缁撴灉</button>
+						</view>
+					</view>
+					
+					<view class="input-group input2">
+						<view class="input-wrapper">
+					
+							<button class="btn upload-btn" @tap="chooseImage">
+								<uni-icons type="upload" size="16" color="#fff"></uni-icons>
+								涓婁紶/鏌ョ湅鍥剧墖
+							</button>
+							<button v-if="this.current" class="btn upload-btn" @tap="upRemarks">
+								<uni-icons type="compose" size="16" color="#fff"></uni-icons>
+								涓嶈壇鎻忚堪
+							</button>
+						</view>
+						<view class="input-wrapper" style="margin-top: 15px;">
+						
 							<input v-if="(tableData.length < formData.checkQyt)" @input="search($event)"
 								v-model="inputTxt" type="text" class="result-input" placeholder="璇疯緭鍏ユ楠岀粨鏋�..."
 								placeholder-class="placeholder" />
@@ -161,7 +187,12 @@
 					<form>
 						<view class="form-group">
 							<label class="form-label">涓嶅悎鏍兼弿杩�:</label>
-							<input class="form-input" type="text" v-model="remarks" />
+							<!-- <input class="form-input" type="text" v-model="remarks" /> -->
+							
+							<picker @change="onRemarksChange" :value="RemarksIndex" :range="Remarks">
+								<view class="picker" style="height: 40px;">{{this.remarks}}</view>
+							</picker>
+							
 						</view>
 						<button class="updateBut" type="warn" @click="editRemarks">淇敼</button>
 						<button @click="remarksPopup = !remarksPopup">鍙栨秷</button>
@@ -207,7 +238,10 @@
 				inputTxt: '',
 				formID:'',
 				releaseNo:'',
-				current:false
+				current:false,
+				Remarks:[],
+				RemarksIndex:0,
+				itemNo:'',
 			}
 		},
 		methods: {
@@ -219,6 +253,11 @@
 			//妫�娴嬭緭鍏ユ鐨勮緭鍏ワ紝骞剁粰鍙橀噺璧嬪��
 			search(event) {
 				this.formData.fcheckResu = event.detail.value;
+			
+			},
+			onRemarksChange(e) {
+				this.RemarksIndex = e.detail.value
+				this.remarks=this.Remarks[this.RemarksIndex];
 			},
 			toggleResult(item) {
 				let fstand = "鈭�";
@@ -240,7 +279,20 @@
 						updateBy: this.$loginInfo.account,
 					}
 				}).then(res => {
-					this.$showMessage("淇敼鎴愬姛");
+					if (item.fcheckResu == 'OK') {
+						uni.showModal({
+							title: "鎻愮ず",
+							content: "淇敼鎴愬姛!鍒ゅ畾涓嶅悎鏍煎悗闇�瑕佸~鍐欎笉鑹弿杩板苟涓婁紶鍥剧墖",
+							confirmText: "纭畾",
+							showCancel: false,
+							success: (res) => {
+								
+							}
+						})
+					}else{
+						this.$showMessage("淇敼鎴愬姛");
+					}
+					
 					this.refreshResult(); //鍒锋柊椤甸潰
 				})
 			},
@@ -310,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() {
@@ -325,7 +404,8 @@
 					}
 				}).then(res => {
 					this.formData = res.data.tbBillList.itemXj01;
-
+					this.remarks=this.formData.funit;
+					
 					this.tableData = res.data.tbBillList.itemXj02s;
 
 					if (this.formData.imageData) {
@@ -363,7 +443,7 @@
 						}
 					}).then(res => {
 						if (res.data.tbBillList > 0) {
-							this.formData.remarks = this.remarks;
+							this.formData.funit = this.remarks;
 							this.remarksPopup = !this.remarksPopup;
 							this.$showMessage("淇濆瓨鎴愬姛");
 						}
@@ -377,7 +457,7 @@
 						}
 					}).then(res => {
 						if (res.data.tbBillList > 0) {
-							this.formData.remarks = this.remarks;
+							this.formData.funit = this.remarks;
 							this.remarksPopup = !this.remarksPopup;
 							this.$showMessage("淇濆瓨鎴愬姛");
 						}
@@ -456,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: {
@@ -481,7 +562,14 @@
 				this.tableData.forEach((item, index) => {
 					this.set(item, 'current', this.current);
 				});
-				console.log(this.tableData);
+			})
+			
+			this.$post({
+				url: "/LLJ/getBlmsItem",
+				data: {
+				}
+			}).then(res1 => {
+				this.Remarks=res1.data;
 			})
 		}
 	}
@@ -722,4 +810,34 @@
 		background-color: #3498db;
 		color: white;
 	}
+ .input1{
+ 		   display: block;
+ }
+ .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{
+		   display: none;
+	   }
+	   .input2{
+		   display: block;
+	   }
+	}
+	
 </style>
\ No newline at end of file

--
Gitblit v1.9.3