添加新需求及修改BUG(0423)等

master
hujl 4 years ago
parent a7da3895dd
commit fc0d71a13e

@ -1,47 +0,0 @@
package com.emr.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @Author:hjl
* @Date:Creatid in 1:28 2019/4/17
* @Description:
*/
@Controller
@RequestMapping("/menuPower")
public class Power_MenuController {
// @Autowired
// private Power_MenuService powerMenuService;
//
// @Autowired
// private Power_UserService powerUserService;
//
//
// @RequestMapping("/powerMenuList")
// @ResponseBody
// public Msg list() {
// List<Power_Menu> list = powerMenuService.queryAllPowerMenu();
// return Msg.success().add("list",list);
// }
//
// @RequestMapping("/indexMenu")
// @ResponseBody
// public Msg indexMenu() {
// Power_User user = (Power_User) ActionScopeUtils.getSessionAttribute( Constant.CURRENT_USER);
// List<Power_Menu> list = null;
// List<Power_Detailed_Menu> menuList = null;
// List<Power_Menu_User> listPower = null;
// if (user.getRoleId().equals(0)) {
// list = powerMenuService.queryAllPowerMenu();
// return Msg.success().add("listRole", list);
// } else if(user.getRoleId().equals(-100)){
// listPower = powerMenuService.queryPoswerMenuByUserId(user.getUserId());
// return Msg.success().add("listPower", listPower);
// } else{
// menuList = powerMenuService.queryMenuViewByUserId(user.getUserId());
// return Msg.success().add("listUser", menuList);
// }
// }
}

@ -28,7 +28,7 @@ public class TempHandleWzController {
@RequestMapping("selectByInpNoAndVisitId")
@ResponseBody
public List<Archive_Master> selectByInpNoAndVisitId(Archive_Master_Vo archive_master_vo){
public List<Archive_Master_Vo> selectByInpNoAndVisitId(Archive_Master_Vo archive_master_vo){
return this.archiveMasterService.selectByUnfile(archive_master_vo);
}

@ -123,7 +123,7 @@ public class VCountController {
String tableThNames = "名字,入院科室,入院日期,出院科室,出院日期,主管医生";
String fieldCns = "name,deptAdmissionTo,admissionDateTime,deptName,dischargeDateTime,doctorInCharge";
//构造excel的数据
List<Archive_Master> list = archiveMasterService.selectByUnfile(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterService.selectByUnfile(archiveMasterVo);
Emr_Dictionary dic = new Emr_Dictionary();
dic.setEffective(1);
dic.setTypecode("dept_code");
@ -158,7 +158,7 @@ public class VCountController {
exportExcelUtil.expordExcel(tableThNames, fieldCns, list, fileName, response);
}
@ResponseBody
/*@ResponseBody
@RequestMapping(value = "/exportExcel3")
public void exportExcel3(HttpServletResponse response, Archive_Master_Vo archiveMasterVo) throws Exception {
String tableThNames = "名字,入院科室,入院日期,出院科室,出院日期,主管医生,推迟天数";
@ -197,16 +197,15 @@ public class VCountController {
response.setContentType("application/ms-excel;charset=gbk");
//导出excel的操作
exportExcelUtil.expordExcel(tableThNames, fieldCns, list, fileName, response);
}
}*/
//获取完整信息
@ResponseBody
/*@ResponseBody
@RequestMapping(value = "/HomepageDic")
public String HomepageDic(HttpServletRequest request, HttpServletResponse response) {
String result="";
try {
String endpoint = "http://120.27.212.36:9999/filing/services/HomepageDictionary?wsdl";
//String endpoint = "http://localhost:8080/ca3/services/caSynrochnized?wsdl";
//直接引用远程的wsdl文件
@ -238,7 +237,7 @@ public class VCountController {
}
return result;
}
}*/
}

@ -277,90 +277,122 @@ public class beHospitaledController {
if(!archiveMaster.getId().equals("")&&!archiveMaster.equals(null)) {
Archive_Master obj=archiveMasterService.selectById(archiveMaster.getId());
if(obj!=null) {
//如果是医生提交判断医生是否有缺陷未处理,如果是护士提交判断护士是否有缺陷未处理
//查询该病案号缺陷,如果有医生就退回医生如果有护士则退回护士否则不退回提示
Emr_Fault_Detail entityFault=new Emr_Fault_Detail();
entityFault.setArchiveDetailId(archiveMaster.getId());
List<Emr_Fault_Detail> faultList=emrFaultDetailService.selectByArchiveId(entityFault);
int doctorFlagNum=0;
int nurseFlagNum=0;
if(faultList!=null && faultList.size()>0){
//1医生 2护士
for (int k = 0; k < faultList.size(); k++) {
if ("1".equals(faultList.get(k).getBackFlag()) || "5".equals(faultList.get(k).getBackFlag())) {
doctorFlagNum+=1;
}
if ("2".equals(faultList.get(k).getBackFlag()) || "6".equals(faultList.get(k).getBackFlag())) {
nurseFlagNum+=1;
}
}
}
//修改病案归档状态
if (archiveMaster.getCmtDoctor()==1) {
//医生提交(医生和护士同时提交后,归档状态变更为:提交)
if(obj.getCmtNurse()==1){
archiveMaster.setArchivestate("提交");
archiveMaster.setCmtNurse(1);
}
archiveMaster.setCmtDoctor(1);
archiveMaster.setDoctorName(username);
archiveMaster.setCmtDoctorDate(nowTime);
//添加医生备注记录
emrStaffRemark.setTypeFlag(0);
List<Emr_Staff_Remark> list = emrStaffRemarkService.selectByCol(emrStaffRemark);
if(list!=null && list.size()>0){
//修改
list.get(0).setUpdateTime(nowTime);
list.get(0).setUpdater(username);
list.get(0).setContent(archiveMasterVo.getContent());
list.get(0).setUpdateTime(nowTime);
bol=emrStaffRemarkService.updateByClo(list.get(0));
if(doctorFlagNum==0) {
//医生提交(医生和护士同时提交后,归档状态变更为:提交)
if (obj.getCmtNurse() == 1) {
archiveMaster.setArchivestate("提交");
archiveMaster.setCmtNurse(1);
}
archiveMaster.setCmtDoctor(1);
archiveMaster.setDoctorName(username);
archiveMaster.setCmtDoctorDate(nowTime);
//添加医生备注记录
emrStaffRemark.setTypeFlag(0);
List<Emr_Staff_Remark> list = emrStaffRemarkService.selectByCol(emrStaffRemark);
if (list != null && list.size() > 0) {
//修改
list.get(0).setUpdateTime(nowTime);
list.get(0).setUpdater(username);
list.get(0).setContent(archiveMasterVo.getContent());
list.get(0).setUpdateTime(nowTime);
bol = emrStaffRemarkService.updateByClo(list.get(0));
} else {
//插入
emrStaffRemark.setCreater(username);
emrStaffRemark.setCreateTime(nowTime);
bol = emrStaffRemarkService.insertClo(emrStaffRemark);
}
//following表中添加归档医生提交操作记录
archive_master_following.setFollowingType("1");//followingType=1 归档医生提交
archive_master_following.setFollowingContent("主管医生提交");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
bol = archive_master_followingService.insertSelective(archive_master_following);
}else{
//插入
emrStaffRemark.setCreater(username);
emrStaffRemark.setCreateTime(nowTime);
bol=emrStaffRemarkService.insertClo(emrStaffRemark);
result = "医生提交失败,存在缺陷未处理!";
}
//following表中添加归档医生提交操作记录
archive_master_following.setFollowingType("1");//followingType=1 归档医生提交
archive_master_following.setFollowingContent("主管医生提交");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
bol = archive_master_followingService.insertSelective(archive_master_following);
} else if (archiveMaster.getCmtNurse()==1) {
//护士提交(医生和护士同时提交后,归档状态变更为:提交)
if (obj.getCmtDoctor()==1) {
archiveMaster.setArchivestate("提交");
archiveMaster.setCmtDoctor(1);
}
archiveMaster.setCmtNurse(1);
archiveMaster.setNurseName(username);
archiveMaster.setCmtNurseDate(nowTime);
//添加护士备注记录
emrStaffRemark.setTypeFlag(1);
List<Emr_Staff_Remark> list = emrStaffRemarkService.selectByCol(emrStaffRemark);
if(list!=null && list.size()>0){
//修改
list.get(0).setUpdater(username);
list.get(0).setUpdateTime(nowTime);
list.get(0).setContent(archiveMasterVo.getContent());
bol=emrStaffRemarkService.updateByClo(list.get(0));
if(nurseFlagNum==0) {
//护士提交(医生和护士同时提交后,归档状态变更为:提交)
if (obj.getCmtDoctor() == 1) {
archiveMaster.setArchivestate("提交");
archiveMaster.setCmtDoctor(1);
}
archiveMaster.setCmtNurse(1);
archiveMaster.setNurseName(username);
archiveMaster.setCmtNurseDate(nowTime);
//添加护士备注记录
emrStaffRemark.setTypeFlag(1);
List<Emr_Staff_Remark> list = emrStaffRemarkService.selectByCol(emrStaffRemark);
if (list != null && list.size() > 0) {
//修改
list.get(0).setUpdater(username);
list.get(0).setUpdateTime(nowTime);
list.get(0).setContent(archiveMasterVo.getContent());
bol = emrStaffRemarkService.updateByClo(list.get(0));
} else {
//插入
emrStaffRemark.setCreater(username);
emrStaffRemark.setCreateTime(nowTime);
bol = emrStaffRemarkService.insertClo(emrStaffRemark);
}
//following表中添加归档护士提交操作记录
archive_master_following.setFollowingType("3");
archive_master_following.setFollowingContent("护士长提交");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
bol = archive_master_followingService.insertSelective(archive_master_following);
}else{
//插入
emrStaffRemark.setCreater(username);
emrStaffRemark.setCreateTime(nowTime);
bol=emrStaffRemarkService.insertClo(emrStaffRemark);
result = "护士提交失败,存在缺陷未处理!";
}
//following表中添加归档护士提交操作记录
archive_master_following.setFollowingType("3");
archive_master_following.setFollowingContent("护士长提交");
archive_master_following.setHandleTime(nowTime);
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
bol = archive_master_followingService.insertSelective(archive_master_following);
}
if(bol==1) {
result = "成功";
archiveMaster.setIsscaned(archiveMasterVo.getIsscaned());
bol = archiveMasterService.updateByClo(archiveMaster);
}else{
result = "备注失败";
if(archiveMaster.getCmtDoctor()==1) {
result = "归档医生提交";
}else if(archiveMaster.getCmtNurse()==1){
result = "归档护士提交";
}
if(bol==1){
result+="成功!";
}else{
result+= "失败!";
}
}
}else{
result = "病案不存在!";
result = "病案不存在!";
}
}else{
result="病案不存在";
result="病案不存在!";
}
return result;
}

@ -67,7 +67,7 @@ public class commitController {
String tableThNames = "病历清单id,住院号,住院次数,名字,性别,身份证,出院科室,出院日期,主管医生,状态,医生是否提交,医生,医生提交日期,护士是否提交,护士,护士提交日期,是否死亡";
String fieldCns = "id,inpNo,visitId,name,sex,idNo,deptName,dischargeDateTime,doctorInCharge,archivestate,cmtDoctor,doctorName,cmtDoctorDate,cmtNurse,nurseName,cmtDurseDate,deathFlag";
//构造excel的数据
List<Archive_Master> list = archiveMasterService.selectByCmtCol(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterService.selectByCmtCol(archiveMasterVo);
//文件名
String fileName = "科主任审核" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";

@ -342,7 +342,6 @@ public class faultController {
entity.setDealFlag("0");
entity.setDealPerson("");
entity.setDealTime("");
}
//修改
bol = emrFaultDetailService.updateCloByPrimaryKey(entity);

@ -124,6 +124,7 @@ public class inHospitalController {
return archiveDetailService.selectByClo(archiveDetailVo);
}
//@OptionalLog(methods = "调用单个作废")
@ResponseBody
@RequestMapping(value = "/getAssortdetail")
public OffsetLimitPage getAssortdetail(HttpServletResponse response, Archive_Detail_Vo archiveDetailVo, Integer offset, Integer limit) throws Exception {
@ -132,6 +133,14 @@ public class inHospitalController {
return result;
}
//@OptionalLog(methods = "调用单个作废")
@ResponseBody
@RequestMapping(value = "/getSourceByClo")
public List<Archive_Detail_Vo> getSourceByClo(HttpServletResponse response, Archive_Detail_Vo archiveDetailVo) throws Exception {
//分段详情来源列表
return archiveDetailService.sourceByClo(archiveDetailVo);
}
@OptionalLog(methods = "调用单个作废")
@ResponseBody
@RequestMapping(value = "/updateState")

@ -124,7 +124,7 @@ public class lastVerifyController {
List<Emr_Fault_Detail> list=emrFaultDetailService.selectByArchiveId(entityFault);
int doctorFlagNum=0;
int nurseFlagNum=0;
if(list.size()>0){
if(list!=null && list.size()>0){
// 从session获取用户名
Subject currentUser = SecurityUtils.getSubject();
Session session = currentUser.getSession();
@ -160,7 +160,6 @@ public class lastVerifyController {
archive_master_following.setHandleId(username);
archive_master_following.setHandleName(handleName);
archive_master_followingService.insertSelective(archive_master_following);
}
if(nurseFlagNum>0){
archiveMaster.setCmtNurse(0);
@ -176,7 +175,6 @@ public class lastVerifyController {
archive_master_followingService.insertSelective(archive_master_following);
}
//修改复审内容
if (bol == 1) {
//判断缺陷记录是否有医生或护士有则退回状态改1
@ -187,6 +185,10 @@ public class lastVerifyController {
bol = emrFaultDetailService.insertSel(emrFaultDetail);
}
}
if(doctorFlagNum==0 && nurseFlagNum==0){
archiveMaster.setCmtDoctor(1);
archiveMaster.setCmtNurse(1);
}
bol = archiveMasterService.updateByClo(archiveMaster);
if (emrFaultDetail.getState().equals("复审退回")){
//2021-01-30 following表中添加病案室退回操作记录

@ -56,7 +56,7 @@ public class unfileMedicalController {
String tableThNames = "病历清单id,住院号,住院次数,名字,性别,身份证,入院科室,入院日期,出院科室,出院日期,主管医生,状态,医生是否提交,医生,医生提交日期,护士是否提交,护士,护士提交日期,电子病历医生提交,电子病历护士提交,是否死亡";
String fieldCns = "id,inpNo,visitId,name,sex,idNo,deptAdmissionTo,admissionDateTime,deptName,dischargeDateTime,doctorInCharge,archivestate,cmtDoctor,doctorName,cmtDoctorDate,cmtNurse,nurseName,cmtDurseDate,emrDoctorCmt,emrNureCmt,deathFlag";
//构造excel的数据
List<Archive_Master> list = archiveMasterService.selectByUnfile(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterService.selectByUnfile(archiveMasterVo);
//文件名
String fileName = "未归档病历列表" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";

@ -31,6 +31,8 @@ public interface Archive_DetailMapper {
List<Archive_Detail_Vo> detailByClo(Archive_Detail_Vo record);
List<Archive_Detail_Vo> sourceByClo(Archive_Detail_Vo record);
List<Archive_Detail> selectByIdStr(Archive_Detail record);
List<Archive_Detail> selectByCol2(Archive_Detail record);

@ -21,7 +21,7 @@ public interface Archive_MasterMapper {
List<Archive_Master_Vo> selectByLast(Archive_Master_Vo record);
List<Archive_Master> selectByUnfile(Archive_Master_Vo record);
List<Archive_Master_Vo> selectByUnfile(Archive_Master_Vo record);
//List<Archive_Master> selectByUnfile2(Archive_Master_Vo record);
/**
@ -29,9 +29,9 @@ public interface Archive_MasterMapper {
* @param record
* @return
*/
List<Archive_Master> sel7DayByCol(Archive_Master_Vo record);
//List<Archive_Master> sel7DayByCol(Archive_Master_Vo record);
List<Archive_Master> selectByCmtCol(Archive_Master_Vo record);
List<Archive_Master_Vo> selectByCmtCol(Archive_Master_Vo record);
List<Archive_Master> bbSel(Archive_Master_Vo record);
@ -43,7 +43,9 @@ public interface Archive_MasterMapper {
List<Archive_Master> getDoctorInCharge(Archive_Master record);
//查询病案室操作记录
/**
*
*/
List<Archive_Master_Vo> selectHandleDetail(Archive_Master_Vo record);
//查询超期天数列表

@ -31,6 +31,13 @@ public interface Archive_DetailService {
* @return
*/
OffsetLimitPage detailByClo(Archive_Detail_Vo record, Integer offset, Integer limit);
/**
*
*
* @param record
* @return
*/
List<Archive_Detail_Vo> sourceByClo(Archive_Detail_Vo record);
/**
*

@ -56,7 +56,7 @@ public interface Archive_MasterService {
* @param archiveMasterVo
* @return
*/
List<Archive_Master> selectByUnfile(Archive_Master_Vo archiveMasterVo);
List<Archive_Master_Vo> selectByUnfile(Archive_Master_Vo archiveMasterVo);
/**
*
*
@ -69,7 +69,7 @@ public interface Archive_MasterService {
* @param record
* @return
*/
List<Archive_Master> sel7DayByCol(Archive_Master_Vo record);
// List<Archive_Master> sel7DayByCol(Archive_Master_Vo record);
/**
* '','退'
@ -77,7 +77,7 @@ public interface Archive_MasterService {
* @param archiveMasterVo
* @return
*/
List<Archive_Master> selectByCmtCol(Archive_Master_Vo archiveMasterVo);
List<Archive_Master_Vo> selectByCmtCol(Archive_Master_Vo archiveMasterVo);
/**
* '','退'

@ -44,6 +44,11 @@ public class Archive_DetailServiceImpl implements Archive_DetailService {
return new OffsetLimitPage((Page) list);
}
@Override
public List<Archive_Detail_Vo> sourceByClo(Archive_Detail_Vo record) {
return archiveDetailMapper.sourceByClo(record);
}
@Override
public int updateCloById(Archive_Detail record) {
return archiveDetailMapper.updateCloById(record);

@ -89,7 +89,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
}
@Override
public List<Archive_Master> selectByUnfile(Archive_Master_Vo archiveMasterVo) {
public List<Archive_Master_Vo> selectByUnfile(Archive_Master_Vo archiveMasterVo) {
return archiveMasterMapper.selectByUnfile(archiveMasterVo);
}
@ -98,13 +98,13 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
return archiveMasterMapper.selectByUnfile2(archiveMasterVo);
}*/
@Override
/* @Override
public List<Archive_Master> sel7DayByCol(Archive_Master_Vo archiveMasterVo) {
return archiveMasterMapper.sel7DayByCol(archiveMasterVo);
}
}*/
@Override
public List<Archive_Master> selectByCmtCol(Archive_Master_Vo archiveMasterVo) {
public List<Archive_Master_Vo> selectByCmtCol(Archive_Master_Vo archiveMasterVo) {
return archiveMasterMapper.selectByCmtCol(archiveMasterVo);
}
@ -150,7 +150,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
@Override
public OffsetLimitPage selectByUnfile(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<Archive_Master> list = archiveMasterMapper.selectByUnfile(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterMapper.selectByUnfile(archiveMasterVo);
JSONArray powerUsers = powerUserService.getPowerUserList("1");
List<JSONObject> powerUserList = JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class);
@ -161,7 +161,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
return temp.getString("userName");
}});
for (Archive_Master archive_master : list) {
for (Archive_Master_Vo archive_master : list) {
JSONObject userInfo = mappedMovies.get(archive_master.getDoctorName());
if (userInfo==null){
@ -224,7 +224,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
@Override
public OffsetLimitPage selectByCmtCol(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
PageHelper.offsetPage(offset, limit);
List<Archive_Master> list = archiveMasterMapper.selectByCmtCol(archiveMasterVo);
List<Archive_Master_Vo> list = archiveMasterMapper.selectByCmtCol(archiveMasterVo);
JSONArray powerUsers = powerUserService.getPowerUserList("1");
List<JSONObject> powerUserList = JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class);
@ -235,7 +235,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
return temp.getString("userName");
}});
for (Archive_Master archive_master : list) {
for (Archive_Master_Vo archive_master : list) {
JSONObject userInfo = mappedMovies.get(archive_master.getDoctorName());
if (userInfo==null){

@ -1,6 +1,6 @@
jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc.url=jdbc:sqlserver://120.27.212.36:1433;databaseName=emr_recode_test
#jdbc.url=jdbc:sqlserver://127.0.0.1:1433;databaseName=emr_recode_test
#jdbc.url=jdbc:sqlserver://localhost:1433;databaseName=emr_recode_test
jdbc.username=sa
jdbc.password=docus@702
#hibernate config

@ -90,9 +90,12 @@
<if test="assortId != null and assortId != ''">
and t.AssortID=#{assortId,jdbcType=VARCHAR}
</if>
<if test="source != null and source != ''">
<if test="source != null and source != '' and source!='-1'">
and t.Source=#{source,jdbcType=VARCHAR}
</if>
<if test="source=='-1'">
and t.Source is null
</if>
<if test="flag != null and flag != ''">
and t.flag = #{flag,jdbcType=NVARCHAR}
</if>
@ -101,6 +104,43 @@
</if>
ORDER BY z.assort_sort,t.Title,t.page_number,t.UpLoadDateTime
</select>
<select id="sourceByClo" resultMap="BaseResultMap2" parameterType="com.emr.entity.Archive_Detail_Vo">
select DISTINCT t.Source
from zd_assort z
left join archive_detail t
on z.assort_id=t.AssortID
LEFT JOIN(
select top 1 f.id,m.create_time,f.cmt_doctor_date,f.cmt_nurse_date,f.ArchiveState from
emr_fault_detail m
left join archive_master f
on m.archive_detail_id=f.id
where 1=1 and m.back_flag= 3
<if test="patientId != null">
and f.id=#{patientId,jdbcType=VARCHAR}
</if>
) s
on s.id=t.MasterID
where 1=1
<if test="patientId != null">
and t.MasterID=#{patientId,jdbcType=VARCHAR}
</if>
<if test="assortId != null and assortId != ''">
and t.AssortID=#{assortId,jdbcType=VARCHAR}
</if>
<if test="source != null and source != '' and source!='-1'">
and t.Source=#{source,jdbcType=VARCHAR}
</if>
<if test="source =='-1'">
and t.Source is null
</if>
<if test="flag != null and flag != ''">
and t.flag = #{flag,jdbcType=NVARCHAR}
</if>
<if test="title != null and title != ''">
and t.title like '%'+#{title,jdbcType=VARCHAR}+'%'
</if>
</select>
<select id="selectByid" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />

@ -331,7 +331,8 @@
select DISTINCT m.id,m.patient_id,m.inp_no,m.visit_id,m.name,m.sex,f.name
dept_name,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time,m.ArchiveState,CONVERT(varchar(10),m.admission_date_time, 120) admission_date_time,d.name dept_admission_to
,m.check_doctor,m.checked_datetime,m.checked_doctor,m.LockInfo,m.DOCTOR_IN_CHARGE,m.ID_NO,m.DISCHARGE_DISPOSITION,m.dept_code_lend,m.isscaned,
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.first_instance,m.is_scanning,bed_number,amf.following_type
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.first_instance,
m.is_scanning,m.bed_number,amf.following_type,ISNULL(s.numb, 0) numb
from archive_master m
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) d
@ -341,6 +342,8 @@
on m.dept_name=f.code
left join Archive_Master_Following amf
on m.id=amf.master_id and amf.following_type=9
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1 and ArchiveState in('初审')
<if test="id != null and id != ''">
and m.id = #{id,jdbcType=NVARCHAR}
@ -436,11 +439,12 @@
ORDER BY m.discharge_date_time desc
</select>
<select id="selectByUnfile" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap">
<select id="selectByUnfile" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap2">
select m.id,m.patient_id,m.inp_no,m.visit_id,m.name,m.sex,f.name
dept_name,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time,m.ArchiveState,CONVERT(varchar(10),m.admission_date_time, 120) admission_date_time,d.name dept_admission_to
,m.check_doctor,m.checked_datetime,m.checked_doctor,m.LockInfo,m.DOCTOR_IN_CHARGE,m.ID_NO,m.DISCHARGE_DISPOSITION,m.dept_code_lend,m.isscaned,
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.is_scanning,bed_number
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.is_scanning,
m.bed_number,ISNULL(s.numb, 0) numb
from archive_master m
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) d
@ -448,6 +452,8 @@
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) f
on m.dept_name=f.code
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1
--and m.ArchiveState in('归档中','初审','复审退回','提交','主任退回' )
<if test="id != null and id != ''">
@ -556,14 +562,11 @@
ORDER BY m.discharge_date_time desc
</select>
<select id="selectByCmtCol" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap">
<!--select-->
<!--<include refid="Base_Column_List"/>-->
<!--from archive_master-->
<select id="selectByCmtCol" parameterType="com.emr.entity.Archive_Master_Vo" resultMap="BaseResultMap2">
select m.id,m.patient_id,m.inp_no,m.visit_id,m.name,m.sex,f.name
dept_name,CONVERT(varchar(10),m.discharge_date_time, 120) discharge_date_time,m.ArchiveState,CONVERT(varchar(10),m.admission_date_time, 120) admission_date_time,d.name dept_admission_to
,m.check_doctor,m.checked_datetime,m.checked_doctor,m.LockInfo,m.DOCTOR_IN_CHARGE,m.ID_NO,m.DISCHARGE_DISPOSITION,m.dept_code_lend,m.isscaned,m.is_scanning,
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,bed_number
m.cmt_doctor,m.cmt_nurse,m.doctor_name,m.nurse_name,m.cmt_doctor_date,m.cmt_nurse_date,m.emr_doctor_cmt,m.emr_nure_cmt,m.death_flag,m.bed_number,ISNULL(s.numb, 0) numb
from archive_master m
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) d
@ -571,6 +574,8 @@
LEFT JOIN (select code,name from emr_dictionary where parent_id=(select id from emr_dictionary where
typeCode='dept_code' )) f
on m.dept_name=f.code
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1 and ArchiveState in('提交','主任退回','归档中','复审退回')
<if test="id != null and id != ''">
and m.id = #{id,jdbcType=NVARCHAR}

@ -99,12 +99,24 @@
left JOIN archive_master m
on m.id=d.archive_detail_id
where 1=1
<!-- <if test="backFlag!= null and backFlag!= '' and backFlag!= 1 and backFlag!= 2">
and d.back_flag in
<foreach item="item" collection="backFlag.split(',')" open="(" separator="," close=")">
#{item}
</foreach>
</if>-->
<if test="backFlag==1">
and d.back_flag in (1,2,5,6)
</if>
<if test="backFlag==2">
and d.back_flag in(5,6)
</if>
<if test="backFlag== 3">
and d.back_flag in (1,5)
</if>
<if test="backFlag== 4">
and d.back_flag in (2,6)
</if>
<if test="dealFlag!= null and dealFlag!=''">
and d.deal_flag = #{dealFlag,jdbcType=NVARCHAR}
</if>

@ -134,6 +134,8 @@
text-align: center !important;
}
#assortModal > div > div {
margin-top: 30%;
margin-left: 60%;
@ -142,22 +144,22 @@
}
#exampleModal > div > div {
margin-top: 50%;
margin-left: 70%;
margin-top: 30%;
margin-left: 60%;
width: 400px;
!important;
}
#delPdfModal > div > div {
margin-top: 50%;
margin-top: 30%;
margin-left: 60%;
width: 400px;
!important;
}
#tsPdfModal > div > div {
margin-top: 50%;
margin-left: 60%;
margin-top: 40%;
margin-left: 70%;
width: 400px;
!important;
}
@ -207,9 +209,9 @@
}
#returnModal .modal-content {
margin-left: 10%;
margin-top: 10%;
width: 160%;
margin-left: 0%;
margin-top: 0%;
width: calc(210%);
}
#returnModal2 .modal-content {
@ -225,25 +227,27 @@
}
#doctorModal .modal-content {
margin-left: 50%;
margin-top: 10%;
width: 120%;
margin-left: 0%;
margin-top: 5%;
width: calc(210%);
}
#nursModal .modal-content {
margin-left: 50%;
margin-top: 10%;
width: 120%;
}
#QXInfoModal .modal-header2 {
margin-left: 0%;
margin-top: 5%;
width: calc(210%);
}
#WZModal .modal-content {
margin-left: 50%;
margin-top: 10%;
width: 80%;
margin-left: 30%;
margin-top: 0%;
width: calc(150%);
}
#WZModal2 .modal-content {
margin-left: 30%;
margin-top: 0%;
width: calc(150%);
}
#returnCmtModal .modal-content {
@ -252,11 +256,7 @@
width: 80%;
}
#WZModal2 .modal-content {
margin-left: 50%;
margin-top: 10%;
width: 120%;
}
.panel-primary > .panel-heading {
background-color: #3c8dbc;
@ -306,14 +306,14 @@
#delPdfPageModal2 > div > div {
margin-top: 20%;
margin-left: 70%;
width: 90%;
margin-left: 60%;
width: 400px;
!important;
}
#timeLineModal .modal-content {
margin-left: 50%;
margin-top: 10%;
margin-left: 55%;
margin-top: 5%;
width: 100%;
}
@ -407,7 +407,7 @@
}
#delImgPageModal > div > div {
width: 70%;
width: 400px;
margin-left: 55%;
margin-top: 20%;
}
@ -433,14 +433,14 @@
align:left;
margin-left: 5px;
height: 34px;
width:600px;
width:300px;
!important;
}
#tableQX{
text-overflow: ellipsis;
white-space: nowrap;
width:100%;
/* width:100%;*/
overflow:auto;
!important;
@ -450,6 +450,15 @@
width:600px;
!important;
}
#QXInfoModal .modal-header2 {
width: calc(210%);
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>
@ -704,6 +713,8 @@
<input class="input-sm form-control form-inline" type="text"
id="titleSearch" name="titleSearch" aria-label="Refresh"
title="Refresh" placeholder="请输入pdf相关标题"/>
<select class="selectpicker bla bla bli" data-live-search="true" name="sourceSearch" id="sourceSearch" title="来源">
</select>
<button type="button" class="btn btn-primary btn-sm" id="titleSearchBtn">
查询
</button>
@ -987,7 +998,7 @@
</div>
<div class="row ">
<span style="vertical-align:top;">退回内容:</span>
<textarea id="backContent" rows="6" style="width:80%;"></textarea>
<textarea id="backContent" rows="9" style="width:85%;"></textarea>
</div>
</div>
</div>
@ -1032,17 +1043,22 @@
<div style="height:80%;">
<!--数据表格-->
<table id="tableQX" class="table text-nowrap table-striped"></table>
<div id="toolbarQX" class="btn-group pull-right" style="margin-left:1100px">
<div class="columns columns-right btn-group pull-left" style="margin-top:0px;">
<button type="button" class="btn btn-warning btn-sm" id="QXDealBtn" onclick="dealAndConcelFun()">进行处理</button>
<button type="button" class="btn btn-danger btn-sm" id="QXDealCancelBtn" onclick="dealAndConcelFun()">取消处理</button>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
</div>-->
</div>
</div>
</div>
<!--缺陷详情弹窗-->
<div class="modal fade" id="qxModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
@ -1077,25 +1093,7 @@
<%--<option value="非类型">非类型</option>--%>
<%--<option value="">全部</option>--%>
</select>
</div>
<%--<div class="row divCss2">--%>
<%--<span style="vertical-align:top;">缺陷类型:</span>--%>
<%--<input type="text" id="assortName" readonly/>--%>
<%--</div>--%>
<%--<div class="row divCss2" >--%>
<%--<span class="divCss7">选项:</span>--%>
<%--<div class="divCss4" id="faultTypeDiv">--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果水电费是否是的范德萨</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--</div>--%>
<%--</div>--%>
<div class="row divCss2">
<span style="vertical-align:top;">内容:</span>
<textarea id="content" rows="10" style="width:90%;" readonly></textarea>
@ -1230,16 +1228,16 @@
<%--<label class="control-label">是提交该记录?</label>--%>
<div class="row divCss2">
<span style="vertical-align:top;">完整性信息:</span>
<textarea id="wzxText" rows="5" style="width:95%;" readonly></textarea>
<textarea id="wzxText" rows="9" style="width:95%;" readonly disabled></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">护士备注:</span>
<textarea id="nuresText" rows="5" style="width:95%;" readonly></textarea>
<textarea id="nuresText" rows="9" style="width:95%;" readonly disabled></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">医生备注:</span>
<textarea id="doctorText" rows="5" style="width:95%;"></textarea>
<textarea id="doctorText" rows="9" style="width:95%;"></textarea>
</div>
<div class="row divCss2">
<%--归档病历是否已全部无纸化无扫描件--%>
@ -1255,6 +1253,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
<button type="button" class="btn btn-warning btn-sm" id="selQXDoctorBtn">查看缺陷</button>
<button type="button" class="btn btn-primary btn-sm" id="doctorBtn">确认</button>
</div>
</div>
@ -1279,15 +1278,15 @@
<%--<label class="control-label">是提交该记录?</label>--%>
<div class="row divCss2">
<span style="vertical-align:top;">完整性信息:</span>
<textarea id="wzx2Text" rows="5" style="width:95%;" readonly></textarea>
<textarea id="wzx2Text" rows="9" style="width:95%;" readonly disabled></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">医生备注:</span>
<textarea id="doctor2Text" rows="5" style="width:95%; " readonly></textarea>
<textarea id="doctor2Text" rows="9" style="width:95%; " readonly disabled></textarea>
</div>
<div class="row divCss2">
<span style="vertical-align:top;">护士备注:</span>
<textarea id="nures2Text" rows="5" style="width:95%;"></textarea>
<textarea id="nures2Text" rows="9" style="width:95%;"></textarea>
</div>
<div class="row divCss2">
<%--归档病历是否已全部无纸化无扫描件--%>
@ -1303,6 +1302,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">返回</button>
<button type="button" class="btn btn-warning btn-sm" id="selQXNuresBtn">查看缺陷</button>
<button type="button" class="btn btn-primary btn-sm" id="nursBtn">确认</button>
</div>
</div>
@ -1511,7 +1511,7 @@
//创建数组保存图片
var files = new Array();
var id = 0;
var backFlagVal;
var backFlagVal=null;
function getFaultType() {
//获取科室列表
@ -1567,7 +1567,13 @@
});
}
$(function () {
// $("#selModal").draggable({
// handle: ".modal-header2" // 只能点击头部拖动
// });
// $("#selModal").css("overflow", "hidden"); // 防止出现滚动条,出现的话,你会把滚动条一起拖着走的
getFaultType();
var objUrl;
var img_html;
@ -2275,7 +2281,7 @@
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: true,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
height: 350, //定义表格的高度。
height: 600, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
showHeader: true,//是否显示列头。
@ -2706,6 +2712,7 @@
if (result == "成功") {
$("#table").bootstrapTable("refresh");
toastr.success("归档护士提交成功!");
} else {
toastr.error("归档护士提交失败!");
}
@ -2782,23 +2789,19 @@
type: "POST",
data: entity,
success: function (result) {
if (result == "成功") {
$("#WZModal2").modal('hide');
$("#WZModal2").modal('hide');
if (result.indexOf("成功")!=-1) {
if (flag == 0) {
$("#doctorModal").modal('hide');
$("#table").bootstrapTable("refresh");
toastr.success("医生提交成功!");
toastr.success("归档医生提交成功!");
} else if (flag == 1) {
$("#nursModal").modal('hide');
$("#table").bootstrapTable("refresh");
toastr.success("护士提交成功!");
toastr.success("归档护士提交成功!");
}
} else {
if (flag == 0) {
toastr.error("医生提交失败!");
} else if (flag == 1) {
toastr.error("护士提交失败!");
}
toastr.warning(result);
}
}
@ -2893,6 +2896,7 @@
}
function getDept() {
//获取科室列表
$.ajax({
url: "${path}/inHosp/getDept",
@ -2900,6 +2904,7 @@
data: {effective: 1, typecode: "dept_code"},
success: function (result) {
if (result != null) {
$("#deptName").empty();
for (var i = 0; i < result.length; i++) {
if (deptArr.length != 1 && deptArr[0] != "") {
var bol = deptArr.indexOf(result[i].code);
@ -3406,47 +3411,112 @@
});
}
});
}
$("#selQXDoctorBtn").click(function () {
var id = $("#archiveId").val();
backFlagVal=3;
$("#archIdQX").val(id);
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
});
$("#selQXNuresBtn").click(function () {
var id = $("#archiveId").val();
backFlagVal=4;
$("#archIdQX").val(id);
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
backdrop: 'static',//backdrop 为 static 时,点击模态对话框的外部区域不会将其关闭。
keyboard: true,//keyboard 为 false 时,按下 Esc 键不会关闭 Modal。
show: true//弹出对话框
});
});
$("#searchBtnQX").click(function () {
$('#tableQX').bootstrapTable('refresh');
});
var editId=null;
function dealAndConcelFun() {
if (editId == null) {
toastr.warning("选中1条记录");
return;
}
if (editId != null && editId != "") {
//处理记录,登录处理人信息
$.ajax({
url: "${path}/fault/dealFault",
type: "POST",
data: {id: editId},
success: function (result) {
if (result.indexOf("成功") != -1) {
//刷新
$('#table').bootstrapTable('refresh');
$('#tableQX').bootstrapTable('refresh');
toastr.success(result);
} else if (result.indexOf("失败") != -1) {
toastr.error(result);
} else {
toastr.warning(result);
}
}
});
} else {
toastr.warning("记录不存在!");
}
}
var scollPostion = null;
var backFlagVal=1;
function initTableQX() {
$("#QXDealCancelBtn").hide();
$("#QXDealBtn").show();
$('#tableQX').bootstrapTable({
url: "${path}/fault/getFaultList", // 获取表格数据的url
queryParams: function (params) {
//console.log($("#archIdQX").val());
var backFlag=1;
//(1,2,5,6)
/* if($("#backFlagQX").val()!=null && $("#backFlagQX").val()!=null){
backFlag=$("#backFlagQX").val();
}*/
var temp = {
///limit: limit, //页面大小
// offset: offset, //页码
//order: params.order, //排位命令descasc
//id: $("#id").val(),
archiveDetailId: $("#archIdQX").val(),
backContent:$("#assortNameQX").val(),
dealFlag:$("#dealFlagQX").val(),
backFlag:backFlag,
backFlag:backFlagVal
//backFlag: 1
};
//console.log(temp);
return temp;
},
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
striped: true, //是否显示行间隔色
showColumns: true,
toolbar: '#toolbarQX',//指定工具栏
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: true,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
striped: true, //是否显示行间隔色
toolbarAlign: 'left',// 指定 toolbar 水平方向的位置。'left' 或 'right'
paginationDetailHAlign: 'left',//指定 分页详细信息 在水平方向的位置。'left' 或 'right'。
showHeader: true,//是否显示列头。
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
//smartDisplay: false,
//height:'300',
//width:'100%',
//height: $(window).height() / 2,//自定义高度
sortName: 'id', // 要排序的字段
sortOrder: 'desc', // 排序规则
columns: [
/*{
{
title: '全选',
field: 'select', //复选框
checkbox: true,
width: 30,
align: 'center',
valign: 'middle'
}, */
},
{
field: 'id2',
title: '序号',
@ -3538,6 +3608,23 @@
editId = null;
//console.log("====取消选中");
},
onClickRow : function(row, tr,flied){
//console.log("====选中");
},
onCheck:function(row){
editId = row.id;
scollPostion = $('#tableQX').bootstrapTable('getScrollPosition');
if(row!=null){
if(row.dealFlag=="0"){
$("#QXDealCancelBtn").hide();
$("#QXDealBtn").show();
}else{
$("#QXDealCancelBtn").show();
$("#QXDealBtn").hide();
}
}
},
//如果想双击获取row把onlClickRow改为onDbClickRow如下
onDblClickRow: function (row) {
// if (template.defaults.imports.hasPermission('/payment_manager/payment_detail')) {
@ -3545,8 +3632,13 @@
// }
}, onRefresh: function (result) {
}, onLoadSuccess: function (result) { //加载成功时执行
} , onLoadSuccess: function (result) { //加载成功时执行
$('#tableQX').bootstrapTable('scrollTo', scollPostion); //注意此代码要在setTimeout里面执行原因是重新获取数据后还要生成dom节
//console.log("====加载成功时执行"+editId);
if (editId != null) {
//对刷新表格的数据选中之前选的id行
$('#tableQX').bootstrapTable("checkBy", {field: 'id', values: [editId]});
}
},
onLoadError: function () { //加载失败时执行
//$('#table').bootstrapTable("checkBy", {field: 'id', values: [selectNodeId]});
@ -3856,7 +3948,7 @@
//缺陷
if (value == 1) {
//有缺陷显示红色
a = '<span style="color:red;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:green;"></i><span style="color:red;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3914,7 +4006,7 @@
var a = "";
if (redFlag == 0) {
if (value == 1) {
a = '<span style="color:green;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<span style="color:orange;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3922,7 +4014,7 @@
//有缺陷显示红色
if (value == 1) {
//有缺陷显示红色
a = '<span style="color:red;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:orange;"></i><span style="color:red;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -3981,14 +4073,14 @@
var a = "";
if (redFlag == 0) {
if (value == '提交') {
a = '<span style="color:green;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<span style="color:#269abc;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
} else {
if (value == '提交') {
//有缺陷显示红色
a = '<span style="color:red;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
//有缺陷显示红色 #269abc;
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -4005,7 +4097,7 @@
var a = "";
if (redFlag == 0) {
if (value == '提交') {
a = '<span style="color:green;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<span style="color:#269abc;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -4013,7 +4105,7 @@
//有缺陷显示红色
if (value == '提交') {
//有缺陷显示红色
a = '<span style="color:red;"><i class="glyphicon glyphicon-ok-circle" aria-hidden="true"></i>已提交</span>';
a = '<i class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:#269abc;"></i><span style="color:red;">已提交</span>';
} else {
a = '<span style="color:red;"><i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>未提交</span>';
}
@ -4142,11 +4234,12 @@
}
}
}
var redFlag = row.numb;
if (redFlag != 0) {
//有缺陷
html = html + '<button type="button" class="btn btn-sm btn-info getQXInfo">查看缺陷</button>';
if (index.indexOf("qxSel") != -1) {
var redFlag = row.numb;
if (redFlag != 0) {
//有缺陷
html = html + '<button type="button" class="btn btn-sm btn-info getQXInfo">查看缺陷</button>';
}
}
}
return html;
@ -4342,10 +4435,12 @@
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
initTree(row.id);
getSourceFun();
},
'click .getQXInfo': function (e, value, row, index) {
//查看缺陷列表
//initTableQX(row.id);
backFlagVal=1;
$("#archIdQX").val(row.id);
$('#tableQX').bootstrapTable('refresh');
$('#QXInfoModal').modal({
@ -4407,18 +4502,12 @@
}
$("#searchBtnQX").click(function () {
$('#tableQX').bootstrapTable('refresh');
});
$("#returnCmtBtn").click(function () {
returnDoctorFun(idCmt);
});
var idArr = [];
var flag = 0;
//实现复选框单选
function checkedThis(obj, obj) {
var boxArray = document.getElementsByName(obj.name);
@ -4431,8 +4520,64 @@
}
}
function getSourceFun(){
//console.log("获取来源下拉框sourceSearch");
var patientId = $("#idLab").html();
var source=$("#sourceSearch").val();
var assortId = $("#assortId").html();
if (assortId == 0) assortId = null;
var temp = {
patientId: patientId,
assortId: assortId,
source: source,
flag: flag
};
var title = $("#titleSearch").val();
if (title != null && title != "") {
temp.title = title;
}
$.ajax({
url: "${path}/inHosp/getSourceByClo", // 获取表格数据的url
type: "POST",
data: temp,
success: function (result) {
if (result != null) {
$("#sourceSearch").empty();
if(source==""){
$("#sourceSearch").append("<option value='' selected='slected'>全部</option>");
}else {
$("#sourceSearch").append("<option value=''>全部</option>");
}
for(var i=0;i<result.length;i++){
if(result[i]!=null) {
if (result[i].source != "" && result[i].source != null && result[i].source != undefined) {
if(source==result[i].source && source!=""){
$("#sourceSearch").append("<option value='" + result[i].source + "' selected='slected'>" + result[i].source + "</option>");
}else {
$("#sourceSearch").append("<option value=" + result[i].source + ">" + result[i].source + "</option>");
}
} else {
$("#sourceSearch").append("<option value='null'>未知</option>");
}
}else{
$("#sourceSearch").append("<option value='-1'>未知</option>");
}
}
$(".selectpicker").selectpicker('refresh');
} else {
toastr.warning("暂无任何来源!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
}
var idArr = [];
var flag = 0;
var scollPostion2 = null;
function initTable2() {
idArr = [];
// idArr = [];
$("#table2").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: "${path}/inHosp/getAssortdetail", // 获取表格数据的url
@ -4461,6 +4606,7 @@
showHeader: true,//是否显示列头。
trimOnSearch: true,//设置为 true 将自动去掉搜索字符的前后空格。
queryParams: function (params) {
var currPageSize = this.pageSize;
/* if (currPageSize == 2) {
currPageSize = 10;
@ -4479,13 +4625,17 @@
limit = currPageSize;
this.pageSize = currPageSize;
}
var source =null;
if($("#sourceSearch").val()!=null){
source=$("#sourceSearch").val();
}
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令descasc
patientId: patientId,
assortId: assortId,
source: source,
flag: flag
};
@ -4730,7 +4880,12 @@
],
onLoadSuccess: function (result) { //加载成功时执行
// console.info("加载成功");
idArr = [];
//idArr = [];
$('#table2').bootstrapTable('scrollTo', scollPostion2);
if (idArr != []) {
//对刷新表格的数据选中之前选的id行
$('#table2').bootstrapTable("checkBy", {field: 'id', values: idArr});
}
},
onLoadError: function () { //加载失败时执行
//console.info("加载数据失败");
@ -4738,11 +4893,16 @@
}, onCheckAll: function (rows) { //点击全选框时触发的操作
if (rows != null && rows.length) {
for (var i = 0; i < rows.length; i++) {
idArr.push(rows[i].id)
if(idArr.indexOf(row.id)==-1) {
idArr.push(rows[i].id);
}
}
}
}, onCheck: function (row) {//点击每一个单选框时触发的操作
idArr.push(row.id)
scollPostion2 = $('#table2').bootstrapTable('getScrollPosition');
if(idArr.indexOf(row.id)==-1){
idArr.push(row.id);
}
}, onUncheck: function (row) {//取消每一个单选框时对应的操作;
var index = idArr.indexOf(row.id);
if (index > -1) {
@ -4768,7 +4928,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
}
initTree($("#idLab").html());
idArr = [];
//idArr = [];
});
@ -4952,7 +5112,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
//刷新
$('#table2').bootstrapTable('refresh');
idArr = [];
// idArr = [];
}
}
@ -5016,32 +5176,6 @@
data: {"id": id, flag: "1"},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量使用成功!");
} else {
toastr.error("批量使用失败,无记录!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量作废成功!");
@ -5112,16 +5246,6 @@
data: {"id": id, flag: "1"},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("作废成功!");
@ -5324,7 +5448,7 @@
uploadFileFun();
}
}
idArr = [];
//idArr = [];
});
$("#thPdfBtn").click(function () {

File diff suppressed because it is too large Load Diff

@ -47,6 +47,11 @@
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>
<body>

@ -56,6 +56,8 @@
overflow-y: auto;
}
.modal {
margin-left: -45%;
overflow-x: auto;
@ -126,6 +128,17 @@
!important;
}
/* #selModal{
width: calc(210%); !*margin-left:-15%;*!
height: calc(100vh - 90px);
overflow: hidden;
//height: $(window).height() -300,//自定义高度, //定义表格的高度。
}
#selModal .modal-content {
scroll-y:hidden;
scroll-x:auto;
}*/
#delPdfModal > div > div {
margin-top: 30%;
@ -135,8 +148,8 @@
}
#tsPdfModal > div > div {
margin-top: 30%;
margin-left: 60%;
margin-top: 40%;
margin-left: 70%;
width: 400px;
!important;
}
@ -175,7 +188,7 @@
#delPdfPageModal2 > div > div {
margin-top: 20%;
margin-left: 60%;
width: 100%;
width: 400px;
!important;
}
@ -184,7 +197,7 @@
}
#delImgPageModal > div > div {
width: 70%;
width: 400px;
margin-left: 55%;
margin-top: 20%;
}
@ -392,9 +405,14 @@
align:left;
margin-left: 5px;
height: 34px;
width:600px;
width:300px;
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>
@ -585,7 +603,10 @@
<div class=" row columns btn-group pull-right " style="margin-top:0px;">
<div class="row form-inline" >标题:
<input class="input-sm form-control form-inline" type="text" id="titleSearch" name="titleSearch" aria-label="Refresh"
title="Refresh" placeholder="请输入pdf相关标题"/><button type="button" class="btn btn-primary btn-sm" id="titleSearchBtn">查询</button>
title="Refresh" placeholder="请输入pdf相关标题"/>
<select class="selectpicker bla bla bli" data-live-search="true" name="sourceSearch" id="sourceSearch" title="来源">
</select>
<button type="button" class="btn btn-primary btn-sm" id="titleSearchBtn">查询</button>
</div>
</div>
</div>
@ -1066,7 +1087,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
//刷新
$('#table2').bootstrapTable('refresh');
idArr = [];
//idArr = [];
}
}
@ -2585,6 +2606,7 @@
//console.log("====="+outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
initTree(row.id);
getSourceFun();
}
},
cellStyle: function (value, row, index) {
@ -2616,9 +2638,63 @@
}
}
function getSourceFun(){
//console.log("获取来源下拉框sourceSearch");
var patientId = $("#idLab").html();
var source=$("#sourceSearch").val();
var assortId = $("#assortId").html();
if (assortId == 0) assortId = null;
var temp = {
patientId: patientId,
assortId: assortId,
source: source,
flag: flag
};
var title = $("#titleSearch").val();
if (title != null && title != "") {
temp.title = title;
}
$.ajax({
url: "${path}/inHosp/getSourceByClo", // 获取表格数据的url
type: "POST",
data: temp,
success: function (result) {
if (result != null) {
$("#sourceSearch").empty();
if(source==""){
$("#sourceSearch").append("<option value='' selected='slected'>全部</option>");
}else {
$("#sourceSearch").append("<option value=''>全部</option>");
}
for(var i=0;i<result.length;i++){
if(result[i]!=null) {
if (result[i].source != "" && result[i].source != null && result[i].source != undefined) {
if(source==result[i].source && source!=""){
$("#sourceSearch").append("<option value='" + result[i].source + "' selected='slected'>" + result[i].source + "</option>");
}else {
$("#sourceSearch").append("<option value=" + result[i].source + ">" + result[i].source + "</option>");
}
} else {
$("#sourceSearch").append("<option value='null'>未知</option>");
}
}else{
$("#sourceSearch").append("<option value='-1'>未知</option>");
}
}
$(".selectpicker").selectpicker('refresh');
} else {
toastr.warning("暂无任何来源!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
}
var scollPostion2 = null;
//var eidtSelRow2=[];
function initTable2() {
idArr = [];
//idArr = [];
$("#table2").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: "${path}/inHosp/getAssortdetail", // 获取表格数据的url
@ -2667,12 +2743,17 @@
this.pageSize = currPageSize;
}
var source =null;
if($("#sourceSearch").val()!=null){
source=$("#sourceSearch").val();
}
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令descasc
patientId: patientId,
assortId: assortId,
source: source,
flag: flag
};
@ -2921,7 +3002,13 @@
],
onLoadSuccess: function (result) { //加载成功时执行
// console.info("加载成功");
idArr = [];
// idArr = [];
$('#table2').bootstrapTable('scrollTo', scollPostion2);
if (idArr != []) {
//对刷新表格的数据选中之前选的id行
$('#table2').bootstrapTable("checkBy", {field: 'id', values: idArr});
//console.info(idArr);
}
},
onLoadError: function () { //加载失败时执行
// console.info("加载数据失败");
@ -2929,19 +3016,35 @@
}, onCheckAll: function (rows) { //点击全选框时触发的操作
if (rows != null && rows.length) {
for (var i = 0; i < rows.length; i++) {
idArr.push(rows[i].id)
if(idArr.indexOf(row.id)==-1) {
idArr.push(rows[i].id);
}
//eidtSelRow2.push(rows[i].id);
}
}
}, onCheck: function (row) {//点击每一个单选框时触发的操作
idArr.push(row.id);
scollPostion2 = $('#table2').bootstrapTable('getScrollPosition');
if(idArr.indexOf(row.id)==-1){
idArr.push(row.id);
}
/* if(eidtSelRow2.indexOf(row.id)==-1){
eidtSelRow2.push(row.id);
}*/
}, onUncheck: function (row) {//取消每一个单选框时对应的操作;
var index = idArr.indexOf(row.id);
if (index > -1) {
idArr.splice(index, 1);
}
/* var index2 = eidtSelRow2.indexOf(row.id);
if (index2 > -1) {
eidtSelRow2.splice(index2, 1);
}*/
//console.log(eidtSelRow2);
}, onUncheckAll: function (row) {//取消每一个单选框时对应的操作;
idArr = [];
// eidtSelRow2= [];
}
});
@ -2960,7 +3063,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
}
initTree($("#idLab").html());
idArr = [];
//idArr = [];
});
$("#selModal").keydown(function (e) {
@ -3198,50 +3301,23 @@
toastr.warning("请选择记录!");
return;
}
$.ajax({
url: "${path}/inHosp/updateStateAll",
type: "POST",
data: {"id": id, flag: "1"},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量使用成功!");
} else {
toastr.error("批量使用失败,无记录!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量作废成功");
toastr.success("批量作废成功!");
} else {
toastr.error("批量作废失败,无记录");
toastr.error("批量作废失败,无记录!");
}
}, error: function () {
toastr.error("操作失败");
toastr.error("操作失败!");
}
});
idArr = [];
//idArr = [];
});
$("#updateStateBtn2").click(function () {
@ -3261,12 +3337,12 @@
if (result == 1) {
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量使用成功");
toastr.success("批量使用成功!");
} else {
toastr.error("批量使用失败,无记录");
toastr.error("批量使用失败,无记录!");
}
}, error: function () {
toastr.error("操作失败");
toastr.error("操作失败!");
}
});
});
@ -3302,16 +3378,6 @@
data: {"id": id, flag: "1"},
success: function (result) {
if (result == 1) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("作废成功!");
@ -3516,7 +3582,7 @@
uploadFileFun();
}
}
idArr = [];
//idArr = [];
<%--$.ajax({--%>
<%--url: "${path}/inHosp/saveInfo",--%>
<%--type: "POST",--%>

@ -17,21 +17,22 @@
<%@ include file="../../jspf/ztreeCommom.jsp" %>
<style>
.modal-header2 {
text-align: center !important;
vertical-align: middle !important;
background-color: #3c8dbc !important;
color: #fff;
font-size: 16px;
font-weight: bold;
padding: 5px 5px 5px 5px !important;
}
.modal-dialog {
position:fixed;!important;
top:0px;!important;
left:0px;!important;
}
.modal-header2 {
height: 30px;
text-align: center !important;
vertical-align: middle !important;
background-color: #3c8dbc !important;
color: #fff;
font-size: 16px;
font-weight: bold;
padding: 5px 5px 5px 5px !important;
}
/* .modal-dialog {
position:fixed;!important;
top:0px;!important;
left:0px;!important;
}*/
.modal-footer {
padding: 5px;
}
@ -45,7 +46,6 @@
margin-left: 20px;
}
.divCss8 {
margin-top: 5px;
margin-right: 20px;
@ -58,15 +58,14 @@
}
.modal-content {
width: 165%; /*width: 1300px;*/
width: calc(200%); /*width: 1300px;*/
overflow-x: hidden;
overflow-y: auto;
}
.modal {
margin-left: -39%;
overflow-x: auto;
margin-left: -45%;
overflow: auto;
/*z-index: 1049;*/
}
@ -99,6 +98,29 @@
margin-right: 10px;
}
.treeBtn1 {
margin-top: 10px;
margin-right: 10px;
width: 42%;
}
.treeBtn {
margin-top: 10px;
margin-left: 10px;
margin-right: 10px;
width: 42%;
}
#key {
width: 70%;
!important;
}
#searchBtn1 {
width: 20%;
!important;
}
.zTreeDemo {
height: auto;
min-height: 350px;
@ -167,15 +189,17 @@
}
#timeLineModal .modal-content {
margin-left: 50%;
margin-top: 35%;
margin-left: 70%;
margin-top: 10%;
width: 100%;
}
#returnModal .modal-content {
margin-left: 3%;
margin-top: 35%;
width: 160%;
margin-left: 5%;
margin-top: 0%;
width: calc(210%); /*width: 1300px;*/
overflow-x: hidden;
overflow-y: auto;
}
#returnModal2 .modal-content {
@ -184,6 +208,11 @@
width: 120%;
}
#qxModal .modal-content {
margin-left: 5%;
width: calc(210%); /*width: 1300px;*/
}
#backDivs {
border-top: 1px dashed #3c8dbc;
}
@ -208,8 +237,32 @@
width: 400px;
!important;
}
.rowWidthCss{
width:85%;
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
#selModal .modal-content {
margin-left: -72%;
width: calc(210%); /*width: 1300px;*/
overflow-x: hidden;
overflow-y: hidden;
}
#titleSearch {
align: left;
margin-left: 5px;
height: 34px;
width: 300px;
!important;
}
</style>
</head>
@ -280,7 +333,7 @@
<input type="text" class="input-sm form-control" name="end" id="endDateTo"/>
</div>
</div>--%>
<div class="form-group divCss">
<div class="form-group divCss8">
<label >处理状态:</label>
<select class="input-sm form-control" id="followingType">
<option value="">全部</option>
@ -299,13 +352,13 @@
<option value="12">病案取消封装</option>--%>
</select>
</div>
<div class="form-group divCss8" style="height: 18px;margin-top: -7px;">
<div class="form-group divCss8" >
<label>处理人:</label>
<select class="selectpicker bla bla bli" multiple data-live-search="true" name="handleName" id="handleName" title="请输入处理人">
<option value="">全部</option>
</select>
</div>
<div class="form-group divCss8">
<div class="form-group divCss">
<label>处理时间:</label>
<div class="input-daterange input-group">
<input type="text" class="input-sm form-control" name="start" id="startHandleTime"/>
@ -346,7 +399,7 @@
<!-- 模态框3Modal查看档案 -->
<div class="modal fade" id="selModal" tabindex="1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-dialog" style="left:20%;top:5x;">
<div class="modal-dialog" style="left:20%;top:5px;">
<div class="modal-content">
<div class="modal-header2">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
@ -429,10 +482,10 @@
<div class="divCss4"></div>
<div class="row">
<div class="row divCss3 ">病历清单</div>
<%-- <div class="row divCss3 ">病历清单</div>--%>
<div class="col-sm-3 divCss2">
<div class="row titleCss"></div>
<div class="row">
<%--<div class="row">
<div class="col-sm-9">
<input type="text" id="key" value="" class="input-sm form-control empty"
placeholder="分段名称"/>
@ -446,6 +499,19 @@
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">
全部收缩
</button>
</div>--%>
<div class="row form-inline">
<input type="text" id="key" value="" class="input-sm form-control empty"
placeholder="分段名称"/>
<button type="button" class="btn btn-primary btn-sm" id="searchBtn1">查询</button>
</div>
<div class="row">
<button type="button" class="btn btn-success btn-sm treeBtn1" onclick="expandAll();">
全部展开
</button>
<button type="button" class="btn btn-success btn-sm treeBtn" onclick="collapseAll();">
全部收缩
</button>
</div>
<div class="row">
<!--树-->
@ -455,28 +521,47 @@
</div>
</div>
<div class="col-sm-8 divCss5">
<div class="row btnGroupCss">
<%-- <div class="row btnGroupCss">--%>
<%--<button type="button" class="btn btn-danger btn-sm" id="addPdfBtn">添加pdf</button>--%>
<%--<button type="button" class="btn btn-default btn-sm" id="uploadBtn">上传文件</button>--%>
<button type="button" class="btn btn-info btn-sm" id="pdfBtn">查看分段PDF</button>
<%--<button type="button" class="btn btn-info btn-sm" id="pdfBtn">查看分段PDF</button>
<button type="button" class="btn btn-success btn-sm" id="pdfBtn2">查看PDF</button>
<button type="button" class="btn btn-info btn-sm" id="pdfBtn3">查看扫描PDF</button>
<button type="button" class="btn btn-info btn-sm" id="pdfBtn3">查看扫描PDF</button>--%>
<%--<button type="button" class="btn btn-primary btn-sm" id="addBtn">添加清单</button>--%>
<%--<button type="button" class="btn btn-warning btn-sm" id="updateStateBtn">选中作废</button>--%>
<%--<button type="button" class="btn btn-primary btn-sm" id="updateStateBtn2">选中使用</button>--%>
<%-- </div>--%>
<div class="row ">
<div class="col-sm-3 " style="margin-top: 5px;">
<input type="checkbox" id="flag" value="1">只显示作废</input>
</div>
<div class="col-sm-9 btnGroupCss">
<%--<button type="button" class="btn btn-danger btn-sm" id="addPdfBtn">添加pdf</button>
<button type="button" class="btn btn-default btn-sm" id="uploadBtn">上传文件</button>--%>
<button type="button" class="btn btn-info btn-sm" id="pdfBtn">查看分段PDF</button>
<button type="button" class="btn btn-success btn-sm" id="pdfBtn2">查看PDF</button>
<%-- <button type="button" class="btn btn-info btn-sm" id="pdfBtn3">查看扫描PDF</button>--%>
<%--<button type="button" class="btn btn-primary btn-sm" id="addBtn">添加清单</button>--%>
<%--<button type="button" class="btn btn-warning btn-sm" id="updateStateBtn">选中作废 </button>
<button type="button" class="btn btn-primary btn-sm" id="updateStateBtn2">选中使用 </button>--%>
</div>
</div>
<div class="row">
<!--数据表格-->
<table id="table2" class="table text-nowrap table-striped"></table>
<div id="toolbar2" class="btn-group pull-left" style="margin-right: 20px;">
<div class="columns columns-left btn-group pull-left" style="margin-top:0px;">
<input type="checkbox" id="flag" value="1"
style="margin-left: 20px;">只显示作废</input>
<%--<button class=" btn btn-success btn-sm" style="height: 34px" type="button"--%>
<%--id="refreshBtn2" name="refresh" aria-label="Refresh"--%>
<%--title="Refresh">--%>
<%--<i class="glyphicon glyphicon-refresh icon-refresh"></i>--%>
<%--</button>--%>
<div class=" row columns btn-group pull-right " style="margin-top:0px;">
<div class="row form-inline" style="margin-left: 10px">标题:
<input class="input-sm form-control form-inline" type="text"
id="titleSearch" name="titleSearch" aria-label="Refresh"
title="Refresh" placeholder="请输入pdf相关标题"/>
<select class="selectpicker bla bla bli" data-live-search="true" name="sourceSearch" id="sourceSearch" title="来源">
</select>
<button type="button" class="btn btn-primary btn-sm" id="titleSearchBtn">
查询
</button>
</div>
</div>
</div>
</div>
@ -516,7 +601,7 @@
</div>
<div class="row ">
<span style="vertical-align:top;">退回内容:</span>
<textarea id="backContent" rows="6" style="width:80%;"></textarea>
<textarea id="backContent" rows="6" style="width:85%;"></textarea>
</div>
</div>
</div>
@ -528,11 +613,11 @@
<form class="form-horizontal " id="formStaff" style="margin-left: 13px;">
<div class="row " >
<span style="vertical-align:top;">护士备注:</span>
<textarea id="nuresText" rows="6" style="width:82.5%;" readonly></textarea>
<textarea id="nuresText" rows="6" style="width:87%;" readonly></textarea>
</div>
<div class="row ">
<span style="vertical-align:top;">医生备注:</span>
<textarea id="doctorText" rows="6" style="width:82.5%;" readonly></textarea>
<textarea id="doctorText" rows="6" style="width:87%;" readonly></textarea>
</div>
</form>
</div>
@ -577,27 +662,12 @@
<%--<span style="vertical-align:top;">缺陷类型:</span>--%>
<%--<input type="text" id="assortName" readonly/>--%>
<%--</div>--%>
<div class="row" style="margin-left:5px;margin-top:5px;">
<div class="col-sm-8">
选项:<select class="input-sm " disabled style="min-width: 500px" id="faultType">
<div class="row form-inline" style="margin-left:20px;margin-top:5px;">
选项:<select class="input-sm " disabled style="min-width: 200px" id="faultType">
<%--<option value="非类型">非类型</option>--%>
<%--<option value="">全部</option>--%>
</select>
</div>
</div>
<%--<div class="row divCss2">--%>
<%--<span class="divCss7">选项:</span>--%>
<%--<div class="divCss4" id="faultTypeDiv">--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子 </label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--&lt;%&ndash;<div class="row " style="width:600px">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>苹果水电费是否是的范德萨</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="col-xs-6"><input name="Fruit" type="checkbox" value=""/>桃子</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</div>&ndash;%&gt;--%>
<%--</div>--%>
<%--</div>--%>
<div class="row divCss2">
<span style="vertical-align:top;">内容:</span>
<textarea id="content" rows="10" style="width:90%;" readonly></textarea>
@ -1577,6 +1647,9 @@
}
});
$("#titleSearchBtn").click(function () {
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
});
$("#pdfBtn2").click(function () {
//选中批量使用
@ -1808,7 +1881,7 @@
toolbar: '#toolbar',//指定工具栏
searchOnEnterKey: true, //设置为 true时按回车触发搜索方法否则自动触发搜索方法
undefinedText: '---', //当数据为 undefined 时显示的字符
singleSelect: false,//设置True 将禁止多选
singleSelect: true,//设置True 将禁止多选
clickToSelect: true,//设置true 将在点击行时自动选择rediobox 和 checkbox
//height: 560, //定义表格的高度。
searchTimeOut: 500,// 默认500 设置搜索超时时间。
@ -1845,21 +1918,6 @@
this.pageSize = currPageSize;
}
// var url = window.location.href;
// var deptName = url.substring(url.lastIndexOf('&') + 1).replace("depts=", "");
// if (deptName != null && deptName != '') {
// deptName += "," + $("#deptName").val();
// } else {
// deptName = $("#deptName").val();
// }
// var deptName = $("#deptName").val();
// if (deptName.indexOf("") != -1) {
// deptName = "";
// } else {
// deptName = $("#deptName").val().toString();
// }
var deptName = value;
if (deptName.indexOf("") != -1) {
deptName = "";
@ -2231,6 +2289,7 @@
$("#outDateLab").val(outDate[0] + "" + outDate[1] + "" + row.inpNo.trim() + "" + row.visitId + "");
initTree(row.id);
getSourceFun();
}
},
cellStyle: function (value, row, index) {
@ -2252,11 +2311,64 @@
}
}
function getSourceFun(){
//console.log("获取来源下拉框sourceSearch");
var patientId = $("#idLab").html();
var source=$("#sourceSearch").val();
var assortId = $("#assortId").html();
if (assortId == 0) assortId = null;
var temp = {
patientId: patientId,
assortId: assortId,
source: source,
flag: flag
};
var title = $("#titleSearch").val();
if (title != null && title != "") {
temp.title = title;
}
$.ajax({
url: "${path}/inHosp/getSourceByClo", // 获取表格数据的url
type: "POST",
data: temp,
success: function (result) {
if (result != null) {
$("#sourceSearch").empty();
if(source==""){
$("#sourceSearch").append("<option value='' selected='slected'>全部</option>");
}else {
$("#sourceSearch").append("<option value=''>全部</option>");
}
for(var i=0;i<result.length;i++){
if(result[i]!=null) {
if (result[i].source != "" && result[i].source != null && result[i].source != undefined) {
if(source==result[i].source && source!=""){
$("#sourceSearch").append("<option value='" + result[i].source + "' selected='slected'>" + result[i].source + "</option>");
}else {
$("#sourceSearch").append("<option value=" + result[i].source + ">" + result[i].source + "</option>");
}
} else {
$("#sourceSearch").append("<option value='null'>未知</option>");
}
}else{
$("#sourceSearch").append("<option value='-1'>未知</option>");
}
}
$(".selectpicker").selectpicker('refresh');
} else {
toastr.warning("暂无任何来源!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
}
var idArr = [];
var flag=0;
var scollPostion2 = null;
function initTable2() {
idArr = [];
//idArr = [];
$("#table2").bootstrapTable({ // 对应table标签的id
//method: 'POST',
url: "${path}/inHosp/getAssortdetail", // 获取表格数据的url
@ -2304,14 +2416,25 @@
this.pageSize = currPageSize;
}
var source =null;
if($("#sourceSearch").val()!=null){
source=$("#sourceSearch").val();
}
var temp = {
limit: limit, //页面大小
offset: offset, //页码
order: params.order, //排位命令descasc
patientId: patientId,
assortId: assortId,
source: source,
flag:flag
};
var title = $("#titleSearch").val();
if (title != null && title != "") {
temp.title = title;
}
return temp;
},
sortName: 'assortSort', // 要排序的字段
@ -2531,7 +2654,11 @@
}
],
onLoadSuccess: function (result) { //加载成功时执行
idArr = [];
$('#table2').bootstrapTable('scrollTo', scollPostion2);
if (idArr != []) {
//对刷新表格的数据选中之前选的id行
$('#table2').bootstrapTable("checkBy", {field: 'id', values: idArr});
}
// console.info("加载成功");
},
onLoadError: function () { //加载失败时执行
@ -2540,11 +2667,16 @@
}, onCheckAll: function (rows) { //点击全选框时触发的操作
if (rows != null && rows.length) {
for (var i = 0; i < rows.length; i++) {
idArr.push(rows[i].id)
if(idArr.indexOf(row.id)==-1) {
idArr.push(rows[i].id);
}
}
}
}, onCheck: function (row) {//点击每一个单选框时触发的操作
idArr.push(row.id)
scollPostion2 = $('#table2').bootstrapTable('getScrollPosition');
if(idArr.indexOf(row.id)==-1){
idArr.push(row.id);
}
}, onUncheck: function (row) {//取消每一个单选框时对应的操作;
var index = idArr.indexOf(row.id);
if (index > -1) {
@ -2560,11 +2692,11 @@
initTable2();
//点击扫描全选分段列表,查询来源为嘉时扫描系统
$("#pdfBtn3").click(function () {
/*$("#pdfBtn3").click(function () {
$("#assortId").html("");
$("#source").html("嘉时扫描系统");
$("#table2").bootstrapTable("refreshOptions", {pageNumber: 1});
});
});*/
$("#flag").click(function () {
if ($("#flag").is(":checked") == true) {
@ -2577,7 +2709,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
}
initTree($("#idLab").html());
idArr = [];
//idArr = [];
});
@ -2773,7 +2905,7 @@
$('#table2').bootstrapTable('refreshOptions', {limit: 1, offset: 10});
//刷新
$('#table2').bootstrapTable('refresh');
idArr = [];
//idArr = [];
}
}
@ -2838,22 +2970,6 @@
success: function (result) {
if (result == 1) {
//刷新
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
if (result == 1) {
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量使用成功!");
} else {
toastr.error("批量使用失败,无记录!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
$('#table2').bootstrapTable('refresh');
toastr.success("批量作废成功!");
} else {
@ -2900,16 +3016,6 @@
type: "POST",
data: {"id": id, flag: "1"},
success: function (result) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
if (result == 1) {
//刷新
$('#table2').bootstrapTable('refresh');
@ -3457,7 +3563,7 @@
uploadFileFun();
}
}
idArr = [];
//idArr = [];
});
$("#thPdfBtn").click(function () {
$('#tsPdfModal').modal('hide'); //手动关闭

@ -218,6 +218,10 @@
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>
@ -2534,22 +2538,6 @@
success: function (result) {
if (result == 1) {
//刷新
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
if (result == 1) {
//刷新
$('#table2').bootstrapTable('refresh');
toastr.success("批量使用成功!");
} else {
toastr.error("批量使用失败,无记录!");
}
}, error: function () {
toastr.error("操作失败!");
}
});
$('#table2').bootstrapTable('refresh');
toastr.success("批量作废成功!");
} else {
@ -2596,16 +2584,6 @@
type: "POST",
data: {"id": id, flag: "1"},
success: function (result) {
$.ajax({
url: "${path}/inHosp/insertLog",
type: "POST",
data: {"logContent": id},
success: function (result) {
}, error: function () {
}
});
if (result == 1) {
//刷新
$('#table2').bootstrapTable('refresh');

@ -40,6 +40,11 @@
height: 20px;
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>

@ -63,6 +63,11 @@
height: 20px;
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
<body>
<div style="margin-left:30px;margin-right:10px;height:auto">

@ -68,6 +68,11 @@
height: 20px;
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
<body>
<div style="margin-left:30px;margin-right:10px;height:auto">

@ -29,6 +29,11 @@
.table > thead:first-child > tr:first-child > th {
text-align: center !important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>

@ -106,7 +106,12 @@
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #3c8dbc;
background-color: #9acfea;
}
#table{
/*table-layout:fixed;*/
scroll:auto;
}
table tr {
@ -130,9 +135,9 @@
}
#WZModal .modal-content {
margin-left: 50%;
margin-top: 35%;
width: 80%;
margin-left: 30%;
margin-top: 0%;
width: calc(150%);
}
#returnModal .modal-content {
@ -148,15 +153,15 @@
}
#lastModal .modal-content {
margin-left: 50%;
margin-top: 35%;
width: 100%;
margin-left: -30%;
margin-top: 20%;
width: calc(150%);
}
#lastBackModal .modal-content {
margin-left: 50%;
margin-top: 35%;
width: 120%;
margin-left: -30%;
margin-top: 20%;
width: calc(150%);
}
#assortNameQX {
@ -386,7 +391,7 @@
<form>
<div class="form-group ">
<span style="vertical-align:top;">内容:</span>
<textarea rows="6" style="width:85%;" id="lastText"></textarea>
<textarea rows="9" style="width:90%;" id="lastText"></textarea>
</div>
</form>
</div>
@ -420,8 +425,8 @@
<input id="scoreLast" type="number" class="input-sm "/> 分
</div>
<div class="row divCss2">
<span style="vertical-align:top;">退回内容:</span>
<textarea id="backContentLast" rows="6" style="width:80%;"></textarea>
<span style="vertical-align:top;">内容:</span>
<textarea id="backContentLast" rows="9" style="width:85%;"></textarea>
</div>
</div>
</div>
@ -489,7 +494,7 @@
var max = 0;
var selectId = 0;
var scollPostionVal = null;
function initTable() {
$('#table').bootstrapTable({
url: "${path}/fault/getFaultList", // 获取表格数据的url
@ -787,8 +792,14 @@
//selectNode=row.id;
}, onUncheck: function (rowsAfter, rowsBefore) {
editId = null;
//console.log("====取消选中");
editId = null;
scollPostionVal = null;
}, onCheck:function(row){
editId = row.id;
if(editId!=null) {
scollPostionVal = $('#table').bootstrapTable('getScrollPosition');
}
},
//如果想双击获取row把onlClickRow改为onDbClickRow如下
onDblClickRow: function (row) {
@ -806,6 +817,13 @@
// //选中第一行
// $('#table').bootstrapTable("checkBy", {field: 'id', values: [selectNodeId]});
// }
if(scollPostionVal!=null) {
$("#table").bootstrapTable('scrollTo', scollPostionVal);
}else{
scollPostionVal=$(window).height() / 2;//自定义高度
$("#table").bootstrapTable('scrollTo', scollPostionVal);
}
if (selectNodeId != 0) {
// $("#typeFlag").selectpicker('val', selectNodeId).trigger("change");
@ -817,12 +835,9 @@
if (row != null) {
if (row.id != null && row.id != "") {
selectId = row.assortId;
$("#typeFlag").multiselect('clearSelection', true);
$('#typeFlag').multiselect('select', [row.assortId]);
editId = row.id;
btnFlag = 2;
$("#content").val(row.content);
$('#flag').selectpicker('val', row.backFlag);
@ -1288,7 +1303,6 @@
} else {
toastr.warning("病案号不存在!");
}
});
//主任退回确认
@ -1300,35 +1314,38 @@
// toastr.warning("评分范围0-100");
// return;
// }
var data = {};
data.archiveDetailId = archiveDetailId;
//退回信息
data.score = $("#score").val();
data.backContent = $("#backContent").val();
data.state = "主任退回";
data.backFlag = 3;
//根据病案号保存缺陷信息
$.ajax({
url: "${path}/lastVerify/updateDetailByArchivId",
type: "POST",
data: data,
success: function (result) {
if (result == 1) {
//关闭modal
$('#returnModal').modal('hide'); //手动关闭
//$('#firstModal').modal('hide'); //手动关闭
toastr.success("退回成功!");
//刷新
$('#table').bootstrapTable('refresh');
} else if (result == 2) {
toastr.warning("请先登记未处理缺陷!");
$('#returnModal').modal('hide'); //手动关闭
} else {
toastr.error("退回失败!");
if (archiveDetailId != null && archiveDetailId != "") {
var data = {};
data.archiveDetailId = archiveDetailId;
//退回信息
data.score = $("#score").val();
data.backContent = $("#backContent").val();
data.state = "主任退回";
data.backFlag = 3;
//根据病案号保存缺陷信息
$.ajax({
url: "${path}/lastVerify/updateDetailByArchivId",
type: "POST",
data: data,
success: function (result) {
if (result == 1) {
//关闭modal
$('#returnModal').modal('hide'); //手动关闭
//$('#firstModal').modal('hide'); //手动关闭
toastr.success("退回成功!");
//刷新
$('#table').bootstrapTable('refresh');
} else if (result == 2) {
toastr.warning("请先登记未处理缺陷!");
$('#returnModal').modal('hide'); //手动关闭
} else {
toastr.error("退回失败!");
}
}
}
});
});
} else {
toastr.warning("病案号不存在!");
}
});
@ -1383,8 +1400,6 @@
} else {
toastr.warning("病案不存在!");
}
}, error: function () {
toastr.error("操作失败!");
}

@ -74,16 +74,20 @@
width: 98%;
}
#table{
/*table-layout:fixed;*/
scroll:auto;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #3c8dbc;
background-color: #9acfea;
}
table tr {
color: #000
}
#firstModal .modal-content {
margin-left: 50%;
margin-top: 35%;
@ -91,15 +95,15 @@
}
#lastModal .modal-content {
margin-left: 50%;
margin-top: 35%;
width: 100%;
margin-left: -30%;
margin-top: 20%;
width: calc(150%);
}
#lastBackModal .modal-content {
margin-left: 50%;
margin-top: 35%;
width: 120%;
margin-left:-30%;
margin-top: 20%;
width: calc(150%);
}
#assortNameQX {
@ -214,7 +218,7 @@
<button type="button" class="btn btn-primary btn-sm divCss" id="searchBtnQX">查询</button>
</div>
<!--数据表格-->
<table id="table" class="table text-nowrap table-striped"></table>
<table id="table" class="table text-nowrap table-striped "></table>
<%--<div id="toolbar" class="btn-group pull-right" style="margin-right: 20px;">
</div>--%>
@ -240,7 +244,7 @@
<form>
<div class="form-group ">
<span style="vertical-align:top;">内容:</span>
<textarea rows="6" style="width:85%;" id="lastText"></textarea>
<textarea rows="9" style="width:90%;" id="lastText"></textarea>
</div>
</form>
</div>
@ -274,8 +278,8 @@
<input id="scoreLast" type="number" class="input-sm "/> 分
</div>
<div class="row divCss2">
<span style="vertical-align:top;">退回内容:</span>
<textarea id="backContentLast" rows="6" style="width:80%;"></textarea>
<span style="vertical-align:top;">内容:</span>
<textarea id="backContentLast" rows="9" style="width:85%;"></textarea>
</div>
</div>
</div>
@ -360,6 +364,7 @@
var max = 0;
var selectId=0;
var scollPostionVal = null;
function initTable() {
$("#roleVal").hide();
$('#table').bootstrapTable({
@ -382,12 +387,13 @@
toolbar: '#toolbar',//指定工具栏
toolbarAlign: 'right',// 指定 toolbar 水平方向的位置。'left' 或 'right'
//height:'300',
width: '100%',
height: $(window).height() / 2,//自定义高度
columns: [{
title: '全选',
field: 'select', //复选框
checkbox: true,
width: 15,
width: 30,
align: 'center',
valign: 'middle'
}, {
@ -398,7 +404,10 @@
field: 'assortId',
title: '缺陷类型ID',
width: 150,
visible: false
visible: false,
formatter: function (value, row, index) {
return value
}
}, {
field: 'assortName',
title: '缺陷类型',
@ -412,7 +421,7 @@
var result = '<span style="color:blue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '分</span>';
return result
}
},{
}, {
field: 'minusPoint',
title: '扣分值',
width: 80,
@ -421,13 +430,13 @@
var result = '<span style="color:blue;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>' + value + '分</span>';
return result
}
},{
},
{
title: '退回',
field: 'backFlag',
align: 'center',
width: 100,
formatter: function (value, row, index) {
if (btnFlag == 3) {
selectNodeId = row.id;
btnFlag=0;
@ -547,7 +556,6 @@
width: 250
}],
onClickRow: function (row) {
if (row.archivestate == "复审退回" || row.archivestate == "已归档" || row.archivestate == "已认证") {
$("#firstBtn").hide();
$("#backBtn").hide();
@ -605,8 +613,6 @@
$("#dealBtn").hide();
$("#dealCancelBtn").show();
}
editId = row.id;
btnFlag = 2;
$("#content").val(row.content);
if (row.assortId == definedId) {
@ -688,8 +694,14 @@
}
}, onUncheck: function (rowsAfter, rowsBefore) {
editId = null;
//console.log("====取消选中");
editId = null;
scollPostionVal = null;
}, onCheck:function(row){
editId = row.id;
if(editId!=null) {
scollPostionVal = $('#table').bootstrapTable('getScrollPosition');
}
},
//如果想双击获取row把onlClickRow改为onDbClickRow如下
onDblClickRow: function (row) {
@ -699,6 +711,8 @@
},onRefresh: function (result) {
},onLoadSuccess: function (result) { //加载成功时执行
//定位修改后的行的位置
// if (editId != null) {
// //对刷新表格的数据选中之前选的id行
// $('#table').bootstrapTable("checkBy", {field: 'id', values: [editId]});
@ -707,9 +721,13 @@
// //选中第一行
// $('#table').bootstrapTable("checkBy", {field: 'id', values: [selectNodeId]});
// }
if(scollPostionVal!=null) {
$("#table").bootstrapTable('scrollTo', scollPostionVal);
}else{
scollPostionVal=$(window).height() / 2;//自定义高度
$("#table").bootstrapTable('scrollTo', scollPostionVal);
}
if(selectNodeId!=0) {
// $("#typeFlag").selectpicker('val', selectNodeId).trigger("change");
$('#table').bootstrapTable("checkBy", {field: 'id', values: [selectNodeId]});
}
@ -1085,44 +1103,47 @@
// toastr.warning("评分范围0-100");
// return;
// }
var data = {};
data.archiveDetailId = archiveDetailId;
//退回信息
data.score = $("#scoreLast").val();
data.backContent = $("#backContentLast").val();
data.state = "复审退回";
data.backFlag = 4;
//根据病案号保存缺陷信息
$.ajax({
url: "${path}/lastVerify/updateDetailByArchivId",
type: "POST",
data: data,
success: function (result) {
if (result == 1) {
//关闭modal
$('#lastBackModal').modal('hide'); //手动关闭
//$('#firstModal').modal('hide'); //手动关闭
toastr.success("退回成功!");
//刷新
$('#table').bootstrapTable('refresh');
}else if (result == 2) {
toastr.warning("请先登记未处理缺陷!");
$('#lastBackModal').modal('hide'); //手动关闭
} else {
toastr.error("退回失败!");
if (archiveDetailId != null && archiveDetailId != "") {
var data = {};
data.archiveDetailId = archiveDetailId;
//退回信息
data.score = $("#scoreLast").val();
data.backContent = $("#backContentLast").val();
data.state = "复审退回";
data.backFlag = 4;
//根据病案号保存缺陷信息
$.ajax({
url: "${path}/lastVerify/updateDetailByArchivId",
type: "POST",
data: data,
success: function (result) {
if (result == 1) {
//关闭modal
$('#lastBackModal').modal('hide'); //手动关闭
//$('#firstModal').modal('hide'); //手动关闭
toastr.success("退回成功!");
//刷新
$('#table').bootstrapTable('refresh');
}else if (result == 2) {
toastr.warning("请先登记未处理缺陷!");
$('#lastBackModal').modal('hide'); //手动关闭
} else {
toastr.error("退回失败!");
}
}
}
});
//修改master表score字段 保存总分数
$.ajax({
url: "${path}/lastVerify/updateScore",
type: "POST",
data: {id:archiveDetailId,score:$("#scoreLast").val()},
success: function (result) {
}
});
});
//修改master表score字段 保存总分数
$.ajax({
url: "${path}/lastVerify/updateScore",
type: "POST",
data: {id:archiveDetailId,score:$("#scoreLast").val()},
success: function (result) {
}
});
} else {
toastr.warning("病案号不存在!");
}
});

@ -60,6 +60,11 @@
height: 20px;
!important;
}
/*选中行颜色*/
.fixed-table-container tbody .selected td {
background-color: #9acfea;
}
</style>
</head>

@ -33,4 +33,45 @@ jQuery(function ($) {
}
});
function moveModal($this) {
var $head = $this.find('.modal-header2');
var $dialog = $this.find('.modal-dialog');
var move = {
isMove: false,
left: 0,
top: 0
};
//委托
//console.log('点击的是', $this);
$this.on('mousemove', function (e) {
if (!move.isMove) return;
//console.log('移动的是', e.target);
$dialog.offset({
top: e.pageY - move.top,
left: e.pageX - move.left
});
}).on('mouseup', function (e) {
move.isMove = false;
});
$head.on('mousedown', function (e) {
move.isMove = true;
var offset = $dialog.offset();
move.left = e.pageX - offset.left;
move.top = e.pageY - offset.top;
});
}
var oldModal = $.fn.modal;
$.fn.modal = function (o, _r) {
var $this = $(this);
if (!$this.attr('ifbindmv')) {
$this.attr('isbindmv', '1');
moveModal($this);
}
return oldModal.call(this, o, _r);
}
////要拖动的div背景
//$('#showErr').modal({backdrop: 'static'});
});

Loading…
Cancel
Save