Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_lung
Project
Overview
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
hanpeng
wechat_lung
Commits
9d5299df
Commit
9d5299df
authored
Dec 05, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改医保类型单独请求更新'
parent
5fcce77e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
12 deletions
+65
-12
index.js
wechat_lung_questionnaire/javaScript/index.js
+3
-3
targetedTherapy.js
wechat_lung_questionnaire/javaScript/targetedTherapy.js
+62
-9
No files found.
wechat_lung_questionnaire/javaScript/index.js
View file @
9d5299df
...
...
@@ -50,9 +50,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
index
.
adminId
},
success
:
function
(
res
)
{
if
(
res
.
content
.
followUpUser
.
status
==
'1'
&&
index
.
adminId
==
''
){
medtap
.
pushWindow
(
'pages/questionnaireDetails.html?followUpId='
+
index
.
followUpId
)
}
//
if(res.content.followUpUser.status=='1' && index.adminId==''){
//
medtap.pushWindow('pages/questionnaireDetails.html?followUpId='+index.followUpId)
//
}
index
.
followUpId
=
res
.
content
.
followUpUser
.
id
var
mm
=
res
.
content
.
followUpUser
.
answerTime
$
(
'.mouth_title span'
).
text
(
mm
.
split
(
"-"
)[
1
])
...
...
wechat_lung_questionnaire/javaScript/targetedTherapy.js
View file @
9d5299df
...
...
@@ -44,6 +44,23 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
isNextVal
:
''
,
// 描述方案
programme
:
''
,
// 省id
provinceId
:
''
,
// 城市id
cityId
:
''
,
// 医保类型数据
healthInsuranceType
:{
HT1
:
'城镇职工基本医疗保险'
,
HT2
:
'城镇居民基本医疗保险'
,
HT3
:
'新型农村合作医疗'
,
HT4
:
'商业医疗保险'
,
HT5
:
'全自费'
,
HT6
:
'全公费'
,
HT7
:
'贫困救助'
,
HT8
:
'其他社会保险'
,
},
// 医保类型
healthVla
:
''
,
init
:
function
(){
// 解决键盘收起页面不恢复问题
$
(
'textarea'
).
on
(
'blur'
,
function
(){
...
...
@@ -62,7 +79,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 用户点击了有
$
(
'.has'
).
on
(
'tap'
,
function
(){
targetedTherapy
.
flag
=
true
console
.
log
(
targetedTherapy
.
flag
)
})
// 点击下一题
...
...
@@ -115,6 +131,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"followUpId"
:
targetedTherapy
.
followUpId
}
targetedTherapy
.
getNextQuestion
(
dataHas
,
hasUrl
)
targetedTherapy
.
updatePatientInfo
()
// else 为选择 ‘无’ 时判断必填项
}
else
{
targetedTherapy
.
stopTimeVal
=
$
.
trim
(
$
(
'.input_item_stopTime'
).
val
())
...
...
@@ -177,7 +194,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
targetedTherapy
.
initstopCausepicker
();
targetedTherapy
.
initisNextpicker
();
targetedTherapy
.
selectItems
();
targetedTherapy
.
getPatientInfo
();
},
// ---------- 有 ---------
// 初始化drugTypesPicker
...
...
@@ -241,7 +258,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
return
obj
[
param
]
||
''
;
};
//-----------------------------------------
// //级联示例
targetedTherapy
.
cityPicker
=
new
mui
.
PopPicker
({
layer
:
2
});
...
...
@@ -335,12 +351,15 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 点击医保所在城市选择
$
(
'.input_item_city'
).
click
(
function
(){
targetedTherapy
.
cityPicker
.
show
(
function
(
Items
)
{
targetedTherapy
.
provinceId
=
Items
[
0
].
value
targetedTherapy
.
cityId
=
Items
[
1
].
value
$
(
'.input_item_city'
).
val
(
Items
[
0
].
text
+
Items
[
1
].
text
)
})
})
// 点击医保类型
$
(
'.content_body_medicalType'
).
click
(
function
(){
targetedTherapy
.
medicalTypePicker
.
show
(
function
(
Items
)
{
targetedTherapy
.
healthVla
=
Items
[
0
].
value
$
(
'.input_item_medicalType'
).
val
(
Items
[
0
].
text
)
})
})
...
...
@@ -372,6 +391,44 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
})
})
},
// 获取医保信息
getPatientInfo
:
function
(){
medtap
.
submitAjax
({
url
:
'https://testdevgw.medtap.cn/user/patientEMR/getPatientInfo'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
targetedTherapy
.
provinceId
=
res
.
content
.
patientEMRResult
.
areaItem
.
pid
targetedTherapy
.
cityId
=
res
.
content
.
patientEMRResult
.
areaItem
.
cityId
$
(
'.input_item_city'
).
val
(
res
.
content
.
patientEMRResult
.
areaItem
.
fullName
||
''
)
var
medicalT
=
targetedTherapy
.
healthInsuranceType
[
res
.
content
.
patientEMRResult
.
healthInsuranceType
]
$
(
'.input_item_medicalType'
).
val
(
medicalT
||
''
)
}
})
},
// 更新医保信息
updatePatientInfo
:
function
(){
medtap
.
submitAjax
({
url
:
'https://testdevgw.medtap.cn/user/patientEMR/updatePatientInfo'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
{
"provinceId"
:
targetedTherapy
.
provinceId
||
''
,
"cityId"
:
targetedTherapy
.
cityId
||
''
,
"healthInsuranceType"
:
targetedTherapy
.
healthVla
||
''
},
success
:
function
(
res
)
{
console
.
log
(
res
)
}
})
},
// 获取问题答案
getQuestionAnswer
:
function
(){
var
crm
=
targetedTherapy
.
adminId
==
''
?
''
:
'/crm'
...
...
@@ -400,14 +457,10 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
if
(
res
.
content
.
followAnswer
.
answer
.
drugTypesVal
==
'泰瑞沙'
){
$
(
'.content_body_reimbursement'
).
show
()
}
$
(
'.input_item_drugTypes'
).
val
(
res
.
content
.
followAnswer
.
answer
.
drugTypesVal
||
''
)
$
(
'.input_item_drugTypes'
).
val
(
res
.
content
.
followAnswer
.
answer
.
drugTypesVal
||
''
)
$
(
'.input_item_reimbursement'
).
val
(
res
.
content
.
followAnswer
.
answer
.
reimbursementVal
||
''
)
$
(
'.input_item_drugCost'
).
val
(
res
.
content
.
followAnswer
.
answer
.
drugCostVal
||
''
)
$
(
'.input_item_city'
).
val
(
res
.
content
.
followAnswer
.
answer
.
cityVal
||
''
)
$
(
'.input_item_medicalType'
).
val
(
res
.
content
.
followAnswer
.
answer
.
medicalType
||
''
)
}
else
if
(
status
==
'0'
){
}
else
if
(
status
==
'0'
){
// 无
targetedTherapy
.
flag
=
false
$
(
'.noHas'
).
addClass
(
'active'
).
siblings
(
'.has'
).
removeClass
(
'active'
)
...
...
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