Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pda-scan
Project
Project
Details
Activity
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
ximai
mes-pda-scan
Commits
5979d3f9
Commit
5979d3f9
authored
Jul 05, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加发货下架
parent
e8309f3d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
182 additions
and
0 deletions
+182
-0
http.api.js
common/http.api.js
+1
-0
index.vue
pages/sendOutGoodsOff/index.vue
+181
-0
No files found.
common/http.api.js
View file @
5979d3f9
...
...
@@ -57,6 +57,7 @@ const install = (Vue, vm) => {
sapLgpla
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/search/sch_LGPLA?sap-language=ZH&sap-client='
+
client
,
params
),
// 装箱
sapCasePlnr
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/pda_case/pda_case_plnr?sap-language=ZH&sap-client='
+
client
,
params
),
sapCasePlnr2
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/pda_case/pda_case_plnr2?sap-language=ZH&sap-client='
+
client
,
params
),
// 待盘点
sapInventory
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/search/sch_inventory?sap-language=ZH&sap-client='
+
client
,
params
),
},
...
...
pages/sendOutGoodsOff/index.vue
0 → 100644
View file @
5979d3f9
<
template
>
<view
class=
"lists"
>
<StickyNavBar>
<NavBar
title=
"发货下架"
></NavBar>
<view
class=
"btn"
>
<uni-easyinput
prefixIcon=
"search"
:disabled=
"isDisabled"
v-model=
"wxparams"
:focus=
"isFocus"
placeholder=
"请扫描产品包装条码/外箱码"
@
input=
"handleInputPlnr"
></uni-easyinput>
</view>
</StickyNavBar>
<view
class=
"cardbox"
>
<view
class=
"cardContent"
v-for=
"(item, index) in goodsList"
:key=
"item.PLNR"
>
<view
class=
"listItemTitle"
>
<view>
<view
class=
"item"
>
{{
item
.
ZCODE
?
'BL'
:
'PL'
}}
号:
{{
item
.
ZCODE
||
item
.
PLNR
}}
</view>
</view>
<u-button
size=
"mini"
type=
"primary"
plain
@
click=
"deleGonds(index)"
>
<u-icon
name=
"trash"
size=
"28"
></u-icon>
删除
</u-button>
</view>
</view>
</view>
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn>
</view>
</
template
>
<
script
>
import
BottomBtn
from
'@/components/BottomBtn/index.vue'
;
import
StickyNavBar
from
'@/components/StickyNavBar/index.vue'
;
import
{
parseTime
}
from
"@/utils/ruoyi"
;
export
default
{
components
:
{
StickyNavBar
,
BottomBtn
},
data
()
{
return
{
wxparams
:
""
,
isDisabled
:
false
,
isFocus
:
false
,
goodsList
:
[],
btnArr
:
[{
style
:
''
,
type
:
'warning'
,
text
:
'返回'
,
way
:
'goBack'
},
{
style
:
''
,
type
:
'primary'
,
text
:
'提交'
,
way
:
'goSubmit'
}
],
}
},
methods
:
{
handleInputPlnr
(
e
)
{
if
(
this
.
goodsList
.
some
((
item
)
=>
item
.
ZCODE
===
e
||
item
.
PLNR
===
e
))
{
this
.
$u
.
toast
(
'已经存在当前条码'
);
this
.
reset
()
return
}
// bl 长度 15 pl 长度 80
const
bl
=
e
.
length
<=
15
&&
e
.
length
>=
13
;
const
pl
=
e
.
length
>
15
if
(
bl
)
{
this
.
isFocus
=
false
;
this
.
isDisabled
=
true
;
this
.
goodsList
.
push
({
ZCODE
:
e
,
PLNR
:
''
})
this
.
reset
()
}
else
if
(
pl
)
{
this
.
isFocus
=
false
;
this
.
isDisabled
=
true
;
this
.
goodsList
.
push
({
PLNR
:
e
,
ZCODE
:
''
})
this
.
reset
()
}
},
deleGonds
(
index
)
{
this
.
goodsList
.
splice
(
index
,
1
)
},
reset
()
{
setTimeout
(()
=>
{
this
.
isFocus
=
true
;
this
.
isDisabled
=
false
;
this
.
wxparams
=
''
},
1000
);
},
getBtnHandle
(
row
)
{
console
.
log
(
'getBtnHandle'
,
row
);
this
[
row
.
way
]();
},
// 提交
goSubmit
()
{
if
(
!
this
.
goodsList
.
length
)
{
return
this
.
$u
.
toast
(
'请扫描需要下架的箱条码/外箱码'
)
}
const
DATUM
=
parseTime
(
new
Date
(),
'{y}{m}{d}'
),
UNAME
=
this
.
vuex_user
.
nickName
,
UZEIT
=
parseTime
(
new
Date
(),
'{h}{i}{s}'
);
const
arr
=
this
.
goodsList
this
.
$u
.
api
.
sapApi
.
sapCasePlnr2
(
arr
)
.
then
((
res
)
=>
{
const
flag
=
res
.
some
((
item
)
=>
{
const
b
=
item
.
TYPE
==
'E'
if
(
b
)
{
this
.
$u
.
toast
(
item
.
MESSAGE
)
}
return
b
})
if
(
!
flag
)
{
this
.
$u
.
toast
(
res
[
0
].
MESSAGE
);
this
.
goodsList
=
[]
}
})
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.lists
{
flex
:
1
;
flex-direction
:
column
;
}
page
{
background
:
#f8f8f8
;
}
/
deep
/
.u-sticky
{
top
:
0
!
important
;
background
:
#fff
;
}
.btn
{
padding
:
20rpx
;
background
:
#fff
;
.boxSelect
{
margin-bottom
:
20rpx
;
}
}
.cardContent
{
border-radius
:
8px
;
background
:
#fff
;
margin-bottom
:
20rpx
;
}
.listItemTitle
{
display
:
flex
;
justify-content
:
space-between
;
padding
:
20rpx
;
border-bottom
:
2px
solid
#f8f8f8
;
.u-btn
{
width
:
150rpx
;
margin
:
0px
;
margin-top
:
10rpx
;
}
.item
{
line-height
:
50rpx
;
color
:
#333
;
font-size
:
28rpx
;
font-weight
:
500
;
word-break
:
break-all
;
font-weight
:
600
;
}
}
</
style
>
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