From 62ae01bb0bf26a4efb07e641011225599538b443 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期二, 14 五月 2024 09:54:49 +0800 Subject: [PATCH] Merge branch 'phyzasrs' of http://47.97.1.152:5880/r/wms_app into phyzasrs --- pages/phyz/bcp/bcpDbOrder.vue | 43 ++++++++++++++++++++++++++----------------- 1 files changed, 26 insertions(+), 17 deletions(-) diff --git a/pages/phyz/bcp/bcpDbOrder.vue b/pages/phyz/bcp/bcpDbOrder.vue index b67e620..93207ff 100644 --- a/pages/phyz/bcp/bcpDbOrder.vue +++ b/pages/phyz/bcp/bcpDbOrder.vue @@ -18,23 +18,16 @@ <view>缂栧彿锛歿{orderDetl.matnr}}</view> <view>鍚嶇О锛歿{orderDetl.maktx}}</view> <view>绫诲瀷锛歿{orderDetl.brand}}</view> - <view>鎬绘暟閲忥細{{orderDetl.anfme}}</view> - <view>宸插叆鏁伴噺锛歿{orderDetl.qty}}</view> + <view>璋冩嫧鎬婚噺锛歿{orderDetl.anfme}}</view> + <view>搴撳瓨鏁伴噺锛歿{orderDetl.stock}}</view> + <view>宸插畬鎴愭暟閲忥細{{orderDetl.qty}}</view> </view> - <view class="list-right" @click="addItem(index)"> - <uni-icons type="folder-add" size="25" color="#fff"></uni-icons> + <view class="list-right" @click="goToLocDetl(orderDetl)"> + <uni-icons type="right" size="25" color="#fff"></uni-icons> </view> </view> - <view class="shop-car" @click="orderCar()"> - <view class="car-left"> - <uni-icons type="cart-filled" size="35" color="#fff"></uni-icons> - </view> - <view class="car-right"> - <text>{{orderCarList.length}}</text> - </view> - </view> <!-- 鍨珮 --> <view style="height: 340rpx;text-align: center;color: #b9b9b9;"> - 宸茬粡鍒板簳浜� - @@ -139,7 +132,7 @@ onLoad() { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); - this.searchValue = uni.getStorageSync('threeCode'); + this.searchValue = uni.getStorageSync('bcpDbThreeCode'); this.getOrderDetlList(this.searchValue,10) console.log("onLoad"); }, @@ -157,7 +150,7 @@ _this.data.three_code = threeCode _this.data.limit = limit uni.request({ - url: `${_this.baseUrl}/order/bcp/detls/pakin/page/auth`, + url: `${_this.baseUrl}/order/bcpDb/detls/pakin/page/auth`, header: {'token': uni.getStorageSync('token')}, data: _this.data, method: 'GET', @@ -192,7 +185,7 @@ searchValueInput2() { this.dataList = [] this.data.curr = 1 - uni.setStorageSync('threeCode', this.searchValue); + uni.setStorageSync('bcpDbThreeCode', this.searchValue); if (this.searchValue.length == 0) { this.getOrderDetlList(this.searchValue,10) } else { @@ -257,7 +250,7 @@ console.log(data); if (data.data == 1) { _this.orderCarList = [] - _this.getOrderDetlList(uni.getStorageSync('threeCode'),10) + _this.getOrderDetlList(uni.getStorageSync('bcpDbThreeCode'),10) } } } @@ -289,7 +282,23 @@ this.data.brand = '' this.getOrderDetlList(this.searchValue,10) this.$refs.filter.close() - } + }, + goToLocDetl(item) { + let _this = this + uni.navigateTo({ + url: './bcpDbList', + success(res) { + res.eventChannel.emit('item', { + item: item + }) + }, + events: { + acceptDataFromOpenedPage: function(data) { + _this.getOrderDetlList(this.searchValue1,10) + } + } + }) + }, } } -- Gitblit v1.9.1