Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
耿迪迪
precision-effect
Commits
97bb27f5
Commit
97bb27f5
authored
Jun 28, 2023
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
借贷应付金额-交易项目维护删除
parent
c01e0b22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
TTransactionProjectMapper.xml
...n/resources/mapper/business/TTransactionProjectMapper.xml
+1
-0
index.vue
precision-effect-web/src/views/debit/index.vue
+24
-2
index.vue
precision-effect-web/src/views/transaction/index.vue
+4
-2
No files found.
precision-effect-system/src/main/resources/mapper/business/TTransactionProjectMapper.xml
View file @
97bb27f5
...
...
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"deptId != null "
>
and dept_id = #{deptId}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
</where>
ORDER BY create_time DESC
</select>
<select
id=
"selectTTransactionProjectById"
parameterType=
"Long"
resultMap=
"TTransactionProjectResult"
>
...
...
precision-effect-web/src/views/debit/index.vue
View file @
97bb27f5
...
...
@@ -219,6 +219,7 @@
<el-col
:span=
"12"
>
<el-form-item
label=
"计息日"
prop=
"sumInterestDate"
>
<el-date-picker
clearable
size=
"small"
@
change=
"payable()"
v-model=
"form.sumInterestDate"
type=
"date"
value-format=
"yyyy-MM-dd"
...
...
@@ -230,6 +231,7 @@
<el-col
:span=
"12"
>
<el-form-item
label=
"预计还款日"
prop=
"expectedRepaymentDate"
>
<el-date-picker
clearable
size=
"small"
@
change=
"payable()"
v-model=
"form.expectedRepaymentDate"
type=
"date"
value-format=
"yyyy-MM-dd"
...
...
@@ -240,6 +242,14 @@
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"应还金额"
>
<el-input
v-model=
"payableAmount"
placeholder=
"请输入应还金额"
disabled
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"附件"
prop=
"attachmentUrl"
>
<FileUpload
listType=
"picture"
...
...
@@ -368,7 +378,8 @@ export default {
formDeptOptions
:
[],
tab
:
"0"
,
debitStatusList
:
[],
queryDeptOptions
:
[]
queryDeptOptions
:
[],
payableAmount
:
null
};
},
created
()
{
...
...
@@ -421,6 +432,7 @@ export default {
isDel
:
null
,
remark
:
null
};
this
.
payableAmount
=
null
;
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
...
...
@@ -670,8 +682,18 @@ export default {
this
.
queryParams
.
beginRegisterTime
=
value
[
0
];
this
.
queryParams
.
endRegisterTime
=
value
[
1
];
}
}
}
,
//应还金额
payable
(){
if
(
this
.
form
.
expectedRepaymentDate
&&
this
.
form
.
sumInterestDate
&&
this
.
form
.
littleTotal
){
let
time
=
new
Date
(
this
.
form
.
expectedRepaymentDate
).
getTime
()
/
1000
-
new
Date
(
this
.
form
.
sumInterestDate
).
getTime
()
/
1000
;
let
day
=
Math
.
round
(
time
/
60
/
60
/
24
);
this
.
payableAmount
=
(
this
.
form
.
littleTotal
*
(
1
+
0.08
/
360
*
day
)).
toFixed
(
2
);
}
else
{
this
.
payableAmount
=
null
;
}
}
}
};
</
script
>
...
...
precision-effect-web/src/views/transaction/index.vue
View file @
97bb27f5
...
...
@@ -258,7 +258,8 @@ export default {
count
:
null
,
total
:
null
,
transactor
:
null
,
deptId
:
null
deptId
:
null
,
isDel
:
'0'
},
// 表单参数
form
:
{},
...
...
@@ -423,7 +424,8 @@ export default {
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
delProject
(
transactionProjectIds
);
//return delProject(transactionProjectIds);
return
updateProject
({
transactionProjectId
:
transactionProjectIds
,
isDel
:
"1"
});
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"删除成功"
);
...
...
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