|
@@ -2,20 +2,16 @@ const $ = require('jquery');
|
|
|
require("../css/partDetailControl.less");
|
|
|
require('./modal.js');
|
|
|
const {api} = require('./api.js')
|
|
|
-const {post,getCookie,getUrlArgObjectNew,emptyBox,setTitleTxt,setDatePicker,
|
|
|
- getPickerDate} = require('./utils.js')
|
|
|
+const {post,getCookie,getUrlArgObjectNew,emptyBox,setTitleTxt,setDatePicker,getPickerDate} = require('./utils.js')
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.css');
|
|
|
const iconCheck= require("./../images/icon_check.png")
|
|
|
const iconUnCheck = require("./../images/icon_unchecked.png")
|
|
|
-const iconCalenBlue= require("./../images/icon_calen_blue.png")
|
|
|
-const iconCalenGrey= require("./../images/icon_calen_grey.png")
|
|
|
const iconDown= require("./../images/arrow_down.png")
|
|
|
const iconUp = require("./../images/arrow_up.png")
|
|
|
const loadingImg = require("./../images/loading.gif")
|
|
|
const arrowLeft= require("./../images/arrow_left.png")
|
|
|
const arrowRight = require("./../images/arrow_right.png")
|
|
|
-setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
$(".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,statisticsType=2,
|
|
@@ -24,6 +20,11 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
|
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
statisticsType = getUrlArgObjectNew("dateType",srcUrl)||""
|
|
|
from = getUrlArgObjectNew("from",srcUrl)||""
|
|
|
+ lineType = getUrlArgObjectNew("lineType",srcUrl)||""
|
|
|
+ data_desc = (lineType == "合格率")?"firstLevelPercent":(lineType=="完整率"?"emptyPercent":"errorPercent")
|
|
|
+ if(lineType){
|
|
|
+ $("th[code="+data_desc+"]").addClass("desc");
|
|
|
+ }
|
|
|
//setTitleTxt('',from) //导航栏面包屑
|
|
|
if(statisticsType == 1){
|
|
|
$(".monthYear .mon").css({
|
|
@@ -33,6 +34,7 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
|
|
|
color:'#00A1FF',
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),1)
|
|
|
}else{
|
|
|
$(".monthYear .year").css({
|
|
|
backgroundColor:'#00A1FF',
|
|
@@ -41,10 +43,12 @@ let tabList = [], name = "", behospitalCode="", behosDateStart="", level="",beho
|
|
|
color:'#00A1FF',
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
}
|
|
|
$(".abnormalClear").click(function(){
|
|
|
data_desc=""
|
|
|
data_asc=""
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),statisticsType||2)
|
|
|
$(".patientNumInp").val("")
|
|
|
behospitalCode =behospitalCodeTemp= ""
|
|
|
getTabData(1)
|
|
@@ -54,16 +58,7 @@ $(".partTitle a").click(function(){
|
|
|
$(".menu .page",parent.document).removeClass("active").eq(0).addClass("active");
|
|
|
$(".container",parent.document).addClass("console-cont");
|
|
|
})
|
|
|
-$('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
|
-$('.iconCalen').on("mouseenter", function(e){
|
|
|
- $(this).attr("src", iconCalenBlue)
|
|
|
-})
|
|
|
-$('.iconCalen').on("mouseleave", function(e){
|
|
|
- $(this).attr("src", iconCalenGrey)
|
|
|
-})
|
|
|
-$('.iconCalen').on("click", function(e){
|
|
|
- $(this).parent().find("input").focus()
|
|
|
-})
|
|
|
+
|
|
|
$('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
|
|
|
dateChange()
|
|
|
//所有数据切换日期筛选
|
|
@@ -110,12 +105,22 @@ function dateChange(){
|
|
|
return false;
|
|
|
}
|
|
|
function getTabData(activePage){
|
|
|
+ const dateStatrt = getPickerDate($("#datepicker"),1)
|
|
|
+ const dateEnd = getPickerDate($("#datepicker2"),2)
|
|
|
+ const start = new Date(dateStatrt).getTime()
|
|
|
+ const end = new Date(dateEnd).getTime()
|
|
|
+ if(start > end){
|
|
|
+ $.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
+ return
|
|
|
+ }
|
|
|
const param = {
|
|
|
"level": deptId||"",
|
|
|
"name": behospitalCode||"",
|
|
|
"asc":data_asc, //升序
|
|
|
"desc":data_desc, //降序
|
|
|
"type": statisticsType||2, //1-本月,2-本年
|
|
|
+ "startDate":dateStatrt,
|
|
|
+ "endDate":dateEnd
|
|
|
}
|
|
|
post(api.homePageLevelStatistics,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
@@ -163,7 +168,6 @@ function renderTab(data,hisId,activePage){
|
|
|
</tr>
|
|
|
`
|
|
|
}
|
|
|
- // console.log(str)
|
|
|
$('tbody').html(str?str:emptyBox())
|
|
|
bindScoreDetail(hisId)
|
|
|
$(".goHomeDetail").click(function(){
|
|
@@ -450,51 +454,6 @@ $(".doctorNumInp").on("input", function(e){
|
|
|
const val = $(this).val().trim();
|
|
|
doctorNumTemp = val
|
|
|
})
|
|
|
-$(function() {
|
|
|
- $.datepicker.regional['zh-CN'] = {
|
|
|
- clearText: '清除',
|
|
|
- clearStatus: '清除已选e799bee5baa6e59b9ee7ad9431333361303131日期',
|
|
|
- closeText: '关闭',
|
|
|
- closeStatus: '不改变当前选择',
|
|
|
- prevText: '<上月',
|
|
|
- prevStatus: '显示上月',
|
|
|
- prevBigText: '<<',
|
|
|
- prevBigStatus: '显示上一年',
|
|
|
- nextText: '下月>',
|
|
|
- nextStatus: '显示下月',
|
|
|
- nextBigText: '>>',
|
|
|
- nextBigStatus: '显示下一年',
|
|
|
- currentText: '今天',
|
|
|
- currentStatus: '显示本月',
|
|
|
- monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'],
|
|
|
- monthNamesShort: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'],
|
|
|
- yearNamesShort: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'],
|
|
|
- monthStatus: '选择月份',
|
|
|
- yearStatus: '选择年份',
|
|
|
- weekHeader: '周',
|
|
|
- weekStatus: '年内周次',
|
|
|
- dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],
|
|
|
- dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'],
|
|
|
- dayNamesMin: ['日','一','二','三','四','五','六'],
|
|
|
- dayStatus: '设置 DD 为一周起始',
|
|
|
- dateStatus: '选择 m月 d日, DD',
|
|
|
- dateFormat: 'yy-mm-dd',
|
|
|
- firstDay: 1,
|
|
|
- initStatus: '请选择日期',
|
|
|
- isRTL: false};
|
|
|
- $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
|
|
|
-
|
|
|
- $( "#datepicker" ).datepicker({
|
|
|
- changeMonth: true,
|
|
|
- changeYear: true,
|
|
|
- dateFormat:"yy/mm/dd"
|
|
|
- });
|
|
|
- $( "#datepicker2" ).datepicker({
|
|
|
- changeMonth: true,
|
|
|
- changeYear: true,
|
|
|
- dateFormat:"yy/mm/dd"
|
|
|
- });
|
|
|
-});
|
|
|
|
|
|
//分页渲染
|
|
|
function renderPagination(totalPage,activePage,totalNum){
|
|
@@ -563,5 +522,18 @@ $(document).on("click", function(){
|
|
|
$(".selectDept .arrow").attr("src",iconDown)
|
|
|
})
|
|
|
|
|
|
-$((function($){
|
|
|
-})($));
|
|
|
+
|
|
|
+$(function() {
|
|
|
+ const iconCalenBlue= require("./../images/icon_calen_blue.png")
|
|
|
+ const iconCalenGrey= require("./../images/icon_calen_grey.png")
|
|
|
+ $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
|
|
|
+ $('.iconCalen').on("mouseenter", function(e){
|
|
|
+ $(this).attr("src", iconCalenBlue)
|
|
|
+ })
|
|
|
+ $('.iconCalen').on("mouseleave", function(e){
|
|
|
+ $(this).attr("src", iconCalenGrey)
|
|
|
+ })
|
|
|
+ $('.iconCalen').on("click", function(e){
|
|
|
+ $(this).parent().find("input").focus()
|
|
|
+ })
|
|
|
+});
|