xwt
2025-06-09 6bf8209f8bdfe138d5282059eef765324909f2fd
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