| | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="buttom"> |
| | | <button size="mini" @click="reset('warn')">重置</button> |
| | | <button size="mini" type="primary" @click="combConfirm('warn')">组托</button> |
| | | <button size="mini" type="primary" @click="combConfirm('warn')" :disabled="isDisabled">组托</button> |
| | | </view> |
| | | <!-- 弹窗 --> |
| | | <!-- 修改数量 --> |
| | |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">数量:</view> |
| | | <view class="popup-item-right" style="border: none;justify-content: center;"> |
| | | <uni-number-box :value="count" :step='0.01' :max="9999999" color="#747474" @change="changeValue" /> |
| | | <uni-number-box :value="count" :step='0.001' :max="9999999" color="#747474" @change="changeValue" /> |
| | | </view> |
| | | </view> |
| | | <view class="btn"> |
| | |
| | | matFocus: false, |
| | | matData: '', |
| | | removeNum: 0, |
| | | isDisabled:false |
| | | } |
| | | }, |
| | | onLoad() { |
| | | let that = this |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | |
| | | eventChannel.on('orderItem', function(data) { |
| | | console.log(data.item) |
| | | eventChannel.on('orderItem', function(data) { |
| | | that.orderNo = data.item.orderNo |
| | | that.checkMat(data.item) |
| | | }); |
| | |
| | | barcodeInput() { |
| | | // 不设置定时器 会出现扫入的字符串不全 |
| | | setTimeout(() => { |
| | | var len = this.barcode.length |
| | | if (len >= 9 && len <=8) { |
| | | uni.showToast({ |
| | | title: '托盘码有误请重试', |
| | | icon: "none", |
| | | position: 'top' |
| | | }); |
| | | this.barcodeFocuss() |
| | | return; |
| | | } |
| | | var len = this.barcode.length |
| | | this.focuss() |
| | | }, 200) |
| | | }, |
| | |
| | | }, |
| | | checkMat(mat) { |
| | | mat.review = "未复核" |
| | | mat.anfme = mat.enableQty |
| | | var len = this.dataList.length |
| | | var add = true ,sameItem = false |
| | | for (var i = 0; i < len; i++) { |
| | |
| | | combClose() { |
| | | this.$refs.combConfirm.close() |
| | | }, |
| | | comb() { |
| | | uni.vibrateShort(); |
| | | comb() { |
| | | let that = this; |
| | | that.isDisabled = true |
| | | if (that.orderNo === '') { |
| | | this.messageText = "请输入订单条码" |
| | | this.messageToggle('error') |
| | |
| | | that.messageText = res.msg |
| | | that.messageToggle('error') |
| | | } |
| | | }, |
| | | fail: () => { |
| | | that.messageText = "接口超时" |
| | | that.messageToggle('error') |
| | | }, |
| | | complete: () => { |
| | | that.isDisabled = false |
| | | } |
| | | }); |
| | | }, |
| | |
| | | text-align: center; |
| | | box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); |
| | | } |
| | | .list:first-child { |
| | | margin-top: 420rpx; |
| | | } |
| | | .list:last-child { |
| | | margin-bottom: 120rpx; |
| | | } |
| | | </style> |