Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ec28876d
authored
Aug 27, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
2a5f4a4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
68 deletions
src/views/financeManage/balanceStatistics/components/manageOtherDialog.vue
src/views/financeManage/balanceStatistics/components/manageOtherDialog.vue
View file @
ec28876
<!-- 管理其他变更明细弹窗 -->
<
template
>
<d2-dialog
title=
"管理其他变更明细"
:is-visible=
"manageVisible"
class=
"manageOtherDialog"
width=
"70%"
:no-cancel=
"true"
btn-ok-label=
"关闭"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
:append-to-body=
"true"
>
<d2-dialog
title=
"管理其他变更明细"
:is-visible=
"manageVisible"
class=
"manageOtherDialog"
width=
"70%"
:no-cancel=
"true"
btn-ok-label=
"关闭"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
:append-to-body=
"true"
>
<div
class=
"merchantInfo"
>
<span
class=
"merchantName"
>
{{
info
.
merchantName
}}
</span
><span
class=
"merchantId"
>
{{
info
.
merchantId
}}
</span>
<span
class=
"merchantYear"
>
{{
statYear
+
"年"
+
info
.
statMonth
+
"月"
}}
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-plus"
@
click=
"addRow"
>
新增
</el-button
></span
>
<span
class=
"merchantName"
>
{{
info
.
merchantName
}}
</span><span
class=
"merchantId"
>
{{
info
.
merchantId
}}
</span>
<span
class=
"merchantYear"
>
{{
statYear
+
"年"
+
info
.
statMonth
+
"月"
}}
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-plus"
@
click=
"addRow"
:disabled=
"addflag"
>
新增
</el-button></span>
</div>
<div>
<div
class=
"header"
slot=
"header"
></div>
<div
class=
"header"
slot=
"header"
></div>
<div
class=
"d2-container-content"
>
<d2-table
ref=
"recordTable"
:table-data=
"tableData"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
:has-page=
"false"
>
<div
slot=
"otherAmount"
slot-scope=
"scope"
>
<d2-table
ref=
"recordTable"
:table-data=
"tableData"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
:has-page=
"false"
>
<div
slot=
"otherAmount"
slot-scope=
"scope"
>
<template
v-if=
"scope.scope.isEdit"
>
<!-- v-model="tableData[scope.index].otherAmount" -->
<span
><el-input
v-model=
"tableData[scope.index].otherAmount"
style=
"width: 80%"
placeholder=
"请输入金额"
@
input=
"checkAmount($event, scope)"
/></span>
<span><el-input
v-model=
"tableData[scope.index].otherAmount"
style=
"width: 80%"
placeholder=
"请输入金额"
@
input=
"checkAmount($event, scope)"
/></span>
<!--
{{
scope
.
index
}}
-->
</
template
>
<
template
v-else
>
...
...
@@ -56,22 +47,18 @@
}}
</span>
</
template
>
</div>
<div
slot=
"remark"
slot-scope=
"scope"
>
<div
slot=
"remark"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.isEdit"
>
<span
><el-input
v-model=
"scope.scope.remark"
style=
"width: 80%"
placeholder=
"请输入变更说明"
maxlength=
"50"
/></span>
<span><el-input
v-model=
"scope.scope.remark"
style=
"width: 80%"
placeholder=
"请输入变更说明"
maxlength=
"50"
/></span>
</
template
>
<
template
v-else
>
<el-tooltip
class=
"item"
:content=
"scope.scope.remark"
placement=
"right"
>
<el-tooltip
class=
"item"
:content=
"scope.scope.remark"
placement=
"right"
>
<span>
{{
scope
.
scope
.
remark
...
...
@@ -84,22 +71,16 @@
</el-tooltip>
</
template
>
</div>
<div
slot=
"tableOpt"
slot-scope=
"scope"
>
<div
slot=
"tableOpt"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.isEdit"
>
<span
><el-button
type=
"text"
@
click=
"add(scope.scope)"
>
保存
</el-button
><el-button
type=
"text"
@
click=
"cancel(scope.scope)"
>
取消
</el-button
></span
>
<span><el-button
type=
"text"
@
click=
"add(scope.scope)"
>
保存
</el-button><el-button
type=
"text"
@
click=
"cancel(scope.scope)"
>
取消
</el-button></span>
</
template
>
<
template
v-else
>
<span
><el-button
type=
"text"
@
click=
"del(scope.scope)"
>
删除
</el-button
></span
>
<span><el-button
type=
"text"
@
click=
"del(scope.scope)"
>
删除
</el-button></span>
</
template
>
</div>
</d2-table>
...
...
@@ -170,7 +151,8 @@ export default {
}
]
},
addForm
:
{}
addForm
:
{},
addflag
:
false
}
},
...
...
@@ -181,7 +163,7 @@ export default {
},
info
:
{
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
},
statYear
:
{
type
:
String
,
...
...
@@ -218,6 +200,7 @@ export default {
remark
:
""
,
isEdit
:
true
}
this
.
addflag
=
true
this
.
addForm
=
newRow
this
.
tableData
.
unshift
(
newRow
)
},
...
...
@@ -261,6 +244,7 @@ export default {
dfBalanceMonthOtherDetailInsertOrUpdate
(
params
).
then
((
res
)
=>
{
this
.
notice
.
okTips
()
this
.
getList
()
this
.
addflag
=
false
})
// }
// })
...
...
@@ -293,6 +277,7 @@ export default {
if
(
index
>
-
1
)
{
this
.
tableData
.
splice
(
index
,
1
)
}
this
.
addflag
=
false
},
del
(
row
)
{
this
.
$confirm
(
"是否确定删除?"
,
"提示"
,
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment