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
72ddf67c
Commit
72ddf67c
authored
Mar 18, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售出库
parent
2b79b371
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
31 deletions
+4
-31
lhmx.vue
pages/saleck/components/lhmx.vue
+4
-30
selectCK.vue
pages/saleck/selectCK.vue
+0
-1
No files found.
pages/saleck/components/lhmx.vue
View file @
72ddf67c
...
@@ -18,12 +18,12 @@
...
@@ -18,12 +18,12 @@
<
/view
>
<
/view
>
<
view
class
=
"right"
>
<
view
class
=
"right"
>
<
u
-
icon
name
=
"plus"
color
=
"#000"
size
=
"32"
@
click
=
"addKC(ele)"
><
/u-icon
>
<
u
-
icon
name
=
"plus"
color
=
"#000"
size
=
"32"
@
click
=
"addKC(ele)"
><
/u-icon
>
<
view
class
=
"items"
>
{{
outQuantity
(
ele
.
materialNo
)
}}
/
{{
ele
.
deliverQuantity
}}
pcs
<
/view
>
<
view
class
=
"items"
>
{{
outQuantity
(
ele
.
materialNo
,
ele
.
deliverQuantity
)
}}
/
{{
ele
.
deliverQuantity
}}
pcs
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"detail-box"
>
<
view
class
=
"detail-box"
>
<
template
v
-
for
=
"(item, index) in list"
>
<
template
v
-
for
=
"(item, index) in list"
>
<
view
class
=
"detail-line-wrap"
v
-
if
=
"item.materialNo === ele.materialNo && item.outQuantity"
:
key
=
"item.materialNo + '444' + index"
@
click
=
"handleDetail(item)"
>
<
view
class
=
"detail-line-wrap"
v
-
if
=
"item.materialNo === ele.materialNo && item.
deliverQuantity === ele.deliverQuantity && item.
outQuantity"
:
key
=
"item.materialNo + '444' + index"
@
click
=
"handleDetail(item)"
>
<
view
class
=
"detail-line"
>
<
view
class
=
"detail-line"
>
<
text
>
{{
item
.
warehouse
}}
|
{{
item
.
location
}}
<
/text
>
<
text
>
{{
item
.
warehouse
}}
|
{{
item
.
location
}}
<
/text
>
<
text
style
=
"margin-left: auto"
>
{{
item
.
outQuantity
}}
pcs
<
/text
>
<
text
style
=
"margin-left: auto"
>
{{
item
.
outQuantity
}}
pcs
<
/text
>
...
@@ -110,32 +110,6 @@ export default {
...
@@ -110,32 +110,6 @@ export default {
saleOutNo
:
this
.
order
saleOutNo
:
this
.
order
}
)
}
)
.
then
(({
data
}
)
=>
{
.
then
(({
data
}
)
=>
{
data
=
{
"applyNo"
:
"20250315003"
,
"data"
:
[
{
"materialNo"
:
"G000000015"
,
"materialName"
:
"1A7312932M(焊丝)"
,
"planOutDate"
:
"20250401"
,
"unit"
:
"Kg"
,
"deliverQuantity"
:
1660.000000
}
,
{
"materialNo"
:
"G000000015"
,
"materialName"
:
"1A7312932M(焊丝)"
,
"planOutDate"
:
"20250401"
,
"unit"
:
"Kg"
,
"deliverQuantity"
:
2694.000000
}
,
{
"materialNo"
:
"G000000015"
,
"materialName"
:
"1A7312932M(焊丝)"
,
"planOutDate"
:
"20250401"
,
"unit"
:
"Kg"
,
"deliverQuantity"
:
646.000000
}
]
}
if
(
data
&&
data
.
applyNo
)
{
if
(
data
&&
data
.
applyNo
)
{
this
.
applyNo
=
data
.
applyNo
this
.
applyNo
=
data
.
applyNo
this
.
list
=
data
.
data
this
.
list
=
data
.
data
...
@@ -198,9 +172,9 @@ export default {
...
@@ -198,9 +172,9 @@ export default {
const
arr
=
y
.
filter
(
i
=>
i
.
materialNo
=
materialNo
)
const
arr
=
y
.
filter
(
i
=>
i
.
materialNo
=
materialNo
)
return
arr
.
reduce
((
pre
,
cur
)
=>
pre
+
Number
(
cur
.
deliverQuantity
),
0
)
return
arr
.
reduce
((
pre
,
cur
)
=>
pre
+
Number
(
cur
.
deliverQuantity
),
0
)
}
,
}
,
outQuantity
(
materialNo
)
{
outQuantity
(
materialNo
,
deliverQuantity
)
{
const
y
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
list
))
const
y
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
list
))
const
arr
=
y
.
filter
(
i
=>
i
.
materialNo
===
materialNo
)
const
arr
=
y
.
filter
(
i
=>
i
.
materialNo
===
materialNo
&&
i
.
deliverQuantity
===
deliverQuantity
)
const
num
=
arr
.
reduce
((
pre
,
cur
)
=>
pre
+
(
cur
.
outQuantity
?
Number
(
cur
.
outQuantity
)
:
0
),
0
)
const
num
=
arr
.
reduce
((
pre
,
cur
)
=>
pre
+
(
cur
.
outQuantity
?
Number
(
cur
.
outQuantity
)
:
0
),
0
)
return
isNaN
(
num
)
?
0
:
num
return
isNaN
(
num
)
?
0
:
num
}
,
}
,
...
...
pages/saleck/selectCK.vue
View file @
72ddf67c
...
@@ -92,7 +92,6 @@ import i18n from '../../lang/index'
...
@@ -92,7 +92,6 @@ import i18n from '../../lang/index'
return
;
return
;
}
}
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
goodsList
));
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
goodsList
));
console
.
log
(
'datadatadata0'
,
data
)
uni
.
$emit
(
'sendkcData'
,
data
,
this
.
info
);
uni
.
$emit
(
'sendkcData'
,
data
,
this
.
info
);
uni
.
navigateBack
();
uni
.
navigateBack
();
...
...
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