Commit ec23b4e6 by zujiaozhang

'测试crm修改'

parent d7df2e16
......@@ -90,6 +90,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
$('.next').on('tap',function(){
if(discomfort.flag){
var dataHas = {
"adminId":discomfort.adminId,
"questionId":discomfort.questionId,
"parentId":discomfort.parentId,
"answer":{
......@@ -102,6 +103,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
discomfort.getNextQuestion(dataHas)
}else {
var dataNo = {
"adminId":discomfort.adminId,
"questionId":discomfort.questionId,
"parentId":discomfort.parentId,
"answer":{
......@@ -134,13 +136,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = discomfort.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId": discomfort.followUpId,
"questionId": discomfort.questionId,
"questionId": discomfort.questionId,
"adminId":discomfort.adminId,
},
success: function(res) {
console.log(res)
......@@ -274,14 +277,15 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = discomfort.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"questionId":discomfort.questionId,
"questionNo":discomfort.questionNo,
"followUpId":discomfort.followUpId,
"followUpId":discomfort.followUpId,
"adminId":discomfort.adminId,
},
success: function(res) {
console.log(res)
......@@ -298,7 +302,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var crm = discomfort.adminId==''? '':'/crm'
console.log(discomfort.checks)
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -377,7 +381,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
submitQuestionAnswer: function(data){
var crm = discomfort.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/completeQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/completeQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -224,6 +224,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}
var data = {
"adminId":discomfortGeneralPage.adminId,
"questionId":discomfortGeneralPage.questionId,
'parentId':discomfortGeneralPage.parentId,
"answer":{
......@@ -319,13 +320,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId": discomfortGeneralPage.followUpId,
"questionId": discomfortGeneralPage.questionId,
"adminId":discomfortGeneralPage.adminId,
},
success: function(res) {
if(!res.success) return medtap.winPop('获取数据失败')
......@@ -348,7 +350,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -356,6 +358,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"questionId":discomfortGeneralPage.questionId,
"questionNo":discomfortGeneralPage.questionNo,
"followUpId":discomfortGeneralPage.followUpId,
"adminId":discomfortGeneralPage.adminId,
},
success: function(res) {
console.log(res)
......@@ -432,7 +435,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){
var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -505,7 +508,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
submitQuestionAnswer: function(data){
var crm = discomfortGeneralPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/completeQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/completeQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -77,6 +77,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
if(examination.flag){
console.log(examination.checks)
var dataHas = {
"adminId":examination.adminId,
"parentId":examination.parentId,
"questionId":examination.questionId,
"answer":{
......@@ -90,6 +91,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}
if(!examination.flag) {
var dataNo = {
"adminId":examination.adminId,
"parentId":examination.parentId,
"questionId":examination.questionId,
"answer":{
......@@ -120,13 +122,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = examination.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId": examination.followUpId,
"questionId": examination.questionId,
"questionId": examination.questionId,
"adminId":examination.adminId,
},
success: function(res) {
console.log(res)
......@@ -201,14 +204,15 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = examination.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"questionId":examination.questionId,
"questionNo":examination.questionNo,
"followUpId":examination.followUpId,
"followUpId":examination.followUpId,
"adminId":examination.adminId,
},
success: function(res) {
console.log(res)
......@@ -229,7 +233,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var crm = examination.adminId==''? '':'/crm'
console.log(data)
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -164,7 +164,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
getWechatTicket: function() {
medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET',
async: false,
data: {
......@@ -249,7 +249,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//上传图片
upLoadImg: function(serverId, localId) {
$.ajax({
url: 'https://gateway.medtap.cn/common/uploadWechatFile',
url: 'https://testdevgw.medtap.cn/common/uploadWechatFile',
type: 'POST',
async: false,
data: {
......@@ -284,7 +284,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -334,7 +334,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -357,7 +357,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data){
var crm = furtherConsultation.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -74,6 +74,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
}
var dataHas = {
"adminId":geneDetection.adminId,
"questionId":geneDetection.questionId,
"parentId":geneDetection.parentId,
"answer":{
......@@ -89,6 +90,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
geneDetection.getNextQuestion(dataHas)
}else{
var dataNo = {
"adminId":geneDetection.adminId,
"questionId":geneDetection.questionId,
"parentId":geneDetection.parentId,
"answer":{
......@@ -174,7 +176,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
getWechatTicket: function() {
medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET',
async: false,
data: {
......@@ -258,7 +260,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//上传图片
upLoadImg: function(serverId, localId) {
$.ajax({
url: 'https://gateway.medtap.cn/common/uploadWechatFile',
url: 'https://testdevgw.medtap.cn/common/uploadWechatFile',
type: 'POST',
async: false,
data: {
......@@ -291,13 +293,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId": geneDetection.followUpId,
"questionId": geneDetection.questionId,
"questionId": geneDetection.questionId,
"adminId":geneDetection.adminId,
},
success: function(res) {
console.log(res)
......@@ -346,7 +349,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -354,6 +357,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"questionId":geneDetection.questionId,
"questionNo":geneDetection.questionNo,
"followUpId":geneDetection.followUpId,
"adminId":geneDetection.adminId,
},
success: function(res) {
console.log(res)
......@@ -395,7 +399,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){
var crm = geneDetection.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -69,6 +69,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 获取用户填写的数据
generalPage.dataText = $('#content_body_fill').val()
var data = {
"adminId":generalPage.adminId,
"questionId":generalPage.questionId,
'parentId':generalPage.parentId,
"answer":{
......@@ -91,7 +92,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
},
getWechatTicket: function() {
medtap.submitAjax({
url: 'https://gateway.medtap.cn/wechat/lung/fetchWechatTicket',
url: 'https://testdevgw.medtap.cn/wechat/lung/fetchWechatTicket',
type: 'GET',
async: false,
data: {
......@@ -171,7 +172,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
//上传图片
upLoadImg: function(serverId, localId) {
$.ajax({
url: 'https://gateway.medtap.cn/common/uploadWechatFile',
url: 'https://testdevgw.medtap.cn/common/uploadWechatFile',
type: 'POST',
async: false,
data: {
......@@ -204,13 +205,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId": generalPage.followUpId,
"questionId": generalPage.questionId,
"adminId":generalPage.adminId,
},
success: function(res) {
if(!res.success) return medtap.winPop('获取数据失败')
......@@ -239,7 +241,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -247,6 +249,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
"questionId":generalPage.questionId,
"questionNo":generalPage.questionNo,
"followUpId":generalPage.followUpId,
"adminId":generalPage.adminId,
},
success: function(res) {
console.log(res)
......@@ -287,7 +290,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){
var crm = generalPage.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -17,7 +17,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
localStorage.wxLungToken = '';
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/auth/token',
url: 'https://testdevgw.medtap.cn/user/auth/token',
type: 'POST',
async: false,
contentType: 'application/json',
......@@ -41,12 +41,13 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
getMyquestionnaire: function(){
var crm = index.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+ crm +'/followUpUser',
url: 'https://testdevgw.medtap.cn/operation/followUp'+ crm +'/followUpUser',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId":index.followUpId
"followUpId":index.followUpId,
"adminId":index.adminId
},
success: function(res) {
console.log(res)
......
define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var myQuestionnaireList = {
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
// 问卷id
followUpId: '',
init:function(){
......@@ -17,12 +19,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 获取问卷列表
getQuestionnaireList:function(){
medtap.submitAjax({
url: "https://gateway.medtap.cn/operation/followUp/followUpList",
url: "https://testdevgw.medtap.cn/operation/followUp/followUpList",
type: 'post',
async: false,
contentType: 'application/json',
data: {
"adminId": myQuestionnaireList.adminId
},
success: function(res) {
console.log(res)
......@@ -47,7 +49,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 点击进入详情
$('.my_questionnaire_box').on('tap','.my_questionnaire_list',function(){
myQuestionnaireList.followUpId = $(this).attr('data-id')
medtap.pushWindow('../pages/questionnaireDetails.html?followUpId='+myQuestionnaireList.followUpId)
medtap.pushWindow('../pages/questionnaireDetails.html?followUpId='+myQuestionnaireList.followUpId+'&adminId='+myQuestionnaireList.adminId)
})
}
})
......
......@@ -39,6 +39,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
return
}
var dataHas = {
"adminId":otherTreatment.adminId,
"parentId":otherTreatment.parentId,
"questionId":otherTreatment.questionId,
"answer":{
......@@ -52,6 +53,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
otherTreatment.getNextQuestion(dataHas)
}else{
var dataNo = {
"adminId":otherTreatment.adminId,
"parentId":otherTreatment.parentId,
"questionId":otherTreatment.questionId,
"answer":{
......@@ -109,13 +111,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId": otherTreatment.followUpId,
"questionId": otherTreatment.questionId,
"adminId":otherTreatment.adminId,
},
success: function(res) {
console.log(res)
......@@ -145,14 +148,15 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"questionId":otherTreatment.questionId,
"questionNo":otherTreatment.questionNo,
"followUpId":otherTreatment.followUpId,
"followUpId":otherTreatment.followUpId,
"adminId":otherTreatment.adminId,
},
success: function(res) {
console.log(res)
......@@ -168,7 +172,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data){
var crm = otherTreatment.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -28,7 +28,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = questionnaireWeight.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
......@@ -51,11 +51,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(){
var crm = questionnaireWeight.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"adminId":questionnaireWeight.adminId,
"parentId":questionnaireWeight.parentId,
"questionId":'1',
"answer":{"weight":questionnaireWeight.weight,"height":questionnaireWeight.height},
......
......@@ -11,7 +11,7 @@ define(['zepto','medtap'],function($,medtap){
checkUser:function(){
medtap.loading(1);
medtap.submitAjax({
url:'https://gateway.medtap.cn/wechat/user/getWechatUser',
url:'https://testdevgw.medtap.cn/wechat/user/getWechatUser',
type:'GET',
async: false,
data:{
......@@ -33,7 +33,7 @@ define(['zepto','medtap'],function($,medtap){
localStorage.wxLungToken = '';
medtap.loading(1);
medtap.submitAjax({
url: 'https://gateway.medtap.cn/user/auth/token',
url: 'https://testdevgw.medtap.cn/user/auth/token',
type: 'POST',
async: false,
contentType: 'application/json',
......
......@@ -2,9 +2,11 @@ define(['zepto', 'medtap', 'mui'], function($, medtap, mui) {
var submitSuccessfully = {
// 问卷id
followUpId: medtap.getRequest('followUpId'),
// 修改人员id
adminId: medtap.getRequest('adminId')||'',
init:function(){
$('.tip_contact_service').on('tap',function(){
medtap.pushWindow('../pages/myQuestionnaireList.html?followUpId='+submitSuccessfully.followUpId)
medtap.pushWindow('../pages/myQuestionnaireList.html?followUpId='+submitSuccessfully.followUpId+'&adminId='+submitSuccessfully.adminId)
})
}
}
......
......@@ -96,6 +96,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
var hasUrl = 'otherTreatment.html'
// 选择有的时候的数据
var dataHas = {
"adminId":targetedTherapy.adminId,
"parentId":targetedTherapy.parentId,
"questionId":targetedTherapy.questionId,
"answer":{
......@@ -131,6 +132,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
// 选择无的时候的数据
var noUrl = 'examination.html'
var dataNo = {
"adminId":targetedTherapy.adminId,
"parentId":targetedTherapy.parentId,
"questionId":targetedTherapy.questionId,
"answer":{
......@@ -195,7 +197,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
initCityl: function() {
medtap.loading(1);
$.ajax({
url: "https://gateway.medtap.cn/common/listAreaV0",
url: "https://testdevgw.medtap.cn/common/listAreaV0",
data: {},
type: 'get',
async: true,
......@@ -370,13 +372,14 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getQuestionAnswer: function(){
var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/getAnswer',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/getAnswer',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId": targetedTherapy.followUpId,
"questionId": targetedTherapy.questionId,
"adminId":targetedTherapy.adminId,
},
success: function(res) {
console.log(res)
......@@ -421,14 +424,15 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getPreQuestion:function(){
var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/previousQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/previousQuestion',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"questionId":targetedTherapy.questionId,
"questionNo":targetedTherapy.questionNo,
"followUpId":targetedTherapy.followUpId,
"followUpId":targetedTherapy.followUpId,
"adminId":targetedTherapy.adminId,
},
success: function(res) {
console.log(res)
......@@ -445,7 +449,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) { 
getNextQuestion:function(data,url){
var crm = targetedTherapy.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+crm+'/nextQuestion',
url: 'https://testdevgw.medtap.cn/operation/followUp'+crm+'/nextQuestion',
type: 'post',
async: false,
contentType: 'application/json',
......
......@@ -54,6 +54,13 @@
<div class="que_title que_title_isHide">
检验检查情况
</div>
<div class="question6"></div>
<div class="question7"></div>
<div class="question8"></div>
<div class="question9"></div>
<div class="question10"></div>
<div class="question11"></div>
<div class="question12"></div>
</div>
<div class="question_five question">
......@@ -62,6 +69,25 @@
<div class="que_title">
不适症状
</div>
<div class="question15"></div>
<div class="question16"></div>
<div class="question17"></div>
<div class="question18"></div>
<div class="question19"></div>
<div class="question20"></div>
<div class="question21"></div>
<div class="question22"></div>
<div class="question23"></div>
<div class="question24"></div>
<div class="question25"></div>
<div class="question26"></div>
<div class="question27"></div>
<div class="question28"></div>
<div class="question29"></div>
<div class="question30"></div>
<div class="question31"></div>
<div class="question32"></div>
<div class="question33"></div>
</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