|
@@ -19,7 +19,9 @@ const arrowRight = require("./../images/arrow_right.png")
|
|
listenScroll()
|
|
listenScroll()
|
|
let tabList = [], data_desc=["leaveHospitalDate"],data_asc=[];
|
|
let tabList = [], data_desc=["leaveHospitalDate"],data_asc=[];
|
|
let global_DeptCheckers = {},global_Checkers={4:[],5:[],6:[]},global_CheckerId='',global_CheckerName='',
|
|
let global_DeptCheckers = {},global_Checkers={4:[],5:[],6:[]},global_CheckerId='',global_CheckerName='',
|
|
- global_DeptId='',global_DeptMId="",global_DeptAllId='',global_deptData = {},global_activeTabCode='0',global_TaskCodes=[],global_TaskDept=[];
|
|
|
|
|
|
+ global_DeptId='',global_DeptMId="",global_DeptAllId='',global_deptData = {},global_activeTabCode='0',
|
|
|
|
+ global_TaskCodes=[],global_TaskDept=[],global_deleted=false;
|
|
|
|
+
|
|
let isPlacefile = getCookie('isPlacefile')||1
|
|
let isPlacefile = getCookie('isPlacefile')||1
|
|
/*if(isPlacefile != 1){
|
|
/*if(isPlacefile != 1){
|
|
data_desc=["behospital_date"]
|
|
data_desc=["behospital_date"]
|
|
@@ -181,6 +183,10 @@ $(function() {
|
|
//关闭弹窗事件
|
|
//关闭弹窗事件
|
|
$(".modal-container .close").click(function(){
|
|
$(".modal-container .close").click(function(){
|
|
$(".modal-container").hide();
|
|
$(".modal-container").hide();
|
|
|
|
+ if(global_deleted){ //移除过刷新相关列表
|
|
|
|
+ getCheckerList();
|
|
|
|
+ getTabData(1);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
//科室选择
|
|
//科室选择
|
|
@@ -555,6 +561,7 @@ function bindDeleteEvent(){
|
|
$(".del-pop").hide();
|
|
$(".del-pop").hide();
|
|
});
|
|
});
|
|
$(".del-pop .del-confirm").unbind("click").click(function(){
|
|
$(".del-pop .del-confirm").unbind("click").click(function(){
|
|
|
|
+ global_deleted=true;
|
|
allotTask(1);
|
|
allotTask(1);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -704,9 +711,12 @@ function allotTask(flag){
|
|
post(ywCheckApi.allotTask,param).then(res =>{
|
|
post(ywCheckApi.allotTask,param).then(res =>{
|
|
if(res.data.code == '0'){
|
|
if(res.data.code == '0'){
|
|
global_TaskCodes=[];
|
|
global_TaskCodes=[];
|
|
- getCheckerList();
|
|
|
|
- getTabData(1);
|
|
|
|
- flag&&getTasksList(); //移除时更新已分配任务列表弹窗数据
|
|
|
|
|
|
+ if(flag){
|
|
|
|
+ getTasksList(); //移除时更新已分配任务列表弹窗数据
|
|
|
|
+ }else{ //移除时不刷新核查人和待核查列表,关闭移除弹窗后再更新,避免第1个移除后id被清除
|
|
|
|
+ getCheckerList();
|
|
|
|
+ getTabData(1);
|
|
|
|
+ }
|
|
toast("操作成功");
|
|
toast("操作成功");
|
|
}else{
|
|
}else{
|
|
toast(res.data.msg||'保存分配失败,请重试~');
|
|
toast(res.data.msg||'保存分配失败,请重试~');
|