lilei 2 лет назад
Родитель
Сommit
ea6b2c4e93

+ 0 - 1
pages/batchShelves/batchPrint/batchPrint.vue

@@ -4,7 +4,6 @@
 			<view class="search flex align_center">
 				<view class="input">
 					<u-search 
-					focus
 					v-model="queryWord" 
 					@input="$u.debounce(searchList, 800)"
 					@custom="$u.debounce(searchList, 500)" 

+ 19 - 14
pages/batchShelves/cartList.vue

@@ -1,17 +1,18 @@
 <template>
 	<view class="content flex flex_column">
 		<view class="product-list flex" v-if="placeTab.length">
-			<view class="leftTabs">
-				<view v-for="item in placeTab" :key="item" :class="curTab==item?'active':''" @click="curTab = item">{{item}}层</view>
-			</view>
+			<scroll-view scroll-y class="leftTabs">
+				<view class="tabbox">
+					<view v-for="item in placeTab" :key="item" :class="curTab==item?'active':''" @click="curTab = item">{{item}}层</view>
+				</view>
+			</scroll-view>
 			<scroll-view scroll-y class="rightCons" v-if="shelfPlaceList">
 				<view 
 				class="partList-list-box" 
 				v-for="item in shelfPlaceList[curTab]" 
 				:key="item.shelfCartSn"
-				@click="editRow(item)"
 				>
-					<view class="flex align_center flex_1">
+					<view class="flex align_center flex_1" @click="editRow(item)">
 						<view class="pimgs">
 							<u-image :src="item.product&&item.product.images?item.product.images:`../../static/${$config('themePath')}/def_img@2x.png`" width="120" height="120" border-radius="10"></u-image>
 						</view>
@@ -377,19 +378,23 @@
 	.content{
 		width: 100%;
 		height: 100vh;
+		overflow: hidden;
 		.product-list{
 			flex-grow: 1;
 			.leftTabs{
 				width: 20%;
-				overflow: auto;
-				> view{
-					padding: 0.8rem 0.5rem;
-					border-left: 0.2rem solid #f8f8f8;
-					text-align: center;
-				}
-				.active{
-					border-color: rgb(47, 126, 209);
-					background-color: #fff;
+				height: calc(100vh - 110rpx);
+				.tabbox{
+					> view{
+						padding: 0.8rem 0.5rem;
+						border-left: 0.2rem solid #f8f8f8;
+						text-align: center;
+					}
+					.active{
+						border-color: rgb(47, 126, 209);
+						background-color: #fff;
+						color: rgb(47, 126, 209);
+					}
 				}
 			}
 			.rightCons{

+ 0 - 1
pages/batchShelves/searchProduct.vue

@@ -4,7 +4,6 @@
 			<view class="search flex align_center">
 				<view class="input">
 					<u-search 
-					focus
 					v-model="queryWord" 
 					@input="$u.debounce(getProductList, 800)"
 					@custom="$u.debounce(getProductList, 500)" 

+ 11 - 2
pages/latePlay/chooseBulk.vue

@@ -5,10 +5,11 @@
 			placeholder="请输入货架名称搜索" 
 			v-model="shelfName" 
 			:show-action="isGobleSearch" 
+			@input="change"
 			@focus="isGobleSearch=true"
 			@blur="isGobleSearch=false"
-			@custom="getShelfList" 
-			@search="getShelfList" 
+			@custom="search" 
+			@search="search" 
 			@clear="clearSearch"
 			:action-style="{'color': '#fff', 'font-size': '24upx', 'background-color': '#57a3f3', 'border-radius': '6upx', 'padding': '12upx 0'}">
 			</u-search>
@@ -66,6 +67,14 @@
 		methods: {
 			clearSearch(){
 				this.shelfName = ''
+				this.search()
+			},
+			change(v){
+				if(v==''){
+					this.clearSearch()
+				}
+			},
+			search(){
 				this.pageNo = 1
 				this.shelfList = []
 				this.getShelfList()

+ 0 - 1
pages/latePlay/chooseProduct.vue

@@ -14,7 +14,6 @@
 			<view class="search flex align_center">
 				<view class="input">
 					<u-search 
-					focus
 					v-model="queryWord" 
 					@custom="getpartList" 
 					@search="getpartList" 

+ 1 - 1
pages/shelfSetting/addShelfHw.vue

@@ -3,7 +3,7 @@
 		<view class="form-body">
 			<u-form :model="form" label-width="180rpx" :error-type="['toast']" ref="uForm">
 				<u-form-item label="货位号" required prop="shelfPlaceCode">
-					<u-input focus v-model="form.shelfPlaceCode" @input="placeCodeBlur" :maxlength="30" placeholder="请输入货位号(字母+数字的格式)"/>
+					<u-input v-model="form.shelfPlaceCode" @input="placeCodeBlur" :maxlength="30" placeholder="请输入货位号(字母+数字的格式)"/>
 				</u-form-item>
 				<u-form-item label="绑定产品" v-show="type=='add'">
 					<view style="flex-grow: 1;" v-if="productEntity&&productEntity.code" @click="toBindProduct">

+ 0 - 1
pages/shelfSetting/bindProduct.vue

@@ -4,7 +4,6 @@
 			<view class="search flex align_center">
 				<view class="input">
 					<u-search 
-					focus
 					v-model="queryWord" 
 					@input="$u.debounce(getProductList, 800)"
 					@custom="$u.debounce(getProductList, 500)" 

+ 1 - 1
pages/shelfSetting/editShelf.vue

@@ -1,6 +1,6 @@
 <template>
 	<view style="padding: 1rem;background: #fff;width:100%;height: 100vh;" class="flex flex_column">
-		<view style="flex:1;"><u-input style="border-radius: 50rpx;" focus height="90" :maxlength="30" v-model="shelfName" border placeholder="请输入货架名称(最多30个字符)"></u-input></view>
+		<view style="flex:1;"><u-input style="border-radius: 50rpx;" height="90" :maxlength="30" v-model="shelfName" border placeholder="请输入货架名称(最多30个字符)"></u-input></view>
 		<view><u-button @click="save" shape="circle" type="primary">保存</u-button></view>
 	</view>
 </template>

+ 0 - 1
pages/shelfSetting/searchShelfHw.vue

@@ -11,7 +11,6 @@
 			<view class="search flex align_center">
 				<view class="input">
 					<u-search 
-					focus
 					v-model="queryWord" 
 					@custom="getpartList" 
 					@search="getpartList" 

+ 0 - 1
pages/stockCheck/startCheck.vue

@@ -11,7 +11,6 @@
 			<view class="search flex align_center">
 				<view class="input">
 					<u-search 
-					focus
 					v-model="queryWord" 
 					@custom="getpartList" 
 					@search="getpartList"