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
58b194c2
authored
Nov 07, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
b52ca95f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
97 deletions
pages/picking/record.vue
pages/transfer/record.vue
util/api.js
pages/picking/record.vue
View file @
58b194c2
...
@@ -213,7 +213,6 @@
...
@@ -213,7 +213,6 @@
clearInput
()
{
clearInput
()
{
this
.
resetChange
();
this
.
resetChange
();
this
.
searchParams
.
all_search_keyword
=
''
;
this
.
searchParams
.
all_search_keyword
=
''
;
this
.
searchParams
.
stock_out_sn
=
''
;
this
.
input_flag
=
false
;
this
.
input_flag
=
false
;
this
.
getData
();
this
.
getData
();
},
},
...
...
pages/transfer/record.vue
View file @
58b194c2
...
@@ -12,7 +12,12 @@
...
@@ -12,7 +12,12 @@
<view
class=
"search-bar row bothSide verCenter"
>
<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>
<input
class=
"uni-input"
placeholder=
"请输入查询"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.search_val"
@
input=
"handleInput"
/>
<template
v-if=
"index == 0"
>
<input
class=
"uni-input"
placeholder=
"请输入查询"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.search_val"
@
input=
"handleInput"
/>
</
template
>
<
template
v-else-if=
"index == 1"
>
<input
class=
"uni-input"
placeholder=
"请输入旧标签查询"
placeholder-style=
"color:#919399"
focus
v-model=
"searchParams.search_val"
@
input=
"handleInput"
maxlength=
"8"
/>
</
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>
</view>
</view>
...
@@ -122,102 +127,102 @@
...
@@ -122,102 +127,102 @@
</template>
</template>
<
script
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
API
}
from
'@/util/api.js'
;
import
debounce
from
'lodash/debounce'
;
import
debounce
from
'lodash/debounce'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
index
:
0
,
index
:
0
,
array
:
[
'全量搜索'
],
array
:
[
'全量搜索'
,
'旧标签'
],
input_flag
:
false
,
input_flag
:
false
,
page
:
1
,
page
:
1
,
limit
:
50
,
limit
:
50
,
list
:
[],
list
:
[],
hasMoreData
:
true
,
//是否分页加载
hasMoreData
:
true
,
//是否分页加载
searchParams
:
{
searchParams
:
{
search_val
:
''
search_val
:
''
}
};
},
onNavigationBarButtonTap
(
e
)
{
if
(
e
.
index
==
0
)
{
uni
.
reLaunch
({
url
:
'/pages/index/index'
});
}
}
};
},
onNavigationBarButtonTap
(
e
)
{
if
(
e
.
index
==
0
)
{
uni
.
reLaunch
({
url
:
'/pages/index/index'
});
}
},
onReachBottom
()
{
if
(
!
this
.
hasMoreData
)
{
return
;
}
this
.
page
++
;
this
.
getData
();
},
onShow
()
{
this
.
getData
();
},
methods
:
{
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
},
},
/**
onReachBottom
()
{
* 清空数据
if
(
!
this
.
hasMoreData
)
{
*/
return
;
clearInput
()
{
}
this
.
resetChange
();
this
.
page
++
;
this
.
searchParams
.
search_val
=
''
;
this
.
input_flag
=
false
;
this
.
getData
();
this
.
getData
();
},
},
/**
onShow
()
{
* 全量搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
event
)
{
this
.
resetChange
();
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
input_flag
=
true
;
this
.
searchParams
.
search_val
=
val
;
}
else
{
this
.
input_flag
=
false
;
this
.
searchParams
.
search_val
=
''
;
}
this
.
getData
();
this
.
getData
();
},
500
),
},
/**
methods
:
{
* 获取列表数据
bindPickerChange
:
function
(
e
)
{
*/
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
getData
()
{
this
.
index
=
e
.
detail
.
value
;
this
.
request
(
API
.
quickTransferLog
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
},
if
(
res
.
code
===
0
)
{
/**
if
(
res
.
data
.
list
.
length
>
0
)
{
* 清空数据
this
.
hasMoreData
=
true
;
*/
this
.
list
=
this
.
list
.
concat
(
res
.
data
.
list
);
clearInput
()
{
}
else
{
this
.
resetChange
();
this
.
hasMoreData
=
false
;
this
.
searchParams
.
search_val
=
''
;
}
this
.
input_flag
=
false
;
this
.
getData
();
},
/**
* 全量搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
event
)
{
this
.
resetChange
();
var
val
=
event
.
target
.
value
;
if
(
val
)
{
this
.
input_flag
=
true
;
this
.
searchParams
.
search_val
=
val
;
}
else
{
}
else
{
uni
.
showToast
({
this
.
input_flag
=
false
;
title
:
res
.
msg
,
this
.
searchParams
.
search_val
=
''
;
icon
:
'none'
});
}
}
});
this
.
getData
();
},
},
500
),
/**
/**
* 重置
* 获取列表数据
*/
*/
resetChange
()
{
getData
()
{
this
.
list
=
[];
this
.
request
(
API
.
quickTransferLog
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
this
.
page
=
1
;
if
(
res
.
code
===
0
)
{
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
hasMoreData
=
true
;
this
.
list
=
this
.
list
.
concat
(
res
.
data
.
list
);
}
else
{
this
.
hasMoreData
=
false
;
}
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'none'
});
}
});
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
}
}
}
}
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
@import
'@/assets/css/stockRecheck/record.scss'
;
@import
'@/assets/css/stockRecheck/record.scss'
;
</
style
>
</
style
>
\ No newline at end of file
util/api.js
View file @
58b194c2
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
=
{
...
...
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