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
2824d9fc
Commit
2824d9fc
authored
Jan 26, 2022
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加提前结清证明
parent
bf510d4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
2 deletions
+111
-2
index.html
public/index.html
+2
-2
SettleReport.vue
src/components/byh/componments/SettleReport.vue
+109
-0
No files found.
public/index.html
View file @
2824d9fc
...
...
@@ -12,10 +12,10 @@
//window.APIHOST = "http://192.168.0.50:8202";
//测试
//
window.APIHOST = "http://47.99.245.36:8202";
window
.
APIHOST
=
"http://47.99.245.36:8202"
;
//生产环境
window
.
APIHOST
=
"https://water.jqtianxia.com"
;
//
window.APIHOST = "https://water.jqtianxia.com";
</script>
</head>
...
...
src/components/byh/componments/SettleReport.vue
0 → 100644
View file @
2824d9fc
<
template
>
<el-dialog
:title=
"title"
width=
"500px"
center
:wrapperClosable=
"false"
:visible
.
sync=
"visible"
:before-close=
"handleClose"
>
<div
class=
"page-dialog"
>
<div
class=
"btn-box"
style=
"height: 200px"
>
<el-button
size=
"small"
plain
type=
"info"
v-if=
"result.status==='FAIL'"
>
生成失败
</el-button>
<el-button
size=
"small"
plain
type=
"success"
@
click=
"handleClick"
v-else-if=
"result.status==='SUCCESS'"
>
点击下载
</el-button>
<el-button
size=
"small"
plain
type=
"primary"
v-else-if=
"result.status==='PROCESS'"
>
生成中...
</el-button>
</div>
</div>
</el-dialog>
</
template
>
<
script
>
import
BlockHeader
from
"@/components/byh/componments/blockHeader"
;
import
*
as
moment
from
"moment"
;
export
default
{
name
:
'SettleReport'
,
components
:
{
BlockHeader
},
props
:
{
title
:
{
type
:
String
,
required
:
true
,
},
visible
:
{
type
:
Boolean
,
required
:
true
},
params
:
{
type
:
Object
,
required
:
true
},
},
data
()
{
return
{
//FAIL:失败
//SUCCESS :成功
//PROCRSS:处理中
result
:
{},
form
:
{
batchNumber
:
''
,
capitalCode
:
''
,
certNo
:
""
,
certName
:
""
,
loanNo
:
""
}
}
},
async
created
()
{
const
params
=
this
.
params
;
console
.
log
(
params
,
'很多信息'
);
if
(
params
.
loanNo
)
{
const
{
capitalCode
,
clientName
,
idCard
,
loanNo
,
externalNo
}
=
params
;
this
.
form
.
capitalCode
=
capitalCode
;
this
.
form
.
certNo
=
idCard
;
this
.
form
.
certName
=
clientName
;
//this.form.loanNo = loanNo;
this
.
form
.
loanNo
=
externalNo
;
await
this
.
init
()
}
},
methods
:
{
headerStyle
()
{
return
"tableHeaderStyle"
;
},
async
init
()
{
const
res
=
await
this
.
$$post
(
'/back/settleReport'
,
this
.
form
);
const
{
success
,
result
}
=
res
.
data
;
if
(
success
&&
result
!==
null
)
{
this
.
result
=
result
;
}
},
/*日期*/
dateFormats
:
function
(
row
,
column
)
{
let
date
=
row
[
column
.
property
]
if
(
date
===
undefined
)
{
return
''
}
return
moment
(
date
).
format
(
"YYYY-MM-DD"
)
},
handleClose
()
{
this
.
$emit
(
"handleClose"
);
},
handleClick
()
{
const
url
=
this
.
result
.
fileUrl
;
window
.
open
(
url
,
"_blank"
);
}
}
}
</
script
>
<
style
>
.btn-box
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
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