|
@ -54,9 +54,6 @@ $(function(){
|
|
|
})
|
|
|
|
|
|
function initPage(){
|
|
|
if(!(docInfo.isLeader == '1')){
|
|
|
links[0].class="hidden";
|
|
|
}
|
|
|
links[tab].class="active";
|
|
|
var html = template('tab_tmp', {list: links});
|
|
|
$("#tabs").append(html);
|
|
@ -109,7 +106,13 @@ function getPrescriptionInfoByCode(){
|
|
|
if(res.status == 200){
|
|
|
patiCode = res.data.patient.code;
|
|
|
jwCode = res.data.prescription.jwCode;
|
|
|
consultCode = res.data.prescription.consult;
|
|
|
sessionId = patiCode + '_' + consultCode+'_8';
|
|
|
updateLinkInfo();
|
|
|
//如果不是该续方所在团队的团队长,则不可以显示咨询tab
|
|
|
if(res.data.prescription.doctor != docInfo.code){
|
|
|
links[0].class="hidden";
|
|
|
}
|
|
|
if(res.data.prescription.status < 50){ //支付成功前不会有订单记录
|
|
|
links[2].class="hidden";
|
|
|
}
|