Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
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
songrui
frontend-h5
Commits
ffae8f5c
Commit
ffae8f5c
authored
Jul 15, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛查身份证查询修改
parent
7dcb754e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
base.vue
src/tumour/screening/simple/form/base.vue
+13
-2
common.js
src/utils/common.js
+3
-0
No files found.
src/tumour/screening/simple/form/base.vue
View file @
ffae8f5c
...
...
@@ -188,10 +188,11 @@
</template>
<
script
>
import
{
fetchDataHandle
}
from
'@/utils/common.js'
import
{
fetchDataHandle
,
getInfoByIdCard
}
from
'@/utils/common.js'
import
{
idCardRule
,
mobileValidator
}
from
'@/utils/commonReg.js'
import
{
useStore
}
from
'@/tumour/store/index.js'
import
{
getResidentInfo
}
from
'@/tumour/api/base.js'
import
{
getDictValue
}
from
'@/tumour/utils/dictionaries.js'
import
DocAddress
from
'@/tumour/utils/docAddress/DocAddress.vue'
const
defaultForm
=
(
info
=
{})
=>
{
...
...
@@ -217,7 +218,7 @@ const defaultForm = (info = {}) => {
gender
:
undefined
,
genderTrans
:
undefined
,
// 身份证号
idCard
:
'
530111199706071417
'
,
idCard
:
''
,
// 婚姻状况,[DC00008]
maritalStatus
:
undefined
,
maritalStatusTrans
:
undefined
,
...
...
@@ -311,7 +312,17 @@ export default {
id
:
null
,
species
:
[]
})
return
}
const
info
=
getInfoByIdCard
(
idCard
)
this
.
form
=
defaultForm
({
gender
:
info
.
gender
,
genderTrans
:
getDictValue
(
'DC00005'
,
info
.
gender
),
dataBirth
:
info
.
dataBirth
,
age
:
info
.
age
,
species
:
[]
})
console
.
log
(
info
)
})
},
submit
()
{
...
...
src/utils/common.js
View file @
ffae8f5c
import
dayjs
from
'dayjs'
import
{
validateIdCard
}
from
'./commonReg.js'
// sessionStorage 保存 获取
export
function
setSessionStorage
(
key
,
data
)
{
if
(
!
key
||
!
data
)
{
...
...
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