|
@@ -1,5 +1,5 @@
|
|
|
const $ = require('jquery');
|
|
|
-require("../css/mukuai.less");
|
|
|
+require("../css/deptQualifiedPhysician.less");
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
|
require('./modal.js');
|
|
|
const { api } = require('./api.js')
|
|
@@ -11,7 +11,7 @@ const iconUp = require("./../images/arrow_up.png")
|
|
|
const arrowLeft = require("./../images/arrow_left.png")
|
|
|
const arrowRight = require("./../images/arrow_right.png")
|
|
|
|
|
|
-listenScroll('.mukuai')
|
|
|
+listenScroll('.physician')
|
|
|
let casesId = "", name = "", isReject = "", isUsed = "", casesIdTemp = "", nameTemp = "", isRejectTemp = "", data_asc = [], data_desc = ['deptName'], isUsedTemp = "", from = "", deptIdTemp = "", deptItemId = "", deptId = "", professor = ""
|
|
|
$(".selectModuleType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
$(".selectReject").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
@@ -112,16 +112,17 @@ $('.selectPhysician').on("input", function (e) {
|
|
|
//获取医师类别
|
|
|
getDoctorProfessorList()
|
|
|
function getDoctorProfessorList(val) {
|
|
|
- post(api.getDoctorProfessorList, { inputStr: val == "全部" ? "" : val || "", }).then(res => {
|
|
|
- if (res.data.code == '0') {
|
|
|
- const physicianList = res.data.data || []
|
|
|
- rendePhysicianList(physicianList)
|
|
|
- } else {
|
|
|
- rendePhysicianList([])
|
|
|
- }
|
|
|
- }).catch((e) => {
|
|
|
+ // post(api.getDoctorProfessorList, { inputStr: val == "全部" ? "" : val || "", }).then(res => {
|
|
|
+ // if (res.data.code == '0') {
|
|
|
+ // const physicianList = res.data.data || []
|
|
|
+ // rendePhysicianList(physicianList)
|
|
|
+ // } else {
|
|
|
+ // rendePhysicianList([])
|
|
|
+ // }
|
|
|
+ // }).catch((e) => {
|
|
|
|
|
|
- })
|
|
|
+ // })
|
|
|
+ bindPhysicianSelect()
|
|
|
}
|
|
|
function rendePhysicianList(physicianList) {
|
|
|
if (physicianList.length == 0) {
|
|
@@ -208,12 +209,12 @@ getDeptList()
|
|
|
function getDeptList() {
|
|
|
let str = ``
|
|
|
if (deptList.length <= 0) return
|
|
|
- $(".mukuai .selectDept").attr("data-id", deptList[0].deptName).find("i").html(deptList[0].deptName)
|
|
|
+ $(".physician .selectDept").attr("data-id", deptList[0].deptName).find("i").html(deptList[0].deptName)
|
|
|
for (let i = 0; i < deptList.length; i++) {
|
|
|
let tmp = deptList[i]
|
|
|
str += `<li class="deptItem ellipsis" title="${tmp.deptName}" data-id="${tmp.deptName}" data-name="${tmp.deptName}">${tmp.deptName}</li>`
|
|
|
}
|
|
|
- $(".mukuai .filterDropList").html(str)
|
|
|
+ $(".physician .deptList").html(str)
|
|
|
}
|
|
|
//判断有无某一权限
|
|
|
function hasData(data) {
|
|
@@ -376,22 +377,22 @@ function renderTab(data, activePage) {
|
|
|
<td >${item.deptName || "-"}</td>
|
|
|
<td >${item.professor || "-"}</td>
|
|
|
<td >${item.doctorName || "-"}</td>
|
|
|
- <td class="goHomeDetailQuexian goHomeDetail" data-doctorName="${item.doctorName || ""}" data-ruleType="" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
+ <td class="goHomeDetailQuexian goHomeDetail" data-doctorName="${item.doctorName || ""}" data-docId="${item.doctorId || ""}" data-ruleType="" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
${item.entryNum || "-"}
|
|
|
${item.entrySameNum < 0 ? '<img class="updownimg" src="' + jiantou_down + '"/>' : item.entrySameNum > 0 ? '<img class="updownimg" src="' + jiantou_up + '"/>' : ''}
|
|
|
</td>
|
|
|
- <td class="goHomeDetailQuexian goHomeDetail1" data-doctorName="${item.doctorName || ""}" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
+ <td class="goHomeDetailQuexian goHomeDetail1" data-doctorName="${item.doctorName || ""}" data-docId="${item.doctorId || ""}" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
${item.secondLevelNum}
|
|
|
</td>
|
|
|
- <td class="goHomeDetailQuexian goHomeDetail1" data-doctorName="${item.doctorName || ""}" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
+ <td class="goHomeDetailQuexian goHomeDetail1" data-doctorName="${item.doctorName || ""}" data-docId="${item.doctorId || ""}" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
${item.firstLevelNum}
|
|
|
</td>
|
|
|
<td >${item.firstLevelPercentStr}</td>
|
|
|
- <td class="goHomeDetailQuexian goHomeDetail" data-doctorName="${item.doctorName || ""}" data-ruleType="1" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
+ <td class="goHomeDetailQuexian goHomeDetail" data-doctorName="${item.doctorName || ""}" data-docId="${item.doctorId || ""}" data-ruleType="1" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
${item.emptyNum}
|
|
|
</td>
|
|
|
<td >${item.emptyPercentStr}</td>
|
|
|
- <td class="goHomeDetailQuexian goHomeDetail" data-doctorName="${item.doctorName || ""}" data-ruleType="2" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
+ <td class="goHomeDetailQuexian goHomeDetail" data-doctorName="${item.doctorName || ""}" data-docId="${item.doctorId || ""}" data-ruleType="2" data-dept="${item.deptName || ""}" dept-id="${item.deptId || ""}">
|
|
|
${item.errorNum}
|
|
|
</td>
|
|
|
<td >${item.errorPercentStr}</td>
|
|
@@ -406,8 +407,9 @@ function renderTab(data, activePage) {
|
|
|
let deptName = $(this).attr("data-dept")
|
|
|
let ruleType = $(this).attr("data-ruleType")
|
|
|
let doctorName = $(this).attr("data-doctorName")
|
|
|
+ let docId = $(this).attr("data-docId")
|
|
|
let deptId = data[index].deptId
|
|
|
- $(parent.document).find("#contentIframe").attr("src", "quexianDetailControlHome.html?deptName=" + deptName + "&deptId=" + deptId + "&from=1&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam + "&docName=" + doctorName)
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "quexianDetailHome.html?deptName=" + deptName + "&deptId=" + deptId + "&from=1&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDateParam=" + startDateParam + "&endDateParam=" + endDateParam + "&docName=" + doctorName + "&docId=" + docId)
|
|
|
})
|
|
|
// 不合格数跳转至 病历列表详情页
|
|
|
$(".goHomeDetail1").click(function () {
|
|
@@ -415,10 +417,11 @@ function renderTab(data, activePage) {
|
|
|
let deptName = $(this).attr("data-dept")
|
|
|
let titleName = $(this).attr("data-title")
|
|
|
let doctorName = $(this).attr("data-doctorName")
|
|
|
+ let docId = $(this).attr("data-docId")
|
|
|
// let ruleType = $(this).attr("data-ruleType")
|
|
|
let deptId = data[index].deptId
|
|
|
// $(parent.document).find("#contentIframe").attr("src", "qcListCopy.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&ruleType=" + ruleType + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&defectName=" + defectName)
|
|
|
- $(parent.document).find("#contentIframe").attr("src", "qcListCopyUnqualified.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&titleName=" + titleName + "&docName=" + doctorName)
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "qcListCopyUnqualifiedDept.html?deptName=" + deptName + "&deptId=" + deptId + "&from=4&casesId=243" + "&shijian=3" + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&titleName=" + titleName + "&docName=" + doctorName + "&docId=" + docId)
|
|
|
})
|
|
|
// initScroll("deptScoreDetailControl","YX",1)
|
|
|
}
|