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
201fdd77
Commit
201fdd77
authored
Nov 02, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务货币修复
parent
c9c44cdf
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
143 additions
and
59 deletions
+143
-59
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+30
-28
creatPayment.vue
src/views/ecw/financial/creatPayment.vue
+9
-3
openInvoice.vue
src/views/ecw/financial/openInvoice.vue
+21
-9
payable.vue
src/views/ecw/financial/payable.vue
+1
-1
paymentDetail.vue
src/views/ecw/financial/paymentDetail.vue
+7
-1
paymentExamine.vue
src/views/ecw/financial/paymentExamine.vue
+11
-1
printPaymentVoucher.vue
src/views/ecw/financial/printPaymentVoucher.vue
+11
-3
printVoucher.vue
src/views/ecw/financial/printVoucher.vue
+13
-5
receivable.vue
src/views/ecw/financial/receivable.vue
+16
-4
index.vue
src/views/ecw/order/exception/index.vue
+24
-4
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
201fdd77
...
@@ -124,20 +124,22 @@
...
@@ -124,20 +124,22 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('单价金额')"
align=
"center"
prop=
"unitPrice"
>
<el-table-column
:label=
"$t('单价金额')"
align=
"center"
prop=
"unitPrice"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
unitPrice
}}
</span>
<span>
{{
scope
.
row
.
unitPrice
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
totalAmount
}}
</span>
<span>
{{
scope
.
row
.
totalAmount
}}{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
<!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('优惠金额')"
align=
"center"
>
<el-table-column
:label=
"$t('优惠金额')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
discountTotal
?
`${scope.row.discountTotal
}
`
:
0
}}
<
/span
>
<span>
{{
scope
.
row
.
discountTotal
?
`${scope.row.discountTotal
}
`
:
0
}}
<
/span
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
-->
<
span
v
-
if
=
"
scope.row.discountTotal
"
>
{{
scope
.
row
.
discountRemark
?(
'
(
'
+
scope
.
row
.
discountRemark
+
'
)
'
):
''
}}
<
/span
>
<
span
v
-
if
=
"
scope.row.discountTotal
"
>
{{
scope
.
row
.
discountRemark
?(
'
(
'
+
scope
.
row
.
discountRemark
+
'
)
'
):
''
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -169,7 +171,8 @@
...
@@ -169,7 +171,8 @@
:
label
=
"
$t('核销基准币种')+':'
"
:
label
=
"
$t('核销基准币种')+':'
"
style
=
"
margin-bottom: 0;margin-top: 20px;
"
style
=
"
margin-bottom: 0;margin-top: 20px;
"
>
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
{{
getCurrencyLabel
(
showCurrencyId
)
}}
<!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
-->
<
/el-form-item
>
<
/el-form-item
>
<!--
<
/el-descriptions-item
>
<!--
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('核销基准币种')
"
>
<
el
-
descriptions
-
item
:
label
=
"
$t('核销基准币种')
"
>
...
@@ -264,7 +267,7 @@
...
@@ -264,7 +267,7 @@
<
el
-
table
:
data
=
"
form.receiptAccountList
"
border
:
key
=
"
form.receiptAccountList.length
"
>
<
el
-
table
:
data
=
"
form.receiptAccountList
"
border
:
key
=
"
form.receiptAccountList.length
"
>
<
el
-
table
-
column
:
label
=
"
$t('应收币种')
"
align
=
"
center
"
>
<
el
-
table
-
column
:
label
=
"
$t('应收币种')
"
align
=
"
center
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('应收金额')
"
align
=
"
center
"
prop
=
"
receivableAmount
"
>
<
el
-
table
-
column
:
label
=
"
$t('应收金额')
"
align
=
"
center
"
prop
=
"
receivableAmount
"
>
...
@@ -274,7 +277,7 @@
...
@@ -274,7 +277,7 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
width
=
"
220
"
>
<
el
-
table
-
column
align
=
"
center
"
width
=
"
220
"
>
<
template
#
header
>
<
template
#
header
>
{{
$t
(
'
核销基准币种
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
汇率
'
)
}}
{{
$t
(
'
核销基准币种
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
{{
$t
(
'
汇率
'
)
}}
<
/template
>
<
/template
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
v
-
if
=
"
scope.row.type !== 'total'
"
>
<
template
v
-
if
=
"
scope.row.type !== 'total'
"
>
...
@@ -290,13 +293,13 @@
...
@@ -290,13 +293,13 @@
<
/el-form-item
>
<
/el-form-item
>
<
/template
>
<
/template
>
<
template
v
-
else
>
<
template
v
-
else
>
{{
$t
(
'
应收总金额
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
应收总金额
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
prop
=
"
writeOffAmount
"
>
<
el
-
table
-
column
align
=
"
center
"
prop
=
"
writeOffAmount
"
>
<
template
#
header
>
<
template
#
header
>
{{
$t
(
'
核销基准金额
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
showCurrencyId
"
/>
)
{{
$t
(
'
核销基准金额
'
)
}}
(
{{
getCurrencyLabel
(
showCurrencyId
)
}}
)
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款账户')
"
align
=
"
center
"
>
<
el
-
table
-
column
:
label
=
"
$t('期望收款账户')
"
align
=
"
center
"
>
...
@@ -343,11 +346,6 @@
...
@@ -343,11 +346,6 @@
:
value
=
"
item.id
"
:
value
=
"
item.id
"
/>
/>
<
/el-select
>
<
/el-select
>
<!--
<
dict
-
selector
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
v
-
model
=
"
scope.row.collectionCurrencyId
"
@
change
=
"
val => currencyIdChange(val, scope.row, scope.$index)
"
/>
-->
<
/el-form-item
>
<
/el-form-item
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -556,14 +554,14 @@
...
@@ -556,14 +554,14 @@
<!--
<
el
-
table
-
column
label
=
"
单价美元
"
align
=
"
center
"
prop
=
"
unitPrice
"
/>
-->
<!--
<
el
-
table
-
column
label
=
"
单价美元
"
align
=
"
center
"
prop
=
"
unitPrice
"
/>
-->
<
el
-
table
-
column
:
label
=
"
$t('单价')
"
align
=
"
center
"
prop
=
"
unitPrice
"
>
<
el
-
table
-
column
:
label
=
"
$t('单价')
"
align
=
"
center
"
prop
=
"
unitPrice
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
unitPrice
}}
<
/span
>
<
span
>
{{
scope
.
row
.
unitPrice
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/span
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/
>
<
!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
--
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('总金额')
"
align
=
"
center
"
prop
=
"
totalAmount
"
>
<
el
-
table
-
column
:
label
=
"
$t('总金额')
"
align
=
"
center
"
prop
=
"
totalAmount
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
totalAmount
}}
<
/span
>
<
span
>
{{
scope
.
row
.
totalAmount
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/span
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/
>
<
!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
--
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
@@ -610,32 +608,31 @@
...
@@ -610,32 +608,31 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('单价金额')
"
align
=
"
center
"
prop
=
"
unitPrice
"
>
<
el
-
table
-
column
:
label
=
"
$t('单价金额')
"
align
=
"
center
"
prop
=
"
unitPrice
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
unitPrice
}}
<
/span
>
<
span
>
{{
scope
.
row
.
unitPrice
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/span
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/
>
<
!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
--
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('总金额')
"
align
=
"
center
"
prop
=
"
totalAmount
"
>
<
el
-
table
-
column
:
label
=
"
$t('总金额')
"
align
=
"
center
"
prop
=
"
totalAmount
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
scope
.
row
.
totalAmount
}}
<
/span
>
<
span
>
{{
scope
.
row
.
totalAmount
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<
/span
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/
>
<
!--
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
scope.row.currencyId
"
/>
--
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
<
el
-
form
-
item
:
label
=
"
$t('总金额')
"
>
<
el
-
form
-
item
:
label
=
"
$t('总金额')
"
>
{{
selectListRow
.
totalAmount
}}
{{
selectListRow
.
totalAmount
}}
{{
getCurrencyLabel
(
sselectListRow
.
currencyId
)
}}
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
selectListRow.currencyId
"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('优惠金额')
"
>
<
el
-
form
-
item
:
label
=
"
$t('优惠金额')
"
>
<
el
-
input
v
-
model
=
"
discountForm.discountTotal
"
type
=
"
number
"
min
=
"
0
"
:
max
=
"
selectListRow.totalAmount
"
@
input
=
"
checkDiscount
"
style
=
"
width: 300px
"
><
/el-input
>
<
el
-
input
v
-
model
=
"
discountForm.discountTotal
"
type
=
"
number
"
min
=
"
0
"
:
max
=
"
selectListRow.totalAmount
"
@
input
=
"
checkDiscount
"
style
=
"
width: 300px
"
><
/el-input
>
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
{{
getCurrencyLabel
(
sselectListRow
.
currencyId
)
}}
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
selectListRow.currencyId
"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('优惠原因')
"
>
<
el
-
form
-
item
:
label
=
"
$t('优惠原因')
"
>
<
el
-
input
v
-
model
=
"
discountForm.discountRemark
"
type
=
"
textarea
"
style
=
"
width: 300px
"
><
/el-input
>
<
el
-
input
v
-
model
=
"
discountForm.discountRemark
"
type
=
"
textarea
"
style
=
"
width: 300px
"
><
/el-input
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('优惠后')
"
>
<
el
-
form
-
item
:
label
=
"
$t('优惠后')
"
>
{{
(
selectListRow
.
totalAmount
-
(
discountForm
.
discountTotal
||
0
)).
toFixed
(
2
)
}}
{{
(
selectListRow
.
totalAmount
-
(
discountForm
.
discountTotal
||
0
)).
toFixed
(
2
)
}}
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
selectListRow.currencyId
"
/>
{{
getCurrencyLabel
(
sselectListRow
.
currencyId
)
}}
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
v
-
if
=
"
opnotice
"
:
label
=
"
$t('操作人')
"
>
<
el
-
form
-
item
v
-
if
=
"
opnotice
"
:
label
=
"
$t('操作人')
"
>
{{
discountForm
.
author
}}
{{
discountForm
.
author
}}
...
@@ -849,6 +846,11 @@ export default {
...
@@ -849,6 +846,11 @@ export default {
}
}
}
,
}
,
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
}
,
checkDiscount
(
e
){
checkDiscount
(
e
){
if
(
e
>
this
.
selectListRow
.
totalAmount
){
if
(
e
>
this
.
selectListRow
.
totalAmount
){
this
.
discountForm
.
discountTotal
=
this
.
selectListRow
.
totalAmount
this
.
discountForm
.
discountTotal
=
this
.
selectListRow
.
totalAmount
...
...
src/views/ecw/financial/creatPayment.vue
View file @
201fdd77
...
@@ -181,7 +181,8 @@
...
@@ -181,7 +181,8 @@
<el-table-column
:label=
"$t('应付金额')"
align=
"center"
prop=
"totalAmount"
/>
<el-table-column
:label=
"$t('应付金额')"
align=
"center"
prop=
"totalAmount"
/>
<el-table-column
:label=
"$t('币种')"
align=
"center"
prop=
"currencyId"
>
<el-table-column
:label=
"$t('币种')"
align=
"center"
prop=
"currencyId"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('汇率')"
align=
"center"
prop=
"exchangeRate"
>
<el-table-column
:label=
"$t('汇率')"
align=
"center"
prop=
"exchangeRate"
>
...
@@ -386,8 +387,8 @@
...
@@ -386,8 +387,8 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('金额')"
align=
"center"
prop=
"totalAmount"
>
<el-table-column
:label=
"$t('金额')"
align=
"center"
prop=
"totalAmount"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
totalAmount
}}
</span>
<span>
{{
scope
.
row
.
totalAmount
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -523,6 +524,11 @@ export default {
...
@@ -523,6 +524,11 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
// 处理查询参数
// 处理查询参数
...
...
src/views/ecw/financial/openInvoice.vue
View file @
201fdd77
...
@@ -67,26 +67,26 @@
...
@@ -67,26 +67,26 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('单价金额')"
align=
"center"
prop=
"unitPrice"
>
<el-table-column
:label=
"$t('单价金额')"
align=
"center"
prop=
"unitPrice"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
unitPrice
}}
</span>
<span>
{{
scope
.
row
.
unitPrice
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
totalAmount
}}
</span>
<span>
{{
scope
.
row
.
totalAmount
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('税额')"
align=
"center"
prop=
"tax"
>
<el-table-column
:label=
"$t('税额')"
align=
"center"
prop=
"tax"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
tax
}}
</span>
<span>
{{
scope
.
row
.
tax
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('价税合计')"
align=
"center"
prop=
"taxAndTotalAmount"
>
<el-table-column
:label=
"$t('价税合计')"
align=
"center"
prop=
"taxAndTotalAmount"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
taxAndTotalAmount
}}
</span>
<span>
{{
scope
.
row
.
taxAndTotalAmount
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -113,6 +113,7 @@ import { DICT_TYPE } from "@/utils/dict";
...
@@ -113,6 +113,7 @@ import { DICT_TYPE } from "@/utils/dict";
import
{
getReceiptInvoicing
,
getInvoicingItem
,
updateReceiptInvoicing
}
from
"
@/api/ecw/financial
"
;
import
{
getReceiptInvoicing
,
getInvoicingItem
,
updateReceiptInvoicing
}
from
"
@/api/ecw/financial
"
;
import
NP
from
'
number-precision
'
import
NP
from
'
number-precision
'
export
default
{
export
default
{
name
:
"
OpenInvoice
"
,
name
:
"
OpenInvoice
"
,
components
:
{},
components
:
{},
...
@@ -121,7 +122,12 @@ export default {
...
@@ -121,7 +122,12 @@ export default {
loading
:
false
,
loading
:
false
,
invoiceData
:
{},
invoiceData
:
{},
id
:
0
,
id
:
0
,
list
:
[]
list
:
[],
params
:{
page
:
1
,
rows
:
20
,
},
currencyList
:[]
};
};
},
},
created
()
{
created
()
{
...
@@ -129,8 +135,14 @@ export default {
...
@@ -129,8 +135,14 @@ export default {
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
getData
();
this
.
getData
();
}
}
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
},
},
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
},
async
getData
()
{
async
getData
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
await
getReceiptInvoicing
(
this
.
id
).
then
((
res
)
=>
{
await
getReceiptInvoicing
(
this
.
id
).
then
((
res
)
=>
{
...
...
src/views/ecw/financial/payable.vue
View file @
201fdd77
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
""
label-width=
"0px"
>
<el-form-item
label=
""
label-width=
"0px"
>
<el-select
v-model=
"costObj.currencyId"
:placeholder=
"$t('请选择单位')"
>
<el-select
v-model=
"costObj.currencyId"
:placeholder=
"$t('请选择单位')"
>
<el-option
v-for=
"item in
this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PRICE_UNIT)"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value
"
></el-option>
<el-option
v-for=
"item in
currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id
"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
...
...
src/views/ecw/financial/paymentDetail.vue
View file @
201fdd77
...
@@ -154,7 +154,8 @@
...
@@ -154,7 +154,8 @@
<el-table-column
:label=
"$t('应付金额')"
align=
"center"
prop=
"totalAmount"
/>
<el-table-column
:label=
"$t('应付金额')"
align=
"center"
prop=
"totalAmount"
/>
<el-table-column
:label=
"$t('币种')"
align=
"center"
prop=
"currencyId"
>
<el-table-column
:label=
"$t('币种')"
align=
"center"
prop=
"currencyId"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('汇率')"
align=
"center"
prop=
"exchangeRate"
/>
<el-table-column
:label=
"$t('汇率')"
align=
"center"
prop=
"exchangeRate"
/>
...
@@ -326,6 +327,11 @@ export default {
...
@@ -326,6 +327,11 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
// 处理查询参数
// 处理查询参数
...
...
src/views/ecw/financial/paymentExamine.vue
View file @
201fdd77
...
@@ -49,7 +49,8 @@
...
@@ -49,7 +49,8 @@
<el-table-column
:label=
"$t('应付金额')"
align=
"center"
prop=
"totalAmount"
/>
<el-table-column
:label=
"$t('应付金额')"
align=
"center"
prop=
"totalAmount"
/>
<el-table-column
:label=
"$t('币种')"
align=
"center"
prop=
"currencyId"
>
<el-table-column
:label=
"$t('币种')"
align=
"center"
prop=
"currencyId"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
<!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('汇率')"
align=
"center"
prop=
"exchangeRate"
>
<el-table-column
:label=
"$t('汇率')"
align=
"center"
prop=
"exchangeRate"
>
...
@@ -88,6 +89,7 @@
...
@@ -88,6 +89,7 @@
<
script
>
<
script
>
import
{
getBankAccountPage
}
from
"
@/api/ecw/bankAccount
"
;
import
{
getBankAccountPage
}
from
"
@/api/ecw/bankAccount
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getPaymentInfoByIds
,
getPaymentItem
,
paymentVerify
}
from
"
@/api/ecw/financial
"
import
{
getPaymentInfoByIds
,
getPaymentItem
,
paymentVerify
}
from
"
@/api/ecw/financial
"
export
default
{
export
default
{
name
:
"
CreatPayment
"
,
name
:
"
CreatPayment
"
,
...
@@ -105,13 +107,16 @@ export default {
...
@@ -105,13 +107,16 @@ export default {
page
:
1
,
page
:
1
,
rows
:
20
,
rows
:
20
,
},
},
currencyList
:[],
deptData
:
[],
deptData
:
[],
deptArr
:
[],
deptArr
:
[],
notes
:
''
notes
:
''
};
};
},
},
created
()
{
created
()
{
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
let
that
=
this
;
let
that
=
this
;
if
(
that
.
$route
.
query
.
id
&&
that
.
$route
.
query
.
id
!==
'
0
'
)
{
if
(
that
.
$route
.
query
.
id
&&
that
.
$route
.
query
.
id
!==
'
0
'
)
{
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
id
=
this
.
$route
.
query
.
id
;
getPaymentInfoByIds
({
id
:
this
.
id
}).
then
(
res
=>
{
getPaymentInfoByIds
({
id
:
this
.
id
}).
then
(
res
=>
{
...
@@ -146,6 +151,11 @@ export default {
...
@@ -146,6 +151,11 @@ export default {
});
});
},
},
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
},
getSummaries
(
param
)
{
getSummaries
(
param
)
{
const
{
columns
,
data
}
=
param
;
const
{
columns
,
data
}
=
param
;
const
sums
=
new
Array
(
columns
.
length
).
map
(
v
=>
''
);
const
sums
=
new
Array
(
columns
.
length
).
map
(
v
=>
''
);
...
...
src/views/ecw/financial/printPaymentVoucher.vue
View file @
201fdd77
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
:value=
"item.feeType"
:value=
"item.feeType"
></dict-tag>
></dict-tag>
</td>
</td>
<td>
<td>
{{
getCurrencyLabel
(
item
.
currencyId
)
}}
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"item.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"item.currencyId"
/>
--
>
</td>
</td>
<td>
{{
item
.
exchangeRate
}}
</td>
<td>
{{
item
.
exchangeRate
}}
</td>
<td>
{{
item
.
invoiceNumber
}}
</td>
<td>
{{
item
.
invoiceNumber
}}
</td>
...
@@ -88,6 +88,7 @@
...
@@ -88,6 +88,7 @@
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
// import { getReceipt} from "@/api/ecw/receipt";
// import { getReceipt} from "@/api/ecw/receipt";
import
{
getPaymentInfoByIds
,
getPaymentItem
}
from
"
@/api/ecw/financial
"
import
{
getPaymentInfoByIds
,
getPaymentItem
}
from
"
@/api/ecw/financial
"
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
lodop
from
'
@/utils/lodop
'
import
lodop
from
'
@/utils/lodop
'
export
default
{
export
default
{
...
@@ -110,7 +111,8 @@
...
@@ -110,7 +111,8 @@
},
},
// deptData:[],
// deptData:[],
// deptArr:[],
// deptArr:[],
id
:
0
id
:
0
,
currencyList
:[]
}
}
},
},
created
()
{
created
()
{
...
@@ -119,6 +121,7 @@
...
@@ -119,6 +121,7 @@
that
.
id
=
that
.
$route
.
query
.
id
that
.
id
=
that
.
$route
.
query
.
id
that
.
getCollectionData
()
that
.
getCollectionData
()
}
}
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
userList
(
'
salesman
'
).
then
(
res
=>
that
.
creatorData
=
res
.
data
)
userList
(
'
salesman
'
).
then
(
res
=>
that
.
creatorData
=
res
.
data
)
getBankAccountPage
(
that
.
params
).
then
(
res
=>
that
.
bankData
=
res
.
data
.
list
)
getBankAccountPage
(
that
.
params
).
then
(
res
=>
that
.
bankData
=
res
.
data
.
list
)
// listSimpleDepts().then(res =>{
// listSimpleDepts().then(res =>{
...
@@ -142,6 +145,11 @@
...
@@ -142,6 +145,11 @@
// })
// })
},
},
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
},
getCollectionData
(){
getCollectionData
(){
let
that
=
this
let
that
=
this
getPaymentInfoByIds
({
id
:
that
.
id
}).
then
(
res
=>
{
getPaymentInfoByIds
({
id
:
that
.
id
}).
then
(
res
=>
{
...
...
src/views/ecw/financial/printVoucher.vue
View file @
201fdd77
...
@@ -40,17 +40,17 @@
...
@@ -40,17 +40,17 @@
<td>
{{
item
.
titleZh
}}
</td>
<td>
{{
item
.
titleZh
}}
</td>
<td><dict-tag
:value=
"item.feeType"
:type=
"DICT_TYPE.FEE_TYPE"
></dict-tag></td>
<td><dict-tag
:value=
"item.feeType"
:type=
"DICT_TYPE.FEE_TYPE"
></dict-tag></td>
<td>
{{
item
.
totalAmount
}}
</td>
<td>
{{
item
.
totalAmount
}}
</td>
<td>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"item.currencyId"
/>
</td>
<td>
{{
getCurrencyLabel
(
item
.
currencyId
)
}}
</td>
<td>
{{
item
.
discountTotal
||
0
}}
</td>
<td>
{{
item
.
discountTotal
||
0
}}
</td>
</tr>
</tr>
<tr
v-for=
"(items, indexs) in receiptAccountList"
:key=
"indexs"
>
<tr
v-for=
"(items, indexs) in receiptAccountList"
:key=
"indexs"
>
<td>
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"items.currencyId"
/>
{{
$t
(
'
应收合计
'
)
}}
</td>
<td>
{{
getCurrencyLabel
(
items
.
currencyId
)
}}
{{
$t
(
'
应收合计
'
)
}}
</td>
<td
><span
v-if=
"items.discountTotal>0"
>
{{
`${items.receivableAmount - items.discountTotal
}
(${items.receivableAmount
}
- ${items.discountTotal
}
)`
}}
<
/span
>
<td
><span
v-if=
"items.discountTotal>0"
>
{{
`${items.receivableAmount - items.discountTotal
}
(${items.receivableAmount
}
- ${items.discountTotal
}
)`
}}
<
/span
>
<
span
v
-
else
>
{{
`${items.receivableAmount - items.discountTotal
}
`
}}
<
/span
>
<
span
v
-
else
>
{{
`${items.receivableAmount - items.discountTotal
}
`
}}
<
/span
>
<
/td
>
<
/td
>
<
td
>
{{
$t
(
'
汇率
'
)
}}
<
/td
>
<
td
>
{{
$t
(
'
汇率
'
)
}}
<
/td
>
<
td
>
{{
items
.
collectionRate
}}
<
/td
>
<
td
>
{{
items
.
collectionRate
}}
<
/td
>
<
td
>
{{
$t
(
'
收款金额
'
)
}}
(
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
items.collectionCurrencyId
"
/>
)
<
/td
>
<
td
>
{{
$t
(
'
收款金额
'
)
}}
(
{{
getCurrencyLabel
(
items
.
collectionCurrencyId
)
}}
)
<
/td
>
<
td
colspan
=
"
3
"
>
{{
items
.
collectionAmount
}}
<
/td
>
<
td
colspan
=
"
3
"
>
{{
items
.
collectionAmount
}}
<
/td
>
<
/tr
>
<
/tr
>
<
/table
>
<
/table
>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<
p
style
=
"
margin: 0;word-break: break-all;
"
>
A
/
C
NO
:
{{
bankTiem
.
accountNo
}}
<
/p
>
<
p
style
=
"
margin: 0;word-break: break-all;
"
>
A
/
C
NO
:
{{
bankTiem
.
accountNo
}}
<
/p
>
<
/div
>
<
/div
>
<
div
style
=
"
padding:6px 0;width: 87.5%;text-align: center;
"
>
<
div
style
=
"
padding:6px 0;width: 87.5%;text-align: center;
"
>
<
p
style
=
"
margin: 0;
"
>
{{
$t
(
'
实收
'
)
}}
<
dict
-
tag
:
type
=
"
DICT_TYPE.BOX_SHIPPING_PRICE_UNIT
"
:
value
=
"
bankTiem.currencyId
"
/>
:
{{
bankTiem
.
amount
}}
¥
<
/p
>
<
p
style
=
"
margin: 0;
"
>
{{
$t
(
'
实收
'
)
}}
{{
getCurrencyLabel
(
bankTiem
.
currencyId
)
}}
:
{{
bankTiem
.
amount
}}
¥
<
/p
>
<!--
<
p
style
=
"
margin: 0;
"
>
未收:¥
{{
bankTiem
.
noReceipt
}}
<
/p> --
>
<!--
<
p
style
=
"
margin: 0;
"
>
未收:¥
{{
bankTiem
.
noReceipt
}}
<
/p> --
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -95,6 +95,7 @@
...
@@ -95,6 +95,7 @@
import
lodop
from
'
@/utils/lodop
'
import
lodop
from
'
@/utils/lodop
'
import
NP
from
'
number-precision
'
import
NP
from
'
number-precision
'
import
{
getOrder
}
from
'
@/api/ecw/order
'
import
{
getOrder
}
from
'
@/api/ecw/order
'
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
import
{
getReceiptInfoByIds
,
getInvoicingItem
,
getReceiptAccountList
,
getReceivableItem
}
from
"
@/api/ecw/financial
"
;
import
{
getReceiptInfoByIds
,
getInvoicingItem
,
getReceiptAccountList
,
getReceivableItem
}
from
"
@/api/ecw/financial
"
;
export
default
{
export
default
{
...
@@ -121,13 +122,15 @@
...
@@ -121,13 +122,15 @@
id
:
0
,
id
:
0
,
orderData
:{
}
,
orderData
:{
}
,
detailed
:[],
detailed
:[],
date
:
''
date
:
''
,
currencyList
:[]
}
}
}
,
}
,
async
created
()
{
async
created
()
{
let
that
=
this
let
that
=
this
// listSimpleUsers().then(res =>that.creatorData = res.data)
// listSimpleUsers().then(res =>that.creatorData = res.data)
// getBankAccountPage(that.params).then(res =>that.bankData = res.data.list)
// getBankAccountPage(that.params).then(res =>that.bankData = res.data.list)
await
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
await
listSimpleDepts
().
then
(
res
=>
{
await
listSimpleDepts
().
then
(
res
=>
{
res
.
data
.
forEach
((
item
)
=>
{
res
.
data
.
forEach
((
item
)
=>
{
if
(
item
.
parentId
==
0
){
if
(
item
.
parentId
==
0
){
...
@@ -204,6 +207,11 @@
...
@@ -204,6 +207,11 @@
}
,
}
,
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
}
,
getList
()
{
getList
()
{
getReceivableItem
({
id
:
this
.
id
}
).
then
(
res
=>
{
getReceivableItem
({
id
:
this
.
id
}
).
then
(
res
=>
{
this
.
detailed
=
res
.
data
this
.
detailed
=
res
.
data
...
...
src/views/ecw/financial/receivable.vue
View file @
201fdd77
...
@@ -216,14 +216,14 @@
...
@@ -216,14 +216,14 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('单价')"
align=
"center"
prop=
"unitPrice"
>
<el-table-column
:label=
"$t('单价')"
align=
"center"
prop=
"unitPrice"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
unitPrice
}}
</span>
<span>
{{
scope
.
row
.
unitPrice
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<el-table-column
:label=
"$t('总金额')"
align=
"center"
prop=
"totalAmount"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
totalAmount
}}
</span>
<span>
{{
scope
.
row
.
totalAmount
}}
{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<
dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/
>
<
!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
--
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -255,6 +255,7 @@ import { DICT_TYPE } from "@/utils/dict";
...
@@ -255,6 +255,7 @@ import { DICT_TYPE } from "@/utils/dict";
import
CustomerSelector
from
"
@/components/CustomerSelector
"
;
import
CustomerSelector
from
"
@/components/CustomerSelector
"
;
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
;
import
{
getTradeCityList
}
from
"
@/api/ecw/region
"
;
import
{
getReceivableList
}
from
"
@/api/ecw/financial
"
;
import
{
getReceivableList
}
from
"
@/api/ecw/financial
"
;
import
{
getCurrencyPage
}
from
"
@/api/ecw/currency
"
;
export
default
{
export
default
{
name
:
"
Receivable
"
,
name
:
"
Receivable
"
,
...
@@ -280,10 +281,16 @@ export default {
...
@@ -280,10 +281,16 @@ export default {
rows
:
20
,
rows
:
20
,
},
},
tradeCityList
:
[],
tradeCityList
:
[],
params
:
{
page
:
1
,
rows
:
20
,
},
currencyList
:[]
};
};
},
},
created
()
{
created
()
{
let
that
=
this
;
let
that
=
this
;
getCurrencyPage
(
this
.
params
).
then
(
res
=>
this
.
currencyList
=
res
.
data
.
list
)
userList
(
"
salesman
"
).
then
((
res
)
=>
(
that
.
creatorData
=
res
.
data
));
userList
(
"
salesman
"
).
then
((
res
)
=>
(
that
.
creatorData
=
res
.
data
));
getTradeCityList
().
then
((
res
)
=>
(
that
.
tradeCityList
=
res
.
data
));
getTradeCityList
().
then
((
res
)
=>
(
that
.
tradeCityList
=
res
.
data
));
this
.
getList
();
this
.
getList
();
...
@@ -297,6 +304,11 @@ export default {
...
@@ -297,6 +304,11 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
getCurrencyLabel
(
id
){
var
label
=
this
.
currencyList
.
filter
(
item
=>
item
.
id
==
id
)
if
(
label
.
length
>
0
)
return
label
[
0
].
titleZh
return
''
},
/** 查询列表 */
/** 查询列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
src/views/ecw/order/exception/index.vue
View file @
201fdd77
...
@@ -12,7 +12,17 @@
...
@@ -12,7 +12,17 @@
<span
style=
"margin: 0 8px;"
>
{{
$t
(
'
到
'
)
}}
</span>
<span
style=
"margin: 0 8px;"
>
{{
$t
(
'
到
'
)
}}
</span>
<el-date-picker
clearable
v-model=
"queryParams.endCreateTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
:placeholder=
"$t('请选择结束日期')"
/>
<el-date-picker
clearable
v-model=
"queryParams.endCreateTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
:placeholder=
"$t('请选择结束日期')"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('始发地')+':'"
>
<el-form-item
:label=
"$t('始发仓')"
prop=
"startWarehouseId"
>
<el-select
v-model=
"queryParams.startWarehouseId"
:placeholder=
"$t('请选择始发仓')"
clearable
>
<el-option
v-for=
"item in exportWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的仓')"
prop=
"destWarehouseId"
>
<el-select
v-model=
"queryParams.destWarehouseId"
:placeholder=
"$t('请选择目的仓')"
clearable
>
<el-option
v-for=
"item in importWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<!--
<el-form-item
:label=
"$t('始发地')+':'"
>
<el-select
v-model=
"queryParams.originId"
:placeholder=
"$t('请选择始发地')"
clearable
>
<el-select
v-model=
"queryParams.originId"
:placeholder=
"$t('请选择始发地')"
clearable
>
<el-option
v-for=
"item in expoerCityList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"item in expoerCityList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-select>
...
@@ -21,7 +31,7 @@
...
@@ -21,7 +31,7 @@
<el-select
v-model=
"queryParams.destinationId"
:placeholder=
"$t('请选择目的地')"
clearable
>
<el-select
v-model=
"queryParams.destinationId"
:placeholder=
"$t('请选择目的地')"
clearable
>
<el-option
v-for=
"item in importCityList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"item in importCityList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"$t('运输方式')+':'"
>
<el-form-item
:label=
"$t('运输方式')+':'"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:clearable=
"true"
v-model=
"queryParams.transportId"
/>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:clearable=
"true"
v-model=
"queryParams.transportId"
/>
</el-form-item>
</el-form-item>
...
@@ -155,6 +165,7 @@ import {DICT_TYPE} from '@/utils/dict'
...
@@ -155,6 +165,7 @@ import {DICT_TYPE} from '@/utils/dict'
import
{
listServiceUser
}
from
"
@/api/system/user
"
import
{
listServiceUser
}
from
"
@/api/system/user
"
import
CustomerSelector
from
'
@/components/CustomerSelector
'
import
CustomerSelector
from
'
@/components/CustomerSelector
'
import
ProductSelector
from
'
@/components/ProductSelector
'
import
ProductSelector
from
'
@/components/ProductSelector
'
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
export
default
{
export
default
{
name
:
"
EcwOrderException
"
,
name
:
"
EcwOrderException
"
,
...
@@ -179,6 +190,7 @@ export default {
...
@@ -179,6 +190,7 @@ export default {
rows
:
10
rows
:
10
},
},
tradeCityList
:[],
tradeCityList
:[],
warehouseList
:[],
};
};
},
},
activated
(){
activated
(){
...
@@ -186,10 +198,12 @@ export default {
...
@@ -186,10 +198,12 @@ export default {
},
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
getTradeCityList
().
then
(
res
=>
this
.
tradeCityList
=
res
.
data
)
// getTradeCityList().then(res => this.tradeCityList = res.data)
listServiceUser
().
then
(
r
=>
{
listServiceUser
().
then
(
r
=>
{
this
.
creatorData
=
r
.
data
this
.
creatorData
=
r
.
data
})
})
getWarehouseList
().
then
(
res
=>
this
.
warehouseList
=
res
.
data
)
// userList('salesman').then(res =>this.creatorData = res.data)
// userList('salesman').then(res =>this.creatorData = res.data)
},
},
computed
:{
computed
:{
...
@@ -199,7 +213,13 @@ export default {
...
@@ -199,7 +213,13 @@ export default {
importCityList
(){
importCityList
(){
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
1
)
return
this
.
tradeCityList
.
filter
(
item
=>
item
.
type
==
1
)
},
},
exportWarehouseList
(){
/* tradeType 1 进口,2出口,3进出口 */
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
2
||
item
.
tradeType
==
3
)
},
importWarehouseList
(){
return
this
.
warehouseList
.
filter
(
item
=>
item
.
tradeType
==
1
||
item
.
tradeType
==
3
)
},
},
},
methods
:
{
methods
:
{
/** 查询列表 */
/** 查询列表 */
...
...
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