|
@ -223,6 +223,7 @@ new Vue({
|
|
|
},
|
|
|
//创建随访计划
|
|
|
addFollowupPlan: function(){
|
|
|
debugger
|
|
|
var vm = this
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
@ -254,10 +255,15 @@ new Vue({
|
|
|
layer.msg(res.msg, {
|
|
|
icon: 1
|
|
|
})
|
|
|
|
|
|
if(res.data&&res.data.length>0){
|
|
|
var relationCode = res.data[0].id
|
|
|
var relationCodeArr = []
|
|
|
|
|
|
$.each(res.data, function(i, o){
|
|
|
relationCodeArr.push(o.id)
|
|
|
})
|
|
|
var flag = 1 ;//标记(1随访2临时随访)
|
|
|
window.parent.closeFollowUpLayer(vm.planDetaiId, relationCode, flag)
|
|
|
window.parent.closeFollowUpLayer(vm.planDetaiId, relationCodeArr, flag)
|
|
|
}
|
|
|
}else{
|
|
|
layer.msg(res.msg, {
|
|
@ -298,9 +304,12 @@ new Vue({
|
|
|
icon: 1
|
|
|
})
|
|
|
if(res.data&&res.data.length>0){
|
|
|
var relationCode = res.data
|
|
|
var relationCodeArr = []
|
|
|
$.each(res.data, function(i, o){
|
|
|
relationCodeArr.push(o.id)
|
|
|
})
|
|
|
var flag = 2 ;//标记(1随访2临时随访)
|
|
|
window.parent.closeFollowUpLayer(vm.planDetaiId, relationCode, flag)
|
|
|
window.parent.closeFollowUpLayer(vm.planDetaiId, relationCodeArr, flag)
|
|
|
}
|
|
|
}else{
|
|
|
layer.msg(res.msg, {
|
|
@ -358,8 +367,12 @@ new Vue({
|
|
|
icon: 1
|
|
|
})
|
|
|
if(res.data&&res.data.length>0){
|
|
|
var relationCode = res.data[0].id
|
|
|
window.parent.closeFollowUpLayer(vm.planDetaiId, relationCode)
|
|
|
var relationCodeArr = []
|
|
|
$.each(res.data, function(i, o){
|
|
|
relationCodeArr.push(o.id)
|
|
|
})
|
|
|
var flag = 3 ;//标记(1随访2临时随访)
|
|
|
window.parent.closeFollowUpLayer(vm.planDetaiId, relationCodeArr, flag)
|
|
|
}
|
|
|
}else{
|
|
|
layer.msg(res.msg, {
|