|
@@ -233,7 +233,7 @@ function getTabData(activePage) {
|
|
|
asc: data_asc, //升序
|
|
|
desc: data_desc, //降序
|
|
|
...filterData,
|
|
|
- behDeptId:global_deptId,
|
|
|
+ behDeptId:global_deptId.trim(),
|
|
|
status:global_checkStatus,
|
|
|
jobDistributionTimeStart:filterData.jobDistributionTimeStart+" 00:00:00",
|
|
|
jobDistributionTimeEnd:filterData.jobDistributionTimeEnd+" 23:59:59"
|
|
@@ -291,14 +291,30 @@ function renderTab(data) {
|
|
|
<tr data-index=${i}>`;
|
|
|
for(let i=0;i<titles.length;i++){
|
|
|
code=$(titles[i]).attr('valCode');
|
|
|
- str += `<td class="textCenter"><span data-index=${i}>${ item[code] || "-"}<span></td>`
|
|
|
+ str += `<td class="${code=='behospitalCode'?'beHospitalId':''} textCenter"><span data-index=${i}>${ item[code] || "-"}<span></td>`
|
|
|
}
|
|
|
str += "</tr>"
|
|
|
}
|
|
|
$('.tbody').html(str)
|
|
|
+ bindScoreDetail()
|
|
|
bindOrder()
|
|
|
}
|
|
|
|
|
|
+function bindScoreDetail() {
|
|
|
+ $('.tbody').unbind("click").on('click', 'tr .beHospitalId', function (e) {
|
|
|
+ console.log(tabList)
|
|
|
+ console.log($(this).parent().index())
|
|
|
+ const index = $(this).parent().index()
|
|
|
+ const id = tabList[index].behospitalCode
|
|
|
+ const age = tabList[index].age;
|
|
|
+ const checkStatus = tabList[index].checkStatus
|
|
|
+ scoreDetail(id, age, getCookie("hospitalid"), 'YH-ZKHC-HCRWLB', tabList[index].name)
|
|
|
+ });
|
|
|
+}
|
|
|
+function scoreDetail(id, age, hid, code) {
|
|
|
+
|
|
|
+ window.open(`./qcScore.html?id=${id}&age=${age}&hid=${hid}&code=${code}`)
|
|
|
+}
|
|
|
//病历等级选择
|
|
|
function bindLeveldSelect() {
|
|
|
$('.levelItem').on("click", function () {
|