Commit 2a0667d6 by zujiaozhang

'增加admin修改设置'

parent 4926664c
......@@ -49,7 +49,7 @@ body {
display: none;
}
.que_content_body{
padding-top: .02rem;
padding-top: .03rem;
}
.que_content_title{
height: .36rem;
......
......@@ -9,6 +9,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
questionId: medtap.getRequest('questionId'),
// 获取parentId
parentId: medtap.getRequest('parentId')||'',
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
// 选择有或者无
flag: true,
// 检查选择数据
......@@ -116,8 +118,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 获取问题答案
getQuestionAnswer: function(){
var crm = examination.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/getAnswer",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -196,8 +199,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 上一题
getPreQuestion:function(){
var crm = examination.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/previousQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -213,18 +217,19 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var questionId = res.content.previousQuestion.questionId||''
var questionNo = res.content.previousQuestion.questionNo||''
if(questionId=='4'){
medtap.pushWindow('otherTreatment.html?followUpId='+examination.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId);
medtap.pushWindow('otherTreatment.html?followUpId='+examination.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+examination.adminId);
}else{
medtap.pushWindow('targetedTherapy.html?followUpId='+examination.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId);
medtap.pushWindow('targetedTherapy.html?followUpId='+examination.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+examination.adminId);
}
}
})
},
// 提交答案获取下一题id
getNextQuestion:function(data){
var crm = examination.adminId==''? '':'/crm'
console.log(data)
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/nextQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -238,28 +243,28 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var questionNo = res.content.nextQuestion.questionNo||''
switch(questionId){
case 6:
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
case 7:
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
case 8:
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
case 9:
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
case 10:
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
case 11:
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
case 12:
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
case 13:
medtap.pushWindow('geneDetection.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId)
medtap.pushWindow('geneDetection.html?followUpId='+examination.followUpId+'&questionNo='+questionNo+'&questionId='+questionId+'&parentId='+parentId+'&adminId='+examination.adminId)
break;
}
}
......
......@@ -4,6 +4,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
wechatId: medtap.getRequest('wechatId'),
// 获取问卷id
followUpId: medtap.getRequest('followUpId')||'',
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
// 获取本题序号
questionNo: medtap.getRequest('questionNo')||'',
// 获取本题id
......@@ -280,8 +282,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 获取问题答案
getQuestionAnswer: function(){
var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/getAnswer",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -329,8 +332,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 上一题
getPreQuestion:function(){
var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/previousQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -345,14 +349,15 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||''
var questionNo = res.content.previousQuestion.questionNo||''
medtap.pushWindow('questionnaireWeight.html?followUpId='+furtherConsultation.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId);
medtap.pushWindow('questionnaireWeight.html?followUpId='+furtherConsultation.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+furtherConsultation.adminId);
}
})
},
// 下一题
getNextQuestion:function(data){
var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/nextQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -364,10 +369,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.nextQuestion.parentId||''
var questionId = res.content.nextQuestion.questionId||''
var questionNo = res.content.nextQuestion.questionNo||''
setTimeout(function(){
medtap.pushWindow('targetedTherapy.html?followUpId='+furtherConsultation.followUpId+'&questionId='+questionId+'&questionNo='+questionNo
+'&parentId='+parentId);
},400)
+'&parentId='+parentId+'&adminId='+furtherConsultation.adminId);
}
})
}
......
......@@ -6,6 +6,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
questionNo: medtap.getRequest('questionNo')||'',
// 获取本题id
questionId: medtap.getRequest('questionId')||'',
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
// 获取parentId
parentId: medtap.getRequest('parentId')||'',
// EGFR检测数据
......@@ -287,8 +289,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 获取答案
getQuestionAnswer: function(){
var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/getAnswer",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -341,8 +344,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 上一题
getPreQuestion:function(){
var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/previousQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -359,28 +363,28 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var questionNo = res.content.previousQuestion.questionNo||''
switch(questionId){
case 5:
medtap.pushWindow('examination.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId)
medtap.pushWindow('examination.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+geneDetection.adminId)
break;
case 6:
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+geneDetection.adminId)
break;
case 7:
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+geneDetection.adminId)
break;
case 8:
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+geneDetection.adminId)
break;
case 9:
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+geneDetection.adminId)
break;
case 10:
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+geneDetection.adminId)
break;
case 11:
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+geneDetection.adminId)
break;
case 12:
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+geneDetection.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+geneDetection.adminId)
break;
}
......@@ -389,8 +393,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 提交答案获取下一题id
getNextQuestion:function(data,url){
var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/nextQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -401,7 +406,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.nextQuestion.parentId||''
var nextquestionNo = res.content.nextQuestion.questionNo||''
var nextquestionId = res.content.nextQuestion.questionId||''
medtap.pushWindow('discomfort.html'+'?followUpId=' + geneDetection.followUpId+'&questionNo='+nextquestionNo+'&questionId='+nextquestionId+'&parentId='+parentId)
medtap.pushWindow('discomfort.html'+'?followUpId=' + geneDetection.followUpId+'&questionNo='+nextquestionNo+'&questionId='+nextquestionId+'&parentId='+parentId+'&adminId='+geneDetection.adminId)
}
})
}
......
......@@ -3,6 +3,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
wechatId:medtap.getRequest('wechatId'),
// 问卷id
followUpId: medtap.getRequest('followUpId'),
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
// 获取checks数据判断下面跳转的页面
checks: medtap.getRequest('checks'),
// 获取checks数据判断下面跳转的页面
......@@ -200,8 +202,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 获取问题答案
getQuestionAnswer: function(){
var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/getAnswer",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -234,8 +237,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 上一题
getPreQuestion:function(){
var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/previousQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -252,28 +256,28 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var questionNo = res.content.previousQuestion.questionNo||''
switch(questionId){
case 5:
medtap.pushWindow('examination.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId)
medtap.pushWindow('examination.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
case 6:
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+generalPage.adminId)
break;
case 7:
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+generalPage.adminId)
break;
case 8:
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+generalPage.adminId)
break;
case 9:
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+generalPage.adminId)
break;
case 10:
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+generalPage.adminId)
break;
case 11:
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+generalPage.adminId)
break;
case 12:
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId)
medtap.pushWindow('generalPage.html?followUpId='+generalPage.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&backChecks='+questionId+'&adminId='+generalPage.adminId)
break;
}
}
......@@ -281,8 +285,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 提交答案获取下一题id
getNextQuestion:function(data,url){
var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/nextQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -295,25 +300,25 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var nextquestionId = res.content.nextQuestion.questionId||''
switch(nextquestionId){
case 7:
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
case 8:
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
case 9:
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
case 10:
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
case 11:
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
case 12:
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId)
medtap.pushWindow('generalPage.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
case 13:
medtap.pushWindow('geneDetection.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId)
medtap.pushWindow('geneDetection.html?followUpId='+ generalPage.followUpId + '&questionNo='+nextquestionNo + '&questionId='+ nextquestionId+ '&parentId='+parentId+'&adminId='+generalPage.adminId)
break;
}
}
......
......@@ -3,10 +3,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
wechatId: medtap.getRequest('wechatId'),
// 问卷id
followUpId: medtap.getRequest('followUpId'),
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
init: function(){
// 点击开始填写
$('.fill_write').on('tap',function(){
medtap.pushWindow('pages/questionnaireWeight.html?followUpId='+index.followUpId)
medtap.pushWindow('pages/questionnaireWeight.html?followUpId='+index.followUpId+'&adminId='+index.adminId)
})
index.getMyquestionnaire();
},
......@@ -37,8 +39,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
// 获取问卷
getMyquestionnaire: function(){
var crm = index.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/followUpUser",
url: 'https://testdevgw.medtap.cn/operation/followUp'+ crm +'/followUpUser',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -47,7 +50,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
success: function(res) {
console.log(res)
if(res.content.followUpUser.status=='1'){
if(res.content.followUpUser.status=='1' && index.adminId==''){
medtap.pushWindow('pages/questionnaireDetails.html?followUpId='+index.followUpId)
}
index.followUpId =res.content.followUpUser.id
......
......@@ -8,6 +8,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
questionId: medtap.getRequest('questionId')||'',
// 获取parentId
parentId: medtap.getRequest('parentId')||'',
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
//
treatmentTypePicker: '',
// 选择有或者无
......@@ -96,8 +98,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 点击药物类型的判断
$('.content_body_treatmentType').click(function(){
otherTreatment.treatmentTypePicker.show(function (Items) {
console.log(Items[0].text);
console.log(Items[0].value);
// console.log(Items[0].text);
// console.log(Items[0].value);
$('.input_item_treatmentType').val(Items[0].text)
})
})
......@@ -105,8 +107,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 获取答案
getQuestionAnswer: function(){
var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/getAnswer",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -140,8 +143,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 上一题
getPreQuestion:function(){
var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/previousQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -156,16 +160,15 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||''
var questionNo = res.content.previousQuestion.questionNo||''
setTimeout(function(){
medtap.pushWindow('targetedTherapy.html?followUpId='+otherTreatment.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId);
},400)
medtap.pushWindow('targetedTherapy.html?followUpId='+otherTreatment.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+otherTreatment.adminId);
}
})
},
// 下一题
getNextQuestion:function(data){
var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/nextQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -177,7 +180,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.nextQuestion.parentId||''
var questionId = res.content.nextQuestion.questionId||''
var questionNo = res.content.nextQuestion.questionNo||''
medtap.pushWindow('examination.html?followUpId='+otherTreatment.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId);
medtap.pushWindow('examination.html?followUpId='+otherTreatment.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+otherTreatment.adminId);
}
})
}
......
......@@ -405,11 +405,10 @@ define(['zepto','medtap'],function($,medtap){
questionnaireDetails.checkList = questionnaireDetails.queDetailsList[key].checks.split(",")
if(questionnaireDetails.queDetailsList[key].status=='0'){
var html14 = '<div class="que_title">不适症状</div>'+
'<div class="que_content">'+
'<p class="que_content_title">近一个月没有不适症状</p>'+
'</div>'
var html14 = '<div class="que_content">'+
'<p class="que_content_title">近一个月没有不适症状</p>'+
'</div>'
$('.question_six').append(html14)
}
break;
......
......@@ -4,6 +4,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
followUpId: medtap.getRequest('followUpId'),
// 获取parentId
parentId: medtap.getRequest('parentId')||'',
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
height:'',
weight:'',
init:function(){
......@@ -24,8 +26,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 获取问题答案
getQuestionAnswer: function(){
var crm = questionnaireWeight.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/getAnswer",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -46,8 +49,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 下一题
getNextQuestion:function(){
var crm = questionnaireWeight.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/nextQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -64,7 +68,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.nextQuestion.parentId||''
var questionId = res.content.nextQuestion.questionId||''
var questionNo = res.content.nextQuestion.questionNo||''
medtap.pushWindow('furtherConsultation.html?followUpId='+questionnaireWeight.followUpId + '&questionId='+questionId + '&questionNo='+questionNo+'&parentId='+parentId);
medtap.pushWindow('furtherConsultation.html?followUpId='+questionnaireWeight.followUpId + '&questionId='+questionId + '&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+questionnaireWeight.adminId);
}
})
}
......
......@@ -2,7 +2,9 @@ define(['zepto','medtap'],function($,medtap){
var rukou = {
wechatId:medtap.getRequest('wechatId'),
// 问卷id
followUpId: medtap.getRequest('followUpId'),
followUpId: medtap.getRequest('followUpId'),
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
init:function(){
rukou.getToken()
},
......@@ -20,7 +22,7 @@ define(['zepto','medtap'],function($,medtap){
var info = res.content.wechatUser;
if(info.hasOwnProperty('userId')){
//medtap.pushWindow('index.html?wechatId=' + rukou.wechatId)
window.location.replace('index.html?wechatId=' + rukou.wechatId +'&followUpId='+ rukou.followUpId)
window.location.replace('index.html?wechatId=' + rukou.wechatId +'&followUpId='+ rukou.followUpId+'&adminId='+ rukou.adminId)
}else{
window.location.replace('https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId=' + rukou.wechatId)
}
......
define(['zepto', 'medtap', 'mui'], function($, medtap, mui) {
var submitSuccessfully = {
// 问卷id
followUpId: medtap.getRequest('followUpId'),
followUpId: medtap.getRequest('followUpId'),
init:function(){
$('.tip_contact_service').on('tap',function(){
medtap.pushWindow('../pages/myQuestionnaireList.html?followUpId='+submitSuccessfully.followUpId)
......
......@@ -8,6 +8,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
questionId: medtap.getRequest('questionId'),
// 获取parentId
parentId: medtap.getRequest('parentId')||'',
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
// 奥西替尼药物类型
drugTypesPicker: '',
// 报销的picker
......@@ -357,8 +359,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 获取问题答案
getQuestionAnswer: function(){
var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/getAnswer",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -403,8 +406,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
// 上一题
getPreQuestion:function(){
var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/previousQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -419,17 +423,16 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.previousQuestion.parentId||''
var questionId = res.content.previousQuestion.questionId||''
var questionNo = res.content.previousQuestion.questionNo||''
medtap.pushWindow('furtherConsultation.html?followUpId='+targetedTherapy.followUpId+'&questionId='+questionId+'&questionNo='+questionNo
+'&parentId='+parentId);
+'&parentId='+parentId+'&adminId='+targetedTherapy.adminId);
}
})
},
// 下一题
getNextQuestion:function(data,url){
var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({
url: "https://testdevgw.medtap.cn/operation/followUp/nextQuestion",
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -441,7 +444,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var parentId = res.content.nextQuestion.parentId||''
var questionId = res.content.nextQuestion.questionId||''
var questionNo = res.content.nextQuestion.questionNo||''
medtap.pushWindow(url+'?followUpId='+targetedTherapy.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId);
medtap.pushWindow(url+'?followUpId='+targetedTherapy.followUpId+'&questionId='+questionId+'&questionNo='+questionNo+'&parentId='+parentId+'&adminId='+targetedTherapy.adminId);
}
})
}
......
......@@ -73,7 +73,7 @@
<div class="doctorExplanation">
<p class="content_body_height">处理方案</p>
<div >
<textarea name="" id="content_body_fill" cols="30" rows="3" placeholder="请输入" maxlength="300"></textarea>
<textarea name="" id="content_body_fill" cols="30" rows="5" placeholder="请输入" maxlength="300"></textarea>
</div>
</div>
  </div>
......
......@@ -92,7 +92,7 @@
</div>
<p class="content_body_height">医生对检测结果的说明</p>
<div >
<textarea name="" id="content_body_fill" cols="30" rows="3" placeholder="请输入" maxlength="300"></textarea>
<textarea name="" id="content_body_fill" cols="30" rows="5" placeholder="请输入" maxlength="300"></textarea>
</div>
  </div>
<div class="content_select_no">
......
......@@ -73,7 +73,7 @@
<div class="doctorExplanation">
<p class="content_body_height">医生对检查结果的说明</p>
<div >
<textarea name="" id="content_body_fill" cols="30" rows="3" placeholder="请输入" maxlength="300"></textarea>
<textarea name="" id="content_body_fill" cols="30" rows="5" placeholder="请输入" maxlength="300"></textarea>
</div>
</div>
  </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment