From 6bf8209f8bdfe138d5282059eef765324909f2fd Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期一, 09 六月 2025 23:31:19 +0800
Subject: [PATCH] 新增特殊物料备注

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

diff --git a/pages/QC/LLJ/detail.vue b/pages/QC/LLJ/detail.vue
index 9f4e0d5..925e9db 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 v-if="formData.meom!=null" 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,6 +217,19 @@
 					</form>
 				</view>
 			</view>
+			<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="showPopup" class="overlay">
 				<view class="popup">
 					<h3>淇敼妫�楠岀粨鏋�</h3>
@@ -245,7 +272,10 @@
 				current: false,
 				batchInput: '',
 				batchInputError: '',
-				isBatchInputValid: false
+				isBatchInputValid: false,
+				funit:'',
+				meomPopup: false,
+				meom: '',
 			}
 		},
 		methods: {
@@ -466,6 +496,42 @@
 				this.showPopup = !this.showPopup;
 				this.editData = item;
 			},
+			upMeom() {
+			    this.meomPopup = true;
+			    this.meom = this.formData.meom || ''; // 鍒濆鍖栧娉ㄥ��
+			},
+			editMeom() {
+			    // 淇濆瓨澶囨敞淇℃伅
+			    if (this.Meom) {
+			        this.$post({
+			            url: "/LLJ/saveRemarksPid",
+			            data: {
+			                pid: this.formData.id,
+			                remarks: 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
@@ -574,7 +640,8 @@
 				url: "/LLJ/getJYItem",
 				data: {
 					id: this.formID,
-					releaseNo: this.releaseNo
+					releaseNo: this.releaseNo,
+					meom:this.meom
 				}
 			}).then(res1 => {
 				let tableData = res1.data.tbBillList

--
Gitblit v1.9.3