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
7b53d2ce
Commit
7b53d2ce
authored
Mar 23, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增收款单税率更新
parent
89f6c4fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
19 deletions
+30
-19
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+30
-19
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
7b53d2ce
...
...
@@ -128,9 +128,9 @@
<!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
-->
</
template
>
</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"
>
<span>
{{
scope
.
row
.
totalAmount
}}{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span
>
<el-input
v-model=
"scope.row.taxPoint"
@
input=
"changeTaxRate(scope.row,scope.$index)"
></el-input
>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('不含税金额')"
align=
"center"
prop=
"totalAmount"
>
...
...
@@ -138,9 +138,9 @@
<span>
{{
scope
.
row
.
totalAmount
}}{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('含税金额')"
align=
"center"
prop=
"t
otal
Amount"
>
<el-table-column
:label=
"$t('含税金额')"
align=
"center"
prop=
"t
ax
Amount"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
t
otal
Amount
}}{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<span>
{{
scope
.
row
.
t
ax
Amount
}}{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
-->
</
template
>
...
...
@@ -422,21 +422,6 @@
<
el
-
button
plain
type
=
"
primary
"
@
click
=
"
$store.dispatch('tagsView/delCurrentView')
"
>
{{
$t
(
'
返回
'
)
}}
<
/el-button
>
<!--
<
el
-
button
type
=
"
primary
"
:
loading
=
"
saveBtnLoading
"
@
click
=
"
submitForm(0)
"
>
{{
id
&&
form
.
state
!=
0
?
$t
(
'
修改
'
)
:
$t
(
'
新增收款单
'
)
}}
<
/el-button> --
>
<
/div
>
<
el
-
dialog
:
title
=
"
$t('提示')
"
:
visible
.
sync
=
"
dialogVisible
"
width
=
"
30%
"
>
<
span
class
=
"
cancel_notice
"
>
{{
$t
(
'
拆单申请正在审核中,你确定取消拆单申请吗?
'
)
}}
<
/span
>
<
div
class
=
"
cancel_content
"
>
<
span
>
{{
$t
(
'
取消原因:
'
)
}}
<
/span
>
<
el
-
input
v
-
model
=
"
reason
"
:
placeholder
=
"
$t('请输入取消原因')
"
><
/el-input
>
<
/div
>
<
span
slot
=
"
footer
"
class
=
"
dialog-footer
"
>
<
el
-
button
@
click
=
"
dialogVisible = false
"
>
{{
$t
(
'
取消
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
cancelSplit
"
>
{{
$t
(
'
确定
'
)
}}
<
/el-button
>
<
/span
>
<
/el-dialog
>
<
el
-
dialog
:
visible
.
sync
=
"
open
"
:
title
=
"
$t('添加未收客户款项')
"
...
...
@@ -772,6 +757,11 @@ export default {
if
(
that
.
$route
.
query
.
orderId
)
{
await
getFirstReceivableListByOrderId
({
id
:
that
.
$route
.
query
.
orderId
}
).
then
(
response
=>
{
this
.
list
=
[...
response
.
data
]
this
.
list
.
map
(
v
=>
{
if
(
v
.
taxPoint
==
0
){
v
.
taxAmount
=
v
.
totalAmount
}
}
)
getOrder
(
that
.
$route
.
query
.
orderId
).
then
(
response
=>
{
// console.log(response.data)
if
(
response
.
data
.
customerId
)
this
.
$set
(
this
.
form
,
'
customerId
'
,
response
.
data
.
customerId
)
...
...
@@ -788,6 +778,11 @@ export default {
}
)
await
getInvoicingItem
({
id
:
this
.
id
}
).
then
(
res
=>
{
this
.
list
=
[...
res
.
data
]
this
.
list
.
map
(
v
=>
{
if
(
v
.
taxPoint
==
0
){
v
.
taxAmount
=
v
.
totalAmount
}
}
)
}
)
getReceiptAccountList
({
id
:
this
.
id
}
).
then
(
res
=>
{
if
(
res
.
data
.
length
>
0
)
{
...
...
@@ -826,6 +821,11 @@ export default {
this
.
receiptId
=
this
.
$route
.
query
.
receiptId
;
getReceivableInfoByIds
({
id
:
this
.
receiptId
}
).
then
(
res
=>
{
this
.
list
=
[{...
res
.
data
}
]
this
.
list
.
map
(
v
=>
{
if
(
v
.
taxPoint
==
0
){
v
.
taxAmount
=
v
.
totalAmount
}
}
)
this
.
calculation
()
getOrder
(
res
.
data
.
orderId
).
then
(
response
=>
{
...
...
@@ -959,6 +959,17 @@ export default {
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
this
.
form
.
receiptAccountList
])
}
,
100
)
}
,
//明细改变税率
changeTaxRate
(
row
,
index
){
var
regs
=
/^
\d
+$/
;
if
(
row
.
taxPoint
&&!
regs
.
test
(
row
.
taxPoint
)){
row
.
taxPoint
=
0
this
.
$modal
.
msgError
(
this
.
$t
(
'
输入税率格式不对
'
));
}
row
.
taxAmount
=
row
.
totalAmount
*
(
1
+
row
.
taxPoint
/
100
).
toFixed
(
2
)
this
.
list
[
index
]
=
{...
row
}
this
.
$set
(
this
,
'
list
'
,
this
.
list
)
}
,
calculation
()
{
const
copyList
=
this
.
form
.
receiptAccountList
this
.
form
.
receiptAccountList
=
[]
...
...
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