|
@ -1,5 +1,5 @@
|
|
|
var httpData=GetRequest();
|
|
|
(function(){
|
|
|
top.xgLabel=(function(){
|
|
|
new Vue({
|
|
|
el:"#app",
|
|
|
data:{
|
|
@ -14,20 +14,30 @@ var httpData=GetRequest();
|
|
|
tdbq:[],//团队标签
|
|
|
tdbqSelect:[],//团队标签
|
|
|
teamCode:httpData['teamCode'],//医生团队code
|
|
|
signCode:httpData['signCode'],//签约code
|
|
|
newLabel:'',//新团队label
|
|
|
catchArr:{}
|
|
|
},
|
|
|
mounted:function(){
|
|
|
this.getSigndict()
|
|
|
this.getPatient()
|
|
|
this.getAllLabels()
|
|
|
},
|
|
|
methods:{
|
|
|
initPage:function(){
|
|
|
this.serverTypes=vm.catchArr.server;
|
|
|
this.jkqkSelect=vm.catchArr.heath
|
|
|
this.jblxSelect=vm.catchArr.disease
|
|
|
this.tdbqSelect=vm.catchArr.team
|
|
|
},
|
|
|
determine:function(){
|
|
|
var vm=this
|
|
|
var res={
|
|
|
server:this.serverTypes,
|
|
|
heath:this.jkqkSelect,
|
|
|
disease:this.jblxSelect,
|
|
|
team:this.tdbqSelect
|
|
|
}
|
|
|
vm.catchArr=res
|
|
|
top.handleVue.acceptanceRes(res);
|
|
|
this.closeSelect()
|
|
|
},
|
|
@ -35,6 +45,18 @@ var httpData=GetRequest();
|
|
|
top.$('#layui-layer-shade'+top.changeTypeIndex).hide()
|
|
|
top.$('#layui-layer'+top.changeTypeIndex).hide()
|
|
|
},
|
|
|
findPatientSignServerBySignCode:function(){
|
|
|
var vm=this
|
|
|
var params={
|
|
|
signCode:vm.signCode
|
|
|
}
|
|
|
signAPI.findPatientSignServerBySignCode(params).then(function(res){
|
|
|
if(res.status==200){
|
|
|
var _typss=_.pluck(res.data || [],'serverType')
|
|
|
vm.serverTypes=_typss
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 添加团队label
|
|
|
addTeamLabel:function(){
|
|
|
var vm=this
|
|
@ -139,7 +161,7 @@ var httpData=GetRequest();
|
|
|
vm.tdbq[idx].className='optional';
|
|
|
}
|
|
|
},
|
|
|
getAllLabels:function(types){
|
|
|
getAllLabels:function(){
|
|
|
var vm=this
|
|
|
signAPI.allLabels({teamCode:vm.teamCode}).then(function(res){
|
|
|
if(res.status==200){
|
|
@ -153,7 +175,7 @@ var httpData=GetRequest();
|
|
|
vm.tdbq.push(item)
|
|
|
}
|
|
|
})
|
|
|
vm.getPatientLabel(types);//获取已选择类型(非服务类型)
|
|
|
vm.getPatientLabel();//获取已选择类型(非服务类型)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@ -162,7 +184,6 @@ var httpData=GetRequest();
|
|
|
signAPI.getSigndict({teamCode:vm.teamCode}).then(function(res){
|
|
|
if(res.status==200){
|
|
|
vm.fwlx=res.data
|
|
|
// vm.filterSer()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@ -173,15 +194,14 @@ var httpData=GetRequest();
|
|
|
}
|
|
|
signAPI.getPatient(data).then(function(res){
|
|
|
if(res.status==200){
|
|
|
var _typss=_.pluck(res.data.serverTypes || [],'server_type')
|
|
|
// res.data && (vm.teamCode=res.data.jtAdminTeam);
|
|
|
vm.getAllLabels(_typss)
|
|
|
vm.getAllLabels()
|
|
|
}else{
|
|
|
layer.msg(res.msg, {icon: 5})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getPatientLabel:function(types){
|
|
|
getPatientLabel:function(){
|
|
|
var vm=this
|
|
|
var data={
|
|
|
patient:vm.patient
|
|
@ -203,9 +223,10 @@ var httpData=GetRequest();
|
|
|
vm.jkqkSelect=_.pluck(jkqkSelect,'label')
|
|
|
vm.jblxSelect=_.pluck(jblxSelect,'label')
|
|
|
vm.tdbqSelect=_.pluck(tdbqSelect,'label')
|
|
|
setTimeout(function(){
|
|
|
vm.serverTypes = types;//过滤时防止其他标签未加载完成就计算
|
|
|
},100/60)
|
|
|
vm.catchArr.heath=vm.jkqkSelect;
|
|
|
vm.catchArr.disease=vm.jblxSelect;
|
|
|
vm.catchArr.team=vm.tdbqSelect;
|
|
|
vm.findPatientSignServerBySignCode();
|
|
|
}
|
|
|
}else{
|
|
|
layer.msg(res.msg, {icon: 5})
|
|
@ -223,6 +244,7 @@ var httpData=GetRequest();
|
|
|
fwlx[i].className='active'
|
|
|
}
|
|
|
}
|
|
|
if(fwlx[i].className=='') fwlx[i].className='optional'
|
|
|
if(fwlx[i].className==undefined) fwlx[i].className='optional'
|
|
|
}
|
|
|
_.map(vm.serverTypes, function(item, index) {
|