| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | inputTxt: '', |
| | | formID:'', |
| | | releaseNo:'', |
| | | current:false |
| | | current:false, |
| | | Remarks:[], |
| | | RemarksIndex:0 |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | //检测输入框的输入,并给变量赋值 |
| | | 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 = "√"; |
| | |
| | | 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(); //刷新页面 |
| | | }) |
| | | }, |
| | |
| | | } |
| | | }).then(res => { |
| | | this.formData = res.data.tbBillList.itemXj01; |
| | | |
| | | this.remarks=this.formData.funit; |
| | | |
| | | this.tableData = res.data.tbBillList.itemXj02s; |
| | | |
| | | if (this.formData.imageData) { |
| | |
| | | } |
| | | }).then(res => { |
| | | if (res.data.tbBillList > 0) { |
| | | this.formData.remarks = this.remarks; |
| | | this.formData.funit = this.remarks; |
| | | this.remarksPopup = !this.remarksPopup; |
| | | this.$showMessage("保存成功"); |
| | | } |
| | |
| | | } |
| | | }).then(res => { |
| | | if (res.data.tbBillList > 0) { |
| | | this.formData.remarks = this.remarks; |
| | | this.formData.funit = this.remarks; |
| | | this.remarksPopup = !this.remarksPopup; |
| | | this.$showMessage("保存成功"); |
| | | } |
| | |
| | | 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; |
| | | }) |
| | | } |
| | | } |