|
@@ -215,7 +215,7 @@ getmoduleList()
|
|
|
|
|
|
//获取模块类型
|
|
//获取模块类型
|
|
function getmoduleList() {
|
|
function getmoduleList() {
|
|
- post(api.getAppealMode,{pageType:1}).then(res => {
|
|
|
|
|
|
+ post(api.getAppealMode, { pageType: 1 }).then(res => {
|
|
if (res.data.code == '0') {
|
|
if (res.data.code == '0') {
|
|
const moduleTypeList = res.data.data
|
|
const moduleTypeList = res.data.data
|
|
renderModuleList(moduleTypeList)
|
|
renderModuleList(moduleTypeList)
|
|
@@ -373,19 +373,7 @@ function renderTab(data) {
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal .modal-body").html("");
|
|
$("#delModal").show();
|
|
$("#delModal").show();
|
|
getCheckUser()
|
|
getCheckUser()
|
|
- if (data[i].appealOperationType == 1) {
|
|
|
|
- if (data[i].exampleStatus == 2) {
|
|
|
|
- data[i].appealOperationType = 0
|
|
|
|
- } else {
|
|
|
|
- data[i].appealOperationType = 1
|
|
|
|
- }
|
|
|
|
- } else if (data[i].appealOperationType == 3) {
|
|
|
|
- data[i].appealOperationType = 0
|
|
|
|
- }
|
|
|
|
- $("#appealDef").tmpl(data[i]).appendTo("#delModal .modal-body");
|
|
|
|
- $("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
|
- addAppealInfo(data[i])
|
|
|
|
- });
|
|
|
|
|
|
+ getAppealOperationType(data[i])
|
|
})
|
|
})
|
|
$(".goHomeDetail1").click(function () {
|
|
$(".goHomeDetail1").click(function () {
|
|
let id = $(this).parent().attr("data-id")
|
|
let id = $(this).parent().attr("data-id")
|
|
@@ -394,10 +382,26 @@ function renderTab(data) {
|
|
let casesEntryId = $(this).parent().attr("data-casesEntryId")
|
|
let casesEntryId = $(this).parent().attr("data-casesEntryId")
|
|
let qcresultDetailId = $(this).parent().attr("data-qcresultDetailId")
|
|
let qcresultDetailId = $(this).parent().attr("data-qcresultDetailId")
|
|
let appealOperationType = $(this).parent().attr("data-appealOperationType")
|
|
let appealOperationType = $(this).parent().attr("data-appealOperationType")
|
|
- $(parent.document).find("#contentIframe").attr("src", "appealExamine.html?id=" + id + "&hospitalId=" + hospitalId + "&behospitalCode=" + behospitalCode + "&casesEntryId=" + casesEntryId + "&qcresultDetailId=" + qcresultDetailId + "&appealOperationType=" + appealOperationType+ "&page=" + page + "&form=" + 3)
|
|
|
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "appealExamine.html?id=" + id + "&hospitalId=" + hospitalId + "&behospitalCode=" + behospitalCode + "&casesEntryId=" + casesEntryId + "&qcresultDetailId=" + qcresultDetailId + "&appealOperationType=" + appealOperationType + "&page=" + page + "&form=" + 3)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+function getAppealOperationType(data) {
|
|
|
|
+ post(api.getAppealOperationType, { appealOperationType: data.appealOperationType, exampleStatus: data.exampleStatus, qcresultDetailId: data.qcresultDetailId }).then(function (res) {
|
|
|
|
+ if (res.data.code === '0') {
|
|
|
|
+ data.appealOperationType = res.data.data.appealOperationType
|
|
|
|
+ $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");
|
|
|
|
+ $("#delModal .confirm").text("确定").unbind("click").click(function () {
|
|
|
|
+ addAppealInfo(data)
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ $.alerModal({ "message": res.data.msg || '失败,请重试~', type: "tip", time: '1000', win: 'default' });
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ $.alerModal({ "message": '失败,请重试~', type: "tip", time: '1000', win: 'default' });
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+}
|
|
function cancelAppealInfo(id) {
|
|
function cancelAppealInfo(id) {
|
|
post(api.cancelAppealInfo, { id: id }).then(function (res) {
|
|
post(api.cancelAppealInfo, { id: id }).then(function (res) {
|
|
if (res.data.code === '0') {
|
|
if (res.data.code === '0') {
|
|
@@ -544,7 +548,7 @@ $('.selectDept').on("click", function (e) {
|
|
//获取科室列表
|
|
//获取科室列表
|
|
getDeptList()
|
|
getDeptList()
|
|
function getDeptList() {
|
|
function getDeptList() {
|
|
- post(api.getAppealDept, { inputStr: "",pageType:1 }).then(res => {
|
|
|
|
|
|
+ post(api.getAppealDept, { inputStr: "", pageType: 1 }).then(res => {
|
|
if (res.data.code == '0') {
|
|
if (res.data.code == '0') {
|
|
const deptList = res.data.data
|
|
const deptList = res.data.data
|
|
rendeDeptList(deptList)
|
|
rendeDeptList(deptList)
|