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
80ee0eaf
authored
Jan 23, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
到货登记、快速移位记录数据展示及查询优化
parent
3d597e3f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
150 additions
and
42 deletions
assets/css/arrivalRegister/index.scss
pages/arrivalRegister/index.vue
pages/stockRecheck/index.vue
pages/transfer/record.vue
util/api.js
assets/css/arrivalRegister/index.scss
View file @
80ee0eaf
...
...
@@ -2,6 +2,14 @@
padding
:
15rpx
22rpx
;
.radio-search-box
{
height
:
57rpx
;
.total-text
{
font-size
:
16rpx
;
color
:
#919399
;
text
{
padding
:
0
5rpx
;
color
:
#1969f9
;
}
}
}
.search-all
{
height
:
60rpx
;
...
...
pages/arrivalRegister/index.vue
View file @
80ee0eaf
...
...
@@ -22,21 +22,24 @@
</view>
</view>
<!-- 全量搜索 -->
<view
class=
"radio-search-box row verCenter"
>
<radio-group
@
change=
"radioChange"
class=
"row verCenter"
>
<label
class=
"radio row verCenter"
>
<radio
value=
"0"
checked=
"true"
style=
"transform:scale(0.7)"
color=
"#1969F9"
/>
<text
class=
"tt"
>
全量搜索
</text>
</label>
<label
class=
"radio"
>
<radio
value=
"1"
style=
"transform:scale(0.7)"
color=
"#1969F9"
/>
<text
class=
"tt"
>
入仓号
</text>
</label>
<label
class=
"radio"
>
<radio
value=
"2"
style=
"transform:scale(0.7)"
color=
"#1969F9"
/>
<text
class=
"tt"
>
FedEX
</text>
</label>
</radio-group>
<view
class=
"radio-search-box row verCenter bothSide"
>
<view
class=
"row verCente"
>
<radio-group
@
change=
"radioChange"
class=
"row verCenter"
>
<label
class=
"radio row verCenter"
>
<radio
value=
"0"
checked=
"true"
style=
"transform:scale(0.7)"
color=
"#1969F9"
/>
<text
class=
"tt"
>
全量搜索
</text>
</label>
<label
class=
"radio"
>
<radio
value=
"1"
style=
"transform:scale(0.7)"
color=
"#1969F9"
/>
<text
class=
"tt"
>
入仓号
</text>
</label>
<label
class=
"radio"
>
<radio
value=
"2"
style=
"transform:scale(0.7)"
color=
"#1969F9"
/>
<text
class=
"tt"
>
FedEX
</text>
</label>
</radio-group>
</view>
<view
class=
"total-text"
>
共
<text>
{{
list
.
length
}}
</text>
条数据
</view>
</view>
<view
class=
"search-all row verCenter bothSide"
>
<view
class=
"row verCenter"
>
...
...
@@ -552,7 +555,6 @@
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
/**
...
...
@@ -948,11 +950,15 @@
});
setTimeout
(()
=>
{
this
.
resetChange
();
//清空字段
this
.
searchParams
.
mobile_register_all_search
=
''
;
//全量搜索
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
//入仓号
this
.
searchParams
.
tracking_no
=
''
;
//Fedex
this
.
filter_id
=
[];
this
.
filter_id_warehouse_id
=
[];
this
.
getData
();
this
.
closeDrawer
();
},
2000
);
this
.
clearInputAndFocus
();
//再次获取焦点
},
200
);
}
else
{
uni
.
showModal
({
title
:
'提示'
,
...
...
@@ -998,10 +1004,13 @@
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
this
.
closeDrawer
();
this
.
clearInputAndFocus
();
},
2000
);
//清空字段
this
.
searchParams
.
mobile_register_all_search
=
''
;
//全量搜索
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
//入仓号
this
.
searchParams
.
tracking_no
=
''
;
//Fedex
this
.
clearInputAndFocus
();
//再次获取焦点
},
200
);
}
else
{
uni
.
showModal
({
itle
:
'提示'
,
...
...
@@ -1060,12 +1069,15 @@
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
//清空字段
this
.
searchParams
.
mobile_register_all_search
=
''
;
//全量搜索
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
//入仓号
this
.
searchParams
.
tracking_no
=
''
;
//Fedex
this
.
closeDrawer
();
this
.
clearInputAndFocus
();
//再次获取焦点
this
.
filter_id
=
[];
this
.
filter_id_warehouse_id
=
[];
},
200
0
);
},
200
);
}
else
{
uni
.
showModal
({
itle
:
'提示'
,
...
...
@@ -1093,12 +1105,15 @@
});
setTimeout
(()
=>
{
this
.
resetChange
();
this
.
getData
();
//清空字段
this
.
searchParams
.
mobile_register_all_search
=
''
;
//全量搜索
this
.
searchParams
.
stock_in_with_stock_in_items_inhouse
=
''
;
//入仓号
this
.
searchParams
.
tracking_no
=
''
;
//Fedex
this
.
closeDrawer
();
this
.
clearInputAndFocus
();
//再次获取焦点
this
.
filter_id
=
[];
this
.
filter_id_warehouse_id
=
[];
},
200
0
);
},
200
);
}
else
{
uni
.
showModal
({
itle
:
'提示'
,
...
...
pages/stockRecheck/index.vue
View file @
80ee0eaf
...
...
@@ -118,6 +118,7 @@
}
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
...
...
pages/transfer/record.vue
View file @
80ee0eaf
<
template
>
<view
class=
"stockRecheck-record"
>
<!-- 时间筛选 -->
<view
class=
"time-interval row bothSide verCenter"
style=
"margin-bottom: 15rpx;"
>
<view
class=
"time-interval-box row verCenter bothSide"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing4"
></text>
<picker
mode=
"date"
@
change=
"bindTimeChange(1, $event)"
>
<input
type=
"text"
class=
"uni-input"
placeholder=
"请选择起始时间"
placeholder-style=
"color:#919399"
v-model=
"searchParams.exec_start_time"
/>
</picker>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput('start')"
v-if=
"searchParams.exec_start_time != ''"
></text>
</view>
<view
class=
"time-interval-box row verCenter bothSide"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing4"
></text>
<picker
mode=
"date"
@
change=
"bindTimeChange(2, $event)"
>
<input
type=
"text"
class=
"uni-input"
placeholder=
"请选择结束时间"
placeholder-style=
"color:#919399"
v-model=
"searchParams.exec_end_time"
/>
</picker>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput('end')"
v-if=
"searchParams.exec_end_time != ''"
></text>
</view>
</view>
<!-- 搜索部分 -->
<view
class=
"search-box row bothSide verCenter"
>
<view
class=
"sn row rowCenter verCenter"
>
...
...
@@ -19,6 +40,12 @@
<
template
v-else-if=
"index == 1"
>
<input
class=
"uni-input"
placeholder=
"请输入旧标签查询"
placeholder-style=
"color:#919399"
:focus=
"is_focus"
v-model=
"searchParams.search_val"
@
input=
"handleInput"
maxlength=
"8"
/>
</
template
>
<
template
v-else-if=
"index == 2"
>
<input
class=
"uni-input"
placeholder=
"请输入源库位"
placeholder-style=
"color:#919399"
:focus=
"is_focus"
v-model=
"searchParams.from_position_code"
@
input=
"handleInput($event,1)"
/>
</
template
>
<
template
v-else-if=
"index == 3"
>
<input
class=
"uni-input"
placeholder=
"请输入目的库位"
placeholder-style=
"color:#919399"
:focus=
"is_focus"
v-model=
"searchParams.to_position_code"
@
input=
"handleInput($event,2)"
/>
</
template
>
</view>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput()"
v-if=
"input_flag"
></text>
</view>
...
...
@@ -138,14 +165,18 @@
return
{
is_focus
:
true
,
//获取焦点动态化
index
:
0
,
array
:
[
'全量搜索'
,
'旧标签'
],
array
:
[
'全量搜索'
,
'旧标签'
,
'源库位'
,
'目的库位'
],
input_flag
:
false
,
page
:
1
,
limit
:
30
,
list
:
[],
hasMoreData
:
true
,
//是否分页加载
searchParams
:
{
search_val
:
''
search_val
:
''
,
from_position_code
:
''
,
//源库位
to_position_code
:
''
,
//目的库位
exec_start_time
:
''
,
//开始时间
exec_end_time
:
''
//结束时间
}
};
},
...
...
@@ -170,27 +201,80 @@
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
this
.
clearInputAndFocus
();
//再次获取焦点
},
/**
* 时间选择
*/
bindTimeChange
(
type
,
e
)
{
this
.
resetChange
();
if
(
type
==
1
)
{
this
.
searchParams
.
exec_start_time
=
e
.
detail
.
value
;
}
else
if
(
type
==
2
)
{
this
.
searchParams
.
exec_end_time
=
e
.
detail
.
value
;
}
var
timeA
=
new
Date
(
this
.
searchParams
.
exec_start_time
).
getTime
();
var
timeB
=
new
Date
(
this
.
searchParams
.
exec_end_time
).
getTime
();
if
(
timeB
<
timeA
)
{
uni
.
showToast
({
title
:
'不能小于开始时间'
,
icon
:
'none'
});
this
.
searchParams
.
exec_start_time
=
this
.
searchParams
.
exec_end_time
;
return
false
;
}
this
.
getData
();
},
/**
* 清空数据
*/
clearInput
()
{
clearInput
(
type
)
{
this
.
resetChange
();
this
.
searchParams
.
search_val
=
''
;
this
.
input_flag
=
false
;
this
.
clearInputAndFocus
();
//再次获取焦点
if
(
type
==
'start'
)
{
//清除起始时间
this
.
searchParams
.
exec_start_time
=
''
;
}
else
if
(
type
==
'end'
)
{
//清除结束时间
this
.
searchParams
.
exec_end_time
=
''
;
}
else
{
if
(
this
.
index
==
0
||
this
.
index
==
1
)
{
//全量搜索,旧标签清空
this
.
searchParams
.
search_val
=
''
;
}
else
if
(
this
.
index
==
2
)
{
//源库位清空
this
.
searchParams
.
from_position_code
=
''
;
}
else
if
(
this
.
index
==
3
)
{
//目的库位清空
this
.
searchParams
.
to_position_code
=
''
;
}
this
.
input_flag
=
false
;
this
.
clearInputAndFocus
();
//再次获取焦点
}
this
.
getData
();
},
/**
* 全量搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
event
)
{
this
.
resetChange
();
handleInput
:
debounce
(
function
(
event
,
type
)
{
var
val
=
event
.
target
.
value
;
this
.
resetChange
();
this
.
searchParams
.
search_val
=
''
;
this
.
searchParams
.
from_position_code
=
''
;
this
.
searchParams
.
to_position_code
=
''
;
if
(
val
)
{
this
.
input_flag
=
true
;
this
.
searchParams
.
search_val
=
val
;
if
(
type
==
1
)
{
//源库位
this
.
searchParams
.
from_position_code
=
val
;
}
else
if
(
type
==
2
)
{
//目的库位
this
.
searchParams
.
to_position_code
=
val
;
}
else
{
//全量,旧标签
this
.
searchParams
.
search_val
=
val
;
}
}
else
{
this
.
input_flag
=
false
;
this
.
searchParams
.
search_val
=
''
;
...
...
util/api.js
View file @
80ee0eaf
//
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