|
@@ -1,4 +1,4 @@
|
|
|
-//@ sourceURL=mzsrmx.js
|
|
|
+//@ sourceURL=mzhbtj.js
|
|
|
$(function () {
|
|
|
init_daterangepicker();
|
|
|
//daterangepicker(getAllOperator);
|
|
@@ -41,55 +41,7 @@ function initSelect() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * 父类码下拉选
|
|
|
- */
|
|
|
-function initBillItemSelect() {
|
|
|
- //科室列表
|
|
|
- $.ajax({
|
|
|
- type: "GET",
|
|
|
- url: '/thmz/getAllBillItems',
|
|
|
- dataType: "json",
|
|
|
- headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
- success: function (data) {
|
|
|
- if (data == '401' || data == 401) {
|
|
|
- window.location.href = '/thmz/login/view'
|
|
|
- return;
|
|
|
- }
|
|
|
- var html = '';
|
|
|
- $.each(data.data, function (commentIndex, comment) {
|
|
|
- html += '<option value="' + comment.code + '">' + comment.name + '</option>';
|
|
|
- });
|
|
|
- $('#parentCode').html(html);
|
|
|
- $('#parentCode').selectpicker('refresh');
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
|
|
|
-/**
|
|
|
- * 核算码下拉选
|
|
|
- */
|
|
|
-function initHsmNameSelect() {
|
|
|
- //科室列表
|
|
|
- $.ajax({
|
|
|
- type: "GET",
|
|
|
- url: '/thmz/getAllHsmName',
|
|
|
- dataType: "json",
|
|
|
- headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
- success: function (data) {
|
|
|
- if (data == '401' || data == 401) {
|
|
|
- window.location.href = '/thmz/login/view'
|
|
|
- return;
|
|
|
- }
|
|
|
- var html = '';
|
|
|
- $.each(data.data, function (commentIndex, comment) {
|
|
|
- html += '<option value="' + comment + '">' + comment + '</option>';
|
|
|
- });
|
|
|
- $('#hsm').html(html);
|
|
|
- $('#hsm').selectpicker('refresh');
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
|
|
|
/**
|
|
|
* 挂号列表中的科室列表
|
|
@@ -217,33 +169,13 @@ function initMzsrmxTable() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }else {
|
|
|
+ $("#tb_table").find("tbody").html(null);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 构建列表查询参数
|
|
|
- * @param params
|
|
|
- * @returns {{mzChargeDetail: {patientId: string | number | string[] | undefined | jQuery, warnDept: string | number | string[] | undefined | jQuery, doctorCode: string | number | string[] | undefined | jQuery, name: string | number | string[] | undefined | jQuery, payMark: number}, beginTime: Date, endTime: Date, pageSize: *, pageIndex: number}}
|
|
|
- */
|
|
|
-function queryParams(params) {
|
|
|
- var rePortRangeArr = getRePortRangeArr();
|
|
|
- var temp = {
|
|
|
- beginDate: rePortRangeArr[0],
|
|
|
- endDate: rePortRangeArr[1],
|
|
|
- commonParams: $('#commonParams').val(),
|
|
|
- caseType: $('#timeParam').val(),
|
|
|
- jzSqDept: $("#jzSqDept").val(),
|
|
|
- jzSqDoctor: $("#jzSqDoctor").val(),
|
|
|
- execDept: $("#execDept").val(),
|
|
|
- hsm: $("#hsm").val(),
|
|
|
- parentCode: $("#parentCode").val(),
|
|
|
- xmm: $("#xmm").val()
|
|
|
- };
|
|
|
-
|
|
|
- return temp;
|
|
|
-};
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -264,28 +196,20 @@ function getRePortRangeArr() {
|
|
|
*/
|
|
|
function cleanParams() {
|
|
|
$('#reportrange span').html(moment().format('YYYY-MM-DD') + ' - ' + moment().format('YYYY-MM-DD'));
|
|
|
- $("#commonParams").val(null);
|
|
|
$("#timeParam").selectpicker('val', 0);//默认选中
|
|
|
$("#timeParam").selectpicker('refresh');
|
|
|
$("#jzSqDept").selectpicker('val', null);//默认选中
|
|
|
$("#jzSqDept").selectpicker('refresh');
|
|
|
$("#jzSqDoctor").selectpicker('val', null);//默认选中
|
|
|
$("#jzSqDoctor").selectpicker('refresh');
|
|
|
- $("#execDept").selectpicker('val', null);//默认选中
|
|
|
- $("#execDept").selectpicker('refresh');
|
|
|
- $("#parentCode").selectpicker('val', null);//默认选中
|
|
|
- $("#parentCode").selectpicker('refresh');
|
|
|
- $("#hsm").selectpicker('val', null);//默认选中
|
|
|
- $("#hsm").selectpicker('refresh');
|
|
|
- $("#xmm").val(null);
|
|
|
+ $("#hisData").removeAttr("checked");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 导出excel
|
|
|
*/
|
|
|
function exportExcel() {
|
|
|
- var rePortRangeArr = getRePortRangeArr();
|
|
|
- window.location.href = "/thmz/excelThmzmxsr?beginDate=" + rePortRangeArr[0] + "&endDate=" + rePortRangeArr[1] + "&commonParams=" + $('#commonParams').val()
|
|
|
- + "&caseType=" + $('#timeParam').val() + "&jzSqDept=" + $("#jzSqDept").val() + "&jzSqDoctor=" + $("#jzSqDoctor").val() + "&execDept=" + $("#execDept").val() + "&hsm="
|
|
|
- + $("#hsm").val() + "&parentCode=" + $("#parentCode").val() + "&xmm=" + $("#xmm").val();
|
|
|
+ var table2excel = new Table2Excel();
|
|
|
+// 传入你的tableId即可导出
|
|
|
+ table2excel.export($('#tb_table'), "门诊号别列表");
|
|
|
}
|