|
@@ -2,7 +2,7 @@ const $ = require('jquery');
|
|
|
require("../css/partDetail.less");
|
|
|
require('./modal.js');
|
|
|
const {api} = require('./api.js')
|
|
|
-const {post,getCookie,getUrlArgObjectNew,emptyBox} = require('./utils.js')
|
|
|
+const {post,getCookie,getUrlArgObjectNew,emptyBox,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")
|
|
@@ -33,6 +33,7 @@ $(function(){
|
|
|
color:'#00A1FF',
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),1)
|
|
|
}else{
|
|
|
$(".monthYear .year").css({
|
|
|
backgroundColor:'#00A1FF',
|
|
@@ -41,6 +42,7 @@ $(function(){
|
|
|
color:'#00A1FF',
|
|
|
backgroundColor:'#fff'
|
|
|
})
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
}
|
|
|
if(deptId){
|
|
|
$(".selectDept").html(deptId).attr({
|
|
@@ -56,6 +58,7 @@ $(function(){
|
|
|
$(".abnormalClear").click(function(){
|
|
|
deptId=deptIdTemp = deptList[0].deptName
|
|
|
behospitalCode=behospitalCodeTemp = ""
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),statisticsType||2)
|
|
|
$(".patientNumInp").val("")
|
|
|
$(".selectDept").html(deptId).attr({
|
|
|
"data-id":deptId,
|
|
@@ -78,16 +81,21 @@ function focusMenuItem(code){
|
|
|
//console.log($(parent.document).find(".menu .page[code='YH-ZKK-GMKQXZB_XQ']"))
|
|
|
ele.click();
|
|
|
}
|
|
|
-$('.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()
|
|
|
-})
|
|
|
+$(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()
|
|
|
+ })
|
|
|
+});
|
|
|
+
|
|
|
$('.recordScoreBtn').css("opacity",hasData('FUNC000017')?'1':'0.5')
|
|
|
|
|
|
//科室处理
|
|
@@ -120,6 +128,7 @@ function dateChange(){
|
|
|
$(".dayDetail .deptListWrap").css("display","block")
|
|
|
$(".dayDetail .dayFilter").css("display","none")
|
|
|
statisticsType = 1
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),1)
|
|
|
getTabData(1)
|
|
|
})
|
|
|
$(".monthYear .year").click(function(){
|
|
@@ -133,6 +142,7 @@ function dateChange(){
|
|
|
$(".dayDetail .deptListWrap").css("display","none")
|
|
|
$(".dayDetail .dayFilter").css("display","block")
|
|
|
statisticsType = 2
|
|
|
+ setDatePicker($("#datepicker"),$("#datepicker2"),2)
|
|
|
getTabData(1)
|
|
|
})
|
|
|
}
|
|
@@ -149,12 +159,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 = {
|
|
|
"asc": data_asc,
|
|
|
"desc": data_desc,
|
|
|
"deptName": deptId||"",
|
|
|
"name": behospitalCode||"",
|
|
|
"type": statisticsType||2, //1-本月,2-本年
|
|
|
+ "startDate":dateStatrt,
|
|
|
+ "endDate":dateEnd
|
|
|
}
|
|
|
post(api.homePageLevelByDeptLimit,param).then(res =>{
|
|
|
if(res.data.code == '0'){
|