zjh
2025-05-13 9e263d85631bb44574ca6750a101ad9ce96cab98
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;
         })
      }
   }