Commit b0a4ae06 by LJM

修复快速移位bug

parent c52e66d5
Showing with 20 additions and 13 deletions
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</template> </template>
<!-- 旧标签--> <!-- 旧标签-->
<template v-else-if="index == 1"> <template v-else-if="index == 1">
<input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" maxlength="8" /> <input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_batch_sn" @input="handleInput($event)" />
</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>
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
<script> <script>
import { API } from '@/util/api.js'; import { API } from '@/util/api.js';
import { createArray } from '@/util/util.js'; import { createArray, getFirstEightChars } from '@/util/util.js';
import debounce from 'lodash/debounce'; import debounce from 'lodash/debounce';
export default { export default {
...@@ -332,6 +332,7 @@ ...@@ -332,6 +332,7 @@
title: '移位成功', title: '移位成功',
icon: 'success' icon: 'success'
}); });
//提示成功后的回调
setTimeout(() => { setTimeout(() => {
//清空 //清空
this.searchParams.stock_in_batch_sn = ''; this.searchParams.stock_in_batch_sn = '';
...@@ -344,7 +345,7 @@ ...@@ -344,7 +345,7 @@
this.formParams.transfer_qty = ''; //清除表单的信息 this.formParams.transfer_qty = ''; //清除表单的信息
this.searchParams.stock_in_batch_sn = ''; //清除入库批次号 旧标签 this.searchParams.stock_in_batch_sn = ''; //清除入库批次号 旧标签
this.is_focus = true; this.is_focus = true;
}, 2000); }, 800);
}, 2000) }, 2000)
} else { } else {
this.is_submit = false; this.is_submit = false;
...@@ -358,16 +359,22 @@ ...@@ -358,16 +359,22 @@
/** /**
* 单号搜索 * 单号搜索
* @param {Object} event * @param {Object} event
* @param {Object} type 1 目标移位 * @param {Object} type 1 目标移位 不传就是搜索filter
*/ */
handleInput: debounce(function(event, type) { handleInput: debounce(function(event, type) {
var val = event.target.value; var val = event.target.value;
if (val) { if (val) {
if (type == 1) { if (type == 1) {
//调用快速移位
this.input_flag_position_code = true; this.input_flag_position_code = true;
this.quickTransfer(); //调用快速移位 this.quickTransfer();
} else { } else {
//入库批次号 || 旧标签
this.input_flag = true; this.input_flag = true;
if (this.index == 1) {
//如果是旧标签的话,就自动截取八位
this.searchParams.stock_in_batch_sn = getFirstEightChars(val);
}
this.getData(); this.getData();
} }
} else { } else {
......
const API_BASE_USER = 'http://user.liexindev.net'; //用户系统 // const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统 // const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统 // const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统 // const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统 const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统 const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统 const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统 const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = { 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