| | |
| | | <!-- 底部操作按钮 --> |
| | | <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> |
| | | <!-- 弹窗 --> |
| | | <!-- 修改数量 --> |
| | |
| | | matFocus: false, |
| | | matData: '', |
| | | removeNum: 0, |
| | | isDisabled:false |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | this.$refs.combConfirm.close() |
| | | }, |
| | | comb() { |
| | | uni.vibrateShort(); |
| | | 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 |
| | | } |
| | | }); |
| | | }, |