From 42befdd31d6c897381bb7c80fd41d0d9619c085c Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期六, 07 十月 2023 16:21:48 +0800 Subject: [PATCH] # --- pages/basics/matQuery.vue | 104 +++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 75 insertions(+), 29 deletions(-) diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue index e9a0b1f..e721812 100644 --- a/pages/basics/matQuery.vue +++ b/pages/basics/matQuery.vue @@ -1,29 +1,41 @@ <template> - <scroll-view scroll-y> - <view> - <view class="container"> - <view class="text-box"> - <view class="text-title"><text>鍟嗗搧缂栫爜</text></view> - <view class="text-title"><text>{{matData.matnr}}</text></view> - </view> - <view class="text-box"> - <view class="text-title"><text>鍟嗗搧鍚嶇О</text></view> - <view class="text-title">{{matData.maktx}}</view> - </view> - <view class="text-box"> - <view class="text-title"><text>瑙勬牸</text></view> - <view class="text-title">{{matData.specs}}</view> - </view> - <view class="text-box"> - <view class="text-title"><text>鎵瑰彿</text></view> - <view class="text-title"><input type="text" v-model="matData.batch"></view> - </view> - <view class="text-box"> - <view class="text-title"><text>鏁伴噺</text></view> - <view class="text-title"> - <view> - <uni-number-box :value="matData.anfme" :max="9999999" color="#747474" @change="changeValue"/> - </view> + <view> + <view class="container"> + <view class="text-box"> + <view class="text-title text-desc"><text>鍟嗗搧缂栫爜</text></view> + <view class="text-title"><text>{{matData.matnr}}</text></view> + </view> + <view class="text-box"> + <view class="text-title text-desc"><text>鍟嗗搧鍚嶇О</text></view> + <view class="text-title">{{matData.maktx}}</view> + </view> + <view class="text-box"> + <view class="text-title text-desc"><text>瑙勬牸</text></view> + <view class="text-title">{{matData.specs}}</view> + </view> + <view class="text-box"> + <view class="text-title text-desc"><text>鍏ュ簱鍖哄煙</text></view> + <view class="text-title">{{matData.matType$}}</view> + </view> + <view class="text-box"> + <view class="text-title text-desc"><text>鎵瑰彿</text></view> + <view class="text-title"><input type="text" v-model="matData.batch"></view> + </view> + <view class="text-box"> + <view class="text-title text-desc"><text>澶囨敞</text></view> + <view class="text-title"><input type="text" v-model="matData.memo"></view> + </view> + <view class="text-box"> + <view class="text-title text-desc"><text>瀹㈡埛淇℃伅</text></view> + <uni-combox :candidates="owners" placeholder="璇烽�夋嫨瀹㈡埛绫诲埆" + v-model="matData.owner"></uni-combox> + <!-- <view class="text-title"><input type="text" v-model="matData.cstmr"></view> --> + </view> + <view class="text-box"> + <view class="text-title text-desc"><text>鏁伴噺</text></view> + <view class="text-title"> + <view> + <uni-number-box :value="matData.anfme" :max="9999999" color="#747474" @change="changeValue"/> </view> </view> </view> @@ -33,7 +45,7 @@ <button class="cu-btn bg-blue" @click="back()">鎻愬彇</button> </label> </view> - </scroll-view> + </view> </template> <script> @@ -45,9 +57,13 @@ maktx: null, batch: null, anfme: null, + owner: null }, + owners: [], + owner: '', baseIP:'', basePORT:'', + commonUrl: '' } }, onLoad(option) { @@ -65,9 +81,34 @@ that.matData.anfme = 0 }) - + eventChannel.on('url', function(data) { + that.commonUrl = data.data + }) + setTimeout(()=> { + this.locOwner() + },100) }, methods: { + locOwner() { + let that = this + uni.request({ + url: 'http://10.10.10.100:8080/bfwms' + '/locOwner/list/auth', + data:{curr:1,limit:15}, + header: { 'token':uni.getStorageSync('token') }, + method:'GET', + success(res) { + res = res.data + if (res.code === 200) { + that.owner = res.data.records + for (let k of res.data.records) { + that.owners.push(k.owner) + } + } + }, + fail(res) { + } + }) + }, blur() { }, @@ -83,6 +124,7 @@ return; } this.getOpenerEventChannel().emit('matList', {data: this.matData}); + this.getOpenerEventChannel().emit('owner', {data: this.owner}); uni.vibrateShort(); uni.navigateBack({ @@ -99,8 +141,9 @@ background-color: #ffffff; } .text-box { + display: flex; height: 100rpx; - line-height: 100rpx; + /* line-height: 100rpx; */ margin-top: 20rpx; margin-left: 10%; width: 80%; @@ -132,13 +175,16 @@ border-bottom: 1rpx solid #e8e8e8 ; width: 100%; } - + .text-desc { + line-height: 100rpx; + } .foot { width: 100%; height: 100rpx; line-height: 100rpx; background-color: rgba(255,255,255,1); + /* background-color: #434343; */ position: fixed; bottom: 0%; border-top: 1px solid #d8d8d8; -- Gitblit v1.9.1