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
c253ea47
Commit
c253ea47
authored
Jan 24, 2024
by
邓春圆
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
929a4f14
debc0d9a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
13 deletions
+53
-13
order.js
src/api/ecw/order.js
+9
-0
index.vue
src/views/ecw/order/stocking/index.vue
+44
-13
No files found.
src/api/ecw/order.js
View file @
c253ea47
...
@@ -1039,3 +1039,12 @@ export function getOrderItemDeleted(orderId){
...
@@ -1039,3 +1039,12 @@ export function getOrderItemDeleted(orderId){
method
:
'
get
'
,
method
:
'
get
'
,
})
})
}
}
// 打包页面订单数据统计
export
function
getPackStatistics
(
orderId
){
return
request
({
url
:
'
/ecw/order/order-packed-page-statistics/
'
+
orderId
,
method
:
'
get
'
})
}
src/views/ecw/order/stocking/index.vue
View file @
c253ea47
...
@@ -200,15 +200,37 @@
...
@@ -200,15 +200,37 @@
</el-form-item>-->
</el-form-item>-->
<h2>
{{$t('订单数据')}}
</h2>
<h2>
{{$t('订单数据')}}
</h2>
<el-form-item
:label=
"$t('总方数')"
style=
"width: 380px"
>
<el-form-item
:label=
"$t('下单统计')"
class=
"mb-0"
>
<el-input
v-model=
"form.sumVolume"
:placeholder=
"$t('请输入总方数')"
readonly
>
{{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
<span
slot=
"append"
>
m³
</span>
num: statistics.sumCartonsNumFinishedWarehouseIn,
</el-input>
weight: statistics.sumWeightFinishedWarehouseIn,
volume: statistics.sumVolumeFinishedWarehouseIn,
quantity: statistics.sumQuantityAllFinishedWarehouseIn
}) }}
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('总重量')"
style=
"width: 380px"
>
<el-form-item
:label=
"$t('入仓统计')"
class=
"mb-0"
>
<el-input
v-model=
"form.sumWeight"
:placeholder=
"$t('请输入总重量')"
readonly
>
{{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
<span
slot=
"append"
>
kg
</span>
num: statistics.sumNum,
</el-input>
weight: statistics.sumWeight,
volume: statistics.sumVolume,
quantity: statistics.sumQuantity
}) }}
</el-form-item>
<el-form-item
:label=
"$t('打包前统计')"
class=
"mb-0"
>
{{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
num: statistics.sumCartonsNumPrevPacked,
weight: statistics.sumWeightPrevPacked,
volume: statistics.sumVolumePrevPacked,
quantity: statistics.sumQuantityAllPrevPacked
}) }}
</el-form-item>
<el-form-item
:label=
"$t('打包后统计')"
class=
"mb-0"
>
{{ $t(`{num}箱 {weight}Kg {volume}m³ {quantity}个`, {
num: statistics.sumNumInput,
weight: statistics.sumWeightInput,
volume: statistics.sumVolumeInput,
quantity: statistics.sumQuantityInput
}) }}
</el-form-item>
</el-form-item>
<el-card
style=
"margin-top: 15px;"
>
<el-card
style=
"margin-top: 15px;"
>
...
@@ -273,7 +295,8 @@ import {
...
@@ -273,7 +295,8 @@ import {
getOrderWarehouseIn
,
getOrderWarehouseIn
,
getSpecialListByOrderId
,
getSpecialListByOrderId
,
noNeedPack
,
rollbackDelete
,
noNeedPack
,
rollbackDelete
,
warehousePictureList
warehousePictureList
,
getPackStatistics
}
from
'
@/api/ecw/order
'
}
from
'
@/api/ecw/order
'
import
orderBaseInfo
from
"
@/components/OrderBaseInfo
"
import
orderBaseInfo
from
"
@/components/OrderBaseInfo
"
import
WarehouseAreaDialog
from
'
@/components/WarehouseAreaDialog
'
import
WarehouseAreaDialog
from
'
@/components/WarehouseAreaDialog
'
...
@@ -310,10 +333,9 @@ export default {
...
@@ -310,10 +333,9 @@ export default {
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
id
){
if
(
this
.
$route
.
query
.
id
){
this
.
orderId
=
parseInt
(
this
.
$route
.
query
.
id
||
undefined
)
this
.
orderId
=
parseInt
(
this
.
$route
.
query
.
id
||
undefined
)
this
.
getOrderItemList
()
getSpecialListByOrderId
(
this
.
orderId
).
then
(
r
=>
this
.
specialList
=
r
.
data
)
this
.
getOrder
()
getSpecialListByOrderId
(
this
.
orderId
).
then
(
r
=>
this
.
specialList
=
r
.
data
)
this
.
getList
()
}
}
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
...
@@ -377,12 +399,20 @@ export default {
...
@@ -377,12 +399,20 @@ export default {
// 是否显示添加新品弹窗
// 是否显示添加新品弹窗
showNewProductDialog
:
false
,
showNewProductDialog
:
false
,
// 是否显示打印标签弹层
// 是否显示打印标签弹层
showPrintTagDialog
:
false
showPrintTagDialog
:
false
,
// 统计数据
statistics
:{}
}
}
},
},
methods
:
{
methods
:
{
formatTime
,
formatTime
,
getStatistics
()
{
console
.
log
(
'
获取统计数据
'
)
getPackStatistics
(
this
.
orderId
).
then
(
res
=>
{
this
.
statistics
=
res
.
data
})
},
getOrderItemList
(){
getOrderItemList
(){
this
.
orderItemList
=
[]
this
.
orderItemList
=
[]
return
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
return
getOrderWarehouseIn
(
this
.
orderId
).
then
(
r
=>
this
.
orderItemList
=
r
.
data
)
...
@@ -390,6 +420,7 @@ export default {
...
@@ -390,6 +420,7 @@ export default {
getList
(){
getList
(){
this
.
getOrder
()
this
.
getOrder
()
this
.
getOrderItemList
()
this
.
getOrderItemList
()
this
.
getStatistics
()
},
},
getWarehousePictureList
(){
getWarehousePictureList
(){
return
warehousePictureList
({
return
warehousePictureList
({
...
...
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