| | |
| | | <!-- 标题 --> |
| | | <view class="title">出库数量</view> |
| | | <view class="popup-item"> |
| | | <uni-number-box :value="data.anfme" :step='1' :min="0" :max="count" color="#747474" @change="changeValue" /> |
| | | <view> |
| | | <uni-number-box :value="data.anfme" :step='1' :min="0" :max="count" color="#747474" @change="changeValue" /> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="popup-item"> |
| | | <view> |
| | | <view @click="max()" style="padding: 0rpx 16rpx;background-color: #d9d9d9;font-size: 10px;">MAX</view> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="btn"> |
| | | <view class="btn-left" @click="addClose">取消</view> |
| | |
| | | <!-- 底部操作按钮 --> |
| | | <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="combDis">立即出库</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | token: '', |
| | | data: {}, |
| | | option: '', |
| | | count: 0 |
| | | count: 0, |
| | | combDis: false |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | max() { |
| | | this.data.anfme = this.count |
| | | }, |
| | | toggleDropdown(item) { |
| | | item.isOpen = !item.isOpen; |
| | | }, |
| | |
| | | }, |
| | | combConfirm() { |
| | | let _this = this |
| | | _this.combDis = true |
| | | if (_this.data.anfme == 0) { |
| | | uni.showToast({ title: '出库数量不能为0!', icon: "error", position: 'top'}) |
| | | return |
| | |
| | | data: combList, |
| | | method: 'POST', |
| | | success(res) { |
| | | _this.combDis = true |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | uni.hideLoading({}) |
| | |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |
| | | }, |
| | | fail(res) { |
| | | _this.combDis = false |
| | | } |
| | | }) |
| | | } |