Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
45159bb9
Commit
45159bb9
authored
Oct 12, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入仓单打印增加汇总
parent
16dbb0c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletion
+42
-1
PrintWarehouseReceipt.vue
src/views/ecw/order/components/PrintWarehouseReceipt.vue
+42
-1
No files found.
src/views/ecw/order/components/PrintWarehouseReceipt.vue
View file @
45159bb9
...
...
@@ -60,6 +60,35 @@
</td>
</tr>
</
template
>
<tr>
<td
style=
"text-align:center;width: 50px;"
v-if=
"!preview"
>
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
>
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
>
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
>
{{calcTotal('cartonsNum')}}
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
>
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
>
{{calcTotal('volume')}}
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
>
{{calcTotal('weight')}}
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
>
</td>
<td
style=
"text-align:center;padding:0 0px;border:1px dashed #ccc;"
v-if=
"!preview"
>
</td>
</tr>
</table>
</div>
<!--edit by liuyc 20210121 结尾增加文字-->
...
...
@@ -80,6 +109,7 @@ import {parseTime} from '@/utils/ruoyi'
import
lodop
from
'
@/utils/lodop
'
import
{
getOrderWarehouseIn
,
getOrderDetail
}
from
'
@/api/ecw/order
'
import
qrcode
from
'
qrcode
'
import
Decimal
from
'
decimal.js
'
export
default
{
filters
:
{
parseTime
},
components
:
{
},
...
...
@@ -136,7 +166,18 @@ export default {
})
})
return
arr
}
},
calcTotal
(){
return
field
=>
{
let
total
=
new
Decimal
(
0
)
this
.
items
.
forEach
(
item
=>
{
if
(
!
this
.
preview
||
item
.
checked
){
total
=
total
.
plus
(
item
[
field
]
||
0
)
}
})
return
total
.
toNumber
()
}
}
},
watch
:{
checkAll
(
val
){
...
...
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