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
9f88666e
Commit
9f88666e
authored
Jul 07, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认按照箱数比例计算,修改规格后按照规则计算体积
parent
09b51c92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
21 deletions
+19
-21
PutIn.vue
src/views/ecw/order/splitApply/components/PutIn.vue
+18
-6
index.vue
src/views/ecw/order/splitApply/index.vue
+1
-15
No files found.
src/views/ecw/order/splitApply/components/PutIn.vue
View file @
9f88666e
...
...
@@ -94,7 +94,8 @@
</
template
>
<
template
v-slot=
"{row,$index}"
>
<el-form-item
label-width=
"0"
>
<el-input-number
controls-position=
"right"
:min=
"0"
class=
"w-100 tight"
v-model=
"row.boxGauge1"
@
blur=
"calcVolume(row)"
/>
<input
class=
"input"
v-model=
"row.boxGauge1"
type=
"number"
@
keyup=
"calcVolume(row)"
@
change=
"calcVolume(row)"
:min=
"0"
></input>
<!--
<el-input-number
controls-position=
"right"
:min=
"0"
class=
"w-100 tight"
v-model=
"row.boxGauge1"
@
blur=
"calcVolume(row)"
/>
-->
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -104,7 +105,8 @@
</
template
>
<
template
v-slot=
"{row,$index}"
>
<el-form-item
label-width=
"0"
>
<el-input-number
controls-position=
"right"
:min=
"0"
class=
"w-100 tight"
v-model=
"row.boxGauge2"
@
blur=
"calcVolume(row)"
/>
<input
class=
"input"
v-model=
"row.boxGauge2"
type=
"number"
@
keyup=
"calcVolume(row)"
@
change=
"calcVolume(row)"
:min=
"0"
></input>
<!--
<el-input-number
controls-position=
"right"
:min=
"0"
class=
"w-100 tight"
v-model=
"row.boxGauge2"
@
blur=
"calcVolume(row)"
/>
-->
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -114,7 +116,8 @@
</
template
>
<
template
v-slot=
"{row,$index}"
>
<el-form-item
label-width=
"0"
>
<el-input-number
controls-position=
"right"
:min=
"0"
class=
"w-100 tight"
v-model=
"row.boxGauge3"
@
blur=
"calcVolume(row)"
/>
<input
class=
"input"
v-model=
"row.boxGauge3"
type=
"number"
@
keyup=
"calcVolume(row)"
@
change=
"calcVolume(row)"
:min=
"0"
></input>
<!--
<el-input-number
controls-position=
"right"
:min=
"0"
class=
"w-100 tight"
v-model=
"row.boxGauge3"
@
blur=
"calcVolume(row)"
/>
-->
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -338,12 +341,15 @@ export default {
},
// 计算体积
calcVolume
(
row
){
// 改了规格后按照规格计算体积
this
.
$set
(
row
,
'
calcVolumeByBoxGauge
'
,
1
)
let
volume
=
Decimal
(
row
.
boxGauge1
||
0
)
.
times
(
Decimal
(
row
.
boxGauge2
||
0
))
.
times
(
Decimal
(
row
.
boxGauge3
||
0
)).
div
(
1000000
)
// 如果是箱的单位要乘以箱数
if
(
row
.
specificationType
===
1
)
{
row
.
volume
=
volume
.
times
(
Decimal
(
row
.
num
||
0
))
if
(
+
row
.
specificationType
===
1
)
{
volume
=
volume
.
times
(
Decimal
(
row
.
num
||
0
))
}
// 最低0.01
...
...
@@ -355,16 +361,22 @@ export default {
if
(
!
locationArr
||
!
locationArr
.
length
)
return
''
let
arr
=
[]
locationArr
.
forEach
(
item
=>
{
arr
.
push
(
`
${
item
.
areaName
}${
item
.
locationName
||
''
}
`
)
arr
.
push
(
`
${
item
.
areaName
||
''
}${
item
.
locationName
||
''
}
`
)
})
return
Array
.
from
(
new
Set
(
arr
)).
join
(
"
,
"
)
},
// 根据箱数计算体积,重量,数量
calc
(
row
){
const
rate
=
row
.
num
/
this
.
warehouseRecord
.
cartonsNum
row
.
volume
=
(
this
.
warehouseRecord
.
volume
*
rate
).
toFixed
(
2
)
row
.
weight
=
(
this
.
warehouseRecord
.
weight
*
rate
).
toFixed
(
2
)
row
.
quantity
=
(
this
.
warehouseRecord
.
quantityAll
*
rate
).
toFixed
(
0
)
// 如果是按照规格计算体积,则重新计算
if
(
row
.
calcVolumeByBoxGauge
){
this
.
calcVolume
(
row
)
}
},
closeDialog
(){
this
.
show
=
false
...
...
src/views/ecw/order/splitApply/index.vue
View file @
9f88666e
...
...
@@ -920,21 +920,6 @@ export default {
}
this
.
open
=
true
},
/*changeProdTitleZh(val){
var list = []
list = this.splitData[0].orderSplitItemBackVOList.filter(item=>item.id == val)
this.shopForm.sum = list[0].num
this.quantitySum = list[0].quantity
this.shopForm.orderItemId = list[0].orderItemId
this.shopForm.prodTitleEn = list[0].prodTitleEn
this.shopForm.prodTitleZh = list[0].prodTitleZh
// 默认给一个
if(!this.shopForm.specsRecordVOList || !this.shopForm.specsRecordVOList.length){
this.addRow()
}
this.numcheck()
},*/
// 查询数量是否必填
numcheck
(){
quantityRequired
(
this
.
orderData
.
lineId
).
then
(
res
=>
{
...
...
@@ -1012,6 +997,7 @@ export default {
volume
:
this
.
putin
.
volume
,
chargeVolume
:
this
.
shopForm
.
chargeVolume
,
weight
:
this
.
putin
.
weight
,
quantity
:
this
.
putin
.
quantity
,
chargeWeight
:
this
.
shopForm
.
chargeWeight
,
worth
:
this
.
shopForm
.
worth
||
0
,
specsRecordVOList
:
this
.
shopForm
.
specsRecordVOList
...
...
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