From e91b83a895a9521d2b7a426417fdff73368aafed Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 26 三月 2024 16:11:15 +0800 Subject: [PATCH] # --- pages.json | 8 ++ pages/home/menuHome.vue | 11 +++ pages/phyz/stationManage/stationManage.vue | 124 +++++++++++++++++++++++++++++++++++++++++ pages/home/inOutManage.vue | 15 +--- 4 files changed, 145 insertions(+), 13 deletions(-) diff --git a/pages.json b/pages.json index d09aca2..ba2bac7 100644 --- a/pages.json +++ b/pages.json @@ -490,6 +490,14 @@ "navigationBarTitleText" : "绌烘澘鍏ュ嚭搴�", "enablePullDownRefresh" : false } + }, + { + "path" : "pages/phyz/stationManage/stationManage", + "style" : + { + "navigationBarTitleText" : "绔欑偣鏌ヨ缁存姢", + "enablePullDownRefresh" : false + } } diff --git a/pages/home/inOutManage.vue b/pages/home/inOutManage.vue index 599902d..3f6b9f7 100644 --- a/pages/home/inOutManage.vue +++ b/pages/home/inOutManage.vue @@ -26,13 +26,6 @@ project: 'tzsk', elements2: [ { - title: '缁勬墭', - name: 'pakin', - color: 'blue', - // cuIcon: 'pullup', - url: `/phyz/AGV/AGVPakin` - }, - { title: '绌烘澘鍏ュ嚭搴�', name: 'emptyIn', color: 'blue', @@ -40,11 +33,11 @@ url: `/phyz/AGV/emptyPakin` }, { - title: '閲囪喘鍏ュ簱-鍚庤浆璁㈠崟', - name: 'AGVPick', - color: 'cyan', + title: '缁勬墭', + name: 'pakin', + color: 'blue', // cuIcon: 'pullup', - url: `/tzsk/AGV/AGVPick` + url: `/phyz/AGV/AGVPakin` }, { diff --git a/pages/home/menuHome.vue b/pages/home/menuHome.vue index 5da8240..217820d 100644 --- a/pages/home/menuHome.vue +++ b/pages/home/menuHome.vue @@ -26,9 +26,16 @@ project: 'tzsk', elements2: [ { + title: '绔欑偣鏌ヨ缁存姢', + name: 'stationManage', + color: 'cyan', + // cuIcon: 'pullup', + url: `/phyz/stationManage/stationManage` + }, + { title: '鍏ュ嚭搴撶鐞�', name: 'inOutManage', - color: 'cyan', + color: 'purple', // cuIcon: 'pullup', url: `/home/inOutManage` }, @@ -42,7 +49,7 @@ { title: '宸ヤ綔妗g鐞�', name: 'ordeManage', - color: 'mauve', + color: 'brown', // cuIcon: 'pullup', url: `/home/wrkMastManage` }, diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue new file mode 100644 index 0000000..dc5cc8d --- /dev/null +++ b/pages/phyz/stationManage/stationManage.vue @@ -0,0 +1,124 @@ +<template> + <view> + <view class="code"> + <uni-search-bar :focus="searchValueFocus" v-model="searchValue" @input="searchValueInput()" + maxlength="500" ancel="cancel" @clear="clear" placeholder="杈撳叆 / 鎵弿 璁㈠崟鍙�"> + </uni-search-bar> + </view> + <view class="list" v-if="station"> + <view class="list-left"> + <view>绔欑偣缂栧彿锛歿{station.stationCode}}</view> + <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="#c1c1c1"></uni-icons> + </view> + </view> + <view class="list" v-if="wrkMast"> + <view class="list-left"> + <view>宸ヤ綔鍙凤細{{wrkMast.wrkNo}}</view> + <view>宸ヤ綔鐘舵�侊細{{wrkMast.wrkSts$}}</view> + <view>鍏ュ嚭搴撶被鍨嬶細{{wrkMast.ioType$}}</view> + <view>婧愬簱浣嶏細{{wrkMast.sourceLocNo}}</view> + <view>鐩爣搴撲綅锛歿{wrkMast.locNo}}</view> + <view>鏂欑鐮侊細{{wrkMast.barcode}}</view> + <!-- <view class="card-id">{{i + 1}}</view> --> + </view> + <view class="list-right" @click="getOrderDetl(item)"> + <uni-icons type="right" color="#c1c1c1"></uni-icons> + </view> + </view> + </view> +</template> + +<script> + export default { + data() { + return { + baseUrl: '', + token: '', + searchValueFocus: true, + searchValue: '', + station: '', + wrkMast: '' + + } + }, + onLoad() { + this.baseUrl = uni.getStorageSync('baseUrl'); + this.token = uni.getStorageSync('token'); + }, + onShow() { + + }, + methods: { + searchValueInput() { + this.getBasDevp() + }, + // 鑾峰彇鏆傚瓨浣� + getBasDevp() { + let _this = this + uni.request({ + url: `${_this.baseUrl}/agv/basDevp/list/auth`, + header: {'token': uni.getStorageSync('token')}, + data: { + curr: 1, + limit: 1000, + dev_no: _this.searchValue + }, + method: 'GET', + success(res) { + res = res.data + if (res.code === 200) { + for (let item of res.data.records) { + _this.station = item + _this.getWrkMast(item.barcode) + } + } + } + }) + }, + // 鑾峰彇宸ヤ綔妗� + getWrkMast(barcode) { + let _this = this + uni.request({ + url: `${_this.baseUrl}/agv/wrkMast/list/auth`, + header: {'token': uni.getStorageSync('token')}, + data: { + curr: 1, + limit: 1000, + condition: barcode + }, + method: 'GET', + success(res) { + res = res.data + if (res.code === 200) { + for (let item of res.data.records) { + _this.wrkMast = item + } + } + } + }) + } + } + } +</script> + +<style> + @import url('../../../static/css/common/order.css'); + .list-anfme { + color: #0082ff; + font-weight: bold; + } + .list-qty-1 { + color: #33ba43; + font-weight: bold; + } + .list-qty-2 { + color: #e2231a; + font-weight: bold; + } +</style> \ No newline at end of file -- Gitblit v1.9.1