| | |
| | | </view> |
| | | <xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload> |
| | | <BillSelectorPopupVue @update="billSelectHandler" ref="billSelector" :Type="'DJ'"></BillSelectorPopupVue> |
| | | |
| | | <!-- 用于输入标准值 上限值 下限值的弹出层 --> |
| | | <uni-popup ref="inputPopup" :mask-click="false" > |
| | | <view class="inputPopup"> |
| | | <view class="form-item"> |
| | | <view class="title">标准值:</view> |
| | | <view class="right"> |
| | | <input type="number" v-model="selectTechParamItem.item.HStd" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">上限值:</view> |
| | | <view class="right"> |
| | | <input type="number" v-model="selectTechParamItem.item.HMax" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">下限值:</view> |
| | | <view class="right"> |
| | | <input type="number" v-model="selectTechParamItem.item.HMin" /> |
| | | </view> |
| | | </view> |
| | | <view style="display: flex; flex-direction: row;"> |
| | | <button size="mini" plain="true" type="primary" @click="inputPopupClose(1)">确认</button> |
| | | <button size="mini" plain="true" type="warn" @click="inputPopupClose(0)">取消</button> |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | HBillType: '3919', |
| | | operationType: 1, |
| | | uploadOptions: {}, |
| | | |
| | | selectTechParamItem: { |
| | | index: -1, |
| | | item: { |
| | | HStd: 0, |
| | | HMax: 0, |
| | | HMin: 0 |
| | | } |
| | | }, |
| | | |
| | | HTechParams: [], // 工艺参数 |
| | | |
| | |
| | | }, |
| | | methods: { |
| | | modifyCheckValue(index, item) { |
| | | console.log('item: ',item, 'index: ', index); |
| | | console.log('item: ', item, 'index: ', index); |
| | | this.selectTechParamItem = { |
| | | index, |
| | | item: JSON.parse(JSON.stringify(item)) |
| | | } |
| | | |
| | | this.$refs.inputPopup.open() |
| | | }, |
| | | billSelectHandler(billData) { |
| | | console.log('billData: ', billData); |
| | |
| | | this.hform.HBarCode = cb |
| | | this.GetMessageByBarCode(cb) |
| | | }) |
| | | }, |
| | | inputPopupClose(type) { |
| | | if(type == 1) { |
| | | // 确认 |
| | | let index = this.selectTechParamItem.index |
| | | let item = this.selectTechParamItem.item |
| | | |
| | | this.HTechParams[index] = item |
| | | } |
| | | this.selectTechParamItem = { |
| | | index: -1, |
| | | item: { |
| | | HStd: 0, |
| | | HMax: 0, |
| | | HMin: 0 |
| | | } |
| | | }, |
| | | this.$refs.inputPopup.close() |
| | | }, |
| | | async GetMessageByBarCode(HBarCode) { |
| | | try { |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/pages/MJGL/style/MJBillStyle.scss" |
| | | @import "@/pages/MJGL/style/MJBillStyle.scss"; |
| | | |
| | | .inputPopup { |
| | | background-color: #fff; |
| | | padding: 20rpx; |
| | | } |
| | | </style> |