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
3f492ed2
Commit
3f492ed2
authored
Jul 24, 2024
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化及bug修改
parent
5bfce159
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
30 deletions
+25
-30
productionIssuanceList.vue
pages/productionIssuance/productionIssuanceList.vue
+17
-12
scanningList.vue
pages/productionIssuance/scanningList.vue
+4
-15
purchaseStorage.vue
pages/purchaseStorage/purchaseStorage.vue
+2
-2
salesOutboundList.vue
pages/salesOutbound/salesOutboundList.vue
+2
-1
No files found.
pages/productionIssuance/productionIssuanceList.vue
View file @
3f492ed2
...
...
@@ -5,15 +5,15 @@
<view
class=
"headerTitle"
>
<view
class=
""
>
<view
class=
"items"
>
领料申请:
{{
goods
List
[
0
]
&&
goodsList
[
0
]
.
applyNo
}}
</view
>
领料申请:
{{
goods
Info
.
applyNo
}}
</view
>
<view
class=
"items"
>
{{
goods
List
[
0
]
&&
goodsList
[
0
]
.
workstationCode
}}
/
{{
goods
List
[
0
]
&&
goodsList
[
0
]
.
workstationName
>
{{
goods
Info
.
workstationCode
}}
/
{{
goods
Info
.
workstationName
}}
</view
>
<view
class=
"items"
>
计划日期:
{{
goods
List
[
0
]
&&
goodsList
[
0
]
.
startTime
}}
</view
>
计划日期:
{{
goods
Info
.
startTime
}}
</view
>
</view>
<view
class=
"checkedCase"
>
...
...
@@ -36,8 +36,6 @@
<view
class=
"left"
>
物料明细
</view>
<view
class=
"right"
>
物料数量:
<!--
<text
class=
"blue"
>
{{
totalNum
}}
</text>
<text
class=
"line"
>
/
</text>
-->
<text
class=
""
>
{{
goodsList
.
length
}}
</text>
</view>
</view>
...
...
@@ -94,6 +92,9 @@ export default {
};
},
computed
:
{
goodsInfo
()
{
return
this
.
goodsList
[
0
]
||
{}
},
totalNum
()
{
let
num
=
0
;
let
i
=
null
,
...
...
@@ -138,25 +139,27 @@ export default {
})
.
then
((
res
)
=>
{
if
(
res
&&
res
.
code
-
200
===
0
)
{
this
.
goodsList
=
res
.
rows
.
reduce
((
pre
,
cur
)
=>
{
if
(
pre
.
length
===
0
)
{
pre
.
push
({
this
.
goodsList
=
res
.
rows
.
reduce
((
acc
,
cur
)
=>
{
if
(
acc
.
length
===
0
)
{
acc
.
push
({
...
cur
,
details
:
[{
...
cur
,
vista
:
0
}],
});
}
else
{
const
item
=
pre
.
find
((
v
)
=>
v
.
sapItemCode
==
cur
.
sapItemCode
);
const
item
=
acc
.
find
((
v
)
=>
v
.
sapItemCode
==
cur
.
sapItemCode
);
if
(
item
)
{
item
.
details
.
push
({
...
cur
,
vista
:
0
});
}
else
{
pre
.
push
({
acc
.
push
({
...
cur
,
details
:
[{
...
cur
,
vista
:
0
}],
});
}
}
return
pre
;
return
acc
;
},
[]);
console
.
log
(
this
.
goodsList
,
"----"
)
}
else
{
this
.
$u
.
toast
(
res
.
msg
);
}
...
...
@@ -283,6 +286,8 @@ export default {
// 用于缓存新添加的 details
const
map
=
new
Map
();
console
.
log
(
item
,
'-----'
)
item
.
details
.
some
((
v
,
i
)
=>
{
// 如果没有数量了,终止分配
if
(
num
<=
0
)
return
true
;
...
...
pages/productionIssuance/scanningList.vue
View file @
3f492ed2
...
...
@@ -35,12 +35,10 @@
<view
class=
"items"
>
生产单号:
{{
ele
.
workorderCode
}}
</view>
<view
class=
"progress"
>
<progress
:percent=
"handleVista(ele)"
show-info
/>
<!--
<u-line-progress
active-color=
"#2979ff"
:percent=
"handleVista(ele)"
></u-line-progress>
-->
</view>
</view>
<view
class=
"items inputItem"
>
数量:
<!--
<uni-easyinput
v-model=
"item.vista"
></uni-easyinput>
-->
{{
handleUseVista
(
ele
)
}}
/
{{
ele
.
applyNum
}}
...
...
@@ -49,12 +47,10 @@
<view
class=
"items"
>
PL:
{{
item
.
PLNR
}}
</view>
<view
class=
"items"
>
库位:
{{
item
.
LGORT
}}
-
{{
item
.
LGOBE
}}
</view>
<view
class=
"items"
>
仓位:
{{
item
.
NLPLA
}}
</view>
<!--
<view
class=
"items"
>
{{
item
.
MATNR
}}
</view>
-->
</
template
>
</view>
</view>
</view>
<!-- <BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn> -->
</view>
</template>
...
...
@@ -89,7 +85,7 @@ export default {
if
(
item
)
{
item
.
details
.
push
({
...
cur
});
}
else
{
acc
.
push
({
...
cur
,
details
:
[{
...
cur
}]
});
acc
.
push
({
...
cur
,
details
:
[{
...
cur
}]
});
}
return
acc
;
},
[]);
...
...
@@ -103,25 +99,18 @@ export default {
workCodes
.
push
(
cur
.
workorderCode
);
return
acc
+
cur
.
applyNum
;
}
},
0
);
},
0
)
.
toFixed
(
3
)
;
},
totalVistaNum
()
{
// let num = 0
// this.list.forEach(ele => {
// if(ele.itemCode === this.item.itemCode){
// num += (ele.vista-0)
// }
// });
// return num || ''
return
this
.
list
.
reduce
((
acc
,
cur
)
=>
{
return
acc
+
cur
.
vista
;
},
0
);
},
0
)
.
toFixed
(
3
)
;
},
},
watch
:
{
details
:
{
handler
:
function
(
val
,
oldVal
)
{
console
.
log
(
val
,
"00-------"
);
console
.
log
(
val
,
"00-------"
,
this
.
list
);
},
immediate
:
true
,
deep
:
true
,
...
...
pages/purchaseStorage/purchaseStorage.vue
View file @
3f492ed2
...
...
@@ -4,7 +4,7 @@
<NavBar
title=
"采购入库扫描"
></NavBar>
<FactorySelect
v-model=
"warehouseCode"
@
change=
"warehouseChange"
/>
<view
class=
"btn"
>
<uni-easyinput
prefixIcon=
"search"
class=
"topSearch"
v-model=
"nlpla"
focus
placeholder=
"请扫描库位"
@
change=
"handleInputNlpla"
></uni-easyinput>
<uni-easyinput
v-if=
"vuex_user_factory !== '1010'"
prefixIcon=
"search"
class=
"topSearch"
v-model=
"nlpla"
focus
placeholder=
"请扫描库位"
@
change=
"handleInputNlpla"
></uni-easyinput>
<uni-easyinput
prefixIcon=
"search"
:disabled=
"isDisabled"
...
...
@@ -160,7 +160,7 @@ export default {
},
getPlnr
(
plnr
)
{
this
.
isDisabled
=
true
;
if
(
!
this
.
nlpla
){
if
(
!
this
.
nlpla
&&
this
.
vuex_user_factory
!==
'1010'
){
this
.
$u
.
toast
(
'请先扫描仓位'
);
setTimeout
(()
=>
{
this
.
wxparams
=
''
;
...
...
pages/salesOutbound/salesOutboundList.vue
View file @
3f492ed2
...
...
@@ -246,6 +246,7 @@
let
params
=
{
ZCODE
:
plnr
.
includes
(
"BL"
)
?
plnr
:
""
,
plnr
:
plnr
.
includes
(
"BL"
)
?
""
:
plnr
,
ztype
:
'005'
};
this
.
$u
.
api
.
sapApi
.
sapBlpl
(
params
).
then
((
res
)
=>
{
if
(
res
&&
res
.
MSG
[
0
].
TYPE
===
"S"
)
{
...
...
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