From 3911b985cc7cd41fdb2c9061d8c83f4bf7a4880e Mon Sep 17 00:00:00 2001 From: LSH Date: 星期六, 16 十二月 2023 14:07:21 +0800 Subject: [PATCH] # --- pages/pakin/goodsUp2.vue | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/pages/pakin/goodsUp2.vue b/pages/pakin/goodsUp2.vue index de113ad..89a43cc 100644 --- a/pages/pakin/goodsUp2.vue +++ b/pages/pakin/goodsUp2.vue @@ -10,6 +10,10 @@ <uni-combox :candidates="orderNoList" placeholder="璇烽�夋嫨鏉ユ簮鍦�" v-model="origin"></uni-combox> </view> <view class="item"> + <view class="code-decs">璐т富:</view> + <uni-combox :candidates="ownerList" placeholder="璇烽�夋嫨璐т富" v-model="owner"></uni-combox> + </view> + <view class="item"> <view class="code-decs">搴撲綅鐮�:</view> <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="locNo" > </view> @@ -154,8 +158,9 @@ locNo:'', orderNoList: [], code:'', - origin:'' - + origin:'', + ownerList: [], + owner: '' } }, onLoad() { @@ -165,6 +170,7 @@ this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); this.getOrderNoList() + this.getOwnerList() }, methods: { findCode(){ @@ -191,6 +197,22 @@ } }) }, + getOwnerList(){ + let that = this + uni.request({ + url: this.baseUrl + '/locOwnerQuery/auth', + header: { + 'token':uni.getStorageSync('token') + }, + method: 'POST', + success(res) { + res = res.data + res.data.forEach((item,index) => { + that.ownerList.push(item.value) + }) + } + }) + }, // 鏍规嵁鎵樼洏鐮佹悳绱� search() { let that = this -- Gitblit v1.9.1