Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xgdlapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
xgdlapp
Commits
96db53e1
Commit
96db53e1
authored
Apr 06, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
道路新增空托出库的功能
parent
ba0940ce
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
405 additions
and
151 deletions
+405
-151
dlapi.js
api/dlapi.js
+19
-1
routes.js
common/router/modules/routes.js
+7
-0
pages.json
pages.json
+10
-0
index.vue
pages/dl_tray_outbound/index.vue
+194
-0
index.vue
pages/index/index.vue
+175
-150
No files found.
api/dlapi.js
View file @
96db53e1
...
@@ -258,4 +258,22 @@ export function apiGwUnlock(params){
...
@@ -258,4 +258,22 @@ export function apiGwUnlock(params){
return
http
.
post
(
"/xgwcs/gw/unlock"
,
params
||
{}).
then
(
e
=>
{
return
http
.
post
(
"/xgwcs/gw/unlock"
,
params
||
{}).
then
(
e
=>
{
return
filter
(
e
)
return
filter
(
e
)
})
})
}
}
\ No newline at end of file
/* 查询空托盘库位 */
export
function
queryEmptyTpKw
(
params
){
return
http
.
post
(
"/xgwcs/kwcx/queryEmptyTpKw"
,
params
||
{}).
then
(
e
=>
{
return
filter
(
e
)
})
}
/* 库位分离 */
export
function
rqflQuery
(
params
){
return
http
.
post
(
"/wms/rqfl/query"
,
params
||
{}).
then
(
e
=>
{
return
filter
(
e
)
})
}
/* 出托 */
export
function
emptyCall
(
params
){
return
http
.
post
(
"/xgwcs/gwjl/emptyCall"
,
params
||
{}).
then
(
e
=>
{
return
filter
(
e
)
})
}
common/router/modules/routes.js
View file @
96db53e1
...
@@ -146,6 +146,13 @@ const routes = [
...
@@ -146,6 +146,13 @@ const routes = [
title
:
'托盘清空'
,
title
:
'托盘清空'
,
},
},
},
},
{
path
:
'/pages/dl_tray_outbound/index'
,
name
:
'trayOutbound'
,
meta
:
{
title
:
'空托出库'
,
},
},
/* 移入移出 */
/* 移入移出 */
{
{
path
:
'/pages/dl_outin/index'
,
path
:
'/pages/dl_outin/index'
,
...
...
pages.json
View file @
96db53e1
...
@@ -108,6 +108,16 @@
...
@@ -108,6 +108,16 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
/*
空托出库
*/
{
"path"
:
"pages/dl_tray_outbound/index"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
},
{
{
"path"
:
"pages/dl_tray_clear/index"
,
"path"
:
"pages/dl_tray_clear/index"
,
...
...
pages/dl_tray_outbound/index.vue
0 → 100644
View file @
96db53e1
<
template
>
<view
class=
"bg-white"
>
<cu-custom
bgColor=
"bg-gradual-blue"
:isBack=
"true"
>
<block
slot=
"content"
>
空托出库
</block>
<block
slot=
"backText"
>
返回
</block>
</cu-custom>
<view
class=
"cu-form-group"
style=
"background: #eee;"
>
<view
class=
"title "
>
选择库位
</view>
<picker
mode=
"selector"
range-key=
"name"
:value=
"selectedIndex"
:range=
"pickerArray"
@
change=
"onPickerChange"
>
<view
style=
"font-size: 15px;"
class=
"uni-input"
>
{{
pickerArray
[
selectedIndex
].
name
}}
</view>
</picker>
</view>
<view
v-for=
"(item,index) in wlinfor"
:key=
"index"
@
click=
"item.isSelect=!item.isSelect"
>
<view
class=
"flex flex-wrap padding bg-grey white radio"
style=
"position: relative;"
>
<view
v-show=
"item.isSelect"
style=
"position: absolute;right: 10px;top: 45px;color: #fff;font-size: 20px;"
class=
"checkBody"
>
<text
class=
"lg text-gray checkItem"
:class=
"'cuIcon-check'"
></text>
</view>
<view
class=
"basis-sm margin-top-xs margin-bottom-xs radius"
>
货架
<span>
{{
item
.
hjname
}}
</span></view>
<view
class=
"basis-lg margin-top-xs margin-bottom-xs radius"
>
库位:
<span>
{{
item
.
code
}}
</span></view>
<view
class=
"basis-sm margin-top-xs margin-bottom-xs radius"
>
托盘类型:
<span>
{{
item
.
rqflname
}}
</span></view>
<view
class=
"basis-lg margin-top-xs margin-bottom-xs radius"
>
托盘:
<span>
{{
item
.
tpcode
}}
</span></view>
</view>
<view
class=
"cu-form-group"
style=
"min-height: 5px;"
>
</view>
</view>
<view
class=
"padding flex align-center bg-white justify-around"
>
<button
class=
"cu-btn bg-gradual-green lg wid50"
@
tap=
"isbctz(2)"
>
出库
</button>
</view>
</view>
</view>
</
template
>
<
script
>
import
api
from
'@/api/api.js'
;
import
{
getTryinfo
,
adjustTry
,
queryEmptyTpKw
,
rqflQuery
,
emptyCall
}
from
'@/api/dlapi.js'
export
default
{
data
()
{
return
{
app
:
this
,
selected
:
""
,
ystpcode
:
""
,
modalName
:
""
,
tpcode
:
""
,
wlinfor
:
[],
/* 选择 */
pickerArray
:
[
{
name
:
''
,
id
:
''
}
],
// 当前选中值索引
selectedIndex
:
0
,
}
},
methods
:
{
// 查询
apiQueryEmptyTpKw
(
id
){
queryEmptyTpKw
({
rqflid
:
id
}).
then
(
data
=>
{
let
record
=
data
.
records
this
.
wlinfor
=
record
.
map
(
item
=>
{
item
.
isSelect
=
false
return
item
})
})
},
onPickerChange
(
event
)
{
// 获取选中值索引
const
index
=
event
.
detail
.
value
// 设置选中值名称
this
.
selectedIndex
=
index
this
.
apiQueryEmptyTpKw
(
this
.
pickerArray
[
index
].
id
)
/* 做出托盘查询请求*/
},
// api出调整
apiadjustTry
(){
let
arrList
=
this
.
wlinfor
.
filter
(
item
=>
{
return
item
.
isSelect
})
console
.
log
(
arrList
)
if
(
arrList
.
length
==
0
){
this
.
$tip
.
alert
(
'请选择一条数据进行操作'
)
return
}
let
params
=
{
data
:
arrList
}
emptyCall
(
params
).
then
(
res
=>
{
if
(
res
){
this
.
$tip
.
alert
(
'操作成功'
)
/* 重新查询 */
this
.
apiQueryEmptyTpKw
(
this
.
pickerArray
[
this
.
selectedIndex
].
id
)
}
}
)
},
isbctz
()
{
let
that
=
this
uni
.
showModal
({
title
:
'提示'
,
content
:
'是否进行空托出库'
,
cancelText
:
"否"
,
// 取消按钮的文字
confirmText
:
"是"
,
// 确认按钮的文字
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
that
.
apiadjustTry
()
}
else
if
(
res
.
cancel
)
{
}
}
});
},
hideModal
()
{
this
.
modalName
=
""
},
// 弹框
confirm
(
e
)
{
this
.
modalName
=
"DialogModal"
+
e
},
// 删除确认
deldata
(
item
,
index
)
{
let
that
=
this
uni
.
showModal
({
title
:
'提示'
,
content
:
'是否删除该条信息'
,
cancelText
:
"否"
,
// 取消按钮的文字
confirmText
:
"是"
,
// 确认按钮的文字
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
that
.
wlinfor
.
splice
(
that
.
selected
,
1
)
}
else
if
(
res
.
cancel
)
{
}
}
});
},
// 获取托盘信息
},
onLoad
(
e
)
{
rqflQuery
().
then
(
res
=>
{
this
.
pickerArray
=
res
.
records
this
.
pickerArray
.
unshift
({
id
:
''
,
name
:
'全部'
})
this
.
apiQueryEmptyTpKw
(
this
.
pickerArray
[
0
].
id
)
})
}
}
</
script
>
<
style
scoped
>
.checkBody
{
background-color
:
royalblue
;
border-radius
:
50%
;
width
:
20px
;
height
:
20px
;
.checkItem{
color
:
#fff
;
}
}
/
deep
/
.uni-numbox-btns
{
width
:
27.69px
!important
;
}
.disable
{
background-color
:
#F5F5F5
}
.wid50
{
width
:
50%
;
}
</
style
>
pages/index/index.vue
View file @
96db53e1
This diff is collapsed.
Click to expand it.
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