From 6b7ac97344c89df64b87cafb2203bf55f8506eb7 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 24 七月 2024 09:00:39 +0800 Subject: [PATCH] # --- pages/pakin/pakin.vue | 69 +++++++++++++++++++++++++++++++--- 1 files changed, 63 insertions(+), 6 deletions(-) diff --git a/pages/pakin/pakin.vue b/pages/pakin/pakin.vue index 1035979..8243044 100644 --- a/pages/pakin/pakin.vue +++ b/pages/pakin/pakin.vue @@ -1,5 +1,19 @@ <template> <view> + <view class="status_bar"> + <!-- 杩欓噷鏄姸鎬佹爮 --> + </view> + <uni-nav-bar left-icon="left" background-color="#f8f8f8" title="缁勬墭鍏ュ簱" @clickLeft="back" :fixed="true" + :border="false" rightWidth="160rpx" leftWidth="160rpx" + > + <block slot="right"> + <view class="city"> + <view> + <text class="uni-nav-bar-text">{{store}}</text> + </view> + </view> + </block> + </uni-nav-bar> <view class="code"> <view class="item"> <view class="code-decs">鎵樼洏鐮�:</view> @@ -8,14 +22,27 @@ </view> <view class="item"> <view class="code-decs">鐗╂枡鐮�:</view> - <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="matnr" :focus="matFocus" @input="findMat()"> + <input type="text" style="width: 350rpx;" placeholder=" 鎵爜 / 杈撳叆" v-model="matnr" :focus="matFocus" @input="findMat()"> + <uni-icons type="close" color="#c1c1c1" @click="clearMatnr"></uni-icons> <view class="item-right"> <button></button> <text style="text-align: right;color: #409EFF;" @click="selectMat()">鎻愬彇+</text> <uni-icons type="right" color="#c1c1c1"></uni-icons> </view> </view> + <view class="item"> + <view class="code-decs" style="width: 25vw;">鏄惁婊℃澘:</view> + <radio-group @change="isFullPlt"> + <label> + <radio :checked="ck1" /><text>鏄�</text> + </label> + <label> + <radio :checked="ck2" style="margin-left: 50rpx;"/><text>鍚�</text> + </label> + </radio-group> + </view> </view> + <view class="mat-list-title"> 鍟嗗搧鍒楄〃 </view> @@ -82,10 +109,10 @@ style="background-color: #f7f7f7;padding: 0;color: #d5d5d5;"> </view> </view> - <!-- <view class="popup-item"> + <view class="popup-item"> <view class="popup-item-left">鎵瑰彿:</view> <view class="popup-item-right"><input type="text" v-model="batch"></view> - </view> --> + </view> <!-- <view class="popup-item"> <view class="popup-item-left">閲嶉噺:</view> <view class="popup-item-right"><input type="text" v-model="weight"></view> @@ -140,6 +167,8 @@ return { baseUrl: '', token: '', + storeId: 0, + store: '', barcode: '', dataList: [], count: 0, @@ -156,6 +185,9 @@ matFocus: false, matData: '', removeNum: 0, + ck1: false, + ck2: true, + fullPlt: 'N', } }, onLoad() { @@ -164,8 +196,31 @@ onShow() { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); + this.storeId = uni.getStorageSync('store') + if (this.storeId == 1) { + this.store = '瀹佹尝浠�' + } + if (this.storeId == 2) { + this.store = '鏂版槍浠�' + } }, methods: { + back() { uni.navigateBack({}) }, + // 鏄惁婊℃澘 + isFullPlt() { + var temp = this.ck1 + this.ck1 = this.ck2 + this.ck2 = temp + if (this.ck1) { + this.fullPlt = 'Y' + } else { + this.fullPlt = 'N' + } + }, + clearMatnr() { + // this.matnr = '' + this.focuss() + }, messageToggle(type) { this.msgType1 = type this.$refs.message.open() @@ -198,7 +253,7 @@ }, // 鍟嗗搧鍏夋爣娓呯┖閲嶇疆 focuss() { - this.focus = false; + this.matFocus = false; setTimeout(() => { this.matnr = ''; this.matFocus = true; @@ -391,6 +446,8 @@ uni.request({ url: that.baseUrl + '/mobile/comb/auth', data: JSON.stringify({ + owner: that.store, + fullPlt: that.fullPlt, barcode: that.barcode, combMats: that.dataList }), @@ -454,7 +511,7 @@ .code { width: 100%; position: fixed; - min-height: 200rpx; + min-height: 210rpx; background-color: #FFF; z-index: 10; } @@ -462,7 +519,7 @@ .item { display: flex; align-items: center; - height: 100rpx; + height: 70rpx; margin-left: 20rpx; border-bottom: 1px solid #DCDFE6; } -- Gitblit v1.9.1