|
@ -193,6 +193,14 @@ top.handleVue=new Vue({
|
|
|
if(res.status == 200) {
|
|
|
vm.patientInfo = res.data
|
|
|
vm.signInfo.patientIDcard = res.data.idCard
|
|
|
if(vm.doctorType == 2) {
|
|
|
vm.signInfo.doctorName = res.data.jtSign.doctorName
|
|
|
vm.signInfo.doctor = res.data.jtSign.doctor
|
|
|
}
|
|
|
if(vm.doctorType == 3) {
|
|
|
vm.signInfo.healthDoctorName = res.data.jtSign.doctorHealthName
|
|
|
vm.signInfo.healthDoctor = res.data.jtSign.doctorHealth
|
|
|
}
|
|
|
} else {
|
|
|
showErrorMessage(res.msg);
|
|
|
}
|
|
@ -399,7 +407,7 @@ top.handleVue=new Vue({
|
|
|
if(!vm.justDoc) {
|
|
|
vm.justDoc = vm.signInfo.doctorName
|
|
|
}
|
|
|
vm.warnMsg = "去年居民续签的全科医生" + vm.justDoc + "已不在您的团队,请重新选择一位全科医生"
|
|
|
vm.warnMsg = "去年签约的全科医生" + vm.justDoc + "已不在您的团队,请重新选择一位全科医生"
|
|
|
vm.justDoc = null
|
|
|
vm.signInfo.doctor = null
|
|
|
vm.signInfo.doctorName = null
|
|
@ -408,7 +416,7 @@ top.handleVue=new Vue({
|
|
|
if(!vm.justHDoc) {
|
|
|
vm.justHDoc = vm.signInfo.healthDoctorName
|
|
|
}
|
|
|
vm.warnMsg = "去年居民续签的健管师" + vm.justHDoc + "已不在您的团队,请重新选择一位健管师"
|
|
|
vm.warnMsg = "去年签约的健管师" + vm.justHDoc + "已不在您的团队,请重新选择一位健管师"
|
|
|
vm.justHDoc = null
|
|
|
vm.signInfo.healthDoctor = null
|
|
|
vm.signInfo.healthDoctorName = null
|
|
@ -441,6 +449,10 @@ top.handleVue=new Vue({
|
|
|
this.isShowList4 = false;
|
|
|
this.isShowList3 = !this.isShowList3;
|
|
|
} else {
|
|
|
if(!this.signInfo.adminTeamCode) {
|
|
|
showWarningMessage("请先选择签约团队")
|
|
|
return false;
|
|
|
}
|
|
|
this.isShowList1 = false;
|
|
|
this.isShowList2 = false;
|
|
|
this.isShowList3 = false;
|
|
@ -562,13 +574,22 @@ top.handleVue=new Vue({
|
|
|
});
|
|
|
},
|
|
|
sign: function() {// type:1签约 2拒签
|
|
|
if(this.signInfo.type == 1 && ((this.doctorType == 2 && !this.signInfo.healthDoctor) || (this.doctorType == 3 && !this.signInfo.doctor) || !this.signInfo.sevId || (!this.signInfo.disease && !this.signInfo.healthLabel && !this.signInfo.customLabel))) {
|
|
|
if(this.signInfo.type == 1 && (!this.signInfo.expenses || (this.doctorType == 2 && !this.signInfo.healthDoctor) || (this.doctorType == 3 && !this.signInfo.doctor) || !this.signInfo.sevId || (!this.signInfo.disease && !this.signInfo.healthLabel && !this.signInfo.customLabel))) {
|
|
|
showWarningMessage("请将填写完整签约信息!");
|
|
|
return false;
|
|
|
}
|
|
|
var vm = this,
|
|
|
loadding = layer.load(0, {shade: false});
|
|
|
if (httpData.status == 0) {
|
|
|
var param = vm.signInfo
|
|
|
if(vm.doctorType == 2) {
|
|
|
param.doctor = null
|
|
|
param.doctorName = null
|
|
|
}
|
|
|
if(vm.doctorType == 3) {
|
|
|
param.doctorHealth = null
|
|
|
param.doctorHealthName = null
|
|
|
}
|
|
|
signAPI.sign(vm.signInfo).then(function(res) {
|
|
|
layer.close(loadding)
|
|
|
if(res.status == 200) {
|