Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b0a4ae06
authored
Dec 08, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复快速移位bug
parent
c52e66d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
pages/transfer/quick.vue
util/api.js
pages/transfer/quick.vue
View file @
b0a4ae06
...
...
@@ -18,7 +18,7 @@
</
template
>
<!-- 旧标签-->
<
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
>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
...
...
@@ -239,7 +239,7 @@
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
createArray
}
from
'@/util/util.js'
;
import
{
createArray
,
getFirstEightChars
}
from
'@/util/util.js'
;
import
debounce
from
'lodash/debounce'
;
export
default
{
...
...
@@ -332,6 +332,7 @@
title
:
'移位成功'
,
icon
:
'success'
});
//提示成功后的回调
setTimeout
(()
=>
{
//清空
this
.
searchParams
.
stock_in_batch_sn
=
''
;
...
...
@@ -344,7 +345,7 @@
this
.
formParams
.
transfer_qty
=
''
;
//清除表单的信息
this
.
searchParams
.
stock_in_batch_sn
=
''
;
//清除入库批次号 旧标签
this
.
is_focus
=
true
;
},
20
00
);
},
8
00
);
},
2000
)
}
else
{
this
.
is_submit
=
false
;
...
...
@@ -358,16 +359,22 @@
/**
* 单号搜索
* @param {Object} event
* @param {Object} type 1 目标移位
* @param {Object} type 1 目标移位
不传就是搜索filter
*/
handleInput
:
debounce
(
function
(
event
,
type
)
{
var
val
=
event
.
target
.
value
;
if
(
val
)
{
if
(
type
==
1
)
{
//调用快速移位
this
.
input_flag_position_code
=
true
;
this
.
quickTransfer
();
//调用快速移位
this
.
quickTransfer
();
}
else
{
//入库批次号 || 旧标签
this
.
input_flag
=
true
;
if
(
this
.
index
==
1
)
{
//如果是旧标签的话,就自动截取八位
this
.
searchParams
.
stock_in_batch_sn
=
getFirstEightChars
(
val
);
}
this
.
getData
();
}
}
else
{
...
...
util/api.js
View file @
b0a4ae06
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
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment