index.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. var template = ''
  2. $.ajax('../../../component/statistics/GxbManage/index.html', {
  3. data: {},
  4. dataType: 'html',
  5. cache: false,
  6. timeout: 60000,
  7. async: false,
  8. error: function (res) {},
  9. success: function (res) {
  10. template = res
  11. }
  12. })
  13. Vue.component('gxb-manage', {
  14. template: template,
  15. props: [],
  16. data: function () {
  17. return {
  18. years: [],
  19. yearType: '1',
  20. chooseYear: null,
  21. chooseTime: null,
  22. dialogExportLoading: false,
  23. rangeOptions: [
  24. { label: '区', value: 'town' },
  25. { label: '社区', value: 'hospital' },
  26. { label: '团队', value: 'team' }
  27. ],
  28. areaOptions: [
  29. { label: '思明区', value: '350203' },
  30. { label: '海沧区', value: '350205' },
  31. { label: '湖里区', value: '350206' },
  32. { label: '集美区', value: '350211' },
  33. { label: '同安区', value: '350212' },
  34. { label: '翔安区', value: '350213' }
  35. ],
  36. hospitalOptions: [],
  37. teamOptions: [],
  38. form: {
  39. range: 'town'
  40. },
  41. loading: false,
  42. exportLoading: false,
  43. tableData: [],
  44. constantHeader: [
  45. { label: '已评估人数', prop: 'totalNum', width: '90' },
  46. { label: '已上转人数', prop: 'turnUpNum', width: '90' },
  47. { label: '上转转门诊', prop: 'mzNum', width: '110' },
  48. { label: '门诊转住院', prop: 'zyNum', width: '110' },
  49. { label: '下转管理人数', prop: 'turnDownNum', width: '110' },
  50. { label: '评估已登记随访', prop: 'followUpNum', width: '110' }
  51. // { label: '随访已达标', prop: 'standardNum', width: '110' }
  52. ],
  53. tableHeader: [],
  54. loadingTwo: false,
  55. mzTableHeader: [
  56. { label: '姓名', prop: 'name', width: '90' },
  57. { label: '性别', prop: 'sex', width: '90' },
  58. { label: '年龄', prop: 'age', width: '90' },
  59. { label: '手机号', prop: 'mobile', width: '90' },
  60. { label: '证件号码', prop: 'idcard', width: '90' },
  61. { label: '社区医院', prop: 'signHospitalName', width: '90' },
  62. { label: '签约医生', prop: 'signDoctorName', width: '90' },
  63. { label: '最近一次上传时间', prop: 'czrq', width: '90' },
  64. { label: '最近一次上转科室', prop: 'deptName', width: '90' },
  65. { label: '最近一次门诊下转时间', prop: 'createTime', width: '90' },
  66. { label: '最近一次门诊下转诊断', prop: 'diagnosisName', width: '90' }
  67. ],
  68. mzToInHopistalTableHeader: [
  69. { label: '姓名', prop: 'name', width: '90' },
  70. { label: '性别', prop: 'sex', width: '90' },
  71. { label: '年龄', prop: 'age', width: '90' },
  72. { label: '手机号', prop: 'mobile', width: '90' },
  73. { label: '证件号码', prop: 'idcard', width: '90' },
  74. { label: '社区医院', prop: 'signHospitalName', width: '90' },
  75. { label: '签约医生', prop: 'signDoctorName', width: '90' },
  76. { label: '最近一次门诊下转时间', prop: 'czrq', width: '90' },
  77. { label: '最近一次上转科室', prop: 'deptName', width: '90' },
  78. { label: '最近一次出院下转时间', prop: 'createTime', width: '90' },
  79. { label: '最近一次出院下转诊断', prop: 'diagnosisName', width: '90' }
  80. ],
  81. turnDownTableHeader: [
  82. { label: '姓名', prop: 'name', width: '90' },
  83. { label: '性别', prop: 'sex', width: '90' },
  84. { label: '年龄', prop: 'age', width: '90' },
  85. { label: '手机号', prop: 'mobile', width: '90' },
  86. { label: '最近一次下转医院', prop: 'hospitalName', width: '90' },
  87. { label: '最近一次下转医生', prop: 'hospitalDoctor', width: '90' },
  88. { label: '最近一次下转时间', prop: 'zyCreateTime', width: '90' },
  89. { label: '出院下转次数', prop: 'turnDownTimes', width: '90' },
  90. { label: '康复计划数量', prop: 'rehabilitationTimes', width: '90' }
  91. ],
  92. totalNumTableHeader: [
  93. { label: '姓名', prop: 'name' },
  94. { label: '性别', prop: 'sex' },
  95. { label: '年龄', prop: 'age' },
  96. { label: '评估结果', prop: 'screenResult' },
  97. { label: '评估医生', prop: 'doctorName' },
  98. { label: '评估时间', prop: 'czrq' },
  99. { label: '手机号', prop: 'mobile' },
  100. { label: '证件号码', prop: 'idcard' },
  101. { label: '签约社区', prop: 'signHospitalName' },
  102. { label: '签约医生', prop: 'signDoctorName' }
  103. ],
  104. turnUpNumTableHeader: [
  105. { label: '姓名', prop: 'name' },
  106. { label: '性别', prop: 'sex' },
  107. { label: '年龄', prop: 'age' },
  108. { label: '社区医院', prop: 'signHospitalName' },
  109. { label: '签约医生', prop: 'signDoctorName' },
  110. { label: '手机号', prop: 'mobile' },
  111. { label: '证件号码', prop: 'idcard' },
  112. { label: '预约医院', prop: 'orgName' },
  113. { label: '预约医生', prop: 'dName' },
  114. { label: '预约科室', prop: 'deptName' },
  115. { label: '预约时间', prop: 'orderTime' },
  116. { label: '数据来源', prop: 'sourceType' }
  117. ],
  118. dialogTableHeader: [],
  119. page: 1,
  120. size: 10,
  121. total: 0,
  122. level: 0,
  123. mzDialogVisible: false,
  124. query: {
  125. sex: ''
  126. },
  127. dataInfo: [],
  128. title: '',
  129. dataRangeOption: []
  130. }
  131. },
  132. methods: {
  133. gotoDetail(row, column) {
  134. if (!row.code) return
  135. var vm = this
  136. this.query = { sex: '' }
  137. switch (column) {
  138. case 'mzNum':
  139. vm.dialogTableHeader = vm.mzTableHeader
  140. this.title = '上转转门诊明细'
  141. break
  142. case 'zyNum':
  143. vm.dialogTableHeader = vm.mzToInHopistalTableHeader
  144. this.title = '门诊转住院明细'
  145. break
  146. case 'turnDownNum':
  147. vm.dialogTableHeader = vm.turnDownTableHeader
  148. this.title = '下转管理明细'
  149. break
  150. case 'totalNum':
  151. this.query = { sex: '', screenResultCode: '' }
  152. vm.dialogTableHeader = vm.totalNumTableHeader
  153. this.title = '个案数据列表'
  154. break
  155. case 'turnUpNum':
  156. vm.dialogTableHeader = vm.turnUpNumTableHeader
  157. this.title = '上转预约明细列表'
  158. break
  159. }
  160. var len = row.code.length
  161. if (len == 6) {
  162. this.query.range = 'town'
  163. this.query.area = row.code
  164. } else if (len == 10) {
  165. this.query.range = 'hospital'
  166. this.query.hospital = row.code
  167. } else {
  168. this.query.range = 'team'
  169. this.query.team = row.code
  170. }
  171. this.dataRangeOption = [{ label: row.name, value: row.code }]
  172. if (column == 'mzNum' || column == 'zyNum') {
  173. this.mzDialogVisible = true
  174. this.turnUpToMzDetailPage()
  175. } else if (column == 'turnDownNum') {
  176. this.mzDialogVisible = true
  177. this.turnDownManageDetailPage()
  178. } else if (column == 'totalNum') {
  179. this.mzDialogVisible = true
  180. this.gxbCaseDataPage()
  181. } else if (column == 'turnUpNum') {
  182. this.mzDialogVisible = true
  183. this.gxbTurnUpInfoPage()
  184. }
  185. },
  186. gxbTurnUpInfoPage() {
  187. var vm = this
  188. this.loadingTwo = true
  189. var params = JSON.parse(JSON.stringify(this.query))
  190. params.page = this.page
  191. params.pageSize = this.size
  192. if (this.yearType == '1') {
  193. params.startDate = this.chooseYear + '-01-01'
  194. params.endDate = this.chooseYear + '-12-31'
  195. } else {
  196. if (this.chooseTime) {
  197. params.startDate = this.chooseTime[0]
  198. params.endDate = this.chooseTime[1]
  199. }
  200. }
  201. httpRequest.get('statistics/collaborate/gxbTurnUpInfoPage', { data: params }).then(function (res) {
  202. if (res.status == 200) {
  203. vm.dataInfo = res.detailModelList
  204. vm.total = res.totalCount
  205. }
  206. vm.loadingTwo = false
  207. })
  208. },
  209. gxbCaseDataPage() {
  210. var vm = this
  211. this.loadingTwo = true
  212. var params = JSON.parse(JSON.stringify(this.query))
  213. params.page = this.page
  214. params.pageSize = this.size
  215. if (this.yearType == '1') {
  216. params.startDate = this.chooseYear + '-01-01'
  217. params.endDate = this.chooseYear + '-12-31'
  218. } else {
  219. if (this.chooseTime) {
  220. params.startDate = this.chooseTime[0]
  221. params.endDate = this.chooseTime[1]
  222. }
  223. }
  224. httpRequest.get('statistics/collaborate/gxbCaseDataPage', { data: params }).then(function (res) {
  225. if (res.status == 200) {
  226. vm.dataInfo = res.detailModelList
  227. vm.total = res.totalCount
  228. }
  229. vm.loadingTwo = false
  230. })
  231. },
  232. seePatientDetail(row, prop) {
  233. if (prop == 'name') {
  234. if (this.title == '上转预约明细列表') {
  235. EventBus.$emit('preview-person-info', { type: '2', code: row.code })
  236. } else {
  237. EventBus.$emit('preview-person-info', { type: '1', code: row.code })
  238. }
  239. }
  240. },
  241. turnDownManageDetailPage() {
  242. var vm = this
  243. this.loadingTwo = true
  244. var url = ''
  245. var params = JSON.parse(JSON.stringify(this.query))
  246. params.page = this.page
  247. params.pageSize = this.size
  248. if (this.yearType == '1') {
  249. params.startDate = this.chooseYear + '-01-01'
  250. params.endDate = this.chooseYear + '-12-31'
  251. } else {
  252. if (this.chooseTime) {
  253. params.startDate = this.chooseTime[0]
  254. params.endDate = this.chooseTime[1]
  255. }
  256. }
  257. if (this.title == '下转管理明细') {
  258. url = 'statistics/collaborate/turnDownManageDetailPage'
  259. } else if (this.title == '门诊转住院明细') {
  260. url = 'statistics/collaborate/mzToInHopistalDetailPage'
  261. }
  262. httpRequest.get(url, { data: params }).then(function (res) {
  263. if (res.status == 200) {
  264. vm.dataInfo = res.detailModelList
  265. vm.total = res.totalCount
  266. }
  267. vm.loadingTwo = false
  268. })
  269. },
  270. turnUpToMzDetailPage() {
  271. var vm = this
  272. this.loadingTwo = true
  273. var params = JSON.parse(JSON.stringify(this.query))
  274. params.page = this.page
  275. params.pageSize = this.size
  276. if (this.yearType == '1') {
  277. params.startDate = this.chooseYear + '-01-01'
  278. params.endDate = this.chooseYear + '-12-31'
  279. } else {
  280. if (this.chooseTime) {
  281. params.startDate = this.chooseTime[0]
  282. params.endDate = this.chooseTime[1]
  283. }
  284. }
  285. httpRequest.get('statistics/collaborate/turnUpToMzDetailPage', { data: params }).then(function (res) {
  286. if (res.status == 200) {
  287. vm.dataInfo = res.detailModelList
  288. vm.total = res.totalCount
  289. }
  290. vm.loadingTwo = false
  291. })
  292. },
  293. closeDialog() {
  294. this.mzDialogVisible = false
  295. },
  296. dialogSearchFn() {
  297. this.page = 1
  298. if (this.title == '上转预约明细列表') {
  299. this.gxbTurnUpInfoPage()
  300. } else if (this.title == '上转转门诊明细' || this.title == '门诊转住院明细') {
  301. this.turnUpToMzDetailPage()
  302. } else if (this.title == '下转管理明细') {
  303. this.turnDownManageDetailPage()
  304. } else if (this.title == '个案数据列表') {
  305. this.gxbCaseDataPage()
  306. }
  307. },
  308. dialogExportFn() {
  309. this.dialogExportLoading = true
  310. var vm = this
  311. var params = {
  312. ...this.query
  313. }
  314. if (this.yearType == '1') {
  315. params.startDate = this.chooseYear + '-01-01'
  316. params.endDate = this.chooseYear + '-12-31'
  317. } else {
  318. if (this.chooseTime) {
  319. params.startDate = this.chooseTime[0]
  320. params.endDate = this.chooseTime[1]
  321. }
  322. }
  323. if (this.title == '上转转门诊明细') {
  324. var fileName = `上转转门诊明细${new Date().getTime()}.xls`
  325. httpRequest.downLoadFileForAjax('statistics/collaborate/exportTurnUpToMzDetailPage', fileName, params).then(function () {
  326. vm.dialogExportLoading = false
  327. })
  328. } else if (this.title == '门诊转住院明细') {
  329. var fileName = `门诊转住院明细${new Date().getTime()}.xls`
  330. httpRequest.downLoadFileForAjax('statistics/collaborate/exportMzToInHopistalDetailPage', fileName, params).then(function () {
  331. vm.dialogExportLoading = false
  332. })
  333. } else if (this.title == '个案数据列表') {
  334. var fileName = `个案数据列表${new Date().getTime()}.xls`
  335. httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbCaseDataPage', fileName, params).then(function () {
  336. vm.dialogExportLoading = false
  337. })
  338. } else if (this.title == '上转预约明细列表') {
  339. var fileName = `上转预约明细列表${new Date().getTime()}.xls`
  340. httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbTurnUpInfoPage', fileName, params).then(function () {
  341. vm.dialogExportLoading = false
  342. })
  343. } else if (this.title == '下转管理明细') {
  344. var fileName = `下转管理明细${new Date().getTime()}.xls`
  345. httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbTurnUpInfoPage', fileName, params).then(function () {
  346. vm.dialogExportLoading = false
  347. })
  348. }
  349. },
  350. dialogReset() {
  351. var params = {
  352. ...this.query
  353. }
  354. if (this.title == '个案数据列表') {
  355. this.query = {
  356. sex: '',
  357. screenResultCode: '',
  358. range: typeof params.range == 'undefined' ? '' : params.range,
  359. area: typeof params.area == 'undefined' ? '' : params.area,
  360. hospital: typeof params.hospital == 'undefined' ? '' : params.hospital,
  361. team: typeof params.team == 'undefined' ? '' : params.team
  362. }
  363. } else {
  364. this.query = {
  365. sex: '',
  366. range: typeof params.range == 'undefined' ? '' : params.range,
  367. area: typeof params.area == 'undefined' ? '' : params.area,
  368. hospital: typeof params.hospital == 'undefined' ? '' : params.hospital,
  369. team: typeof params.team == 'undefined' ? '' : params.team
  370. }
  371. }
  372. },
  373. init() {
  374. var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
  375. if (selectedRole.code.indexOf('350200') > -1) {
  376. this.level = 1 // 市卫健委
  377. this.areaOptions = [
  378. { label: '思明区', value: '350203' },
  379. { label: '海沧区', value: '350205' },
  380. { label: '湖里区', value: '350206' },
  381. { label: '集美区', value: '350211' },
  382. { label: '同安区', value: '350212' },
  383. { label: '翔安区', value: '350213' }
  384. ]
  385. } else if (selectedRole.code.length == 6) {
  386. this.level = 2 // 区管理
  387. this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
  388. this.form = {
  389. range: 'town',
  390. area: selectedRole.code
  391. }
  392. this.getHospital(selectedRole.code)
  393. } else {
  394. this.level = 3 // 社区管理
  395. this.rangeOptions = [
  396. { label: '社区', value: 'hospital' },
  397. { label: '团队', value: 'team' }
  398. ]
  399. this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
  400. this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
  401. this.form = {
  402. range: 'hospital',
  403. area: selectedRole.code.substring(0, 6),
  404. hospital: selectedRole.code
  405. }
  406. this.getTeam(selectedRole.code)
  407. }
  408. this.initTime()
  409. this.searchFn()
  410. },
  411. initTime() {
  412. var vm = this
  413. var now = new Date()
  414. vm.nowyear = vm.chooseYear = now.getFullYear()
  415. vm.years = []
  416. for (i = vm.nowyear; i >= 2013; i--) {
  417. vm.years.push(i)
  418. }
  419. },
  420. resetArea() {
  421. if (this.level == 1) {
  422. delete this.form.area
  423. delete this.form.hospital
  424. delete this.form.team
  425. } else if (this.level == 2) {
  426. delete this.form.hospital
  427. delete this.form.team
  428. } else {
  429. delete this.form.team
  430. }
  431. },
  432. load(row, treeNode, resolve) {
  433. var params = {}
  434. var len = row.code.length
  435. if (len == 6) {
  436. params.range = 'hospital'
  437. params.area = row.code
  438. } else if (len == 10) {
  439. params.range = 'team'
  440. params.hospital = row.code
  441. }
  442. if (this.yearType == '1') {
  443. params.startDate = this.chooseYear + '-01-01'
  444. params.endDate = this.chooseYear + '-12-31'
  445. } else {
  446. if (this.chooseTime) {
  447. params.startDate = this.chooseTime[0]
  448. params.endDate = this.chooseTime[1]
  449. }
  450. }
  451. httpRequest.get('statistics/collaborate/gxbScreenClosedLoop', { data: params }).then(function (res) {
  452. if (res.status == 200) {
  453. var children = res.detailModelList.map(function (item) {
  454. var data = JSON.parse(JSON.stringify(item))
  455. if (len == 6) {
  456. data.areaCode = row.code
  457. data.hospital = item.name
  458. data.hasChildren = true
  459. } else if (len == 10) {
  460. data.hospitalCode = row.code
  461. data.team = item.name
  462. }
  463. return data
  464. })
  465. resolve(children)
  466. }
  467. })
  468. },
  469. searchFn() {
  470. var vm = this
  471. this.loading = true
  472. var params = {
  473. ...this.form,
  474. isTotal: 1
  475. }
  476. if (this.yearType == '1') {
  477. params.startDate = this.chooseYear + '-01-01'
  478. params.endDate = this.chooseYear + '-12-31'
  479. } else {
  480. if (this.chooseTime) {
  481. params.startDate = this.chooseTime[0]
  482. params.endDate = this.chooseTime[1]
  483. }
  484. }
  485. if (this.form.range == 'town') {
  486. this.tableHeader = getTownHeader().concat(this.constantHeader)
  487. } else if (this.form.range == 'hospital') {
  488. this.tableHeader = getHospitalHeader().concat(this.constantHeader)
  489. } else {
  490. this.tableHeader = getTeamHeader().concat(this.constantHeader)
  491. }
  492. httpRequest.get('statistics/collaborate/gxbScreenClosedLoop', { data: params }).then(function (res) {
  493. vm.tableData = res.detailModelList.map(function (item) {
  494. var data = JSON.parse(JSON.stringify(item))
  495. if (vm.form.range == 'town') {
  496. data.town = item.name
  497. data.hasChildren = item.code && true
  498. } else if (vm.form.range == 'hospital') {
  499. data.hospital = item.name
  500. data.hasChildren = item.code && true
  501. } else if (vm.form.range == 'team') {
  502. data.team = item.name
  503. }
  504. return data
  505. })
  506. vm.loading = false
  507. })
  508. },
  509. queryDate() {
  510. this.page = 1
  511. this.searchFn()
  512. },
  513. exportTable() {
  514. var vm = this
  515. var params = {
  516. ...this.form
  517. }
  518. if (this.yearType == '1') {
  519. params.startDate = this.chooseYear + '-01-01'
  520. params.endDate = this.chooseYear + '-12-31'
  521. } else {
  522. if (this.chooseTime) {
  523. params.startDate = this.chooseTime[0]
  524. params.endDate = this.chooseTime[1]
  525. }
  526. }
  527. this.exportLoading = true
  528. var fileName = `冠心病管理全流程闭环情况${new Date().getTime()}.xls`
  529. httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbScreenClosedLoop', fileName, params).then(function () {
  530. vm.exportLoading = false
  531. })
  532. },
  533. eliminateClick() {
  534. var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
  535. if (this.level == 1) {
  536. this.form = {
  537. range: 'town'
  538. }
  539. } else if (this.level == 2) {
  540. this.form = {
  541. range: 'town',
  542. area: selectedRole.code
  543. }
  544. this.getHospital(selectedRole.code)
  545. } else {
  546. this.form = {
  547. range: 'hospital',
  548. area: selectedRole.code.substring(0, 6),
  549. hospital: selectedRole.code
  550. }
  551. this.getTeam(selectedRole.code)
  552. }
  553. this.yearType = '1'
  554. this.chooseYear = new Date().getFullYear()
  555. this.chooseTime = null
  556. this.$forceUpdate()
  557. },
  558. getHospital(code, flag = true) {
  559. var vm = this
  560. if (flag) {
  561. delete this.form.hospital
  562. delete this.form.team
  563. }
  564. var params = {
  565. type: 5,
  566. code: code
  567. }
  568. httpRequest.post('common/district', { data: params }).then(function (res) {
  569. vm.hospitalOptions = [{ code: '', name: '全部' }]
  570. vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
  571. })
  572. },
  573. getTeam(code, flag = true) {
  574. var vm = this
  575. if (flag) {
  576. delete this.form.team
  577. }
  578. var params = {
  579. hospital: code,
  580. area: this.form.area
  581. }
  582. httpRequest.get('statisticsExport/teamList', { data: params }).then(function (res) {
  583. vm.teamOptions = [{ id: '', name: '全部' }]
  584. vm.teamOptions = vm.teamOptions.concat(res.data)
  585. })
  586. },
  587. handleCurrentChange(val) {
  588. this.page = val
  589. if (this.title == '上转预约明细列表') {
  590. this.gxbTurnUpInfoPage()
  591. } else if (this.title == '上转转门诊明细' || this.title == '门诊转住院明细') {
  592. this.turnUpToMzDetailPage()
  593. } else if (this.title == '下转管理明细') {
  594. this.turnDownManageDetailPage()
  595. } else if (this.title == '个案数据列表') {
  596. this.gxbCaseDataPage()
  597. } else if (this.title == '上转预约明细列表') {
  598. this.gxbTurnUpInfoPage()
  599. }
  600. },
  601. handleSizeChange(val) {
  602. this.size = val
  603. if (this.title == '上转预约明细列表') {
  604. this.gxbTurnUpInfoPage()
  605. } else if (this.title == '上转转门诊明细' || this.title == '门诊转住院明细') {
  606. this.turnUpToMzDetailPage()
  607. } else if (this.title == '下转管理明细') {
  608. this.turnDownManageDetailPage()
  609. } else if (this.title == '个案数据列表') {
  610. this.gxbCaseDataPage()
  611. } else if (this.title == '上转预约明细列表') {
  612. this.gxbTurnUpInfoPage()
  613. }
  614. },
  615. getData(data) {
  616. this.yearType = data.yearType
  617. this.form.range = data.range
  618. this.form.area = data.area
  619. this.form.hospital = data.hospital
  620. this.form.team = data.team
  621. if (this.yearType == 1) {
  622. this.chooseYear = data.time
  623. } else {
  624. this.chooseTime = data.time
  625. }
  626. if (this.form.hospital) {
  627. // 如果有社区code传过来就调社区医院列表接口
  628. this.getHospital(data.area, false)
  629. }
  630. if (this.form.team) {
  631. // 如果有团队code传过来就调团队列表接口
  632. this.getTeam(data.hospital, false)
  633. }
  634. this.searchFn()
  635. },
  636. renderHeader: function (h, item) {
  637. var label = item.column.label
  638. var column = item.column
  639. var tooltip = {
  640. '签约社区': '显示为该患者当前的签约社区医院名称',
  641. '社区医院': '显示为该患者当前的签约社区医院名称',
  642. '签约医院': '显示为该患者当前的签约社区医院名称',
  643. '签约医生': '显示为该患者当前的签约社区医生名称',
  644. '家庭医生': '显示为该患者当前的签约社区医生名称'
  645. }
  646. if (label == '签约社区' || label == '签约医生' || label == '签约医院' || label == '家庭医生' || label == '社区医院') {
  647. return [
  648. label,
  649. h(
  650. 'el-tooltip',
  651. {
  652. props: {
  653. content: (function () {
  654. return tooltip[label]
  655. })(),
  656. placement: 'top'
  657. }
  658. },
  659. [
  660. h('span', {
  661. class: {
  662. 'el-icon-question': true
  663. }
  664. })
  665. ]
  666. )
  667. ]
  668. } else {
  669. return [column.label]
  670. }
  671. }
  672. },
  673. mounted() {
  674. this.init()
  675. }
  676. })