From c0b24b804539df3a40a0be613b44562c7e073005 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期四, 20 四月 2023 10:43:46 +0800 Subject: [PATCH] # --- pages/basics/stockQuery.vue | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue index 8a5353d..7040578 100644 --- a/pages/basics/stockQuery.vue +++ b/pages/basics/stockQuery.vue @@ -44,22 +44,23 @@ </checkbox-group> --> <checkbox-group @change="checkbox"> <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" > - <label class="left-check-box"> + <!-- <label class="left-check-box"> <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" /> - </label> + </label> --> <view class="data-list-left"> - <view class="matnr"><text style="width: 700rpx;">缂栫爜锛歿{item.matnr}}</text></view> + <view class="matnr"><text style="width: 700rpx;">瑙勬牸锛歿{item.matnr}}</text></view> + <view class="matnr"><text style="width: 700rpx;">瑙勬牸锛歿{item.specs}}</text></view> <view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view> <view><text style="width: 700rpx;">鎵瑰彿锛歿{item.batch}}</text></view> <view> <text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text> </view> </view> - <view class="data-list-right"> + <!-- <view class="data-list-right"> <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label> - <!-- list涓垹闄ら敭 --> - <!-- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> --> - </view> + list涓垹闄ら敭 + <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> + </view> --> </view> </checkbox-group> <!-- 鏃犳暟鎹樉绀� --> @@ -73,6 +74,7 @@ export default { data () { return { + commonUrl:null, matList: [], locNo: null, matnr: null @@ -84,8 +86,15 @@ this.baseIP = UIP; const UPORT = uni.getStorageSync('UPORT'); this.basePORT = UPORT + const PROJ = uni.getStorageSync('UPROJ'); + this.baseUrl = PROJ + this.getUrl() }, methods: { + // 鑾峰彇url + getUrl() { + this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl + }, checkbox: function () { }, @@ -100,7 +109,7 @@ request() { let that = this uni.request({ - url:that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/locDetl/list/auth', + url:that.commonUrl + '/locDetl/list/auth', header:{'token':uni.getStorageSync('token')}, data: { curr: 1, @@ -146,6 +155,9 @@ searchByMatnr() { let that = this that.request() + }, + revise() { + } }, } @@ -160,7 +172,7 @@ } .data-list { border-bottom: 1px solid #d8d8d8; - height: 180rpx; + height: 230rpx; margin: 15rpx; border-radius: 20rpx; } @@ -185,7 +197,7 @@ height: 100%; width: 100rpx; text-align: center; - line-height: 170rpx; + line-height: 230rpx; } .data-list-left { /* background-color: #ffff7f; */ @@ -203,8 +215,8 @@ display: inline-block; float: right; width: 100rpx; - height: 180rpx; - line-height: 180rpx; + height: 230rpx; + line-height: 230rpx; } .data-list-right label { display: inline-block; -- Gitblit v1.9.1