|
@ -10,13 +10,14 @@ $(function(){
|
|
|
if(patientInfo){
|
|
|
patientInfo = JSON.parse(patientInfo);
|
|
|
}
|
|
|
$("#lbl_patient").text(patientInfo.name);
|
|
|
// $("#lbl_patient").text(patientInfo.name);
|
|
|
|
|
|
//获取医生信息
|
|
|
getDoctorInfo();
|
|
|
|
|
|
bindEvents();
|
|
|
getWxSign();
|
|
|
getFamilyMembers();
|
|
|
})
|
|
|
|
|
|
function getDoctorInfo(){
|
|
@ -72,6 +73,40 @@ function bindEvents(){
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function getFamilyMembers(){
|
|
|
sendPost("patient/family/authorize_members", {}, "json", "get", function(res){
|
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
|
|
|
}, function(res){
|
|
|
if (res.status == 200) {
|
|
|
if (res.data.length > 0) {
|
|
|
var html = '';
|
|
|
for(i=0; i<res.data.length; i++){
|
|
|
var item = res.data[i];
|
|
|
html += '<option value="'+item.code+'">'+item.name+'</option>';
|
|
|
}
|
|
|
$('#lbl_patient').html(html);
|
|
|
$('#lbl_patient').mobiscroll().select({
|
|
|
theme: 'ios',
|
|
|
lang: 'zh',
|
|
|
display: 'bottom',
|
|
|
rows:5,
|
|
|
placeholder:'请选择咨询人员',
|
|
|
onSelect: function ( valueText, inst) {
|
|
|
var wlyyAgent = localStorage.getItem("wlyyAgent");
|
|
|
JSON.parse(wlyyAgent).uid = inst._tempValue;
|
|
|
localStorage.setItem("wlyyAgent",wlyyAgent)
|
|
|
}
|
|
|
})
|
|
|
$("#patientInfo").val(patientInfo.uid).show()
|
|
|
}else{
|
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'加载家庭成员失败'}).show();
|
|
|
}
|
|
|
}else{
|
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//验证信息
|
|
|
function validate(data) {
|
|
|
if (data.symptoms.length < 10) {
|