| | |
| | | <view style="height: 100rpx;"></view> |
| | | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="buttom"> |
| | | <view class="buttom" v-if="orderType == 'in'"> |
| | | <button size="mini" @click="reset('warn')">重置</button> |
| | | <button size="mini" type="primary" @click="combConfirm('warn')">去组托</button> |
| | | </view> |
| | | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="buttom" v-if="orderType == 'out'"> |
| | | <button size="mini" @click="reset('warn')">重置</button> |
| | | <button size="mini" type="primary" @click="combConfirm2('warn')">去出库</button> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | newDataList: [], |
| | | allCheck: false, |
| | | allCheckBtnTitle: '全选', |
| | | orderType: 'out' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | |
| | | }) |
| | | that.getOrderDetl(data.item.id) |
| | | |
| | | that.orderType = 'in' |
| | | }) |
| | | eventChannel.on('item1', function(data) { |
| | | console.log(data); |
| | | that.orderId = data.item.orderId |
| | | console.log(data.item.id); |
| | | uni.setNavigationBarTitle({ |
| | | title: data.item.orderNo, |
| | | |
| | | }) |
| | | that.getOrderDetl(data.item.id) |
| | | |
| | | that.orderType = 'out' |
| | | }) |
| | | }, |
| | | onShow() { |
| | |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | res.data.records |
| | | _this.dataList = res.data.records |
| | | |
| | | _this.oldDataList = [..._this.dataList] |
| | | } |
| | | } |
| | |
| | | let _this = this |
| | | let combList = [] |
| | | for (let k of _this.dataList) { |
| | | k['csocode'] = k.threeCode |
| | | if (k.checked) { |
| | | combList.push(k) |
| | | } |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | combConfirm2(type) { |
| | | let _this = this |
| | | let combList = [] |
| | | for (let k of _this.dataList) { |
| | | if (k.checked) { |
| | | combList.push(k) |
| | | } |
| | | } |
| | | if (combList.length == 0) { |
| | | uni.showToast({ title: '请选择出库商品', icon: "error", position: 'top'}) |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: "./preview", |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 向另外一个页面传递值的 |
| | | res.eventChannel.emit('mats', { |
| | | mats: combList |
| | | }) |
| | | }, |
| | | }); |
| | | }, |
| | | } |
| | | } |
| | | </script> |