From 676db89a661ba8af8da04f4503c39b1bc0d2c25e Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期二, 10 六月 2025 16:11:04 +0800
Subject: [PATCH] bug修改

---
 pages/QC/LLJ/detail.vue |   86 +++++++++++++++++++++++++++++++++++++++---
 1 files changed, 79 insertions(+), 7 deletions(-)

diff --git a/pages/QC/LLJ/detail.vue b/pages/QC/LLJ/detail.vue
index 9f4e0d5..e698a41 100644
--- a/pages/QC/LLJ/detail.vue
+++ b/pages/QC/LLJ/detail.vue
@@ -97,9 +97,13 @@
 						<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 class="result-ng">
+					    <view class="info-label">澶囨敞</view>
+					    <view class="info-value danger">{{formData.meom}}</view>
 					</view>
 				</view>
 			</view>
@@ -130,6 +134,10 @@
 								<uni-icons type="compose" size="16" color="#fff"></uni-icons>
 								涓嶈壇鎻忚堪
 							</button>
+							<button v-if="this.current" class="btn upload-btn" @tap="upMeom">
+								<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" />
@@ -150,7 +158,13 @@
 								<uni-icons type="compose" size="16" color="#fff"></uni-icons>
 								涓嶈壇鎻忚堪
 							</button>
+							<button v-if="this.current" class="btn upload-btn" @tap="upMeom">
+							            <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)"
@@ -203,7 +217,20 @@
 					</form>
 				</view>
 			</view>
-			<view v-if="showPopup" class="overlay">
+			<view v-if="meomPopup" 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="meom" />
+			            </view>
+			            <button class="updateBut" type="warn" @click="editMeom">淇敼</button>
+			            <button @click="meomPopup = !meomPopup">鍙栨秷</button>
+			        </form>
+			    </view>
+			</view>
+			<view v-if="showMeom" class="overlay">
 				<view class="popup">
 					<h3>淇敼妫�楠岀粨鏋�</h3>
 					<form :modelValue="editData">
@@ -212,7 +239,7 @@
 							<input class="form-input" type="text" v-model="editData.fcheckResu" />
 						</view>
 						<button type="warn" @click="eidt">淇敼</button>
-						<button @click="showPopup = !showPopup">鍙栨秷</button>
+						<button @click="showMeom = !showMeom">鍙栨秷</button>
 					</form>
 				</view>
 			</view>
@@ -245,7 +272,11 @@
 				current: false,
 				batchInput: '',
 				batchInputError: '',
-				isBatchInputValid: false
+				isBatchInputValid: false,
+				funit:'',
+				meomPopup: false,
+				showMeom:false,
+				meom: '',
 			}
 		},
 		methods: {
@@ -453,6 +484,7 @@
 					} else {
 						this.isNumber = false;
 					}
+					
 				})
 			},
 			editResult(fcheckResu) {
@@ -464,11 +496,50 @@
 			},
 			toDetail(item) {
 				this.showPopup = !this.showPopup;
+				this.showMeom = !this.showMeom;
 				this.editData = item;
+				
+			},
+			upMeom() {
+			    this.meomPopup = true;
+			    
+			},
+			editMeom() {
+			    // 淇濆瓨澶囨敞淇℃伅
+			    if (this.meom) {
+			        this.$post({
+			            url: "/LLJ/saveRemarksPid",
+			            data: {
+			                pid: this.formData.id,
+			                meom: this.meom,
+							
+			            }
+			        }).then(res => {
+			            if (res.data.tbBillList > 0) {
+			                this.formData.meom = this.meom;
+			                this.meomPopup = !this.meomPopup;
+			                this.$showMessage("淇濆瓨鎴愬姛");
+			            }
+			        })
+			    } else {
+			        this.$post({
+			            url: "/LLJ/saveRemarksPid",
+			            data: {
+			                pid: this.formData.id,
+			                meom: ''
+			            }
+			        }).then(res => {
+			            if (res.data.tbBillList > 0) {
+			                this.formData.meom = this.meom;
+			                this.meomPopup = !this.meomPopup;
+			                this.$showMessage("淇濆瓨鎴愬姛");
+			            }
+			        })
+			    }
 			},
 			editRemarks() {
 				if (this.remarks) {
-					//saveRemarksGid
+					
 					this.$post({
 						url: "/LLJ/saveRemarksPid",
 						data: {
@@ -574,7 +645,8 @@
 				url: "/LLJ/getJYItem",
 				data: {
 					id: this.formID,
-					releaseNo: this.releaseNo
+					releaseNo: this.releaseNo,
+					
 				}
 			}).then(res1 => {
 				let tableData = res1.data.tbBillList

--
Gitblit v1.9.3