Commit a5c60f0d by LJM

移动端--快速移位--操作优化

parent 772e4be6
......@@ -13,11 +13,11 @@
</view>
<view class="form-input row verCenter mb25">
<text class="label row rowCenter verCenter">账号</text>
<input class="uni-input" placeholder="请输入用户账号" placeholder-style="color:#919399" v-model="name" />
<input class="uni-input" placeholder="请输入用户账号" placeholder-style="color:#919399" v-model="name" @input="onKeyInput" />
</view>
<view class="form-input row verCenter">
<text class="label row rowCenter verCenter">密码</text>
<input class="uni-input" password placeholder="请输入账号密码" placeholder-style="color:#919399" v-model="passwd" />
<input class="uni-input" password placeholder="请输入账号密码" placeholder-style="color:#919399" v-model="passwd" @input="onKeyInput" />
</view>
<button class="btn row rowCenter verCenter" @click="submit()" :disabled="disabled">登录</button>
<text class="copyright">© 深圳市猎芯科技有限公司</text>
......@@ -54,6 +54,12 @@
}
},
methods: {
onKeyInput(e) {
var value = e.target.value;
if (value) {
this.disabled = false;
}
},
bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
......@@ -113,9 +119,10 @@
uni.setStorageSync('oa_skey', res.data.skey);
uni.setStorageSync('oa_user_id', res.data.userId);
uni.setStorageSync('company_id', Number(this.index) + 1);
//调用选用组织
//必须调用选用组织
this.changeOrgId();
} else {
this.disabled = true;
uni.showModal({
title: '提示',
content: res.errMsg,
......
......@@ -12,11 +12,13 @@
<view class="search-bar row bothSide verCenter">
<view class="row verCenter">
<text class="iconfont icon-juxing1"></text>
<!-- 入库批次号 -->
<template v-if="index == 0">
<input class="uni-input" placeholder="请扫描入库批次号" placeholder-style="color:#919399" :focus="is_focus" bindfocus="onFocus" v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" />
<input class="uni-input" placeholder="请扫描入库批次号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" />
</template>
<!-- 旧标签-->
<template v-else-if="index == 1">
<input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" :focus="is_focus" bindfocus="onFocus" v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" maxlength="8" />
<input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" focus v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" maxlength="8" />
</template>
</view>
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
......@@ -241,7 +243,7 @@
export default {
data() {
return {
is_focus: true,
is_focus: true, //获取焦点动态化
is_submit: true,
single_style: false, //区分一条和多条样式
input_flag: false,
......@@ -336,8 +338,9 @@
this.list = [];
this.is_focus = false;
setTimeout(() => {
this.searchParams.stock_in_batch_sn = '';
this.is_focus = true;
}, 800);
}, 500);
}
}
});
......
// const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
// const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
// const API_BASE = 'http://wms.liexindev.net'; //WMS系统
// const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
const API_BASE = 'https://wms.ichunt.net'; //WMS系统
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = {
......
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