From 9e263d85631bb44574ca6750a101ad9ce96cab98 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期二, 13 五月 2025 13:56:56 +0800
Subject: [PATCH] 来料检优化代码提交

---
 pages/QC/LLJ/detail.vue |   51 ++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 42 insertions(+), 9 deletions(-)

diff --git a/pages/QC/LLJ/detail.vue b/pages/QC/LLJ/detail.vue
index af7cc9e..3b8923b 100644
--- a/pages/QC/LLJ/detail.vue
+++ b/pages/QC/LLJ/detail.vue
@@ -97,9 +97,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>
@@ -184,7 +184,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>
@@ -230,7 +235,9 @@
 				inputTxt: '',
 				formID:'',
 				releaseNo:'',
-				current:false
+				current:false,
+				Remarks:[],
+				RemarksIndex:0
 			}
 		},
 		methods: {
@@ -242,6 +249,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 = "鈭�";
@@ -263,7 +275,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(); //鍒锋柊椤甸潰
 				})
 			},
@@ -348,7 +373,8 @@
 					}
 				}).then(res => {
 					this.formData = res.data.tbBillList.itemXj01;
-
+					this.remarks=this.formData.funit;
+					
 					this.tableData = res.data.tbBillList.itemXj02s;
 
 					if (this.formData.imageData) {
@@ -386,7 +412,7 @@
 						}
 					}).then(res => {
 						if (res.data.tbBillList > 0) {
-							this.formData.remarks = this.remarks;
+							this.formData.funit = this.remarks;
 							this.remarksPopup = !this.remarksPopup;
 							this.$showMessage("淇濆瓨鎴愬姛");
 						}
@@ -400,7 +426,7 @@
 						}
 					}).then(res => {
 						if (res.data.tbBillList > 0) {
-							this.formData.remarks = this.remarks;
+							this.formData.funit = this.remarks;
 							this.remarksPopup = !this.remarksPopup;
 							this.$showMessage("淇濆瓨鎴愬姛");
 						}
@@ -504,7 +530,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;
 			})
 		}
 	}

--
Gitblit v1.9.3