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
d41c883f
Commit
d41c883f
authored
Nov 05, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
f41333e1
d3d73660
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
30 deletions
+41
-30
dict.js
src/utils/dict.js
+1
-0
creatPayment.vue
src/views/ecw/financial/creatPayment.vue
+2
-3
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+16
-12
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+22
-15
No files found.
src/utils/dict.js
View file @
d41c883f
...
@@ -180,6 +180,7 @@ export const DICT_TYPE = {
...
@@ -180,6 +180,7 @@ export const DICT_TYPE = {
NEED_KNOW_STATUS
:
'
need_know_status
'
,
//需知状态
NEED_KNOW_STATUS
:
'
need_know_status
'
,
//需知状态
MANUAL_EXCEPTION_TYPE
:
'
manual_exception_type
'
,
MANUAL_EXCEPTION_TYPE
:
'
manual_exception_type
'
,
APPLY_STATUS
:
'
apply_status
'
,
//特价申请审核状态
APPLY_STATUS
:
'
apply_status
'
,
//特价申请审核状态
WAREHOUSING_SPECIFICATION_TYPE
:
'
warehousing_specification_type
'
,
ECASH_INIT
:
'
ecash_init
'
,
//e-cash
ECASH_INIT
:
'
ecash_init
'
,
//e-cash
FEE_TYPE
:
'
receivable_fee_type
'
,
FEE_TYPE
:
'
receivable_fee_type
'
,
...
...
src/views/ecw/financial/creatPayment.vue
View file @
d41c883f
...
@@ -197,8 +197,8 @@
...
@@ -197,8 +197,8 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('价税合计(RMB)')"
align=
"center"
prop=
"total"
>
<el-table-column
:label=
"$t('价税合计(RMB)')"
align=
"center"
prop=
"total"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<
!--
<span>
{{
scope
.
row
.
total
=
((
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
+
(
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
*
(
scope
.
row
.
taxRate
/
100
)).
toFixed
(
6
)
}}
</span>
--
>
<
span>
{{
scope
.
row
.
total
=
((
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
+
(
scope
.
row
.
totalAmount
*
scope
.
row
.
exchangeRate
)
*
(
scope
.
row
.
taxRate
/
100
)).
toFixed
(
6
)
}}
</span
>
<
span>
{{
scope
.
row
.
total
}}
</span
>
<
!--
<span>
{{
scope
.
row
.
total
}}
</span>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -216,7 +216,6 @@
...
@@ -216,7 +216,6 @@
label=
""
label=
""
label-width=
"0"
label-width=
"0"
style=
"margin-bottom: 0"
style=
"margin-bottom: 0"
:error=
"$t('账单号不能为空')"
prop=
"accountNumber"
prop=
"accountNumber"
:rules=
"[
:rules=
"[
{ required: true, message: '账单号不能为空', trigger: 'blur' },
{ required: true, message: '账单号不能为空', trigger: 'blur' },
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
d41c883f
...
@@ -514,14 +514,15 @@ export default {
...
@@ -514,14 +514,15 @@ export default {
}
,
}
,
WriteOffProportion
(){
WriteOffProportion
(){
let
total
=
0
let
total
=
0
let
amountTotal
=
0
let
amountTotal
=
this
.
form
.
receiptAccountList
.
find
(
item
=>
item
.
type
==
'
total
'
).
writeOffAmount
this
.
detailed
.
forEach
(
item
=>
{
this
.
detailed
.
forEach
(
item
=>
{
if
(
item
.
status
){
//
if(item.status)
{
amountTotal
=
NP
.
plus
(
amountTotal
,
item
.
writeOffAmount
)
//
amountTotal = NP.plus(amountTotal, item.writeOffAmount)
}
//
}
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
}
)
}
)
let
portion
=
NP
.
divide
(
amountTotal
,
t
otal
)
let
portion
=
NP
.
divide
(
total
,
amountT
otal
)
return
(
portion
*
100
).
toFixed
(
2
)
return
(
portion
*
100
).
toFixed
(
2
)
}
}
}
,
}
,
...
@@ -623,7 +624,7 @@ export default {
...
@@ -623,7 +624,7 @@ export default {
}
)
}
)
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
amountList
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
amountList
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
this
.
form
.
receiptAccountList
])
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
this
.
form
.
receiptAccountList
])
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
.
receiptAccountList
.
forEach
((
item
,
index
)
=>
{
this
.
form
.
receiptAccountList
.
forEach
((
item
,
index
)
=>
{
...
@@ -896,7 +897,7 @@ export default {
...
@@ -896,7 +897,7 @@ export default {
}
}
}
)
}
)
console
.
log
(
'
collom
'
,
collom
)
console
.
log
(
'
collom
'
,
collom
)
if
(
recepted
.
length
>
collom
.
length
){
//
if(recepted.length>collom.length)
{
recepted
.
forEach
((
amount
,
currency
)
=>
{
recepted
.
forEach
((
amount
,
currency
)
=>
{
if
(
amount
){
if
(
amount
){
if
(
collom
[
currency
]){
if
(
collom
[
currency
]){
...
@@ -907,17 +908,20 @@ export default {
...
@@ -907,17 +908,20 @@ export default {
}
}
}
)
}
)
}
else
{
//
}
else
{
collom
.
forEach
((
amount
,
currency
)
=>
{
collom
.
forEach
((
amount
,
currency
)
=>
{
if
(
amount
){
if
(
amount
){
if
(
recepted
[
currency
]){
if
(
!
this
.
surplusData
[
currency
]){
if
((
amount
-
recepted
[
currency
])
!=
0
)
this
.
surplusData
[
currency
]
=
+
parseFloat
((
amount
-
recepted
[
currency
]).
toPrecision
(
12
))
if
(
recepted
[
currency
]){
}
else
{
if
((
amount
-
recepted
[
currency
])
!=
0
)
this
.
surplusData
[
currency
]
=
+
parseFloat
((
amount
-
recepted
[
currency
]).
toPrecision
(
12
))
}
else
{
this
.
surplusData
[
currency
]
=
amount
this
.
surplusData
[
currency
]
=
amount
}
}
}
}
}
}
)
}
)
}
//
}
console
.
log
(
this
.
surplusData
)
console
.
log
(
this
.
surplusData
)
this
.
addForm
=
{
}
this
.
addForm
=
{
}
this
.
openAddDialog
=
true
this
.
openAddDialog
=
true
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
d41c883f
...
@@ -82,11 +82,14 @@
...
@@ -82,11 +82,14 @@
<el-form-item
:rules=
"tableFormRules.cartonsNum"
:prop=
"$index + '.cartonsNum'"
>
<el-form-item
:rules=
"tableFormRules.cartonsNum"
:prop=
"$index + '.cartonsNum'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
cartonsNum
}}
{{
tableData
[
$index
].
cartonsNum
}}
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAGING_TYPE
,
tableData
[
$index
].
unit
)
}}
{{
getDictDataLabel
(
DICT_TYPE
.
WAREHOUSING_SPECIFICATION_TYPE
,
tableData
[
$index
].
specificationType
)
}}
</span>
</span>
<el-input
v-else
v-model=
"tableData[$index].cartonsNum"
placeholder=
""
>
<template
v-else
>
<span
slot=
"append"
>
{{
getDictDataLabel
(
DICT_TYPE
.
ECW_PACKAGING_TYPE
,
tableData
[
$index
].
unit
)
}}
</span>
<el-input
v-model=
"tableData[$index].cartonsNum"
placeholder=
""
@
blur=
"handleVolume($index)"
>
</el-input>
<span
slot=
"append"
>
{{
getDictDataLabel
(
DICT_TYPE
.
WAREHOUSING_SPECIFICATION_TYPE
,
tableData
[
$index
].
specificationType
)
}}
</span>
</el-input>
<dict-selector
:type=
"DICT_TYPE.WAREHOUSING_SPECIFICATION_TYPE"
v-model=
"tableData[$index].specificationType"
@
change=
"handleVolume($index)"
></dict-selector>
</
template
>
</el-form-item>
</el-form-item>
</template>
</template>
</el-table-column>
</el-table-column>
...
@@ -362,7 +365,7 @@
...
@@ -362,7 +365,7 @@
<
script
>
<
script
>
import
dictSelector
from
"
@/components/DictSelector
"
import
dictSelector
from
"
@/components/DictSelector
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
"
@/utils/dict
"
import
{
DICT_TYPE
,
getDictDataLabel
,
getDictDatas
}
from
"
@/utils/dict
"
import
{
getWarehouseLastUpdateApprovalInfo
,
orderWarehouseIn
,
orderWarehouseInUpdateApply
}
from
'
@/api/ecw/order
'
import
{
getWarehouseLastUpdateApprovalInfo
,
orderWarehouseIn
,
orderWarehouseInUpdateApply
}
from
'
@/api/ecw/order
'
import
{
getFeeTypeByOrderProduct
,
getProductBrankPage
}
from
'
@/api/ecw/productBrank
'
import
{
getFeeTypeByOrderProduct
,
getProductBrankPage
}
from
'
@/api/ecw/productBrank
'
import
WorkFlow
from
"
@/components/WorkFlow
"
import
WorkFlow
from
"
@/components/WorkFlow
"
...
@@ -419,6 +422,7 @@ export default {
...
@@ -419,6 +422,7 @@ export default {
return
{
return
{
DICT_TYPE
,
DICT_TYPE
,
getDictDataLabel
,
getDictDataLabel
,
getDictDatas
,
opened
:
false
,
opened
:
false
,
brandList
:
[],
brandList
:
[],
formRules
:
{
formRules
:
{
...
@@ -560,15 +564,17 @@ export default {
...
@@ -560,15 +564,17 @@ export default {
})
})
},
},
handleVolume
(
index
,
val
){
handleVolume
(
index
,
val
){
const
{
boxGauge1
,
boxGauge2
,
boxGauge3
}
=
(
val
===
1
?
this
.
tableData1
:
this
.
tableData
)[
index
]
setTimeout
(()
=>
{
let
result
=
''
const
{
boxGauge1
,
boxGauge2
,
boxGauge3
,
specificationType
,
cartonsNum
}
=
(
val
===
1
?
this
.
tableData1
:
this
.
tableData
)[
index
]
if
(
boxGauge1
&&
boxGauge2
&&
boxGauge3
)
{
let
result
=
''
result
=
((
boxGauge1
*
boxGauge2
*
boxGauge3
)
/
1000000
)?.
toFixed
(
2
)
||
''
if
(
boxGauge1
&&
boxGauge2
&&
boxGauge3
&&
specificationType
&&
cartonsNum
)
{
}
else
{
result
=
(((
specificationType
===
1
||
specificationType
===
'
1
'
)
?
cartonsNum
:
1
)
*
(
boxGauge1
*
boxGauge2
*
boxGauge3
)
/
1000000
)?.
toFixed
(
2
)
||
''
result
=
''
}
else
{
}
result
=
''
if
(
result
===
'
0.00
'
)
result
=
'
0.01
'
;
}
(
val
===
1
?
this
.
tableData1
:
this
.
tableData
)[
index
].
volume
=
result
if
(
result
===
'
0.00
'
)
result
=
'
0.01
'
;
(
val
===
1
?
this
.
tableData1
:
this
.
tableData
)[
index
].
volume
=
result
},
0
)
},
},
handleSubmit
()
{
handleSubmit
()
{
const
orderWarehouseInItemDoList
=
[
const
orderWarehouseInItemDoList
=
[
...
@@ -691,7 +697,8 @@ export default {
...
@@ -691,7 +697,8 @@ export default {
"
quantityAll
"
:
""
,
"
quantityAll
"
:
""
,
"
unit
"
:
"
1
"
,
"
unit
"
:
"
1
"
,
"
volume
"
:
''
,
"
volume
"
:
''
,
"
weight
"
:
''
"
weight
"
:
''
,
specificationType
:
'
1
'
})
})
}
}
},
},
...
...
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