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
25945c6a
Commit
25945c6a
authored
May 22, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加委外发料
parent
a86b3558
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
493 additions
and
277 deletions
+493
-277
outsourcedMaterial.vue
pages/outsourcedMaterial/outsourcedMaterial.vue
+11
-22
outsourcedMaterialList.vue
pages/outsourcedMaterial/outsourcedMaterialList.vue
+248
-252
scanningList.vue
pages/outsourcedMaterial/scanningList.vue
+233
-0
salesOutboundList.vue
pages/salesOutbound/salesOutboundList.vue
+1
-3
No files found.
pages/outsourcedMaterial/outsourcedMaterial.vue
View file @
25945c6a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
摄像头对准
摄像头对准
</view>
</view>
<view
class=
"cardBoxTip3"
>
<view
class=
"cardBoxTip3"
>
生产
发料单号二维码
委外
发料单号二维码
</view>
</view>
<view
class=
"cardBoxTip2"
>
<view
class=
"cardBoxTip2"
>
<text
class=
"tipLeft"
>
<text
class=
"tipLeft"
>
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
</text>
</text>
</view>
</view>
</view>
</view>
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn>
</view>
</view>
</
template
>
</
template
>
...
@@ -109,31 +108,21 @@ export default {
...
@@ -109,31 +108,21 @@ export default {
});
});
}
}
},
},
getPlnr
(
plnr
)
{
getPlnr
(
VBELN
)
{
this
.
totalNum
=
0
;
this
.
isDisabled
=
true
;
this
.
$u
.
api
.
sapApi
this
.
$u
.
api
.
sapApi
.
sap
Plnr
({
.
sap
SchDn
({
plnr
VBELN
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
&&
res
.
RESULT
.
TYPE
===
'S'
)
{
if
(
res
&&
res
.
BKDT
.
length
)
{
this
.
goodsList
=
this
.
goodsList
.
concat
(
res
.
DATA
);
this
.
goodsList
=
res
.
BKDT
this
.
goodsList
.
forEach
((
ele
)
=>
{
uni
.
navigateTo
({
this
.
totalNum
+=
ele
.
ERFMG
;
url
:
`/pages/outsourcedMaterial/outsourcedMaterialList?order=
${
JSON
.
stringify
(
this
.
goodsList
)}
`
ele
.
NLPLA
=
ele
.
NLPLA
||
this
.
nlpla
;
});
});
setTimeout
(()
=>
{
this
.
wxparams
=
''
;
this
.
isFocus
=
true
;
this
.
isDisabled
=
false
;
},
1000
);
}
else
{
}
else
{
setTimeout
(()
=>
{
// res.forEach(element => {
this
.
isFocus
=
true
;
// });
this
.
isDisabled
=
false
;
this
.
$u
.
toast
(
res
.
MSG
[
0
].
MESSAGE
);
},
1000
);
this
.
$u
.
toast
(
res
.
RESULT
.
MESSAGE
);
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
...
...
pages/outsourcedMaterial/outsourcedMaterialList.vue
View file @
25945c6a
This diff is collapsed.
Click to expand it.
pages/outsourcedMaterial/scanningList.vue
0 → 100644
View file @
25945c6a
<
template
>
<view>
<view
class=
"listItemTitle"
>
<view>
<view
class=
"item"
>
行号:
{{
item
.
POSNR
}}
</view>
<view
class=
"item"
>
物料编号:
{{
item
.
MATNR
}}
</view>
<view
class=
"item"
>
物料描述:
{{
item
.
MAKTX
}}
</view>
<view
class=
"item"
>
尺码:
{{
item
.
ZSIZE
}}
</view>
<view
class=
"item"
>
数量:
{{
handleNum
()
}}
/
{{
item
.
ZINSNUM
}}
</view>
</view>
<view
class=
"right"
>
<!--
<checkbox-group
class=
"checkedBox"
>
<checkbox
value=
"r1"
:checked=
"item.checkedBox"
disabled
/>
</checkbox-group>
-->
<!--
<text
class=
"blue"
>
{{
item
.
CLABS
}}
</text>
<text
class=
"line"
>
/
</text>
<text
class=
""
>
{{
item
.
LFIMG
}}
pcs
</text>
-->
</view>
</view>
<view
class=
"listBottom"
>
<view
class=
"bottomTitle"
@
click=
"show = !show"
>
<view
class=
"desc"
>
卷条码明细
</view>
<view
class=
"topIcons"
>
<view
v-if=
"show"
>
<u-icon
name=
"arrow-down"
color=
"#aaa"
size=
"32"
></u-icon>
展开
</view>
<view
v-else
>
<u-icon
name=
"arrow-up"
color=
"#aaa"
size=
"32"
></u-icon>
收起
</view>
</view>
</view>
<view
v-if=
"!show"
class=
"bottomBox"
>
<view
class=
"bottomItem"
v-for=
"(ele, idx) in list"
:key=
"ele.PLNR+idx"
v-if=
"ele.ZSIZE === item.ZSIZE && ele.MATNR === item.MATNR && ele.PLNR"
>
<view
class=
"items"
>
PL号:
{{
ele
.
PLNR
}}
</view>
<view
class=
"items"
>
物料批号:
{{
ele
.
CHARG
}}
</view>
<view
class=
"items"
>
库位:
{{
ele
.
LGORT
}}
-
{{
ele
.
LGOBE
}}
</view>
<view
class=
"items"
>
仓位:
{{
ele
.
NLPLA
}}
</view>
<!--
<view
class=
"items"
>
{{
ele
.
MATNR
}}
</view>
-->
<view
class=
"items inputItem"
>
<!--
<u-row
gutter=
"8"
>
-->
数量:
{{
ele
.
PACMG
}}
<!--
<uni-easyinput
v-model=
"ele.CLABS"
></uni-easyinput>
-->
<!-- /
{{
ele
.
LFIMG
}}
-->
<!--
</u-row>
-->
</view>
</view>
</view>
</view>
<!--
<BottomBtn
:btnArr=
"btnArr"
@
getBtnHandle=
"getBtnHandle"
></BottomBtn>
-->
</view>
</
template
>
<
script
>
import
StickyNavBar
from
'@/components/StickyNavBar/index.vue'
;
import
ContentLoadingMore
from
'@/components/ContentLoadingMore/index.vue'
;
import
BottomBtn
from
'@/components/BottomBtn/index.vue'
;
export
default
{
components
:
{
StickyNavBar
,
ContentLoadingMore
,
BottomBtn
},
props
:
{
item
:
{
type
:
Object
,
default
:
function
()
{
return
{};
}
},
list
:
{
type
:
Array
,
default
:
function
()
{
return
[];
}
}
},
data
()
{
return
{
r1
:
''
,
number
:
0
,
totalNum
:
0
,
nlpla
:
''
,
wxparams
:
''
,
btnArr
:
[
{
style
:
''
,
type
:
'warning'
,
text
:
'返回'
,
way
:
'goBack'
},
{
style
:
''
,
type
:
'primary'
,
text
:
'提交'
,
way
:
'goSubmit'
}
],
isFocus
:
false
,
show
:
true
,
};
},
methods
:
{
handleNum
(){
let
num
=
0
this
.
list
.
forEach
(
ele
=>
{
if
(
ele
.
ZSIZE
===
this
.
item
.
ZSIZE
&&
ele
.
MATNR
===
this
.
item
.
MATNR
&&
ele
.
PLNR
){
num
+=
(
ele
.
PACMG
-
0
)
}
});
return
num
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
page
{
background
:
#f8f8f8
;
}
.headerTitle
{
padding
:
20rpx
;
font-weight
:
600
;
.items
{
line-height
:
40rpx
;
}
}
.btn
{
padding
:
20rpx
;
background
:
#fff
;
.topSearch
{
margin-bottom
:
20rpx
;
}
}
.bottomBtn
{
position
:
sticky
;
padding
:
20rpx
;
display
:
flex
;
justify-content
:
space-between
;
background
:
#fff
;
bottom
:
0rpx
;
margin-top
:
20rpx
;
.u-btn
{
width
:
300rpx
;
}
}
.blue
{
color
:
#3f9dcc
;
}
.total
{
background
:
#fff
;
color
:
#000
;
padding
:
0rpx
40rpx
;
display
:
flex
;
justify-content
:
space-between
;
font-size
:
32rpx
;
.line
{
margin
:
0px
10rpx
;
}
}
.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
;
}
}
.listBottom
{
.bottomTitle
{
height
:
80rpx
;
position
:
relative
;
.desc
{
color
:
#bbb
;
font-size
:
24rpx
;
line-height
:
80rpx
;
padding-left
:
20rpx
;
}
.topIcons
{
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
color
:
#aaa
;
}
}
.bottomBox
{
padding
:
20rpx
;
.bottomItem
{
background
:
#f8f8f8
;
padding
:
20rpx
;
margin-bottom
:
20rpx
;
.items
{
color
:
#333
;
font-size
:
24rpx
;
line-height
:
40rpx
;
/
deep
/
.uni-easyinput
{
width
:
200rpx
;
}
}
.inputItem
{
display
:
inline-flex
;
// line-height: 76rpx;
}
}
}
}
/
deep
/
.u-sticky
{
top
:
0
!
important
;
background
:
#fff
;
}
.checkedBox
{
text-align
:
right
;
}
/
deep
/
.uni-checkbox-input-disabled
:before
{
color
:
#007aff
!
important
;
}
</
style
>
pages/salesOutbound/salesOutboundList.vue
View file @
25945c6a
...
@@ -212,9 +212,7 @@
...
@@ -212,9 +212,7 @@
},
},
goBack
()
{
goBack
()
{
console
.
log
(
"进来"
);
console
.
log
(
"进来"
);
uni
.
navigateBack
({
uni
.
navigateBack
();
delta
:
0
,
});
},
},
changeTab
(
index
)
{
changeTab
(
index
)
{
this
.
current
=
index
;
this
.
current
=
index
;
...
...
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