Переглянути джерело

质控列表排序添加-差图标

zhouna 5 роки тому
батько
коміт
503107aaa5
6 змінених файлів з 92 додано та 48 видалено
  1. 15 15
      src/html/qcList.html
  2. 15 15
      src/html/qcListDept.html
  3. 15 15
      src/html/qcListPerson.html
  4. 16 1
      src/js/qcList.js
  5. 15 1
      src/js/qcListDept.js
  6. 16 1
      src/js/qcListPerson.js

+ 15 - 15
src/html/qcList.html

@@ -62,21 +62,21 @@
                     <thead>
                     <th class="textCenter" ></th>
                     <th class="recordScoreOpera textCenter" style="width: 65px;">操作</th>
-                    <th class="beHospitalId textCenter">病历号</th>
-                    <th class="patientNo textCenter">病案号</th>
-                    <th class="patientName textCenter" style="width: 100px;">病人姓名</th>
-                    <th class="patientSex textCenter">性别</th>
-                    <th class="patientage textCenter">年龄</th>
-                    <th class="bedNum textCenter">床号</th>
-                    <th class="inHospitalDate textCenter">入院日期</th>
-                    <th class="outHospitalDate textCenter">出院日期</th>
-                    <th class="doctorName textCenter">住院医生</th>
-                    <th class="doctorName textCenter">主管医生</th>
-                    <th class="doctorName textCenter">主任医生</th>
-                    <th class="deptName textCenter">科室</th>
-                    <th class="recordLevel textCenter">病历等级</th>
-                    <th class="recordScore textCenter">病历得分</th>
-                    <th class="scoreTime textCenter">评分时间</th>
+                    <th class="beHospitalId textCenter" code="behospital_code">病历号</th>
+                    <th class="patientNo textCenter" code="file_code">病案号</th>
+                    <th class="patientName textCenter" code="name" style="width: 100px;">病人姓名</th>
+                    <th class="patientSex textCenter" code="sex">性别</th>
+                    <th class="patientage textCenter" code="age">年龄</th>
+                    <th class="bedNum textCenter" code="bed_code">床号</th>
+                    <th class="inHospitalDate textCenter" code="behospital_date">入院日期</th>
+                    <th class="outHospitalDate textCenter" code="leave_hospital_date">出院日期</th>
+                    <th class="doctorName textCenter" code="beh_doctor_name">住院医生</th>
+                    <th class="doctorName textCenter" code="doctor_name">主管医生</th>
+                    <th class="doctorName textCenter" code="director_doctor_name">主任医生</th>
+                    <th class="deptName textCenter" code="beh_dept_name">科室</th>
+                    <th class="recordLevel textCenter" code="level">病历等级</th>
+                    <th class="recordScore textCenter" code="score_res">病历得分</th>
+                    <th class="scoreTime textCenter" code="grade_time">评分时间</th>
                     </thead>
                     <tbody>
 

+ 15 - 15
src/html/qcListDept.html

@@ -62,21 +62,21 @@
                     <thead>
                     <th class="textCenter" ></th>
                     <th class="recordScoreOpera textCenter" style="width: 65px;">操作</th>
-                    <th class="beHospitalId textCenter">病历号</th>
-                    <th class="patientNo textCenter">病案号</th>
-                    <th class="patientName textCenter" style="width: 100px;">病人姓名</th>
-                    <th class="patientSex textCenter">性别</th>
-                    <th class="patientage textCenter">年龄</th>
-                    <th class="bedNum textCenter">床号</th>
-                    <th class="inHospitalDate textCenter">入院日期</th>
-                    <th class="outHospitalDate textCenter">出院日期</th>
-                    <th class="doctorName textCenter">住院医生</th>
-                    <th class="doctorName textCenter">主管医生</th>
-                    <th class="doctorName textCenter">主任医生</th>
-                    <th class="deptName textCenter">科室</th>
-                    <th class="recordLevel textCenter">病历等级</th>
-                    <th class="recordScore textCenter">病历得分</th>
-                    <th class="scoreTime textCenter">评分时间</th>
+                    <th class="beHospitalId textCenter" code="behospital_code">病历号</th>
+                    <th class="patientNo textCenter" code="file_code">病案号</th>
+                    <th class="patientName textCenter" code="name" style="width: 100px;">病人姓名</th>
+                    <th class="patientSex textCenter" code="sex">性别</th>
+                    <th class="patientage textCenter" code="age">年龄</th>
+                    <th class="bedNum textCenter" code="bed_code">床号</th>
+                    <th class="inHospitalDate textCenter" code="behospital_date">入院日期</th>
+                    <th class="outHospitalDate textCenter" code="leave_hospital_date">出院日期</th>
+                    <th class="doctorName textCenter" code="beh_doctor_name">住院医生</th>
+                    <th class="doctorName textCenter" code="doctor_name">主管医生</th>
+                    <th class="doctorName textCenter" code="director_doctor_name">主任医生</th>
+                    <th class="deptName textCenter" code="beh_dept_name">科室</th>
+                    <th class="recordLevel textCenter" code="level">病历等级</th>
+                    <th class="recordScore textCenter" code="score_res">病历得分</th>
+                    <th class="scoreTime textCenter" code="grade_time">评分时间</th>
                     </thead>
                     <tbody>
 

+ 15 - 15
src/html/qcListPerson.html

@@ -62,21 +62,21 @@
                     <thead>
                     <th class="textCenter" ></th>
                     <th class="recordScoreOpera textCenter" style="width: 65px;">操作</th>
-                    <th class="beHospitalId textCenter">病历号</th>
-                    <th class="patientNo textCenter">病案号</th>
-                    <th class="patientName textCenter" style="width: 100px;">病人姓名</th>
-                    <th class="patientSex textCenter">性别</th>
-                    <th class="patientage textCenter">年龄</th>
-                    <th class="bedNum textCenter">床号</th>
-                    <th class="inHospitalDate textCenter">入院日期</th>
-                    <th class="outHospitalDate textCenter">出院日期</th>
-                    <th class="doctorName textCenter">住院医生</th>
-                    <th class="doctorName textCenter">主管医生</th>
-                    <th class="doctorName textCenter">主任医生</th>
-                    <th class="deptName textCenter">科室</th>
-                    <th class="recordLevel textCenter">病历等级</th>
-                    <th class="recordScore textCenter">病历得分</th>
-                    <th class="scoreTime textCenter">评分时间</th>
+                    <th class="beHospitalId textCenter" code="behospital_code">病历号</th>
+                    <th class="patientNo textCenter" code="file_code">病案号</th>
+                    <th class="patientName textCenter" code="name" style="width: 100px;">病人姓名</th>
+                    <th class="patientSex textCenter" code="sex">性别</th>
+                    <th class="patientage textCenter" code="age">年龄</th>
+                    <th class="bedNum textCenter" code="bed_code">床号</th>
+                    <th class="inHospitalDate textCenter" code="behospital_date">入院日期</th>
+                    <th class="outHospitalDate textCenter" code="leave_hospital_date">出院日期</th>
+                    <th class="doctorName textCenter" code="beh_doctor_name">住院医生</th>
+                    <th class="doctorName textCenter" code="doctor_name">主管医生</th>
+                    <th class="doctorName textCenter" code="director_doctor_name">主任医生</th>
+                    <th class="deptName textCenter" code="beh_dept_name">科室</th>
+                    <th class="recordLevel textCenter" code="level">病历等级</th>
+                    <th class="recordScore textCenter" code="score_res">病历得分</th>
+                    <th class="scoreTime textCenter" code="grade_time">评分时间</th>
                     </thead>
                     <tbody>
 

+ 16 - 1
src/js/qcList.js

@@ -18,7 +18,8 @@ const arrowRight = require("./../images/arrow_right.png")
 $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,
-  nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp=""
+  nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNum="",doctorNameTemp="",doctorNumTemp="",
+  data_desc=[],data_asc=[];
 
 $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
 $('.iconCalen').on("mouseenter", function(e){
@@ -37,6 +38,8 @@ function getTabData(activePage){
         name: name, //条目名
         level:level,//病历等级
         deptId: deptId,
+        asc:data_asc,     //升序
+        desc:data_desc,       //降序
         doctorName: doctorName,
         doctorCode: doctorNum,
         behosDateStart: behosDateStart, //1-单项否决 0-非
@@ -297,6 +300,18 @@ $('.recordScoreBtn').on("click",function(e){
         }
     }
 })
+$("th[code]").on("click",function(e){
+    const code=$(this).attr("code");
+    if(data_asc[0]===code){
+      data_desc=[code];
+      data_asc=[];
+    }else{
+      data_desc=[];
+      data_asc=[code];
+    }
+    getTabData(1);
+    console.log(code)
+});
 function recordScore(behospitalCode,totalNum){
     const param = {
         behospitalCode: behospitalCode

+ 15 - 1
src/js/qcListDept.js

@@ -18,7 +18,7 @@ const arrowRight = require("./../images/arrow_right.png")
 $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,nameTemp = "",
-  behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNameTemp="", doctorNum="", doctorNumTemp=""
+  behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName="", doctorNameTemp="", doctorNum="", doctorNumTemp="",data_desc=[],data_asc=[];
 
 $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
 $('.iconCalen').on("mouseenter", function(e){
@@ -37,6 +37,8 @@ function getTabData(activePage){
         name: name, //条目名
         level:level,//病历等级
         deptId: deptId,
+        asc:data_asc,     //升序
+        desc:data_desc,       //降序
         doctorName: doctorName,
         doctorCode: doctorNum,
         behosDateStart: behosDateStart, //1-单项否决 0-非
@@ -88,6 +90,18 @@ $(".filter").on("click", function(e){
     doctorNum = doctorNumTemp
     getTabData(1)
 })
+$("th[code]").on("click",function(e){
+  const code=$(this).attr("code");
+  if(data_asc[0]===code){
+    data_desc=[code];
+    data_asc=[];
+  }else{
+    data_desc=[];
+    data_asc=[code];
+  }
+  getTabData(1);
+  console.log(code)
+});
 function renderTab(data){
     let str = ``
     let hasSelectAll = true

+ 16 - 1
src/js/qcListPerson.js

@@ -21,7 +21,8 @@ $('.selectDoctor').html(doctorName_global)
 
 $(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
 $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
-let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName=doctorName_global, doctorNameTemp=doctorName_global
+let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,nameTemp = "",
+  behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName=doctorName_global, doctorNameTemp=doctorName_global,data_desc=[],data_asc=[];
 
 $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
 $('.iconCalen').on("mouseenter", function(e){
@@ -40,6 +41,8 @@ function getTabData(activePage){
         name: name, //条目名
         level:level,//病历等级
         deptId: deptId,
+        asc:data_asc,     //升序
+        desc:data_desc,       //降序
         doctorName: doctorName,
         behosDateStart: behosDateStart, //1-单项否决 0-非
         behosDateEnd: behosDateEnd, //0-未启用 1-启用
@@ -89,6 +92,18 @@ $(".filter").on("click", function(e){
     doctorName = doctorNameTemp
     getTabData(1)
 })
+$("th[code]").on("click",function(e){
+  const code=$(this).attr("code");
+  if(data_asc[0]===code){
+    data_desc=[code];
+    data_asc=[];
+  }else{
+    data_desc=[];
+    data_asc=[code];
+  }
+  getTabData(1);
+  console.log(code)
+});
 function renderTab(data){
     let str = ``
     let hasSelectAll = true