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
effd75a4
Commit
effd75a4
authored
Nov 27, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
四个发料
parent
49ba9c51
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
288 additions
and
18 deletions
+288
-18
http.api.js
common/http.api.js
+2
-0
scanningList.vue
pages/costCenter/scanningList.vue
+74
-6
scanningList.vue
pages/outsourcedMaterial/scanningList.vue
+63
-1
scanningList.vue
pages/productionIssuance/scanningList.vue
+74
-4
scanningList.vue
pages/workCenter/scanningList.vue
+75
-7
No files found.
common/http.api.js
View file @
effd75a4
...
@@ -51,6 +51,8 @@ const install = (Vue, vm) => {
...
@@ -51,6 +51,8 @@ const install = (Vue, vm) => {
sapPickingDn
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/picking_dn?sap-language=ZH&sap-client='
+
client
,
params
),
sapPickingDn
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/picking_dn?sap-language=ZH&sap-client='
+
client
,
params
),
// 换标
// 换标
sapMigoCS
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/pda_migo_cs?sap-client='
+
client
,
params
),
sapMigoCS
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/pda_migo_cs?sap-client='
+
client
,
params
),
// 生产发料
pdaKcInfo
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/pda_kc_info?sap-client='
+
client
,
params
),
// 销售拣货过账
// 销售拣货过账
sapDelv
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/post_delv?sap-language=ZH&sap-client='
+
client
,
params
),
sapDelv
:
(
params
=
{},
client
=
sapClient
)
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sap/bc/erp_ep/post_delv?sap-language=ZH&sap-client='
+
client
,
params
),
// 销售拣货查询bl pl
// 销售拣货查询bl pl
...
...
pages/costCenter/scanningList.vue
View file @
effd75a4
...
@@ -7,9 +7,14 @@
...
@@ -7,9 +7,14 @@
<view
class=
"item"
>
单位:
{{
item
.
MEINS
}}
</view>
<view
class=
"item"
>
单位:
{{
item
.
MEINS
}}
</view>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<text
class=
"blue"
>
{{
totalVistaNum
}}
</text>
<view>
<text
class=
"line"
>
/
</text>
<text
class=
"blue"
>
{{
totalVistaNum
}}
</text>
<text
class=
""
>
{{
item
.
BDMNG
}}
</text>
<text
class=
"line"
>
/
</text>
<text
class=
""
>
{{
item
.
BDMNG
}}
</text>
</view>
<u-button
class=
"openBtn"
size=
"mini"
type=
"primary"
plain
@
click=
"handleOpen(item.MATNR)"
>
查询
</u-button>
</view>
</view>
</view>
</view>
<view
class=
"listBottom"
>
<view
class=
"listBottom"
>
...
@@ -34,6 +39,15 @@
...
@@ -34,6 +39,15 @@
</view>
</view>
</view>
</view>
</view>
</view>
<u-popup
class=
"oddments-popup"
v-model=
"visible"
mode=
"center"
:mask-close-able=
"false"
closeable
@
close=
"close"
>
<scroll-view
scroll-y=
"true"
style=
"height: 600rpx;min-width: 300rpx;max-width: 600rpx"
>
<view
class=
"content"
v-for=
"(ele, idx) in pordList"
:index=
"idx"
>
<view
class=
"item"
>
PL:
{{
ele
.
PLNR
}}
</view>
<view
class=
"item"
>
仓位:
{{
ele
.
NLPLA_Z
}}
</view>
<view
class=
"item"
>
数量:
{{
ele
.
PACMG
}}
/
{{
ele
.
MEINS
}}
</view>
</view>
</scroll-view>
</u-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -88,6 +102,8 @@
...
@@ -88,6 +102,8 @@
way
:
"goSubmit"
,
way
:
"goSubmit"
,
},
},
],
],
visible
:
false
,
pordList
:
[],
isFocus
:
false
,
isFocus
:
false
,
show
:
true
,
show
:
true
,
num1
:
0
,
num1
:
0
,
...
@@ -95,7 +111,25 @@
...
@@ -95,7 +111,25 @@
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
handleOpen
(
item
)
{
const
params
=
[
{
"MATNR"
:
item
,
"WERKS"
:
this
.
vuex_user_factory
}
]
this
.
$u
.
api
.
sapApi
.
pdaKcInfo
(
params
).
then
((
res
)
=>
{
if
(
res
&&
res
.
MSG
.
TYPE
===
"S"
)
{
this
.
pordList
=
res
.
DATA
this
.
visible
=
true
}
else
{
this
.
$u
.
toast
(
res
.
MSG
.
MESSAGE
);
}
})
},
close
(){
this
.
visible
=
false
},
},
},
};
};
</
script
>
</
script
>
...
@@ -104,7 +138,12 @@
...
@@ -104,7 +138,12 @@
page
{
page
{
background
:
#f8f8f8
;
background
:
#f8f8f8
;
}
}
.right
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
flex-end
;
flex-direction
:
column
;
}
.headerTitle
{
.headerTitle
{
padding
:
20rpx
;
padding
:
20rpx
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -161,7 +200,7 @@
...
@@ -161,7 +200,7 @@
border-bottom
:
2px
solid
#f8f8f8
;
border-bottom
:
2px
solid
#f8f8f8
;
.u-btn
{
.u-btn
{
width
:
15
0rpx
;
width
:
8
0rpx
;
margin
:
0px
;
margin
:
0px
;
margin-top
:
10rpx
;
margin-top
:
10rpx
;
}
}
...
@@ -245,4 +284,33 @@
...
@@ -245,4 +284,33 @@
.proItem
{
.proItem
{
display
:
flex
;
display
:
flex
;
}
}
.oddments-popup
{
/
deep
/
.u-mode-center-box
{
padding
:
12rpx
;
padding-top
:
50rpx
;
background-color
:
#f8f8f8
;
text-align
:
center
;
.uni-scroll-view
{
.content
{
background
:
#fff
;
margin-bottom
:
8rpx
;
padding
:
20rpx
;
border-radius
:
16rpx
;
text-align
:
left
;
.item
{
color
:
#000
;
font-size
:
28rpx
;
font-weight
:
500
;
word-break
:
break-all
;
}
}
}
}
.btn
{
margin-top
:
12rpx
;
}
}
</
style
>
</
style
>
pages/outsourcedMaterial/scanningList.vue
View file @
effd75a4
...
@@ -11,6 +11,9 @@
...
@@ -11,6 +11,9 @@
>
>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<u-button
class=
"openBtn"
size=
"mini"
type=
"primary"
plain
@
click=
"handleOpen(item.MATNR)"
>
查询
</u-button>
<!--
<checkbox-group
class=
"checkedBox"
>
<!--
<checkbox-group
class=
"checkedBox"
>
<checkbox
value=
"r1"
:checked=
"item.checkedBox"
disabled
/>
<checkbox
value=
"r1"
:checked=
"item.checkedBox"
disabled
/>
</checkbox-group>
-->
</checkbox-group>
-->
...
@@ -51,6 +54,15 @@
...
@@ -51,6 +54,15 @@
</view>
</view>
</view>
</view>
<!--
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn>
-->
<!--
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn>
-->
<u-popup
class=
"oddments-popup"
v-model=
"visible"
mode=
"center"
:mask-close-able=
"false"
closeable
@
close=
"close"
>
<scroll-view
scroll-y=
"true"
style=
"height: 600rpx;min-width: 300rpx;max-width: 600rpx"
>
<view
class=
"content"
v-for=
"(ele, idx) in pordList"
:index=
"idx"
>
<view
class=
"item"
>
PL:
{{
ele
.
PLNR
}}
</view>
<view
class=
"item"
>
仓位:
{{
ele
.
NLPLA_Z
}}
</view>
<view
class=
"item"
>
数量:
{{
ele
.
PACMG
}}
/
{{
ele
.
MEINS
}}
</view>
</view>
</scroll-view>
</u-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -99,12 +111,33 @@ export default {
...
@@ -99,12 +111,33 @@ export default {
way
:
"goSubmit"
,
way
:
"goSubmit"
,
},
},
],
],
visible
:
false
,
pordList
:
[],
isFocus
:
false
,
isFocus
:
false
,
show
:
true
,
show
:
true
,
};
};
},
},
methods
:
{
methods
:
{
handleOpen
(
item
)
{
const
params
=
[
{
"MATNR"
:
item
,
"WERKS"
:
this
.
vuex_user_factory
}
]
this
.
$u
.
api
.
sapApi
.
pdaKcInfo
(
params
).
then
((
res
)
=>
{
if
(
res
&&
res
.
MSG
.
TYPE
===
"S"
)
{
this
.
pordList
=
res
.
DATA
this
.
visible
=
true
}
else
{
this
.
$u
.
toast
(
res
.
MSG
.
MESSAGE
);
}
})
},
close
(){
this
.
visible
=
false
},
handleNum
()
{
handleNum
()
{
let
num
=
0
;
let
num
=
0
;
this
.
list
.
forEach
((
ele
)
=>
{
this
.
list
.
forEach
((
ele
)
=>
{
...
@@ -172,7 +205,7 @@ page {
...
@@ -172,7 +205,7 @@ page {
padding
:
20rpx
;
padding
:
20rpx
;
border-bottom
:
2px
solid
#f8f8f8
;
border-bottom
:
2px
solid
#f8f8f8
;
.u-btn
{
.u-btn
{
width
:
15
0rpx
;
width
:
8
0rpx
;
margin
:
0px
;
margin
:
0px
;
margin-top
:
10rpx
;
margin-top
:
10rpx
;
}
}
...
@@ -235,4 +268,33 @@ page {
...
@@ -235,4 +268,33 @@ page {
/
deep
/
.uni-checkbox-input-disabled
:before
{
/
deep
/
.uni-checkbox-input-disabled
:before
{
color
:
#007aff
!
important
;
color
:
#007aff
!
important
;
}
}
.oddments-popup
{
/
deep
/
.u-mode-center-box
{
padding
:
12rpx
;
padding-top
:
50rpx
;
background-color
:
#f8f8f8
;
text-align
:
center
;
.uni-scroll-view
{
.content
{
background
:
#fff
;
margin-bottom
:
8rpx
;
padding
:
20rpx
;
border-radius
:
16rpx
;
text-align
:
left
;
.item
{
color
:
#000
;
font-size
:
28rpx
;
font-weight
:
500
;
word-break
:
break-all
;
}
}
}
}
.btn
{
margin-top
:
12rpx
;
}
}
</
style
>
</
style
>
pages/productionIssuance/scanningList.vue
View file @
effd75a4
...
@@ -6,9 +6,14 @@
...
@@ -6,9 +6,14 @@
<view
class=
"item"
>
物料描述:
{{
item
.
itemName
}}
</view>
<view
class=
"item"
>
物料描述:
{{
item
.
itemName
}}
</view>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<text
class=
"blue"
>
{{
totalVistaNum
}}
</text>
<view>
<text
class=
"line"
>
/
</text>
<text
class=
"blue"
>
{{
totalVistaNum
}}
</text>
<text
class=
""
>
{{
totalNum
}}
</text>
<text
class=
"line"
>
/
</text>
<text
class=
""
>
{{
totalNum
}}
</text>
</view>
<u-button
class=
"openBtn"
size=
"mini"
type=
"primary"
plain
@
click=
"handleOpen(item.sapItemCode)"
>
查询
</u-button>
</view>
</view>
</view>
</view>
<view
class=
"listBottom"
>
<view
class=
"listBottom"
>
...
@@ -51,6 +56,15 @@
...
@@ -51,6 +56,15 @@
</view>
</view>
</view>
</view>
</view>
</view>
<u-popup
class=
"oddments-popup"
v-model=
"visible"
mode=
"center"
:mask-close-able=
"false"
closeable
@
close=
"close"
>
<scroll-view
scroll-y=
"true"
style=
"height: 600rpx;min-width: 300rpx;max-width: 600rpx"
>
<view
class=
"content"
v-for=
"(ele, idx) in pordList"
:index=
"idx"
>
<view
class=
"item"
>
PL:{{ ele.PLNR }}
</view>
<view
class=
"item"
>
仓位:{{ ele.NLPLA_Z }}
</view>
<view
class=
"item"
>
数量:{{ ele.PACMG }}/{{ ele.MEINS }}
</view>
</view>
</scroll-view>
</u-popup>
</view>
</view>
</template>
</template>
...
@@ -79,6 +93,7 @@ export default {
...
@@ -79,6 +93,7 @@ export default {
},
},
},
},
computed
:
{
computed
:
{
details
()
{
details
()
{
return
this
.
list
.
reduce
((
acc
,
cur
)
=>
{
return
this
.
list
.
reduce
((
acc
,
cur
)
=>
{
const
item
=
acc
.
find
((
v
)
=>
v
.
workorderCode
===
cur
.
workorderCode
);
const
item
=
acc
.
find
((
v
)
=>
v
.
workorderCode
===
cur
.
workorderCode
);
...
@@ -121,6 +136,7 @@ export default {
...
@@ -121,6 +136,7 @@ export default {
number
:
0
,
number
:
0
,
nlpla
:
""
,
nlpla
:
""
,
wxparams
:
""
,
wxparams
:
""
,
visible
:
false
,
btnArr
:
[
btnArr
:
[
{
{
style
:
""
,
style
:
""
,
...
@@ -135,6 +151,7 @@ export default {
...
@@ -135,6 +151,7 @@ export default {
way
:
"goSubmit"
,
way
:
"goSubmit"
,
},
},
],
],
pordList
:
[],
isFocus
:
false
,
isFocus
:
false
,
show
:
true
,
show
:
true
,
num1
:
0
,
num1
:
0
,
...
@@ -142,6 +159,25 @@ export default {
...
@@ -142,6 +159,25 @@ export default {
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
handleOpen
(
item
)
{
const
params
=
[
{
"MATNR"
:
item
,
"WERKS"
:
this
.
vuex_user_factory
}
]
this
.
$u
.
api
.
sapApi
.
pdaKcInfo
(
params
).
then
((
res
)
=>
{
if
(
res
&&
res
.
MSG
.
TYPE
===
"S"
)
{
this
.
pordList
=
res
.
DATA
this
.
visible
=
true
}
else
{
this
.
$u
.
toast
(
res
.
MSG
.
MESSAGE
);
}
})
},
close
(){
this
.
visible
=
false
},
handleUseVista
(
items
)
{
handleUseVista
(
items
)
{
return
items
.
details
.
reduce
((
acc
,
cur
)
=>
cur
.
vista
+
acc
,
0
)
return
items
.
details
.
reduce
((
acc
,
cur
)
=>
cur
.
vista
+
acc
,
0
)
},
},
...
@@ -166,6 +202,12 @@ export default {
...
@@ -166,6 +202,12 @@ export default {
page
{
page
{
background
:
#f8f8f8
;
background
:
#f8f8f8
;
}
}
.right
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
flex-end
;
flex-direction
:
column
;
}
.headerTitle
{
.headerTitle
{
padding
:
20rpx
;
padding
:
20rpx
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -212,7 +254,7 @@ page {
...
@@ -212,7 +254,7 @@ page {
padding
:
20rpx
;
padding
:
20rpx
;
border-bottom
:
2px
solid
#f8f8f8
;
border-bottom
:
2px
solid
#f8f8f8
;
.u-btn
{
.u-btn
{
width
:
15
0rpx
;
width
:
8
0rpx
;
margin
:
0px
;
margin
:
0px
;
margin-top
:
10rpx
;
margin-top
:
10rpx
;
}
}
...
@@ -282,4 +324,32 @@ page {
...
@@ -282,4 +324,32 @@ page {
.proItem
{
.proItem
{
display
:
flex
;
display
:
flex
;
}
}
.oddments-popup
{
/
deep
/
.u-mode-center-box
{
padding
:
12rpx
;
padding-top
:
50rpx
;
background-color
:
#f8f8f8
;
text-align
:
center
;
.uni-scroll-view
{
.content
{
background
:
#fff
;
margin-bottom
:
8rpx
;
padding
:
20rpx
;
border-radius
:
16rpx
;
text-align
:
left
;
.item
{
color
:
#000
;
font-size
:
28rpx
;
font-weight
:
500
;
word-break
:
break-all
;
}
}
}
}
.btn
{
margin-top
:
12rpx
;
}
}
</
style
>
</
style
>
pages/workCenter/scanningList.vue
View file @
effd75a4
...
@@ -6,9 +6,14 @@
...
@@ -6,9 +6,14 @@
<view
class=
"item"
>
物料描述:
{{
item
.
itemName
}}
</view>
<view
class=
"item"
>
物料描述:
{{
item
.
itemName
}}
</view>
</view>
</view>
<view
class=
"right"
>
<view
class=
"right"
>
<text
class=
"blue"
>
{{
totalVistaNum
}}
</text>
<view>
<text
class=
"line"
>
/
</text>
<text
class=
"blue"
>
{{
totalVistaNum
}}
</text>
<text
class=
""
>
{{
item
.
applyNum
}}
</text>
<text
class=
"line"
>
/
</text>
<text
class=
""
>
{{
item
.
applyNum
}}
</text>
</view>
<u-button
class=
"openBtn"
size=
"mini"
type=
"primary"
plain
@
click=
"handleOpen(item.sapItemCode)"
>
查询
</u-button>
</view>
</view>
</view>
</view>
<view
class=
"listBottom"
>
<view
class=
"listBottom"
>
...
@@ -33,6 +38,15 @@
...
@@ -33,6 +38,15 @@
</view>
</view>
</view>
</view>
</view>
</view>
<u-popup
class=
"oddments-popup"
v-model=
"visible"
mode=
"center"
:mask-close-able=
"false"
closeable
@
close=
"close"
>
<scroll-view
scroll-y=
"true"
style=
"height: 600rpx;min-width: 300rpx;max-width: 600rpx"
>
<view
class=
"content"
v-for=
"(ele, idx) in pordList"
:index=
"idx"
>
<view
class=
"item"
>
PL:
{{
ele
.
PLNR
}}
</view>
<view
class=
"item"
>
仓位:
{{
ele
.
NLPLA_Z
}}
</view>
<view
class=
"item"
>
数量:
{{
ele
.
PACMG
}}
/
{{
ele
.
MEINS
}}
</view>
</view>
</scroll-view>
</u-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -96,6 +110,8 @@
...
@@ -96,6 +110,8 @@
way
:
"goSubmit"
,
way
:
"goSubmit"
,
},
},
],
],
pordList
:
[],
visible
:
false
,
isFocus
:
false
,
isFocus
:
false
,
show
:
true
,
show
:
true
,
num1
:
0
,
num1
:
0
,
...
@@ -103,7 +119,25 @@
...
@@ -103,7 +119,25 @@
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
handleOpen
(
item
)
{
const
params
=
[
{
"MATNR"
:
item
,
"WERKS"
:
this
.
vuex_user_factory
}
]
this
.
$u
.
api
.
sapApi
.
pdaKcInfo
(
params
).
then
((
res
)
=>
{
if
(
res
&&
res
.
MSG
.
TYPE
===
"S"
)
{
this
.
pordList
=
res
.
DATA
this
.
visible
=
true
}
else
{
this
.
$u
.
toast
(
res
.
MSG
.
MESSAGE
);
}
})
},
close
(){
this
.
visible
=
false
},
},
},
};
};
</
script
>
</
script
>
...
@@ -112,7 +146,12 @@
...
@@ -112,7 +146,12 @@
page
{
page
{
background
:
#f8f8f8
;
background
:
#f8f8f8
;
}
}
.right
{
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
flex-end
;
flex-direction
:
column
;
}
.headerTitle
{
.headerTitle
{
padding
:
20rpx
;
padding
:
20rpx
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -169,7 +208,7 @@
...
@@ -169,7 +208,7 @@
border-bottom
:
2px
solid
#f8f8f8
;
border-bottom
:
2px
solid
#f8f8f8
;
.u-btn
{
.u-btn
{
width
:
15
0rpx
;
width
:
8
0rpx
;
margin
:
0px
;
margin
:
0px
;
margin-top
:
10rpx
;
margin-top
:
10rpx
;
}
}
...
@@ -253,4 +292,33 @@
...
@@ -253,4 +292,33 @@
.proItem
{
.proItem
{
display
:
flex
;
display
:
flex
;
}
}
</
style
>
.oddments-popup
{
/
deep
/
.u-mode-center-box
{
padding
:
12rpx
;
padding-top
:
50rpx
;
background-color
:
#f8f8f8
;
text-align
:
center
;
.uni-scroll-view
{
.content
{
background
:
#fff
;
margin-bottom
:
8rpx
;
padding
:
20rpx
;
border-radius
:
16rpx
;
text-align
:
left
;
.item
{
color
:
#000
;
font-size
:
28rpx
;
font-weight
:
500
;
word-break
:
break-all
;
}
}
}
}
.btn
{
margin-top
:
12rpx
;
}
}
</
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