index.js 22 KB

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