From e278a3eef9893be2e0a8221e6de710503a732662 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期六, 06 四月 2024 23:28:43 +0800 Subject: [PATCH] # --- pages/phyz/stationManage/stationDetl.vue | 1 + pages/phyz/stationManage/stationManage.vue | 18 ++++++++++-------- pages/phyz/order/outOrder.vue | 24 +++++++++++++++++++++--- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/pages/phyz/order/outOrder.vue b/pages/phyz/order/outOrder.vue index 49bcd2e..bb601fd 100644 --- a/pages/phyz/order/outOrder.vue +++ b/pages/phyz/order/outOrder.vue @@ -1,7 +1,7 @@ <template> <view class="container"> <view class="code"> - <uni-search-bar :focus="searchValueFocus" v-model="searchValue" @input="searchValueInput()" + <uni-search-bar :focus="searchValueFocus" v-model="searchValue" @input="searchValueInput2()" maxlength="500" ancel="cancel" @clear="clear" placeholder="杈撳叆 / 鎵弿 璁㈠崟鍙�"> </uni-search-bar> <view class="code-title"> @@ -57,6 +57,25 @@ }, methods: { + searchValueInput2() { + let _this = this + uni.request({ + url: `${_this.baseUrl}/order/head/page/auth`, + header: {'token': uni.getStorageSync('token')}, + data: { + curr: 1, + limit: 30, + order_no: _this.searchValue + }, + method: 'GET', + success(res) { + res = res.data + if (res.code === 200) { + _this.dataList = res.data.records + } + } + }) + }, searchValueInput() { let count = 0 let sign = 0 @@ -108,14 +127,13 @@ header: {'token': uni.getStorageSync('token')}, data: { curr: 1, - limit: 1000, + limit: 30, }, method: 'GET', success(res) { res = res.data if (res.code === 200) { _this.dataList = res.data - _this.oldDataList = [..._this.dataList] } } }) diff --git a/pages/phyz/stationManage/stationDetl.vue b/pages/phyz/stationManage/stationDetl.vue index 57be4db..41f73ff 100644 --- a/pages/phyz/stationManage/stationDetl.vue +++ b/pages/phyz/stationManage/stationDetl.vue @@ -147,6 +147,7 @@ // 鏇存柊绔欑偣 reloadStation() { let _this = this + console.log(_this.station.devNo); _this.reload.loading = true _this.reload.loadingText = '鏇存柊涓�...' uni.request({ diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue index 02646d8..9a42e0e 100644 --- a/pages/phyz/stationManage/stationManage.vue +++ b/pages/phyz/stationManage/stationManage.vue @@ -17,17 +17,16 @@ <uni-icons type="right" color="#fff"></uni-icons> </view> </view> - <view class="list" style="background-color: #3eb689;color: #fff;" v-if="station"> + <!-- <view class="list" style="background-color: #3eb689;color: #fff;" v-if="station"> <view class="list-left"> <view>宸ヤ綅缂栧彿锛歿{station.devNo}}</view> <view>绔欑偣鐘舵�侊細{{station.locSts$}}</view> <view>鏉″舰鐮侊細{{station.barcode}}</view> - <!-- <view class="card-id">{{i + 1}}</view> --> </view> <view class="list-right" @click="getOrderDetl(item)"> <uni-icons type="right" color="#fff"></uni-icons> </view> - </view> + </view> --> <view class="list" style="background-color: #019fe8;color: #fff;" v-if="wrkMast"> <view class="list-left"> <view>宸ヤ綔鍙凤細{{wrkMast.wrkNo}}</view> @@ -128,6 +127,7 @@ searchValueInput() { if (this.searchValue == '') { this.station = '' + this.stations = [] this.wrkMast = '' this.wrkDetls = [] } else { @@ -140,6 +140,7 @@ }, // 鑾峰彇鏆傚瓨浣� getBasDevp(type) { + console.log(this.searchValue); let _this = this uni.request({ url: `${_this.baseUrl}/agv/basDevp/list/auth`, @@ -163,16 +164,15 @@ } _this.stations = res.data.records } else { - console.log(123213); + res.data.records for (let item of res.data.records) { if (item.locSts != 'O') { item['style'] = 'station-wrk' } else { item['style'] = 'station-nowrk' } - _this.station = item - _this.getOrderDetl(_this.station) } + _this.getOrderDetl(res.data.records[0]) } } @@ -371,14 +371,16 @@ this.$refs.revise.close() }, // 鍓嶅線绔欑偣鏄庣粏椤甸潰 - getOrderDetl(item) { + getOrderDetl(e) { + console.log(e); let _this = this uni.navigateTo({ url: "./stationDetl", success: function(res) { // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑 + console.log(e); res.eventChannel.emit('item', { - item: item + item: e }), _this.searchValue = '' }, -- Gitblit v1.9.1