Commit 84b560f9 by liangjianmin

fix(sort): 移除输入框禁用状态,优化批量扫描输入体验

修复了批量扫描输入框的禁用状态逻辑,确保用户在输入时不会受到限制。
parent 374a98e1
Showing with 3 additions and 3 deletions
...@@ -31,15 +31,15 @@ ...@@ -31,15 +31,15 @@
<text style="font-size: 18rpx;white-space: nowrap;">批量扫描</text> <text style="font-size: 18rpx;white-space: nowrap;">批量扫描</text>
</view> </view>
</view> </view>
<view class="search-bar row bothSide verCenter" :class="{ 'disabled-color': searchParams.position_name == '' ? true : false }"> <view class="search-bar row bothSide verCenter">
<view class="row verCenter"> <view class="row verCenter">
<text class="iconfont icon-juxing1"></text> <text class="iconfont icon-juxing1"></text>
<!-- 批量扫描 --> <!-- 批量扫描 -->
<template v-if="is_batch"> <template v-if="is_batch">
<input class="uni-input" placeholder="请扫描入库标签" :disabled="searchParams.position_name == '' ? true : false" placeholder-style="color:#919399" :focus="is_focus" v-model="search_keyword" @input="handleInput(2, search_keyword)" maxlength="16" ref="myInput" /> <input class="uni-input" placeholder="请扫描入库标签" placeholder-style="color:#919399" :focus="is_focus" v-model="search_keyword" @input="handleInput(2, search_keyword)" maxlength="16" ref="myInput" />
</template> </template>
<template v-else> <template v-else>
<input class="uni-input" placeholder="请扫描入库标签" :disabled="searchParams.position_name == '' ? true : false" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_batch_sn" @input="handleInput(2, searchParams.stock_in_batch_sn)" maxlength="16" ref="myInput" /> <input class="uni-input" placeholder="请扫描入库标签" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_batch_sn" @input="handleInput(2, searchParams.stock_in_batch_sn)" maxlength="16" ref="myInput" />
</template> </template>
</view> </view>
<text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_flag_stock_in_batch_sn"></text> <text class="iconfont icon-a-juxing11" @click="clearInput(2)" v-if="input_flag_stock_in_batch_sn"></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