|
@@ -52,9 +52,11 @@ function payMarkButtonChange(object) {
|
|
|
function initHsJcListTable() {
|
|
|
var typeIndex = getIndex("pay_mark_group");
|
|
|
if (typeIndex == 0) {
|
|
|
- initNucleicAcidListTable();
|
|
|
- } else {
|
|
|
+ initNucleicAcidListTable(queryParams);
|
|
|
+ } else if (typeIndex == 1) {
|
|
|
initHybridTestListTable();
|
|
|
+ } else {
|
|
|
+ initNucleicAcidListTable(nucleicOnlyYellowAcidQueryParams);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -62,7 +64,7 @@ function initHsJcListTable() {
|
|
|
/**
|
|
|
* 初始化核酸检查(单人单管)申请列表
|
|
|
*/
|
|
|
-function initNucleicAcidListTable() {
|
|
|
+function initNucleicAcidListTable(queryParams) {
|
|
|
$('#tb_table_list').bootstrapTable("destroy");
|
|
|
$('#tb_table_list').bootstrapTable({
|
|
|
url: '/thmz/getHsJcList', //请求后台的URL(*)
|
|
@@ -77,7 +79,7 @@ function initNucleicAcidListTable() {
|
|
|
sidePagination: "server", //分页方式:client客户端分页,server服务端分页(*)
|
|
|
pageNumber: 1, //初始化加载第一页,默认第一页
|
|
|
pageSize: 10, //每页的记录行数(*)
|
|
|
- pageList: [5, 10, 25, 50, 100, 1000, 10000], //可供选择的每页的行数(*)
|
|
|
+ pageList: [5, 10, 25, 50, 100, 1000, 10000, 100000], //可供选择的每页的行数(*)
|
|
|
search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
|
|
|
strictSearch: true,
|
|
|
showColumns: false, //是否显示所有的列
|
|
@@ -97,14 +99,21 @@ function initNucleicAcidListTable() {
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
- field: 'patientId',
|
|
|
- title: '门诊ID',
|
|
|
+ title: '操作',
|
|
|
align: "center",
|
|
|
valign: 'middle',
|
|
|
formatter: function (value, row, index) {
|
|
|
var str = '<button type="button" class="btn btn-primary btn-sm" onclick="viewHyBirdTest(\'' + row.patientId + '\',' + row.times + ',1)">核酸报告<i class="fa fa-print" style="margin-left: 10px;"></i></button>';
|
|
|
return [str].join('');
|
|
|
}
|
|
|
+ }, {
|
|
|
+ field: 'patientId',
|
|
|
+ title: '门诊ID',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ return "["+value+"]";
|
|
|
+ }
|
|
|
}, {
|
|
|
field: 'patientName',
|
|
|
title: '病人姓名',
|
|
@@ -169,6 +178,24 @@ function queryParams(params) {
|
|
|
};
|
|
|
|
|
|
|
|
|
+/**
|
|
|
+ * 构建列表查询参数(黄码核酸)
|
|
|
+ * @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 nucleicOnlyYellowAcidQueryParams(params) {
|
|
|
+ var rePortRangeArr = getRePortRangeArr();
|
|
|
+ return {
|
|
|
+ patientName: $("#cardNo").val(),
|
|
|
+ orderCode: '004764',
|
|
|
+ beginTime: rePortRangeArr[0],
|
|
|
+ endTime: rePortRangeArr[1],
|
|
|
+ pageSize: params.limit, //页面大小
|
|
|
+ pageIndex: params.offset / params.limit //页码
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 初始化核酸检查(混检)申请列表
|
|
|
*/
|
|
@@ -187,7 +214,7 @@ function initHybridTestListTable() {
|
|
|
sidePagination: "server", //分页方式:client客户端分页,server服务端分页(*)
|
|
|
pageNumber: 1, //初始化加载第一页,默认第一页
|
|
|
pageSize: 10, //每页的记录行数(*)
|
|
|
- pageList: [5, 10, 25, 50, 100, 1000, 10000], //可供选择的每页的行数(*)
|
|
|
+ pageList: [5, 10, 25, 50, 100, 1000, 10000, 100000], //可供选择的每页的行数(*)
|
|
|
search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
|
|
|
strictSearch: true,
|
|
|
showColumns: false, //是否显示所有的列
|
|
@@ -207,14 +234,21 @@ function initHybridTestListTable() {
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
- field: 'patientId',
|
|
|
- title: '门诊ID',
|
|
|
+ title: '操作',
|
|
|
align: "center",
|
|
|
valign: 'middle',
|
|
|
formatter: function (value, row, index) {
|
|
|
var str = '<button type="button" class="btn btn-primary btn-sm" onclick="viewHyBirdTest(\'' + row.patientId + '\',' + row.times + ',2)">核酸报告<i class="fa fa-print" style="margin-left: 10px;"></i></button>';
|
|
|
return [str].join('');
|
|
|
}
|
|
|
+ }, {
|
|
|
+ field: 'patientId',
|
|
|
+ title: '门诊ID',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ return "["+value+"]";
|
|
|
+ }
|
|
|
}, {
|
|
|
field: 'name',
|
|
|
title: '病人姓名',
|
|
@@ -379,8 +413,10 @@ function exportExcel() {
|
|
|
var title = null;
|
|
|
if (typeIndex == 0) {
|
|
|
title = "核酸检测(单人单管)列表";
|
|
|
- } else {
|
|
|
+ } else if(typeIndex == 1) {
|
|
|
title = "核酸检测(混采)列表";
|
|
|
+ } else {
|
|
|
+ title = "核酸检测(黄码)列表";
|
|
|
}
|
|
|
// 传入你的tableId即可导出
|
|
|
table2excel.export($('#tb_table_list'), title);
|
|
@@ -393,11 +429,11 @@ function exportExcel() {
|
|
|
* @param times 就诊次数
|
|
|
* @param type 1 单人单管 2 混检
|
|
|
*/
|
|
|
-function viewHyBirdTest(patientId,times,type) {
|
|
|
+function viewHyBirdTest(patientId, times, type) {
|
|
|
clearInspectionDetail();
|
|
|
$.ajax({
|
|
|
type: "GET",
|
|
|
- url: '/thmz/getHyBridTestByPatentIdAndTimes?patientId=' + patientId+'×='+times+'&type='+type,
|
|
|
+ url: '/thmz/getHyBridTestByPatentIdAndTimes?patientId=' + patientId + '×=' + times + '&type=' + type,
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
|
dataType: "json",
|
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
@@ -460,7 +496,6 @@ function viewHyBirdTest(patientId,times,type) {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 关闭核酸混检预览弹窗
|
|
|
*/
|
|
@@ -470,7 +505,6 @@ function closePreviewYjReqModal() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 清空检验明细
|
|
|
* @param orderId
|
|
@@ -525,8 +559,6 @@ function setPrint() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 打印检查检验报告单
|
|
|
* @param printType 打印模式 1 预览打印 2 打印设置
|