appealHistory.js 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041
  1. const $ = require('jquery');
  2. require("../css/appealHistory.less");
  3. require('./modal.js');
  4. require('jquery-templates');
  5. const { api } = require('./api.js')
  6. const { post, getCookie, getLocal, getUrlArgObjectNew, setDatePicker, emptyBox, downloadExportedData, expJson, getLogoParam, listenScroll, getPickerDate, exportTimeLimit } = require('./utils.js')
  7. require('./../resource/jquery-ui/jquery-ui.min.js');
  8. require('./../resource/jquery-ui/jquery-ui.min.css');
  9. const iconCheck = require("./../images/icon_check.png")
  10. const iconUnCheck = require("./../images/icon_unchecked.png")
  11. const iconCalenBlue = require("./../images/icon_calen_blue.png")
  12. const iconCalenGrey = require("./../images/icon_calen_grey.png")
  13. const iconDown = require("./../images/arrow_down.png")
  14. const iconUp = require("./../images/arrow_up.png")
  15. const arrowLeft = require("./../images/arrow_left.png")
  16. const arrowRight = require("./../images/arrow_right.png")
  17. const goUpG = require("./../images/arrow_up_grey.png")
  18. const goUpB = require("./../images/arrow_up_blue.png")
  19. const goDownG = require("./../images/arrow_down_grey.png")
  20. const goDownB = require("./../images/arrow_down_blue.png");
  21. const ret = require('bluebird/js/release/util');
  22. listenScroll()
  23. let pageSet = [], pageSetCopy = [], showNum = 0, scrollTop = 0;
  24. $(".selectModular").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  25. $(".selectType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  26. $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  27. $(".fpSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  28. $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  29. let srcUrl = $("#contentIframe", parent.document).attr("src")
  30. let statisticsType = getUrlArgObjectNew("dateType", srcUrl) || getUrlArgObjectNew("shijian", srcUrl) || ""
  31. let startDateParam = getUrlArgObjectNew("startDateParam", srcUrl) || ""
  32. let endDateParam = getUrlArgObjectNew("endDateParam", srcUrl) || ""
  33. let page = getUrlArgObjectNew("page", srcUrl) || 1
  34. let behosDateStart = getUrlArgObjectNew("behosDateStart", srcUrl) || ""
  35. let behosDateEnd = getUrlArgObjectNew("behosDateEnd", srcUrl) || ""
  36. let deptId = getUrlArgObjectNew("deptId", srcUrl) || ""
  37. let deptName = getUrlArgObjectNew("deptName", srcUrl) || ""
  38. let moduleName = getUrlArgObjectNew("moduleName", srcUrl) || ""
  39. let name = getUrlArgObjectNew("name", srcUrl) || ""
  40. let operationType = getUrlArgObjectNew("operationType", srcUrl) || ""
  41. let state = getUrlArgObjectNew("state", srcUrl) || ""
  42. let patientName = getUrlArgObjectNew("patientName", srcUrl) || ""
  43. let tabList = [], deptNameTemp = "",
  44. deptIdTemp = "",
  45. fpCheckStatusTemp = "", fpCheckNameTemp = "", qcCheckNameTemp = "",
  46. global_checkers = []; //审核人列表;
  47. let isPlacefile = getCookie('isPlacefile') || 1
  48. $('.datapickerBox').append(`<img class="iconCalen" src=${iconCalenGrey} />`)
  49. $('.iconCalen').on("mouseenter", function (e) {
  50. $(this).attr("src", iconCalenBlue)
  51. })
  52. $('.iconCalen').on("mouseleave", function (e) {
  53. $(this).attr("src", iconCalenGrey)
  54. })
  55. $('.iconCalen').on("click", function (e) {
  56. $(this).parent().find("input").focus()
  57. })
  58. $(".menu .page", parent.document).removeClass("active")
  59. $(parent.document).find(".menu .page[code=YH-SSXX-SSJL]").addClass("active")
  60. if (deptName) {
  61. $('.selectDept').html(deptName).attr("title", deptName)
  62. $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  63. }
  64. if (moduleName) {
  65. $('.selectModular').html(moduleName).attr("title", moduleName)
  66. $(".selectModular").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  67. }
  68. if (operationType) {
  69. $('.selectType').html(operationType).attr("title", operationType)
  70. $(".selectType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  71. }
  72. if (state) {
  73. $('.qcSelectCheck').html(state).attr("title", state)
  74. $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  75. }
  76. if (name) {
  77. $('.name').val(name)
  78. }
  79. if (patientName) {
  80. $('.patientNameInp').val(patientName)
  81. }
  82. $(".name").on("input", function (e) {
  83. const val = $(this).val().trim()
  84. name = val
  85. })
  86. $(".patientNameInp").on("input", function (e) {
  87. const val = $(this).val().trim()
  88. patientName = val
  89. })
  90. function getTabData(activePage) {
  91. behosDateStart = getPickerDate($("#datepicker"), 1)
  92. behosDateEnd = getPickerDate($("#datepicker2"), 2)
  93. const param = {
  94. current: activePage,
  95. deptId: deptId.trim(),
  96. deptName: deptName == "全部" ? "" : deptName || '',
  97. modeName: moduleName == "全部" ? "" : moduleName || '',
  98. operationType: operationType,
  99. state: state,
  100. size: 15,
  101. name: name,
  102. patientName: patientName,
  103. complaintDateEnd: behosDateEnd.replace(/\//g, '-'),
  104. complaintDateStart: behosDateStart.replace(/\//g, '-'),
  105. "desc": ['claimant_gmt_create'],
  106. }
  107. $('.pagination').html("")
  108. $('.tbody').html(emptyBox('努力加载中...', '',))
  109. return post(api.getComplaintRecord, param).then(res => {
  110. if (res.data.code == '0') {
  111. tabList = res.data.data.records
  112. const totalPage = res.data.data.pages
  113. const totalNum = res.data.data.total
  114. renderTab(tabList)
  115. renderPagination(totalPage, Number(activePage), totalNum)
  116. if (totalPage > 1) {
  117. renderPagination(totalPage, Number(activePage), totalNum)
  118. } else {
  119. $('.pagination').html("")
  120. }
  121. } else {
  122. const token = localStorage.getItem('accessToken');
  123. if (!token && window.location.href.indexOf('login') == -1) {
  124. //alert('无token判断,跳回登录')
  125. } else {
  126. $.alerModal({ "message": res.data.msg, type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
  127. }
  128. }
  129. }).catch((e) => {
  130. })
  131. }
  132. $(".filter").on("click", function (e) {
  133. behosDateStart = $("#datepicker").val()
  134. behosDateEnd = $("#datepicker2").val()
  135. const behosDateStartTime = new Date(behosDateStart).getTime()
  136. const behosDateEndTime = new Date(behosDateEnd).getTime()
  137. if (behosDateStartTime > behosDateEndTime) {
  138. $.alerModal({ "message": '申诉时间开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
  139. return
  140. }
  141. if (behosDateStart) {
  142. behosDateStart = behosDateStart.replace(/\//g, '-') + ' 00:00:00'
  143. }
  144. if (behosDateEnd) {
  145. behosDateEnd = behosDateEnd.replace(/\//g, '-') + ' 23:59:59'
  146. }
  147. deptId = deptIdTemp
  148. deptName = deptNameTemp
  149. fpCheckName = fpCheckNameTemp
  150. qcCheckName = qcCheckNameTemp
  151. fpCheckStatus = fpCheckStatusTemp
  152. qcCheckStatus = state
  153. getTabData(1)
  154. })
  155. $(".abnormalClear").on("click", function (e) {
  156. page = 1
  157. tabList = [];
  158. scoreSum = 0;
  159. deptId = "";
  160. deptIdTemp = "";
  161. deptName = deptNameTemp = "";
  162. fpCheckName = "";
  163. qcCheckName = "";
  164. qcCheckMain = "";
  165. fpCheckNameTemp = "";
  166. qcCheckNameTemp = "";
  167. qcCheckMainTemp = "";
  168. fpCheckStatus = "";
  169. fpCheckStatusTemp = "";
  170. qcCheckStatus = "";
  171. state = ""
  172. operationType = ""
  173. moduleName = ""
  174. name = ""
  175. patientName = ""
  176. data_desc = ["leave_hospital_date"]
  177. if (isPlacefile != 1) {
  178. data_desc = ["behospital_date"]
  179. }
  180. data_asc = [];
  181. $('.patientNameInp').val('')
  182. $('.name').val('')
  183. // $('#datepicker').val('')
  184. // $('#datepicker2').val('')
  185. //默认日期为近一周
  186. $("#datepicker").datepicker({
  187. changeMonth: true,
  188. changeYear: true,
  189. dateFormat: "yy/mm/dd",
  190. }).datepicker("setDate", "-6d");
  191. $("#datepicker2").datepicker({
  192. changeMonth: true,
  193. changeYear: true,
  194. dateFormat: "yy/mm/dd"
  195. }).datepicker("setDate", new Date());
  196. $("#datepickerFp1").datepicker({
  197. changeMonth: true,
  198. changeYear: true,
  199. dateFormat: "yy/mm/dd",
  200. }).datepicker("setDate", "");
  201. $("#datepickerFp2").datepicker({
  202. changeMonth: true,
  203. changeYear: true,
  204. dateFormat: "yy/mm/dd"
  205. }).datepicker("setDate", "");
  206. $("#datepickerQc1").datepicker({
  207. changeMonth: true,
  208. changeYear: true,
  209. dateFormat: "yy/mm/dd",
  210. }).datepicker("setDate", "");
  211. $("#datepickerQc2").datepicker({
  212. changeMonth: true,
  213. changeYear: true,
  214. dateFormat: "yy/mm/dd"
  215. }).datepicker("setDate", "");
  216. $('.selectDept ').html('全部')
  217. $(".deptList").css("display", "none")
  218. $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  219. // $('.selectDept ').addClass('unSelect')
  220. $('.selectModular').html('全部')
  221. $(".modularList").css("display", "none")
  222. $(".selectModular").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  223. // $('.selectModular ').addClass('unSelect')
  224. $('.selectType').html('全部')
  225. $(".typeList ").css("display", "none")
  226. $(".selectType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  227. $('.qcSelectCheck').html('全部')
  228. $(".qcCheckList").css("display", "none")
  229. $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  230. $("th[code]").removeClass("asc desc")
  231. if (isPlacefile == 1) {
  232. $(".leaveHospitalDate").addClass(" desc")
  233. } else {
  234. $(".behospitalDate").addClass(" desc")
  235. }
  236. behosDateStart = $("#datepicker").val()
  237. behosDateEnd = $("#datepicker2").val()
  238. if (behosDateStart) {
  239. behosDateStart = behosDateStart.replace(/\//g, '-') + ' 00:00:00'
  240. }
  241. if (behosDateEnd) {
  242. behosDateEnd = behosDateEnd.replace(/\//g, '-') + ' 23:59:59'
  243. }
  244. getTabData(page)
  245. })
  246. getmoduleList()
  247. //获取模块类型
  248. function getmoduleList() {
  249. post(api.getAppealMode, { pageType: 1 }).then(res => {
  250. if (res.data.code == '0') {
  251. const moduleTypeList = res.data.data
  252. renderModuleList(moduleTypeList)
  253. } else { }
  254. }).catch((e) => {
  255. })
  256. }
  257. function renderModuleList(moduleTypeList) {
  258. let str = `<li class="modularItem " data-id="" data-name="全部">全部</li>`
  259. for (let i = 0; i < moduleTypeList.length; i++) {
  260. str += `<li class="modularItem ellipsis" title=${moduleTypeList[i].modeName} data-id=${moduleTypeList[i].modeId} data-name=${moduleTypeList[i].modeName}> ${moduleTypeList[i].modeName}</li>`
  261. }
  262. $('.modularList').html(str)
  263. bindModuleSelect()
  264. }
  265. //模块类型选择
  266. function bindModuleSelect() {
  267. $('.modularItem').on("click", function () {
  268. const modularItemName = $(this).attr("data-name")
  269. const modularItemItemId = $(this).attr("data-id")
  270. moduleName = modularItemName
  271. $('.selectModular').html(modularItemName)
  272. $(".modularList").css("display", "none")
  273. $(".selectModular").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  274. $('.selectModular').removeClass('unSelect')
  275. })
  276. }
  277. getAppealReviewDictionary()
  278. //获取操作类型
  279. function getAppealReviewDictionary() {
  280. post(api.getAppealReviewDictionary).then(res => {
  281. if (res.data.code == '0') {
  282. const typeList = res.data.data['操作类型']
  283. const statusList = res.data.data['状态']
  284. renderTypeList(typeList)
  285. renderStatusList(statusList)
  286. } else { }
  287. }).catch((e) => {
  288. })
  289. }
  290. function renderTypeList(data) {
  291. let str = `<li class="typeItem " data-id="" data-name="全部">全部</li>`
  292. for (var i in data) {
  293. str += `<li class="typeItem ellipsis" title=${data[i]} data-id=${i} data-name=${data[i]}> ${data[i]}</li>`
  294. }
  295. $('.typeList').html(str)
  296. bindTypedSelect()
  297. if (operationType) {
  298. $('.selectType').html(data[operationType]).attr("title", data[operationType])
  299. $(".selectType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  300. }
  301. }
  302. //操作类型选择
  303. function bindTypedSelect() {
  304. $('.typeItem').on("click", function () {
  305. const typeItemName = $(this).attr("data-name")
  306. const typeItemItemId = $(this).attr("data-id")
  307. operationType = typeItemItemId
  308. $('.selectType').html(typeItemName)
  309. $(".typeList").css("display", "none")
  310. $(".selectType").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  311. $('.selectType').removeClass('unSelect')
  312. })
  313. }
  314. function renderStatusList(data) {
  315. let str = `<li class="qcCheckItem " data-id="" data-name="全部">全部</li>`
  316. for (var i in data) {
  317. str += `<li class="qcCheckItem ellipsis" title=${data[i]} data-id=${i} data-name=${data[i]}> ${data[i]}</li>`
  318. }
  319. $('.qcCheckList').html(str)
  320. bindCheckedSelectQc()
  321. if (state) {
  322. $('.qcSelectCheck').html(data[state]).attr("title", data[state])
  323. $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  324. }
  325. }
  326. //状态
  327. function bindCheckedSelectQc() {
  328. $('.qcCheckItem').on("click", function () {
  329. const qcCheckItemName = $(this).attr("data-name")
  330. const qcCheckItemItemId = $(this).attr("data-id") || ""
  331. state = qcCheckItemItemId
  332. $('.qcSelectCheck').html(qcCheckItemName)
  333. $(".qcCheckList").css("display", "none")
  334. $(".qcSelectCheck").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  335. $('.qcSelectCheck').removeClass('unSelect')
  336. })
  337. }
  338. //获取审核人下拉列表
  339. function getCheckUser() {
  340. const param = {};
  341. post(api.getReviewer, param).then(function (res) {
  342. if (res.data.code === '0') {
  343. const data = res.data.data;
  344. global_checkers = data;
  345. $("#delModal .checker-drop-box ul").html("");
  346. $("#flawDropTmpl").tmpl({ info: data }).appendTo("#delModal .checker-drop-box ul");
  347. userDropEvent(".checker-drop-input", selectChecker);
  348. }
  349. });
  350. }
  351. function userDropEvent(domSelector, selectEvent) {
  352. // $("body").on("click", domSelector, function (e) {
  353. // e.stopPropagation()
  354. // $(domSelector).parents(".drop-box").addClass("show");
  355. // });
  356. $("body").on("click", ".checker-drop-box li", function () {
  357. $(".add-box .warning").hide();
  358. const n = $(this).attr("idx");
  359. selectEvent(domSelector, n);
  360. $(domSelector).parents(".drop-box").find(".warning").hide();
  361. $(domSelector).parents(".drop-box").removeClass("show");
  362. });
  363. }
  364. $(document).on("click", ".checker-drop-input", (e) => {
  365. e.stopPropagation()
  366. const showList = $("#delModal ul").css("display")
  367. if (showList == "none" || !showList) {
  368. $("#delModal ul").css("display", "block")
  369. } else {
  370. $("#delModal ul").css("display", "none")
  371. }
  372. });
  373. $(document).on("click", ".infoItem", (e) => {
  374. e.stopPropagation()
  375. $("#delModal ul").css("display", "none")
  376. });
  377. //审核人下拉选中
  378. function selectChecker(domSelector, n) {
  379. const flaw = global_checkers[n];
  380. const { id, userName } = flaw;
  381. $(domSelector).text(userName).attr({ "code": id, "title": userName });
  382. }
  383. function renderTab(data) {
  384. let str = ``
  385. if (data.length === 0) {
  386. $('.tbody').html(emptyBox(null, showNum + 12))
  387. return;
  388. }
  389. for (let i = 0; i < data.length; i++) {
  390. const item = data[i]
  391. str += `
  392. <tr>
  393. <td >${item.claimantName || "-"}</td>
  394. <td >${item.behDeptName || "-"}</td>
  395. <td >${item.claimantGmtCreate}</td>
  396. <td >${item.behospitalCode}</td>
  397. <td >${item.name || "-"}</td>
  398. <td >${item.modeName || "-"}</td>
  399. <td >${item.qcresultDetailMsg || "-"}</td>
  400. <td >${item.checkName || "-"}</td>
  401. <td >${item.checkGmtCreate || "-"}</td>
  402. <td >${item.appealOperationType == 0 ? '删改条目' : item.appealOperationType == 1 ? '新增已有条目' : item.appealOperationType == 2 ? '新增缺失条目' : '恢复条目'}</td>
  403. <td >${item.exampleStatus == 0 ? '<span class="review"><i></i>待审核</span>' : item.exampleStatus == 1 ? '<span class="rejected"><i></i>已驳回</span>' : '<span class="approved"><i></i>审核通过</span>'}</td>
  404. <td data-id="${item.id || ""}" data-hos="${item.hospitalId || ""}" data-behospitalCode="${item.behospitalCode || ""}" data-casesEntryId="${item.casesEntryId || ""}" data-qcresultDetailId="${item.qcresultDetailId || ""}" data-appealOperationType="${item.appealOperationType || ""}" data-index=${i}>
  405. ${item.exampleStatus == 0 ? `<span class="appealBtn goHomeDetail1">查看</span><span class="appealBtn withdraw" >撤回</span>` : ''}
  406. ${item.exampleStatus == 1 || item.exampleStatus == 2 ? `<span class="appealBtn goHomeDetail1">查看</span><span class="appealBtn appealAgain">再次申诉</span>` : ''}
  407. </td>
  408. </tr>
  409. `
  410. }
  411. $('.tbody').html(str)
  412. $(".withdraw").click(function () {
  413. let id = $(this).parent().attr("data-id")
  414. $("#delModal .modal-body").html("确定撤回该申诉?<br/>注:第一次提交的申诉撤回后,记录将被删除。");
  415. $("#delModal").show();
  416. $("#delModal .confirm").text("确定").unbind("click").click(function () {
  417. cancelAppealInfo(id)
  418. });
  419. })
  420. $(".appealAgain").click(function () {
  421. let i = $(this).parent().attr("data-index")
  422. let item = JSON.parse(JSON.stringify(data[i]))
  423. getAppealOperationType(item)
  424. })
  425. $(".goHomeDetail1").click(function () {
  426. let id = $(this).parent().attr("data-id")
  427. let hospitalId = $(this).parent().attr("data-hos")
  428. let behospitalCode = $(this).parent().attr("data-behospitalCode")
  429. let casesEntryId = $(this).parent().attr("data-casesEntryId")
  430. let qcresultDetailId = $(this).parent().attr("data-qcresultDetailId")
  431. let appealOperationType = $(this).parent().attr("data-appealOperationType")
  432. $(parent.document).find("#contentIframe").attr("src", "appealExamine.html?id=" + id + "&name=" + name + "&patientName=" + patientName + "&operationType=" + operationType + "&state=" + state + "&hospitalId=" + hospitalId + "&behospitalCode=" + behospitalCode + "&casesEntryId=" + casesEntryId + "&qcresultDetailId=" + qcresultDetailId + "&appealOperationType=" + appealOperationType + "&page=" + page + "&behosDateStart=" + behosDateStart + "&behosDateEnd=" + behosDateEnd + "&deptId=" + deptId + "&deptName=" + deptName + "&moduleName=" + moduleName + "&form=" + 3)
  433. })
  434. }
  435. function getComplaintDetailMsg(data) {
  436. post(api.getComplaintDetailMsg, { behospitalCode: data.behospitalCode, casesEntryId: data.casesEntryId, id: data.qcresultDetailId }).then(function (res) {
  437. if (res.data.code === '0') {
  438. data.qcresultDetailMsg = res.data.data.msg;
  439. data.qcresultDetaiValue = res.data.data.score;
  440. data.value = res.data.data.score;
  441. data.remark = res.data.data.explainInfo;
  442. $("#delModal").show();
  443. getCheckUser()
  444. $("#delModal .modal-body").html("");
  445. $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");
  446. $("#delModal .confirm").text("确定").unbind("click").click(function () {
  447. addAppealInfo(data)
  448. });
  449. } else {
  450. $.alerModal({ "message": res.data.msg || '失败,请重试~', type: "tip", time: '1000', win: 'warn' });
  451. }
  452. }).catch(() => {
  453. $.alerModal({ "message": '失败,请重试~', type: "tip", time: '1000', win: 'default' });
  454. });
  455. }
  456. function getAppealOperationType(data) {
  457. post(api.getAppealOperationType, { appealOperationType: data.appealOperationType, exampleStatus: data.exampleStatus, qcresultDetailId: data.qcresultDetailId }).then(function (res) {
  458. if (res.data.code === '0') {
  459. if (data.appealOperationType == '2' || !data.qcresultDetailId) {
  460. $("#delModal").show();
  461. getCheckUser()
  462. $("#delModal .modal-body").html("");
  463. $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");
  464. $("#delModal .confirm").text("确定").unbind("click").click(function () {
  465. addAppealInfo(data)
  466. });
  467. } else {
  468. data.appealOperationType = res.data.data.appealOperationType
  469. getComplaintDetailMsg(data)
  470. }
  471. // $("#delModal .modal-body").html("");
  472. // $("#delModal").show();
  473. // $("#appealDef").tmpl(data).appendTo("#delModal .modal-body");
  474. // $("#delModal .confirm").text("确定").unbind("click").click(function () {
  475. // addAppealInfo(data)
  476. // });
  477. } else {
  478. $.alerModal({ "message": res.data.msg || '失败,请重试~', type: "tip", time: '1000', win: 'warn' });
  479. }
  480. }).catch(() => {
  481. $.alerModal({ "message": '失败,请重试~', type: "tip", time: '1000', win: 'default' });
  482. });
  483. }
  484. function cancelAppealInfo(id) {
  485. post(api.cancelAppealInfo, { id: id }).then(function (res) {
  486. if (res.data.code === '0') {
  487. getTabData(page)
  488. $("#delModal").hide();
  489. $.alerModal({ "message": "撤回成功", type: "tip", time: '1000', win: true });
  490. } else {
  491. $.alerModal({ "message": res.data.msg || '失败,请重试~', type: "tip", time: '1000', win: 'default' });
  492. }
  493. }).catch(() => {
  494. $.alerModal({ "message": '失败,请重试~', type: "tip", time: '1000', win: 'default' });
  495. });
  496. }
  497. //再次申诉
  498. function addAppealInfo(data) {
  499. $(".warning").hide();
  500. let val = $(".textarea").val().trim()
  501. let num = 500
  502. if (!val) {
  503. $(".warning .red").text("申诉说明不能为空~");
  504. $(".warning").show();
  505. return
  506. } else if (val.length > num) {
  507. $(".warning .red").text("申诉说明不能超过" + num + "个字~");
  508. $(".warning").show();
  509. return
  510. }
  511. const param = {
  512. appealExplain: $(".textarea").val(),
  513. appealOperationType: data.appealOperationType,
  514. behospitalCode: data.behospitalCode,
  515. checkId: $(".checker-drop-input").attr("code"),
  516. appealType: 1,
  517. qcresultDetailId: data.qcresultDetailId,
  518. isReject: data.isReject,
  519. modeId: data.modeId,
  520. casesScore: data.casesScore,
  521. casesEntryId: data.casesEntryId,
  522. qcresultDetaiValue: data.qcresultDetaiValue,
  523. qcresultDetailMsg: data.qcresultDetailMsg,
  524. casesEntryMsg: data.qcresultDetailMsg,
  525. msg: data.msg,
  526. value: data.value,
  527. remark: data.remark,
  528. }
  529. post(api.addAppealInfo, param).then(function (res) {
  530. if (res.data.code === '0') {
  531. getTabData(page)
  532. $("#delModal").hide();
  533. $.alerModal({ "message": "申诉成功", type: "tip", time: '1000', win: true });
  534. } else {
  535. $.alerModal({ "message": res.data.msg || '失败,请重试~', type: "tip", time: '1000', win: 'default' });
  536. }
  537. }).catch(() => {
  538. $.alerModal({ "message": '失败,请重试~', type: "tip", time: '1000', win: 'default' });
  539. });
  540. }
  541. //选择申诉模块
  542. $('.selectModular').on("click", function (e) {
  543. e.stopPropagation()
  544. $(".typeList ").css("display", "none")
  545. $(".selectType .arrow").attr("src", iconDown)
  546. $(".deptList ").css("display", "none")
  547. $(".selectDept .arrow").attr("src", iconDown)
  548. $(".qcSelectCheck .arrow").attr("src", iconDown)
  549. $(".qcCheckList ").css("display", "none")
  550. const showList = $(".modularList ").css("display")
  551. if (showList == "none" || !showList) {
  552. $(".modularList ").css("display", "block")
  553. $(".selectModular .arrow").attr("src", iconUp)
  554. } else {
  555. $(".modularList ").css("display", "none")
  556. $(".selectModular .arrow").attr("src", iconDown)
  557. }
  558. })
  559. //操作类型
  560. $('.selectType').on("click", function (e) {
  561. e.stopPropagation()
  562. $(".deptList ").css("display", "none")
  563. $(".selectDept .arrow").attr("src", iconDown)
  564. $(".qcSelectCheck .arrow").attr("src", iconDown)
  565. $(".qcCheckList ").css("display", "none")
  566. $(".modularList ").css("display", "none")
  567. $(".selectModular .arrow").attr("src", iconDown)
  568. const showList = $(".typeList ").css("display")
  569. if (showList == "none" || !showList) {
  570. $(".typeList ").css("display", "block")
  571. $(".selectType .arrow").attr("src", iconUp)
  572. } else {
  573. $(".typeList ").css("display", "none")
  574. $(".selectType .arrow").attr("src", iconDown)
  575. }
  576. })
  577. //选择状态
  578. $('.qcSelectCheck').on("click", function (e) {
  579. e.stopPropagation()
  580. $(".typeList ").css("display", "none")
  581. $(".selectType .arrow").attr("src", iconDown)
  582. $(".deptList ").css("display", "none")
  583. $(".selectDept .arrow").attr("src", iconDown)
  584. $(".modularList ").css("display", "none")
  585. $(".selectModular .arrow").attr("src", iconDown)
  586. const showList = $(".qcCheckList ").css("display")
  587. if (showList == "none" || !showList) {
  588. $(".qcCheckList ").css("display", "block")
  589. $(".qcSelectCheck .arrow").attr("src", iconUp)
  590. } else {
  591. $(".qcCheckList ").css("display", "none")
  592. $(".qcSelectCheck .arrow").attr("src", iconDown)
  593. }
  594. })
  595. $('.selectDept').on("click", function (e) {
  596. e.stopPropagation()
  597. $(".typeList ").css("display", "none")
  598. $(".selectType .arrow").attr("src", iconDown)
  599. $(".modularList ").css("display", "none")
  600. $(".selectModular .arrow").attr("src", iconDown)
  601. $(".qcCheckList ").css("display", "none")
  602. $(".qcSelectCheck .arrow").attr("src", iconDown)
  603. const showList = $(".deptList ").css("display")
  604. if (showList == "none" || !showList) {
  605. $(".deptList ").css("display", "block")
  606. $(".selectDept .arrow").attr("src", iconUp)
  607. } else {
  608. $(".deptList ").css("display", "none")
  609. $(".selectDept .arrow").attr("src", iconDown)
  610. }
  611. })
  612. //获取科室列表
  613. getDeptList()
  614. function getDeptList() {
  615. post(api.getAppealDept, { inputStr: "", pageType: 1 }).then(res => {
  616. if (res.data.code == '0') {
  617. const deptList = res.data.data
  618. rendeDeptList(deptList)
  619. } else { }
  620. }).catch((e) => {
  621. })
  622. }
  623. function rendeDeptList(deptList) {
  624. let str = `<li class="deptItem ellipsis" data-id=" " data-name="全部">全部</li>`
  625. for (let i = 0; i < deptList.length; i++) {
  626. str += `<li class="deptItem ellipsis" title=${deptList[i].deptName} data-id=${deptList[i].deptId} data-name=${deptList[i].deptName}> ${deptList[i].deptName}</li>`
  627. }
  628. $('.deptList').html(str)
  629. bindDeptSelect()
  630. }
  631. //科室选择
  632. function bindDeptSelect() {
  633. $('.deptItem').on("click", function () {
  634. const deptItemName = $(this).attr("data-name")
  635. const deptItemId = $(this).attr("data-id")
  636. deptIdTemp = deptItemId
  637. deptName = deptNameTemp = deptItemName
  638. if (deptItemName.length > 10) {
  639. $('.selectDept').html(deptItemName.substring(0, 8) + '...')
  640. } else {
  641. $('.selectDept').html(deptItemName)
  642. }
  643. $('.selectDept ').attr('title', deptItemName)
  644. $(".selectDept").append(`<img class="arrow" src=${iconDown} alt="下拉">`)
  645. $('.selectDept').removeClass('unSelect')
  646. $(".deptList").css("display", "none")
  647. })
  648. }
  649. function renderColSet(list) {
  650. let pageSetList = list || pageSetCopy
  651. let allSelect = true
  652. for (let i = 0; i < pageSetList.length; i++) {
  653. if (pageSetList[i].status != 1) {
  654. allSelect = false
  655. }
  656. }
  657. let str = `<div class='colSetBox'>
  658. <div class='mask'></div>
  659. <div class='cloInfobox'>
  660. <div class='cloInfoTitle'><span class='cloInfoTitleTxt'>列显示设置</span> <img class="iconClose" src=${require('./../images/icon_close_default.png')} alt="关闭" /></div>
  661. <div class='cloInfo'></div>
  662. <div class='btnBox'><span class='defaultColSet'>恢复默认</span> <span class='cancalColSet'>取消</span> <span class='saveColSet'>保存设置</span></div>
  663. </div>
  664. </div>`
  665. let infoStr = `<div class='colTabTitle' ><span class='colOpera toggleSelectColAll' data-select=${allSelect}>${allSelect ? `<img src=${iconCheck} />` : `<img src=${iconUnCheck} />`}全选</span><span class='colName'>列名</span></div><div class='colTabInfoBox' >`
  666. for (let i = 0; i < pageSetList.length; i++) {
  667. infoStr += `<div class='colTabInfo' data-index=${i}>
  668. <span class='colOpera' data-index=${i}>${pageSetList[i].status == 1 ? `<img class="toggleSelectCol" src=${iconCheck} />` : `<img class="toggleSelectCol" src=${iconUnCheck} />`}</span>
  669. <span class='colName'>
  670. <span>${pageSetList[i].name}</span>
  671. <span class="pageOrder">
  672. <span class="pageSetUpBox">${i === 0 ? '' : `<img class="pageSetUp" src=${goUpG} />`}</span>
  673. <span class="pageSetDownBox">${i === pageSetList.length - 1 ? '' : `<img class="pageSetDown" src=${goDownG} />`}</span>
  674. </span>
  675. </span>
  676. </div>`
  677. }
  678. infoStr += "</div>"
  679. // $(".main-body").append(str)
  680. if (!$("#mainBox .colSetBox", parent.document).length) {
  681. $("#mainBox", parent.document).append(str)
  682. }
  683. $("#mainBox .colSetBox .cloInfo", parent.document).html(infoStr)
  684. $(".colTabInfoBox", parent.document).scrollTop(scrollTop)
  685. scrollTop = 0
  686. bindSelectCol()
  687. bindColOrder()
  688. bindSaveColSet()
  689. bindDefaultColset()
  690. bindCloseColSet()
  691. bindImgEnter()
  692. }
  693. function bindDefaultColset() {
  694. $('.defaultColSet', parent.document).off("hover").hover(function () {
  695. $(this).css('color', '#00A1FF')
  696. }, function () {
  697. $(this).css('color', '#777777')
  698. })
  699. $('.defaultColSet', parent.document).off("click").on('click', function () {
  700. return post(api.getDefaultPageSet, { pageType: 1 }).then(res => {
  701. if (res.data.code == '0') {
  702. pageSet = res.data.data
  703. pageSetCopy = JSON.parse(JSON.stringify(pageSet))
  704. renderColSet(pageSetCopy)
  705. } else { }
  706. }).catch((e) => {
  707. })
  708. // closeColSet()
  709. })
  710. }
  711. function bindImgEnter() {
  712. $(".pageSetUpBox img", parent.document).off("mouseenter").on("mouseenter", function () {
  713. $(this).attr('src', goUpB)
  714. })
  715. $(".pageSetDownBox img", parent.document).off("mouseenter").on("mouseenter", function () {
  716. $(this).attr('src', goDownB)
  717. })
  718. $(".pageSetUpBox img", parent.document).off("mouseout").on("mouseout", function () {
  719. $(this).attr('src', goUpG)
  720. })
  721. $(".pageSetDownBox img", parent.document).off("mouseout").on("mouseout", function () {
  722. $(this).attr('src', goDownG)
  723. })
  724. }
  725. function bindSelectCol() {
  726. $(".toggleSelectCol", parent.document).off("click").on("click", function () {
  727. const index = $(this).parent().attr("data-index")
  728. pageSetCopy[index].status = pageSetCopy[index].status == 1 ? 0 : 1
  729. scrollTop = $(".colTabInfoBox", parent.document).scrollTop()
  730. renderColSet(pageSetCopy)
  731. })
  732. $(".toggleSelectColAll", parent.document).off("click").on("click", function () {
  733. const hasSelectAll = $(this).attr("data-select")
  734. for (let i = 0; i < pageSetCopy.length; i++) {
  735. if (hasSelectAll == "true") {
  736. pageSetCopy[i].status = 0
  737. } else {
  738. pageSetCopy[i].status = 1
  739. }
  740. }
  741. scrollTop = $(".colTabInfoBox", parent.document).scrollTop()
  742. renderColSet(pageSetCopy)
  743. })
  744. }
  745. function closeColSet() {
  746. pageSetCopy = JSON.parse(JSON.stringify(pageSet))
  747. $("#mainBox .colSetBox", parent.document).remove()
  748. }
  749. function bindCloseColSet() {
  750. $(".colSetBox .iconClose", parent.document).off("click").on("click", function () {
  751. closeColSet()
  752. })
  753. $(".colSetBox .cancalColSet", parent.document).off("click").on("click", function () {
  754. closeColSet()
  755. })
  756. }
  757. function bindSaveColSet() {
  758. $(".saveColSet", parent.document).off("click").on("click", function () {
  759. let showNumSet = 0
  760. let sysUserPagesetVOList = []
  761. for (let i = 0; i < pageSetCopy.length; i++) {
  762. const item = pageSetCopy[i]
  763. sysUserPagesetVOList.push({
  764. name: item.name,
  765. orderNo: i,
  766. status: item.status,
  767. val: item.val
  768. })
  769. if (item.status == 1) {
  770. showNumSet++
  771. }
  772. }
  773. if (showNumSet === 0) {
  774. $.alerModal({ "message": '最少显示一列', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
  775. return
  776. }
  777. return post(api.saveQcListPageSet, { pageType: 1, sysUserPagesetVOList: sysUserPagesetVOList }).then(res => {
  778. if (res.data.code == '0') {
  779. closeColSet()
  780. } else {
  781. $("#mainBox .colSetBox", parent.document).remove()
  782. $.alerModal({ "message": '保存失败,请重试~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
  783. }
  784. }).catch((e) => {
  785. $("#mainBox .colSetBox", parent.document).remove()
  786. $.alerModal({ "message": '保存失败,请重试~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
  787. })
  788. })
  789. }
  790. function bindColOrder() {
  791. $(".pageSetUp", parent.document).off("click").on("click", function () {
  792. const index = parseInt($(this).parent().parent().parent().parent().attr("data-index"))
  793. if (index != 0) {
  794. const upItem = pageSetCopy[index]
  795. const upItemPre = pageSetCopy[index - 1]
  796. pageSetCopy.splice(index - 1, 2, upItem, upItemPre)
  797. scrollTop = $(".colTabInfoBox", parent.document).scrollTop()
  798. renderColSet(pageSetCopy)
  799. } else {
  800. return
  801. }
  802. })
  803. $(".pageSetDown", parent.document).off("click").on("click", function () {
  804. const index = parseInt($(this).parent().parent().parent().parent().attr("data-index"))
  805. if (index == pageSetCopy.length - 1) {
  806. return
  807. } else {
  808. const downItem = pageSetCopy[index]
  809. const downItemBack = pageSetCopy[index + 1]
  810. pageSetCopy.splice(index, 2, downItemBack, downItem)
  811. scrollTop = $(".colTabInfoBox", parent.document).scrollTop()
  812. renderColSet(pageSetCopy)
  813. }
  814. })
  815. }
  816. $(function () {
  817. $.datepicker.regional['zh-CN'] = {
  818. clearText: '清除',
  819. clearStatus: '清除已选e799bee5baa6e59b9ee7ad9431333361303131日期',
  820. closeText: '关闭',
  821. closeStatus: '不改变当前选择',
  822. prevText: '<上月',
  823. prevStatus: '显示上月',
  824. prevBigText: '<<',
  825. prevBigStatus: '显示上一年',
  826. nextText: '下月>',
  827. nextStatus: '显示下月',
  828. nextBigText: '>>',
  829. nextBigStatus: '显示下一年',
  830. currentText: '今天',
  831. currentStatus: '显示本月',
  832. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  833. monthNamesShort: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  834. yearNamesShort: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  835. monthStatus: '选择月份',
  836. yearStatus: '选择年份',
  837. weekHeader: '周',
  838. weekStatus: '年内周次',
  839. dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
  840. dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
  841. dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
  842. dayStatus: '设置 DD 为一周起始',
  843. dateStatus: '选择 m月 d日, DD',
  844. dateFormat: 'yy-mm-dd',
  845. firstDay: 1,
  846. initStatus: '请选择日期',
  847. isRTL: false
  848. };
  849. $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
  850. let startDate = "", endDate = new Date()
  851. let year = new Date().getFullYear()
  852. let month = new Date().getMonth() + 1
  853. if (statisticsType == '1') {
  854. startDate = new Date(`${year}-${month}-01`)
  855. } else if (statisticsType == '2') {
  856. startDate = new Date(`${year}-01-01`)
  857. } else if (statisticsType == '3') {
  858. startDate = new Date(behosDateStart)
  859. endDate = new Date(behosDateEnd)
  860. } else {
  861. startDate = "-6d"
  862. }
  863. if (behosDateStart && behosDateEnd) {
  864. startDate = new Date(behosDateStart)
  865. endDate = new Date(behosDateEnd)
  866. }
  867. $("#datepicker").datepicker({
  868. changeMonth: true,
  869. changeYear: true,
  870. dateFormat: "yy/mm/dd",
  871. }).datepicker("setDate", startDate);
  872. $("#datepicker2").datepicker({
  873. changeMonth: true,
  874. changeYear: true,
  875. dateFormat: "yy/mm/dd"
  876. }).datepicker("setDate", endDate);
  877. getTabData(page)
  878. });
  879. //分页渲染
  880. function renderPagination(totalPage, activePage, totalNum) {
  881. let str = `<span class="totalSum">共${totalPage}页/${totalNum}条数据</span><span class="prePage"><img class="arrowPage" src=${arrowLeft} /></span>`
  882. if (totalPage <= 6) {
  883. for (let i = 1; i <= totalPage; i++) {
  884. str += `<span class="pageNum ${'page' + i}" data-page=${i}>${i}</span>`
  885. }
  886. } else {
  887. if (activePage <= 3) { //选中页数小于4
  888. for (let i = 1; i <= 4; i++) {
  889. str += `<span class="pageNum ${'page' + i}" data-page=${i}>${i}</span>`
  890. }
  891. str += `<span class="more" >...</span>`
  892. str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
  893. } else if (activePage > totalPage - 3) {
  894. str += `<span class="pageNum page1" data-page=1>1</span>`
  895. str += `<span class="more" >...</span>`
  896. str += `<span class="pageNum ${'page' + (totalPage - 3)}" data-page=${totalPage - 3}>${totalPage - 3}</span>`
  897. str += `<span class="pageNum ${'page' + (totalPage - 2)}" data-page=${totalPage - 2}>${totalPage - 2}</span>`
  898. str += `<span class="pageNum ${'page' + (totalPage - 1)}" data-page=${totalPage - 1}>${totalPage - 1}</span>`
  899. str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
  900. } else {
  901. str += `<span class="pageNum page1" data-page=1>1</span>`
  902. str += `<span class="more" >...</span>`
  903. str += `<span class="pageNum ${'page' + (activePage - 1)}" data-page=${activePage - 1}>${activePage - 1}</span>`
  904. str += `<span class="pageNum ${'page' + activePage}" data-page=${activePage}>${activePage}</span>`
  905. str += `<span class="pageNum ${'page' + (activePage + 1)}" data-page=${activePage + 1}>${activePage + 1}</span>`
  906. str += `<span class="more" >...</span>`
  907. str += `<span class="pageNum ${'page' + totalPage}" data-page=${totalPage}>${totalPage}</span>`
  908. }
  909. }
  910. str += `<span class="nextPage"><img class="arrowPage" src=${arrowRight} /></span>`
  911. $('.pagination').html(str)
  912. $('.page' + activePage).addClass('activePage')
  913. $(".pageNum").on("click", function (e) {
  914. const activePageNow = Number($(this).attr('data-page'))
  915. page = activePageNow
  916. getTabData(activePageNow)
  917. // renderPagination(totalPage,activePageNow,totalNum)
  918. })
  919. $(".prePage").on("click", function (e) {
  920. let activePageNow = Number($(".activePage").attr('data-page'))
  921. page = activePageNow
  922. if (activePageNow > 1) {
  923. activePageNow--
  924. getTabData(activePageNow)
  925. // renderPagination(totalPage,activePageNow,totalNum)
  926. }
  927. })
  928. $(".nextPage").on("click", function (e) {
  929. let activePageNow = Number($(".activePage").attr('data-page'))
  930. page = activePageNow
  931. if (activePageNow < totalPage) {
  932. activePageNow++
  933. getTabData(activePageNow)
  934. // renderPagination(totalPage,activePageNow,totalNum)
  935. }
  936. })
  937. }
  938. $(document).on("click", function () {
  939. $(".typeList ").css("display", "none")
  940. $(".modularList ").css("display", "none")
  941. $(".deptList").css("display", "none")
  942. $(".qcCheckList").css("display", "none")
  943. $(".selectDept .arrow").attr("src", iconDown)
  944. $(".selectModular .arrow").attr("src", iconDown)
  945. $(".qcSelectCheck .arrow").attr("src", iconDown)
  946. $(".selectType .arrow").attr("src", iconDown)
  947. $("#delModal ul").css("display", "none")
  948. })
  949. let radioCheck = 1;
  950. $((function ($) {
  951. $('.export').click(function () {
  952. const behosDateStartTime = new Date(behosDateStart).getTime()
  953. const behosDateEndTime = new Date(behosDateEnd).getTime()
  954. if (behosDateStartTime > behosDateEndTime) {
  955. $.alerModal({ "message": '开始时间不能大于结束时间~', type: "tip", time: '1000', isFather: true, fatherWrapper: $("#mainBox", parent.document) });
  956. return
  957. }
  958. const param = {
  959. deptId: deptId.trim(),
  960. deptName: deptName == "全部" ? "" : deptName || '',
  961. modeName: moduleName == "全部" ? "" : moduleName || '',
  962. operationType: operationType,
  963. isPlacefile: isPlacefile,
  964. state: state,
  965. size: 15,
  966. name: $('.name').val(),
  967. patientName: $('.patientNameInp').val(),
  968. complaintDateEnd: behosDateEnd.replaceAll("/", "-"),
  969. complaintDateStart: behosDateStart.replaceAll("/", "-"),
  970. "desc": ['claimant_gmt_create']
  971. }
  972. expJson(api.getComplaintRecordExport, param).then(res => {
  973. downloadExportedData(res.data, "申诉记录.xls")
  974. })
  975. })
  976. })($));