Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
loan-manager-customer
Project
Project
Details
Activity
Releases
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
zhanhai
loan-manager-customer
Commits
0f7af63e
Commit
0f7af63e
authored
Sep 14, 2022
by
刘雅文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复问题
parent
9a413c5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
42 deletions
+39
-42
GenerateSettleReport.vue
src/components/byh/componments/GenerateSettleReport.vue
+38
-42
LoanInfo.vue
src/components/byh/componments/LoanInfo.vue
+1
-0
No files found.
src/components/byh/componments/GenerateSettleReport.vue
View file @
0f7af63e
...
@@ -30,12 +30,13 @@
...
@@ -30,12 +30,13 @@
</el-form>
</el-form>
</div>
</div>
<div>
<div>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"settleTypeStr"
align=
"center"
label=
"结清类型"
>
<el-table-column
prop=
"settleTypeStr"
align=
"center"
label=
"结清类型"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"operator"
align=
"center"
label=
"操作人"
>
<el-table-column
prop=
"operator"
align=
"center"
label=
"操作人"
>
</el-table-column>
<el-table-column
prop=
"operationDate"
align=
"center"
label=
"操作时间"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"operationDate"
align=
"center"
label=
"操作时间"
>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
</div>
</div>
...
@@ -61,42 +62,34 @@ export default {
...
@@ -61,42 +62,34 @@ export default {
data
()
{
data
()
{
return
{
return
{
reportType
:
""
,
reportType
:
""
,
tableData
:[],
tableData
:
[],
certName
:
""
,
certName
:
""
,
loanNo
:
""
loanNo
:
""
,
};
};
},
},
async
created
()
{
created
()
{
const
params
=
this
.
params
;
const
params
=
this
.
params
;
console
.
log
(
params
,
'啦啦啦啦啦啦啦'
);
console
.
log
(
params
,
"啦啦啦啦啦啦啦"
);
if
(
params
.
loanNo
)
{
if
(
params
.
loanNo
)
{
cons
t
{
clientName
,
loanNo
}
=
cons
ole
.
log
(
params
.
loanNo
,
"hhhhhhhhhh"
);
params
;
const
{
clientName
,
loanNo
,
externalNo
}
=
params
;
this
.
certName
=
clientName
;
this
.
certName
=
clientName
;
this
.
loanNo
=
loanNo
;
this
.
loanNo
=
externalNo
;
this
.
queryReport
(
externalNo
);
}
}
await
this
.
queryReport
();
},
},
methods
:
{
methods
:
{
async
init
()
{
const
params
=
{};
params
.
settleType
=
this
.
reportType
;
params
.
loanNo
=
this
.
loanNo
;
params
.
operator
=
localStorage
.
getItem
(
'loginName'
);
const
res
=
await
this
.
$$post
(
`/loan/generateSettleReport`
,
params
);
console
.
log
(
res
,
"resres"
);
},
//查询生成报告
//查询生成报告
queryReport
(
)
{
queryReport
(
externalNo
)
{
this
.
$$get
(
`/loan/selectGenerate?loanNo=
${
this
.
loanNo
}
`
).
then
(
res
=>
{
this
.
$$get
(
`/loan/selectGenerate?loanNo=
${
externalNo
}
`
).
then
((
res
)
=>
{
console
.
log
(
res
,
'报告'
);
console
.
log
(
res
,
"报告"
);
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
this
.
tableData
=
res
.
data
.
result
;
this
.
tableData
=
res
.
data
.
result
;
}
}
})
});
},
},
//生成结清报告
//生成结清报告
generateReport
()
{
generateReport
()
{
this
.
$confirm
(
"是否确认生成"
,
""
,
{
this
.
$confirm
(
"是否确认生成"
,
""
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
...
@@ -109,11 +102,20 @@ export default {
...
@@ -109,11 +102,20 @@ export default {
this
.
$message
(
"请选择报告类型!"
);
this
.
$message
(
"请选择报告类型!"
);
return
;
return
;
}
}
this
.
init
();
const
params
=
{};
this
.
queryReport
();
params
.
settleType
=
this
.
reportType
;
this
.
$message
({
params
.
loanNo
=
this
.
loanNo
;
type
:
"success"
,
params
.
operator
=
localStorage
.
getItem
(
"loginName"
);
message
:
"已生成!"
,
this
.
$$post
(
`/loan/generateSettleReport`
,
params
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
queryReport
();
this
.
$message
({
type
:
"success"
,
message
:
"已生成!"
,
});
}
else
{
this
.
$message
(
res
.
data
.
message
)
}
});
});
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
...
@@ -124,16 +126,10 @@ export default {
...
@@ -124,16 +126,10 @@ export default {
});
});
});
});
},
},
/*日期*/
dateFormats
:
function
(
row
,
column
)
{
let
date
=
row
[
column
.
property
];
if
(
date
===
undefined
)
{
return
""
;
}
return
moment
(
date
).
format
(
"YYYY-MM-DD"
);
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"handleClose"
);
this
.
$emit
(
"handleClose"
);
// window.location.reload()
},
},
},
},
};
};
...
...
src/components/byh/componments/LoanInfo.vue
View file @
0f7af63e
...
@@ -150,6 +150,7 @@ export default {
...
@@ -150,6 +150,7 @@ export default {
...
row
,
...
row
,
...
this
.
params
...
this
.
params
};
};
console
.
log
(
row
,
'mmmcccc'
);
this
.
mcTitle
=
title
;
this
.
mcTitle
=
title
;
this
.
ActiveCom
=
com
;
this
.
ActiveCom
=
com
;
}
}
...
...
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