From 54fce333aae7d6f596616a6eb5e65c27c28a9994 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 21 八月 2024 12:39:26 +0800
Subject: [PATCH] #

---
 pages/basics/stockQuery.vue |   39 ++++++++++++++++++++++++++-------------
 1 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue
index 8a5353d..b7189a0 100644
--- a/pages/basics/stockQuery.vue
+++ b/pages/basics/stockQuery.vue
@@ -44,22 +44,24 @@
 		</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.locNo}}</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 +75,7 @@
 	export default {
 		data () {
 			return {
+				commonUrl:null,
 				matList: [],
 				locNo: null,
 				matnr: null
@@ -84,8 +87,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 +110,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 +156,9 @@
 			searchByMatnr() {
 				let that = this
 				that.request()
+			},
+			revise() {
+				
 			}
 		},
 	}
@@ -160,7 +173,7 @@
 	}
 	.data-list {
 		border-bottom: 1px solid #d8d8d8;
-		height: 180rpx;
+		height: 250rpx;
 		margin: 15rpx;
 		border-radius: 20rpx;
 	}
@@ -185,13 +198,13 @@
 		height: 100%;
 		width: 100rpx;
 		text-align: center;
-		line-height: 170rpx;
+		line-height: 230rpx;
 	}
 	.data-list-left {
 		/* background-color: #ffff7f; */
 		display: inline-block;
 		float: left;
-		height: 180rpx;
+		height: 240rpx;
 		width: 500rpx;
 		color: #676767;
 	}
@@ -203,8 +216,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