|
@@ -225,6 +225,96 @@ $(".abnormalClear").on("click", function (e) {
|
|
|
getTabData(1)
|
|
|
})
|
|
|
|
|
|
+getmoduleList()
|
|
|
+
|
|
|
+//获取模块类型
|
|
|
+function getmoduleList() {
|
|
|
+ post(api.getQcCasesAll).then(res => {
|
|
|
+ if (res.data.code == '0') {
|
|
|
+ const moduleTypeList = res.data.data
|
|
|
+ renderModuleList(moduleTypeList)
|
|
|
+ } else { }
|
|
|
+ }).catch((e) => {
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+function renderModuleList(moduleTypeList) {
|
|
|
+ let str = `<li class="modularItem " data-id=" " data-name="全部">全部</li>`
|
|
|
+ for (let i = 0; i < moduleTypeList.length; i++) {
|
|
|
+ str += `<li class="modularItem ellipsis" title=${moduleTypeList[i].name} data-id=${moduleTypeList[i].id} data-name=${moduleTypeList[i].name}> ${moduleTypeList[i].name}</li>`
|
|
|
+ }
|
|
|
+ $('.modularList').html(str)
|
|
|
+ bindModuleSelect()
|
|
|
+}
|
|
|
+//模块类型选择
|
|
|
+function bindModuleSelect() {
|
|
|
+ $('.modularItem').on("click", function () {
|
|
|
+ const modularItemName = $(this).attr("data-name")
|
|
|
+ const modularItemItemId = $(this).attr("data-id")
|
|
|
+ moduleName = modularItemItemId
|
|
|
+ $('.selectModular').html(modularItemName)
|
|
|
+ $(".modularList").css("display", "none")
|
|
|
+ $(".selectModular").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ $('.selectModular').removeClass('unSelect')
|
|
|
+ })
|
|
|
+}
|
|
|
+getAppealReviewDictionary()
|
|
|
+//获取操作类型
|
|
|
+function getAppealReviewDictionary() {
|
|
|
+ post(api.getAppealReviewDictionary).then(res => {
|
|
|
+ if (res.data.code == '0') {
|
|
|
+ const typeList = res.data.data['操作类型']
|
|
|
+ const statusList = res.data.data['状态']
|
|
|
+ renderTypeList(typeList)
|
|
|
+ renderStatusList(statusList)
|
|
|
+ } else { }
|
|
|
+ }).catch((e) => {
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+function renderTypeList(data) {
|
|
|
+ console.log(data);
|
|
|
+ let str = `<li class="typeItem " data-id=" " data-name="全部">全部</li>`
|
|
|
+ for (var i in data) {
|
|
|
+ str += `<li class="typeItem ellipsis" title=${data[i]} data-id=${i} data-name=${data[i]}> ${data[i]}</li>`
|
|
|
+ }
|
|
|
+ $('.typeList').html(str)
|
|
|
+ bindTypedSelect()
|
|
|
+}
|
|
|
+//操作类型选择
|
|
|
+function bindTypedSelect() {
|
|
|
+ $('.typeItem').on("click", function () {
|
|
|
+ const typeItemName = $(this).attr("data-name")
|
|
|
+ const typeItemItemId = $(this).attr("data-id")
|
|
|
+ operationType = typeItemItemId
|
|
|
+ $('.selectType').html(typeItemName)
|
|
|
+ $(".typeList").css("display", "none")
|
|
|
+ $(".selectType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ $('.selectType').removeClass('unSelect')
|
|
|
+ })
|
|
|
+}
|
|
|
+function renderStatusList(data) {
|
|
|
+ let str = `<li class="qcCheckItem " data-id=" " data-name="全部">全部</li>`
|
|
|
+ for (var i in data) {
|
|
|
+ str += `<li class="qcCheckItem ellipsis" title=${data[i]} data-id=${i} data-name=${data[i]}> ${data[i]}</li>`
|
|
|
+ }
|
|
|
+ $('.qcCheckList').html(str)
|
|
|
+ bindCheckedSelectQc()
|
|
|
+}
|
|
|
+//状态
|
|
|
+function bindCheckedSelectQc() {
|
|
|
+ $('.qcCheckItem').on("click", function () {
|
|
|
+ const qcCheckItemName = $(this).attr("data-name")
|
|
|
+ const qcCheckItemItemId = $(this).attr("data-id") || ""
|
|
|
+ state = qcCheckItemItemId
|
|
|
+ $('.qcSelectCheck').html(qcCheckItemName)
|
|
|
+ $(".qcCheckList").css("display", "none")
|
|
|
+ $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
+ $('.qcSelectCheck').removeClass('unSelect')
|
|
|
+ })
|
|
|
+}
|
|
|
//获取审核人下拉列表
|
|
|
function getCheckUser() {
|
|
|
const param = {};
|
|
@@ -336,7 +426,7 @@ function cancelAppealInfo(id) {
|
|
|
|
|
|
//再次申述
|
|
|
function addAppealInfo(data) {
|
|
|
-
|
|
|
+
|
|
|
$(".warning").hide();
|
|
|
let val = $(".textarea").val()
|
|
|
let num = 500
|
|
@@ -355,7 +445,7 @@ function addAppealInfo(data) {
|
|
|
behospitalCode: data.behospitalCode,
|
|
|
checkId: $(".checker-drop-input").attr("code"),
|
|
|
appealType: 1,
|
|
|
- qcresultDetailId:data.qcresultDetailId,
|
|
|
+ qcresultDetailId: data.qcresultDetailId,
|
|
|
}
|
|
|
post(api.addAppealInfo, param).then(function (res) {
|
|
|
if (res.data.code === '0') {
|
|
@@ -422,7 +512,6 @@ $('.selectType').on("click", function (e) {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-
|
|
|
//选择状态
|
|
|
$('.qcSelectCheck').on("click", function (e) {
|
|
|
e.stopPropagation()
|
|
@@ -442,48 +531,8 @@ $('.qcSelectCheck').on("click", function (e) {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-bindLeveldSelect()
|
|
|
-//病历等级选择
|
|
|
-function bindLeveldSelect() {
|
|
|
- $('.modularItem').on("click", function () {
|
|
|
- const modularItemName = $(this).attr("data-name")
|
|
|
- const modularItemItemId = $(this).attr("data-id")
|
|
|
- moduleName = modularItemItemId
|
|
|
- $('.selectModular').html(modularItemName)
|
|
|
- $(".modularList").css("display", "none")
|
|
|
- $(".selectModular").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- $('.selectModular').removeClass('unSelect')
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
-bindTypedSelect()
|
|
|
-//操作类型
|
|
|
-function bindTypedSelect() {
|
|
|
- $('.typeItem').on("click", function () {
|
|
|
- const typeItemName = $(this).attr("data-name")
|
|
|
- const typeItemItemId = $(this).attr("data-id")
|
|
|
- operationType = typeItemItemId
|
|
|
- $('.selectType').html(typeItemName)
|
|
|
- $(".typeList").css("display", "none")
|
|
|
- $(".selectType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- $('.selectType').removeClass('unSelect')
|
|
|
- })
|
|
|
-}
|
|
|
|
|
|
-bindCheckedSelectQc()
|
|
|
-//病历核查状态选择
|
|
|
-function bindCheckedSelectQc() {
|
|
|
- $('.qcCheckItem').on("click", function () {
|
|
|
- const qcCheckItemName = $(this).attr("data-name")
|
|
|
- const qcCheckItemItemId = $(this).attr("data-id") || ""
|
|
|
- state = qcCheckItemItemId
|
|
|
- $('.qcSelectCheck').html(qcCheckItemName)
|
|
|
- $(".qcCheckList").css("display", "none")
|
|
|
- $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
|
|
|
- $('.qcSelectCheck').removeClass('unSelect')
|
|
|
- })
|
|
|
-}
|
|
|
|
|
|
$('.selectDept').on("click", function (e) {
|
|
|
e.stopPropagation()
|