Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yibao
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
tanjuanjuan
yibao
Commits
e6192003
Commit
e6192003
authored
Nov 06, 2024
by
tanjuanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加psn查询
parent
e99aaff5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
index.vue
src/pages/index/index.vue
+14
-9
No files found.
src/pages/index/index.vue
View file @
e6192003
...
@@ -48,14 +48,16 @@
...
@@ -48,14 +48,16 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
FormRules
}
from
'wot-design-uni/components/wd-form/types'
;
import
type
{
FormRules
}
from
'wot-design-uni/components/wd-form/types'
;
import
dayjs
from
'dayjs'
;
import
dayjs
from
'dayjs'
;
const
toast
=
useToast
()
const
form
=
ref
()
const
form
=
ref
()
const
formFlag
=
ref
(
true
)
const
formFlag
=
ref
(
true
)
//表单提交 序列号字符串
//表单提交 序列号字符串
let
submitstr
=
""
let
submitstr
=
""
//获取psn值时提交的序列化字符串
//获取psn值时提交的序列化字符串
let
psnstr
=
""
let
psnstr
=
""
const
psnNumberTest
=
ref
(
0
)
const
psnNumberTest
=
ref
(
0
)
const
navBarTitle
=
computed
(()
=>
{
const
navBarTitle
=
computed
(()
=>
{
let
str
=
!
formFlag
.
value
?
"结果"
:
""
let
str
=
!
formFlag
.
value
?
"结果"
:
""
return
"居民缴费进度查询"
+
str
;
return
"居民缴费进度查询"
+
str
;
...
@@ -65,8 +67,8 @@
...
@@ -65,8 +67,8 @@
accrymBegn
:
1600000001745
,
accrymBegn
:
1600000001745
,
accrymEnd
:
1700000001745
accrymEnd
:
1700000001745
})
})
const
psnNo
=
ref
(
0
)
const
psnNo
=
ref
(
0
)
const
completeIDNumber
=
ref
(
0
)
const
completeIDNumber
=
ref
(
0
)
const
pageSize
=
"10"
const
pageSize
=
"10"
const
currentPage
=
"1"
const
currentPage
=
"1"
const
results
=
ref
([])
const
results
=
ref
([])
...
@@ -122,7 +124,7 @@
...
@@ -122,7 +124,7 @@
success
(
res
)
{
success
(
res
)
{
//获取身份号码
//获取身份号码
model
.
certno
=
res
.
data
?.
uIdCardNo
.
replace
(
/^
(
.
{6})(?:\w
+
)(
.
{4})
$/
,
'
\
$1******
\
$2'
);
// eslint-disable-line
model
.
certno
=
res
.
data
?.
uIdCardNo
.
replace
(
/^
(
.
{6})(?:\w
+
)(
.
{4})
$/
,
'
\
$1******
\
$2'
);
// eslint-disable-line
completeIDNumber
.
value
=
res
.
data
?.
uIdCardNo
completeIDNumber
.
value
=
res
.
data
?.
uIdCardNo
//completeIDNumber.value=res.data?.uIdCardNo.replace(/^(.{6})(?:\w+)(.{4})$/, '\$1******\$2');
//completeIDNumber.value=res.data?.uIdCardNo.replace(/^(.{6})(?:\w+)(.{4})$/, '\$1******\$2');
//获取psn
//获取psn
xma
.
request
({
xma
.
request
({
...
@@ -130,13 +132,16 @@
...
@@ -130,13 +132,16 @@
method
:
"POST"
,
method
:
"POST"
,
format
:
"json"
,
format
:
"json"
,
data
:
{
data
:
{
"biz_content"
:
JSON
.
stringify
({
"certno"
:
completeIDNumber
.
value
,
"psnCertType"
:
"01"
}),
"biz_content"
:
JSON
.
stringify
({
"certno"
:
completeIDNumber
.
value
,
"psnCertType"
:
"01"
}),
"url"
:
"/engine/rest/queryPsnInsuByCertnoB"
"url"
:
"/engine/rest/queryPsnInsuByCertnoB"
},
},
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
console
.
log
(
"&&"
)
if
(
res
.
data
?.
biz_data
?.
body
?.
code
==
0
)
{
console
.
log
(
res
)
psnNo
.
value
=
res
.
data
?.
biz_data
?.
body
?.
data
[
0
]?.
psnNo
psnNo
.
value
=
res
.
data
?.
biz_data
?.
body
?.
data
[
0
]?.
psnNo
}
else
{
toast
.
warning
(
res
.
data
?.
biz_data
?.
body
?.
message
)
}
}
}
})
})
...
...
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