Commit f4d63a66 by LJM

bug

parent 5f784286
Showing with 7 additions and 1 deletions
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</view> </view>
<view class="form-input"> <view class="form-input">
<view class="input-title"><text class="input-title-t1">库位:</text></view> <view class="input-title"><text class="input-title-t1">库位:</text></view>
<view class="input-box"><input focus :class="{ 'error-style': !is_submit }" type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入库位编码" v-model="formParams.position_code" @input="inputPositionCodeChange()" /></view> <view class="input-box"><input :focus="isInputFocus" :class="{ 'error-style': !is_submit }" type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入库位编码" v-model="formParams.position_code" @input="inputPositionCodeChange()" /></view>
</view> </view>
<view class="bor"></view> <view class="bor"></view>
<view class="tip-box row verCenter" v-if="workingRule"> <view class="tip-box row verCenter" v-if="workingRule">
...@@ -142,6 +142,7 @@ import debounce from 'lodash/debounce'; ...@@ -142,6 +142,7 @@ import debounce from 'lodash/debounce';
export default { export default {
data() { data() {
return { return {
isInputFocus: false,
is_submit: true, is_submit: true,
input_flag: false, input_flag: false,
index: 0, index: 0,
...@@ -166,6 +167,11 @@ export default { ...@@ -166,6 +167,11 @@ export default {
onShow() { onShow() {
this.getData(); this.getData();
}, },
mounted() {
setTimeout(() => {
this.isInputFocus = true;
}, 2000);
},
methods: { methods: {
/** /**
* 单号搜索 * 单号搜索
......
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