|
@@ -24,6 +24,43 @@ var msg = {
|
|
|
window.msg = msg
|
|
|
window.pushMessage = {}
|
|
|
|
|
|
+post(config.pushTreatment,Object.assign({featureType: '8'},msg)).then((res)=>{
|
|
|
+ var data = res.data
|
|
|
+ if(data.code == 0){
|
|
|
+ $(".diseaseName").html(msg.diag)
|
|
|
+ var result = data.data;
|
|
|
+ var num = 0;
|
|
|
+ console.log('treatResult', result)
|
|
|
+ if(result.commonTreatment && result.commonTreatment.content){
|
|
|
+ $(".treatPlanNull").css("display","none")
|
|
|
+ ++num
|
|
|
+ ybzlFun(result.commonTreatment.content)//一般治疗
|
|
|
+ } else {
|
|
|
+ $(".treatPlanNull").css("display","block")
|
|
|
+ }
|
|
|
+ if(result.treatment && result.treatment.length>0){
|
|
|
+ $(".treatMedicineNull").css("display","none")
|
|
|
+ ++num
|
|
|
+ cyywFun(result.treatment)//常用药物
|
|
|
+ } else {
|
|
|
+ $(".treatMedicineNull").css("display","block")
|
|
|
+ $(".treatMedicine").css("display","none")
|
|
|
+ }
|
|
|
+ $(".conditionHintZhiliaoAp ").on('click',".slideDown",function(){
|
|
|
+ openNewWin(`treatplan.html?age=${msg.age}&sex=${msg.sex}&symptomJson=${msg.symptom}&vitalJson=${msg.vital}&lisJson=${msg.lis}&pacsJson=${msg.pacs}&diagJson=${msg.diag}&otherJson=${msg.other}&hospitalCode=${msg.hosCode}`)
|
|
|
+ })
|
|
|
+ if(num == 0){
|
|
|
+ $(".conditionHintZhiliaoNull").css("display","block")
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ console.log('noTreatResult')
|
|
|
+ $(".treatMedicine").css("display","none")
|
|
|
+ $(".treatPlanNull").css("display","block")
|
|
|
+ $(".treatMedicineNull").css("display","block")
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22'},msg)).then((res)=>{
|
|
|
var data = res.data
|
|
|
if(data.code == 0){
|
|
@@ -80,40 +117,6 @@ post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22'},msg)).then((re
|
|
|
$(".disclaimer").on("click",function() {
|
|
|
openNewWin("disclaimer.html")
|
|
|
})
|
|
|
-post(config.pushTreatment,Object.assign({featureType: '8'},msg)).then((res)=>{
|
|
|
- var data = res.data
|
|
|
- if(data.code == 0){
|
|
|
- $(".diseaseName").html(msg.diag)
|
|
|
- var result = data.data;
|
|
|
- var num = 0;
|
|
|
- console.log('treatResult', result)
|
|
|
- if(result.commonTreatment && result.commonTreatment.content){
|
|
|
- $(".treatPlanNull").css("display","none")
|
|
|
- ++num
|
|
|
- ybzlFun(result.commonTreatment.content)//一般治疗
|
|
|
- } else {
|
|
|
- $(".treatPlanNull").css("display","block")
|
|
|
- }
|
|
|
- if(result.treatment && result.treatment.length>0){
|
|
|
- $(".treatMedicineNull").css("display","none")
|
|
|
- ++num
|
|
|
- cyywFun(result.treatment)//常用药物
|
|
|
- } else {
|
|
|
- $(".treatMedicineNull").css("display","block")
|
|
|
- $(".treatMedicine").css("display","none")
|
|
|
- }
|
|
|
- $(".conditionHintZhiliaoAp ").on('click',".slideDown",function(){
|
|
|
- openNewWin(`treatplan.html?age=${msg.age}&sex=${msg.sex}&symptomJson=${msg.symptom}&vitalJson=${msg.vital}&lisJson=${msg.lis}&pacsJson=${msg.pacs}&diagJson=${msg.diag}&otherJson=${msg.other}&hospitalCode=${msg.hosCode}`)
|
|
|
- })
|
|
|
- if(num == 0){
|
|
|
- $(".conditionHintZhiliaoNull").css("display","block")
|
|
|
- }
|
|
|
- }else{
|
|
|
- console.log('noTreatResult')
|
|
|
- $(".treatMedicine").css("display","none")
|
|
|
- $(".treatPlanNull").css("display","block")
|
|
|
- $(".treatMedicineNull").css("display","block")
|
|
|
- }
|
|
|
-})
|
|
|
+
|
|
|
|
|
|
|