|
@@ -1,8 +1,8 @@
|
|
const $ = require('jquery');
|
|
const $ = require('jquery');
|
|
-require("../css/qcList.less");
|
|
|
|
|
|
+require("../css/qcListPerson.less");
|
|
require('./modal.js');
|
|
require('./modal.js');
|
|
const {api} = require('./api.js')
|
|
const {api} = require('./api.js')
|
|
-const {post} = require('./utils.js')
|
|
|
|
|
|
+const {post,getUrlArgObject} = require('./utils.js')
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
const iconCheck= require("./../images/icon_check.png")
|
|
const iconCheck= require("./../images/icon_check.png")
|
|
@@ -14,10 +14,14 @@ const iconUp = require("./../images/arrow_up.png")
|
|
const loadingImg = require("./../images/loading.gif")
|
|
const loadingImg = require("./../images/loading.gif")
|
|
const arrowLeft= require("./../images/arrow_left.png")
|
|
const arrowLeft= require("./../images/arrow_left.png")
|
|
const arrowRight = require("./../images/arrow_right.png")
|
|
const arrowRight = require("./../images/arrow_right.png")
|
|
|
|
+let doctorName_global = getUrlArgObject("doctorName")
|
|
|
|
+
|
|
|
|
+console.log('doctorName_global',doctorName_global)
|
|
|
|
+$('.selectDoctor').html(doctorName_global)
|
|
|
|
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
$(".selectLevel").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
$(".selectDept").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=""
|
|
|
|
|
|
+let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",behosDateEnd="", scoreSum = 0,nameTemp = "", behospitalCodeTemp="",levelTemp="", deptId="",deptIdTemp="", doctorName=doctorName_global, doctorNameTemp=doctorName_global
|
|
|
|
|
|
$('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
$('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
$('.iconCalen').on("mouseenter", function(e){
|
|
$('.iconCalen').on("mouseenter", function(e){
|
|
@@ -35,6 +39,8 @@ function getTabData(activePage){
|
|
behospitalCode: behospitalCode,
|
|
behospitalCode: behospitalCode,
|
|
name: name, //条目名
|
|
name: name, //条目名
|
|
level:level,//病历等级
|
|
level:level,//病历等级
|
|
|
|
+ deptId: deptId,
|
|
|
|
+ doctorName: doctorName,
|
|
behosDateStart: behosDateStart, //1-单项否决 0-非
|
|
behosDateStart: behosDateStart, //1-单项否决 0-非
|
|
behosDateEnd: behosDateEnd, //0-未启用 1-启用
|
|
behosDateEnd: behosDateEnd, //0-未启用 1-启用
|
|
size: 15
|
|
size: 15
|
|
@@ -79,6 +85,8 @@ $(".filter").on("click", function(e){
|
|
name = nameTemp
|
|
name = nameTemp
|
|
behospitalCode = behospitalCodeTemp
|
|
behospitalCode = behospitalCodeTemp
|
|
level = levelTemp
|
|
level = levelTemp
|
|
|
|
+ deptId = deptIdTemp
|
|
|
|
+ doctorName = doctorNameTemp
|
|
getTabData(1)
|
|
getTabData(1)
|
|
})
|
|
})
|
|
function renderTab(data){
|
|
function renderTab(data){
|
|
@@ -147,6 +155,8 @@ function bindScoreDetail(){
|
|
//选择病历等级
|
|
//选择病历等级
|
|
$('.selectLevel').on("click", function(e){
|
|
$('.selectLevel').on("click", function(e){
|
|
e.stopPropagation()
|
|
e.stopPropagation()
|
|
|
|
+ $(".deptList ").css("display", "none")
|
|
|
|
+ $(".selectDept .arrow").attr("src",iconDown)
|
|
const showList = $(".levelList ").css("display")
|
|
const showList = $(".levelList ").css("display")
|
|
if(showList == "none" ||!showList){
|
|
if(showList == "none" ||!showList){
|
|
$(".levelList ").css("display","block")
|
|
$(".levelList ").css("display","block")
|
|
@@ -206,6 +216,8 @@ function bindOperaAll(){
|
|
|
|
|
|
$('.selectDept').on("click", function(e){
|
|
$('.selectDept').on("click", function(e){
|
|
e.stopPropagation()
|
|
e.stopPropagation()
|
|
|
|
+ $(".levelList ").css("display","none")
|
|
|
|
+ $(".selectLevel .arrow").attr("src",iconDown)
|
|
const showList = $(".deptList ").css("display")
|
|
const showList = $(".deptList ").css("display")
|
|
if(showList == "none" ||!showList){
|
|
if(showList == "none" ||!showList){
|
|
$(".deptList ").css("display","block")
|
|
$(".deptList ").css("display","block")
|
|
@@ -215,12 +227,12 @@ $('.selectDept').on("click", function(e){
|
|
$(".selectDept .arrow").attr("src",iconDown)
|
|
$(".selectDept .arrow").attr("src",iconDown)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
//获取科室列表
|
|
//获取科室列表
|
|
getDeptList()
|
|
getDeptList()
|
|
function getDeptList(){
|
|
function getDeptList(){
|
|
- post(api.getDeptListUser).then(res =>{
|
|
|
|
|
|
+ post(api.getDeptListUser,{inputStr:""}).then(res =>{
|
|
if(res.data.code == '0'){
|
|
if(res.data.code == '0'){
|
|
- console.log('aaaaaaaaaaa',res)
|
|
|
|
const deptList = res.data.data
|
|
const deptList = res.data.data
|
|
rendeDeptList(deptList)
|
|
rendeDeptList(deptList)
|
|
}else{}
|
|
}else{}
|
|
@@ -233,18 +245,23 @@ function getDeptList(){
|
|
function rendeDeptList(deptList){
|
|
function rendeDeptList(deptList){
|
|
let str = `<li class="deptItem " data-id=" " data-name="全部">全部</li>`
|
|
let str = `<li class="deptItem " data-id=" " data-name="全部">全部</li>`
|
|
for(let i = 0; i < deptList.length; i++){
|
|
for(let i = 0; i < deptList.length; i++){
|
|
- str += `<li class="deptItem ellipsis" title=${deptList[i].name} data-id=${deptList[i].id} data-name=${deptList[i].name}> ${deptList[i].name}</li>`
|
|
|
|
|
|
+ str += `<li class="deptItem ellipsis" title=${deptList[i].deptName} data-id=${deptList[i].deptId} data-name=${deptList[i].deptName}> ${deptList[i].deptName}</li>`
|
|
}
|
|
}
|
|
$('.deptList').html(str)
|
|
$('.deptList').html(str)
|
|
bindDeptSelect()
|
|
bindDeptSelect()
|
|
}
|
|
}
|
|
-//模块类型选择
|
|
|
|
|
|
+//科室选择
|
|
function bindDeptSelect(){
|
|
function bindDeptSelect(){
|
|
$('.deptItem').on("click",function(){
|
|
$('.deptItem').on("click",function(){
|
|
const deptItemName = $(this).attr("data-name")
|
|
const deptItemName = $(this).attr("data-name")
|
|
const deptItemId = $(this).attr("data-id")
|
|
const deptItemId = $(this).attr("data-id")
|
|
- deptId =deptItemId
|
|
|
|
- $('.selectDept').html(deptItemName)
|
|
|
|
|
|
+ deptIdTemp =deptItemId
|
|
|
|
+ if(deptItemName.length > 10){
|
|
|
|
+ $('.selectDept').html(deptItemName.substring(0,8)+'...')
|
|
|
|
+ }else{
|
|
|
|
+ $('.selectDept').html(deptItemName)
|
|
|
|
+ }
|
|
|
|
+ $('.selectDept ').attr('title',deptItemName)
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
$(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
|
|
|
$(".deptList").css("display", "none")
|
|
$(".deptList").css("display", "none")
|
|
@@ -307,7 +324,10 @@ $(".patientNameInp").on("input", function(e){
|
|
const val = $(this).val().trim()
|
|
const val = $(this).val().trim()
|
|
nameTemp = val
|
|
nameTemp = val
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+$(".doctorInp").on("input", function(e){
|
|
|
|
+ const val = $(this).val().trim()
|
|
|
|
+ doctorNameTemp = val
|
|
|
|
+})
|
|
$(function() {
|
|
$(function() {
|
|
$.datepicker.regional['zh-CN'] = {
|
|
$.datepicker.regional['zh-CN'] = {
|
|
clearText: '清除',
|
|
clearText: '清除',
|
|
@@ -417,6 +437,7 @@ function renderPagination(totalPage,activePage,totalNum){
|
|
|
|
|
|
$(document).on("click", function(){
|
|
$(document).on("click", function(){
|
|
$(".levelList ").css("display", "none")
|
|
$(".levelList ").css("display", "none")
|
|
|
|
+ $(".deptList").css("display", "none")
|
|
$(".selectLevel .arrow").attr("src",iconDown)
|
|
$(".selectLevel .arrow").attr("src",iconDown)
|
|
|
|
|
|
})
|
|
})
|