| | |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | <!-- 遮罩层 --> |
| | | <view class="mask" v-if="mask"> |
| | | 加载中。。。 |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | index: 0, |
| | | count: 0, |
| | | |
| | | mask: false |
| | | |
| | | } |
| | | }, |
| | |
| | | methods: { |
| | | getOrderDetlList(threeCode,limit) { |
| | | let _this = this |
| | | _this.mask = true |
| | | _this.data.three_code = threeCode |
| | | _this.data.limit = limit |
| | | uni.request({ |
| | |
| | | } |
| | | _this.dataList = res.data.records |
| | | _this.total = res.data.total |
| | | _this.mask = false |
| | | } |
| | | } |
| | | }) |
| | |
| | | this.count = 0 |
| | | }, |
| | | addConfirm() { |
| | | if (this.count == 0) { |
| | | uni.showToast({ title: '入库数量不合法!', icon: "none", position: 'top' }) |
| | | return |
| | | } |
| | | // if (this.count == 0) { |
| | | // uni.showToast({ title: '入库数量不合法!', icon: "none", position: 'top' }) |
| | | // return |
| | | // } |
| | | this.dataList[this.index]['used'] = true |
| | | this.dataList[this.index]['pakinQty'] = this.count |
| | | this.orderCarList.push(this.dataList[this.index]) |
| | |
| | | // 点击前往 待组托列表 |
| | | orderCar() { |
| | | let _this = this |
| | | if (_this.orderCarList.length === 0) { |
| | | uni.showToast({ title: '请添加入库商品!', icon: "none", position: 'top' }) |
| | | return |
| | | } |
| | | uni.navigateTo({ |
| | | url: './orderCar', |
| | | success(res) { |
| | |
| | | events: { |
| | | acceptDataFromOpenedPage: function(data) { |
| | | console.log(data); |
| | | if (data.data == 1) { |
| | | _this.orderCarList = [] |
| | | _this.getOrderDetlList(uni.getStorageSync('threeCode'),999999) |
| | | } |
| | | } |
| | | } |
| | | }) |
| | |
| | | flex: 4; |
| | | } |
| | | |
| | | .mask { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100vh; |
| | | z-index: 999; |
| | | top: 0; |
| | | left: 0; |
| | | background-color: rgba(0, 0, 0, .4); |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 16px; |
| | | color: #fff; |
| | | } |
| | | |
| | | .popup { |
| | | width: 80vw; |
| | | min-height: 100rpx; |