Commit 54c5368b by LJM

箱号截取

parent 50a5154e
...@@ -186,12 +186,13 @@ ...@@ -186,12 +186,13 @@
::v-deep .uni-drawer__content { ::v-deep .uni-drawer__content {
width: 85% !important; width: 85% !important;
height: 100%;
} }
.uni-drawer-layer { .uni-drawer-layer {
width: 100%; width: 100%;
background-color: #ffffff; background-color: #ffffff;
padding: 22rpx 22rpx 0 22rpx; padding: 22rpx 22rpx 20rpx 22rpx;
.tip { .tip {
color: red; color: red;
font-size: 17rpx; font-size: 17rpx;
...@@ -287,11 +288,8 @@ ...@@ -287,11 +288,8 @@
} }
} }
.btn { .btn {
position: absolute;
bottom: 0;
left: 0;
right: 0;
width: 100%; width: 100%;
z-index: 999;
.btn1 { .btn1 {
height: 75rpx; height: 75rpx;
background: #1969f9; background: #1969f9;
...@@ -333,12 +331,13 @@ ...@@ -333,12 +331,13 @@
.uni-textarea { .uni-textarea {
width: 100%; width: 100%;
height: 110rpx; height: 110rpx;
min-height: 110rpx;
overflow-y: auto; overflow-y: auto;
background: #ffffff; background: #ffffff;
border-radius: 5rpx; border-radius: 5rpx;
border: 1px solid #1969f9; border: 1px solid #1969f9;
font-size: 17rpx; font-size: 17rpx;
padding: 18rpx 18rpx 0 18rpx; padding: 18rpx 18rpx 10rpx 18rpx;
} }
} }
.select-box { .select-box {
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</template> </template>
<!-- fedex --> <!-- fedex -->
<template v-else-if="index == 3"> <template v-else-if="index == 3">
<input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(4, $event)" /> <input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(4, $event)" maxlength="8">
</template> </template>
</view> </view>
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text> <text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
...@@ -812,7 +812,14 @@ ...@@ -812,7 +812,14 @@
this.searchParams.mobile_register_all_search = val; this.searchParams.mobile_register_all_search = val;
} else if (type == 2) { } else if (type == 2) {
// 入仓号处理逻辑 // 入仓号处理逻辑
this.searchParams.stock_in_with_stock_in_items_inhouse = val; var str = val;
if (str.startsWith('F')) {
// 如果以 'F' 开头,直接赋值给搜索参数
this.searchParams.stock_in_with_stock_in_items_inhouse = val;
} else {
// 否则去掉最后一个字符后赋值给搜索参数
this.searchParams.stock_in_with_stock_in_items_inhouse = str.slice(0, -1);
}
} else if (type == 3) { } else if (type == 3) {
//FedEx //FedEx
if (val.length > 22) { if (val.length > 22) {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" :maxlength="maxInputLength" /> <input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" :maxlength="maxInputLength" />
</template> </template>
<template v-else-if="index == 2"> <template v-else-if="index == 2">
<input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(3, $event)" /> <input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(3, $event)" maxlength="8" />
</template> </template>
</view> </view>
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text> <text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
filter_id_warehouse_id: [], //过滤处理的仓库id filter_id_warehouse_id: [], //过滤处理的仓库id
detail: {}, //详情的数据 detail: {}, //详情的数据
hasMoreData: true, //是否分页加载 hasMoreData: true, //是否分页加载
maxInputLength: 8, maxInputLength: 7,
searchParams: { searchParams: {
mobile_register_all_search: '', //全量搜索 mobile_register_all_search: '', //全量搜索
stock_in_with_stock_in_items_inhouse: '', //入仓单号 stock_in_with_stock_in_items_inhouse: '', //入仓单号
...@@ -297,6 +297,12 @@ ...@@ -297,6 +297,12 @@
this.searchParams.mobile_register_all_search = val; this.searchParams.mobile_register_all_search = val;
} else if (type == 2) { } else if (type == 2) {
//入仓号 //入仓号
var str = val;
if (str.startsWith('F')) {
this.maxInputLength = 8;
} else {
this.maxInputLength = 7;
}
this.searchParams.stock_in_with_stock_in_items_inhouse = val; this.searchParams.stock_in_with_stock_in_items_inhouse = val;
} else if (type == 3) { } else if (type == 3) {
//箱号 //箱号
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" maxlength="8" /> <input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" maxlength="8" />
</template> </template>
<template v-else-if="index == 2"> <template v-else-if="index == 2">
<input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(4, $event)" /> <input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(4, $event)" maxlength="8" />
</template> </template>
<template v-else-if="index == 3"> <template v-else-if="index == 3">
<input class="uni-input" placeholder="请输入FedEx" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.tracking_no" @input="handleInput(0, $event)" /> <input class="uni-input" placeholder="请输入FedEx" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.tracking_no" @input="handleInput(0, $event)" />
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" /> <input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" />
</template> </template>
<template v-else-if="index == 2"> <template v-else-if="index == 2">
<input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(3, $event)" /> <input class="uni-input" placeholder="请输入箱号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.box_sn" @input="handleInput(3, $event)" maxlength="8">
</template> </template>
</view> </view>
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text> <text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment