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
04489bb6
Commit
04489bb6
authored
Jun 27, 2025
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
简易筛查 查询是否已筛查
parent
84b6560b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
8 deletions
+48
-8
register.js
src/register.js
+1
-0
screening.js
src/tumour/api/screening.js
+6
-2
Detail.vue
src/tumour/screening/simpleV2/detail/Detail.vue
+4
-1
base.vue
src/tumour/screening/simpleV2/form/base.vue
+35
-3
vue.config.js
vue.config.js
+2
-2
No files found.
src/register.js
View file @
04489bb6
import
'vant/es/toast/style/index'
import
'vant/es/notify/style/index'
import
'vant/es/dialog/style/index'
// 自定义svg 图标组件
import
DocIcon
from
'@/components/docIcon/index'
...
...
src/tumour/api/screening.js
View file @
04489bb6
...
...
@@ -13,4 +13,9 @@ export function getSimpleScreenById(id, loading = true) {
// 获取检验项目对码表
export
function
getInspectCode
()
{
return
fetchBase
({
url
:
`/tumour-admin/v1/h5-app/dict-code-table`
})
}
\ No newline at end of file
}
// 查询居民当年是否存在筛查记录
export
function
getSimpleScreenYears
(
idCard
)
{
return
fetchBase
({
url
:
`/tumour-admin/v1/h5-app/years-simple/
${
idCard
}
`
,
loading
:
true
})
}
src/tumour/screening/simpleV2/detail/Detail.vue
View file @
04489bb6
<
template
>
<div
class=
"h-full flex flex-col screening-simple-detail"
>
<DocNavBar
home
v-if=
"embed !== 'wx'"
>
<DocNavBar
:home=
"!notHome"
v-if=
"embed !== 'wx'"
>
筛查详情
</DocNavBar>
<div
class=
"grow overflow-y-auto"
>
...
...
@@ -112,6 +112,9 @@ export default {
embed
()
{
return
this
.
$route
.
query
.
embed
},
notHome
()
{
return
this
.
$route
.
query
.
notHome
},
// 筛查项
screenItems
()
{
const
result
=
[]
...
...
src/tumour/screening/simpleV2/form/base.vue
View file @
04489bb6
...
...
@@ -10,6 +10,7 @@
label=
"身份证号"
placeholder=
"请输入身份证号"
:rules=
"rules.idCard"
@
blur=
"checkDetail"
>
<template
#
button
>
<van-button
size=
"small"
plain
type=
"primary"
...
...
@@ -193,7 +194,8 @@ 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
{
showToast
}
from
'vant'
import
{
getSimpleScreenYears
}
from
'@/tumour/api/screening.js'
import
{
showToast
,
showConfirmDialog
}
from
'vant'
import
DocAddress
from
'@/components/docAddress/DocAddress.vue'
const
defaultForm
=
(
info
=
{})
=>
{
...
...
@@ -287,7 +289,9 @@ export default {
registeredCode
:
[{
required
:
true
,
message
:
'请输入'
}],
presentCode
:
[{
required
:
true
,
message
:
'请输入'
}],
species
:
[{
required
:
true
,
message
:
'请选择'
}]
}
},
// 是否查询过简易筛查详情
detailChecked
:
false
}
},
setup
()
{
...
...
@@ -304,7 +308,7 @@ export default {
methods
:
{
getInfo
()
{
const
idCard
=
this
.
form
.
idCard
if
(
!
idCard
)
return
if
(
!
idCard
||
idCardRule
.
validator
(
idCard
)
)
return
getResidentInfo
(
idCard
).
then
(
res
=>
{
const
result
=
res
.
data
||
{}
if
(
result
.
id
)
{
...
...
@@ -326,6 +330,34 @@ export default {
console
.
log
(
info
)
})
},
// 查询是否存在简易筛查信息
checkDetail
()
{
console
.
log
(
this
.
form
)
if
(
this
.
detailChecked
)
return
const
idCard
=
this
.
form
.
idCard
if
(
!
idCard
||
idCardRule
.
validator
(
idCard
))
return
getSimpleScreenYears
(
idCard
).
then
(
res
=>
{
const
result
=
res
.
data
if
(
!
result
)
return
this
.
detailChecked
=
true
let
date
=
result
.
screenDate
date
&&
(
date
=
date
.
split
(
'-'
))
const
msg
=
`
${
result
.
residentName
}${
result
.
gender
==
2
?
'女士'
:
'先生'
}
您好!您于
${
date
[
0
]}
年
${
date
[
1
]}
月
${
date
[
2
]}
日在
${
result
.
screenUnitName
}
已做过初筛,建议下年度再进行筛查!`
showConfirmDialog
({
title
:
'温馨提示'
,
message
:
msg
,
confirmButtonText
:
'详情'
}).
then
(()
=>
{
this
.
$router
.
push
({
name
:
'tumour-screening-simple-detail'
,
query
:
{
id
:
result
.
id
,
notHome
:
true
}
})
}).
catch
(()
=>
{})
})
},
submit
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
$refs
.
form
.
validate
().
then
(
res
=>
{
...
...
vue.config.js
View file @
04489bb6
...
...
@@ -22,8 +22,8 @@ module.exports = defineConfig({
// 设置代理
proxy
:
{
'/tumour-admin'
:
{
target
:
'http://192.168.1.174:8081'
,
//
target: 'https://beta-tumour.zmnyjk.com',
//
target: 'http://192.168.1.174:8081',
target
:
'https://beta-tumour.zmnyjk.com'
,
changOrigin
:
true
,
pathRewrite
:
{
'^/tumour-admin'
:
'/tumour-admin'
...
...
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