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
b842e5ff
Commit
b842e5ff
authored
Apr 26, 2024
by
xiangzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装箱联调完成
parent
0190728b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
46 deletions
+62
-46
http.api.js
common/http.api.js
+2
-0
metering.vue
pages/packing/metering.vue
+14
-10
packing.vue
pages/packing/packing.vue
+6
-32
packingList.vue
pages/packing/packingList.vue
+38
-0
relationships.vue
pages/packing/relationships.vue
+2
-4
No files found.
common/http.api.js
View file @
b842e5ff
...
@@ -52,6 +52,8 @@ const install = (Vue, vm) => {
...
@@ -52,6 +52,8 @@ const install = (Vue, vm) => {
sapBlpl
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/search/sch_BLPL?sap-client=300'
,
params
),
sapBlpl
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/search/sch_BLPL?sap-client=300'
,
params
),
// 查询仓位
// 查询仓位
sapLgpla
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/search/sch_LGPLA?sap-client=300'
,
params
),
sapLgpla
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/search/sch_LGPLA?sap-client=300'
,
params
),
// 装箱
sapCasePlnr
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/pda_case/pda_case_plnr?sap-client=300'
,
params
),
},
},
mesApi
:{
mesApi
:{
//生产领料
//生产领料
...
...
pages/packing/metering.vue
View file @
b842e5ff
<
template
>
<
template
>
<view
class=
"metering"
>
<view
class=
"metering"
>
<!--
<uni-forms
:modelValue=
"form"
>
<uni-forms-item
label=
"长"
name=
"long"
>
<uni-easyinput
type=
"text"
v-model=
"form.long"
placeholder=
"请输入姓名"
/>
</uni-forms-item>
</uni-forms>
-->
<u-row
gutter=
"16"
class=
"itemRow"
>
<u-row
gutter=
"16"
class=
"itemRow"
>
<u-col
span=
"2"
>
<u-col
span=
"2"
>
长:
长:
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<uni-easyinput
v-model=
"
orderItem
"
></uni-easyinput>
<uni-easyinput
v-model=
"
form.long
"
></uni-easyinput>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row
gutter=
"16"
class=
"itemRow"
>
<u-row
gutter=
"16"
class=
"itemRow"
>
...
@@ -13,7 +18,7 @@
...
@@ -13,7 +18,7 @@
宽:
宽:
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<uni-easyinput
v-model=
"
orderItem
"
></uni-easyinput>
<uni-easyinput
v-model=
"
form.wide
"
></uni-easyinput>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row
gutter=
"16"
class=
"itemRow"
>
<u-row
gutter=
"16"
class=
"itemRow"
>
...
@@ -21,7 +26,7 @@
...
@@ -21,7 +26,7 @@
高:
高:
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<uni-easyinput
v-model=
"
orderItem
"
></uni-easyinput>
<uni-easyinput
v-model=
"
form.high
"
></uni-easyinput>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row
gutter=
"16"
class=
"itemRow"
>
<u-row
gutter=
"16"
class=
"itemRow"
>
...
@@ -29,7 +34,7 @@
...
@@ -29,7 +34,7 @@
毛重:
毛重:
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<uni-easyinput
v-model=
"
orderItem
"
></uni-easyinput>
<uni-easyinput
v-model=
"
form.brgew
"
></uni-easyinput>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row
gutter=
"16"
class=
"itemRow"
>
<u-row
gutter=
"16"
class=
"itemRow"
>
...
@@ -37,7 +42,7 @@
...
@@ -37,7 +42,7 @@
箱重:
箱重:
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<uni-easyinput
v-model=
"
orderItem
"
></uni-easyinput>
<uni-easyinput
v-model=
"
form.zxntgew
"
></uni-easyinput>
</u-col>
</u-col>
</u-row>
</u-row>
<u-row
gutter=
"16"
class=
"itemRow"
>
<u-row
gutter=
"16"
class=
"itemRow"
>
...
@@ -45,7 +50,7 @@
...
@@ -45,7 +50,7 @@
净重:
净重:
</u-col>
</u-col>
<u-col
span=
"6"
>
<u-col
span=
"6"
>
<uni-easyinput
v-model=
"
orderItem
"
disabled
></uni-easyinput>
<uni-easyinput
v-model=
"
weight
"
disabled
></uni-easyinput>
</u-col>
</u-col>
</u-row>
</u-row>
</view>
</view>
...
@@ -63,10 +68,6 @@ export default {
...
@@ -63,10 +68,6 @@ export default {
created
()
{
created
()
{
},
},
props
:{
props
:{
orderItem
:
{
type
:
String
,
default
:
''
,
},
form
:
{
form
:
{
type
:
Object
,
type
:
Object
,
default
:
function
()
{
default
:
function
()
{
...
@@ -75,6 +76,9 @@ export default {
...
@@ -75,6 +76,9 @@ export default {
}
}
},
},
computed
:{
computed
:{
weight
(){
return
(
this
.
form
.
brgew
-
0
)
-
(
this
.
form
.
zxntgew
-
0
)
}
},
},
methods
:
{
methods
:
{
}
}
...
...
pages/packing/packing.vue
View file @
b842e5ff
...
@@ -54,48 +54,22 @@ export default {
...
@@ -54,48 +54,22 @@ export default {
show
:
true
,
show
:
true
,
nlpla
:
''
,
nlpla
:
''
,
wxparams
:
''
,
wxparams
:
''
,
btnArr
:
[
{
style
:
''
,
type
:
'primary'
,
text
:
'扫描单号'
,
way
:
'scanning'
},
// {
// style: '',
// type: 'warning',
// text: '查询单号',
// way: 'goClick'
// }
],
goodsList
:
[],
goodsList
:
[],
isFocus
:
false
,
isFocus
:
false
,
isDisabled
:
false
isDisabled
:
false
};
};
},
},
created
()
{
created
()
{
// this.getPlnr('10000001');
},
},
methods
:
{
methods
:
{
getBtnHandle
(
row
)
{
this
[
row
.
way
]();
},
goClick
()
{
uni
.
navigateTo
({
url
:
`/pages/salesOutbound/oddNumList`
});
},
scanning
()
{
this
.
isFocus
=
true
uni
.
navigateTo
({
url
:
`/pages/salesOutbound/salesOutboundList`
});
},
handleInputPlnr
(
e
)
{
handleInputPlnr
(
e
)
{
this
.
isFocus
=
false
;
this
.
isFocus
=
false
;
uni
.
navigateTo
({
setTimeout
(()
=>
{
url
:
`/pages/packing/packingList?order=
${
e
}
`
this
.
wxparams
=
''
});
uni
.
navigateTo
({
url
:
`/pages/packing/packingList?order=
${
e
}
`
});
},
500
)
},
},
}
}
};
};
...
...
pages/packing/packingList.vue
View file @
b842e5ff
...
@@ -98,6 +98,15 @@ export default {
...
@@ -98,6 +98,15 @@ export default {
],
],
form
:
{
form
:
{
ZZXFS
:
''
,
ZZXFS
:
''
,
zxspe
:
''
,
//箱规格(cm)
zxvolum
:
''
,
//体积(m132)
zxntgew
:
''
,
//箱重(kg)
ntgew
:
''
,
//净重(kg)
brgew
:
''
,
//毛重(kg)
long
:
''
,
//长
wide
:
''
,
//宽
high
:
''
,
//高
updkz
:
'I'
},
},
goodsList
:
[],
goodsList
:
[],
};
};
...
@@ -111,7 +120,36 @@ export default {
...
@@ -111,7 +120,36 @@ export default {
goSubmit
(){
goSubmit
(){
if
(
this
.
goodsList
.
length
===
0
){
if
(
this
.
goodsList
.
length
===
0
){
this
.
$u
.
toast
(
'暂无提交数据'
);
this
.
$u
.
toast
(
'暂无提交数据'
);
return
}
}
const
arr
=
[]
this
.
goodsList
.
forEach
(
ele
=>
{
arr
.
push
(
{
plnr
:
ele
,
...
this
.
form
,
zxspe
:
this
.
form
.
long
+
'*'
+
this
.
form
.
wide
+
'*'
+
this
.
form
.
high
,
zxvolum
:
(
this
.
form
.
long
*
this
.
form
.
wide
*
this
.
form
.
high
)
/
1000
,
ntgew
:
(
this
.
form
.
brgew
-
0
)
-
(
this
.
form
.
zxntgew
-
0
),
zcode
:
this
.
form
.
ZZXFS
===
'PL'
?
''
:
this
.
orderBoxNum
}
)
});
this
.
$u
.
api
.
sapApi
.
sapCasePlnr
(
arr
)
.
then
((
res
)
=>
{
if
(
res
.
every
((
item
)
=>
item
.
TYPE
===
'S'
))
{
this
.
$u
.
toast
(
res
[
0
].
MESSAGE
);
setTimeout
(()
=>
{
this
.
goBack
()
},
1000
)
}
res
.
forEach
((
ele
)
=>
{
if
(
ele
.
TYPE
===
'E'
)
{
this
.
$u
.
toast
(
ele
.
MESSAGE
);
}
});
});
},
},
// 删除
// 删除
deleGonds
(
idx
)
{
deleGonds
(
idx
)
{
...
...
pages/packing/relationships.vue
View file @
b842e5ff
<
template
>
<
template
>
<view
class=
"lists"
>
<view
class=
"lists"
>
<StickyNavBar
class=
"listTitle"
>
</StickyNavBar>
<ContentLoadingMore
class=
"contentMore"
:list=
'list'
>
<ContentLoadingMore
class=
"contentMore"
:list=
'list'
>
<view
class=
"cardbox"
>
<view
class=
"cardbox"
>
<view
class=
"cardContent"
v-for=
"(item, index) in list"
:key=
"item.PLNR"
>
<view
class=
"cardContent"
v-for=
"(item, index) in list"
:key=
"item.PLNR"
>
...
@@ -21,7 +19,7 @@
...
@@ -21,7 +19,7 @@
</view>
</view>
</view>
</view>
</ContentLoadingMore>
</ContentLoadingMore>
<
BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn
>
<
!--
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn>
--
>
</view>
</view>
</
template
>
</
template
>
...
@@ -148,7 +146,7 @@ page {
...
@@ -148,7 +146,7 @@ page {
background
:
#f8f8f8
;
background
:
#f8f8f8
;
}
}
.cardbox
{
.cardbox
{
min-height
:
calc
(
100vh
-
41
0rpx
);
min-height
:
calc
(
100vh
-
70
0rpx
);
padding
:
0rpx
20rpx
;
padding
:
0rpx
20rpx
;
margin-top
:
20rpx
;
margin-top
:
20rpx
;
}
}
...
...
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