comprehensive-query.js 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016
  1. Vue.use(Vuedals.default)
  2. new Vue({
  3. el: '#main',
  4. data: {
  5. height: '',
  6. isloading: false, //加载中
  7. start: '',
  8. health_bank_service_type: [],
  9. serviceType: '',
  10. searchStr: 1,
  11. end: '',
  12. tabledata: [], //表格数据
  13. levelList: [
  14. { level: '4', areaLevel: '2' },
  15. { level: '3', areaLevel: '3' },
  16. { level: '2', areaLevel: '4' }
  17. ], //两种搜索,地区等级对比
  18. areaLevel: '', // 2、市,3、区,4、社区,5、团队
  19. initareaLevel: '',
  20. initlevel: '',
  21. initarea: '',
  22. level: '',
  23. area: '',
  24. areaTitle: '',
  25. index: '121',
  26. lowLevel: '',
  27. initlowLevel: '',
  28. years: [],
  29. chooseYear: '',
  30. userRole: '',
  31. treedata: [],
  32. treedataExpert: [{ label: '邀请专科回复统计', id: '1' }],
  33. tableHeader: [],
  34. defaultProps: {
  35. children: 'children',
  36. label: 'label'
  37. },
  38. pickerOptions: {
  39. disabledDate: function (time) {
  40. return time.getTime() > Date.now()
  41. }
  42. },
  43. radio: '1',
  44. timeLevel: 2,
  45. searchJson: {},
  46. currentPage: 1,
  47. currentSize: 10,
  48. datatotal: 0,
  49. rangeList: [],
  50. rangeCode: '',
  51. areaList: [],
  52. areaCode: '',
  53. communityList: [{ code: '', name: '全部' }],
  54. communityCode: '',
  55. teamList: [{ code: '', name: '全部' }],
  56. teamCode: '',
  57. detailInquire: [
  58. {
  59. label: '明细查询',
  60. children: [
  61. { label: '咨询分析', id: '33' },
  62. { label: '签约分析', id: '34' },
  63. { label: '专病分析', id: '35' },
  64. { label: '生日祝福分析', id: '36' },
  65. { label: '上门服务分析', id: '37' },
  66. { label: '长处方分析', id: '38' },
  67. { label: '体征数据分析', id: '39' },
  68. { label: '上转预约明细', id: '40' },
  69. { label: '专病复诊明细', id: '53' },
  70. { label: '微信绑定明细', id: '41' },
  71. { label: '入户访视明细', id: '43' },
  72. // { label: '康复下转明细', id: '44' },
  73. { label: '邀请专科回复明细', id: '45' }
  74. ]
  75. }
  76. ],
  77. mzfTabsData: [
  78. { label: '慢阻肺医院工作量表', id: '46' },
  79. { label: '慢阻肺患者查询', id: '47' },
  80. { label: '慢阻肺入组进度', id: '48' },
  81. { label: '慢阻肺入组总明细', id: '49' },
  82. { label: '慢阻肺随访进度', id: '50' },
  83. { label: '慢阻肺随访总明细', id: '51' },
  84. { label: 'v1入组情况报表', id: '52' },
  85. { label: '慢阻肺呼吸训练数据', id: '54' },
  86. { label: '慢阻肺手表数据', id: '55' },
  87. { label: '慢阻肺监查、稽查情况统计', id: '56' },
  88. { label: '第一阶段入组随访进度', id: '57' },
  89. { label: '第二阶段三级医院入组进度', id: '58' },
  90. { label: '第二阶段社区医院入组进度', id: '59' },
  91. { label: '第二阶段三级医院随访进度', id: '60' },
  92. { label: '第二阶段社区医院随访进度', id: '61' },
  93. { label: '第二阶段三级医院随访进度及出组情况', id: '62' }
  94. ],
  95. mzfJcTabsData: [
  96. { label: '慢阻肺患者档案', id: '63' },
  97. { label: '服务人数配置及进度查询', id: '66' },
  98. { label: '管理情况自助查询', id: '64' }
  99. ],
  100. // 慢阻肺管理情况自处查询字段列表
  101. copdManageSearchFilterList: [
  102. {
  103. label: '总患者数',
  104. value: 'totalPatients'
  105. },
  106. {
  107. label: '今年新增人数',
  108. value: 'newPatientsThisYear'
  109. },
  110. {
  111. label: '已随访人数',
  112. value: 'followedUpPatients'
  113. },
  114. {
  115. label: '完成率',
  116. value: 'completionRate'
  117. },
  118. {
  119. label: '回退次数',
  120. value: 'returnCount'
  121. },
  122. {
  123. label: '转移次数',
  124. value: 'transferCount'
  125. },
  126. {
  127. label: '病人转归情况人数',
  128. value: 'patientOutcomeCount'
  129. },
  130. {
  131. label: '家签患者人数',
  132. value: 'signedPatients'
  133. },
  134. {
  135. label: '非家签患者人数',
  136. value: 'unsignedPatients'
  137. },
  138. {
  139. label: '已分配人数',
  140. value: 'assignedPatients'
  141. },
  142. {
  143. label: '未分配人数',
  144. value: 'unassignedPatients'
  145. },
  146. {
  147. label: '已接收人数',
  148. value: 'receivedPatients'
  149. },
  150. {
  151. label: '未接收人数',
  152. value: 'unreceivedPatients'
  153. },
  154. {
  155. label: '未随访人数',
  156. value: 'unfollowedPatients'
  157. },
  158. {
  159. label: '已随访次数',
  160. value: 'followUpCount'
  161. },
  162. {
  163. label: '失访人数',
  164. value: 'lostFollowUpPatients'
  165. },
  166. {
  167. label: '死亡人数',
  168. value: 'deceasedPatients'
  169. }
  170. ],
  171. // 家庭病床统计
  172. jtbcTabsData: [
  173. { label: '患者情况分析', id: '71' },
  174. { label: '建床人数统计', id: '72' },
  175. { label: '计划服务情况分析', id: '73' },
  176. { label: '病床查床情况分析', id: '74' },
  177. { label: '转诊与撤床情况分析', id: '75' },
  178. { label: '一键报警记录查询', id: '76' }
  179. ],
  180. gxbTabsData: [
  181. // id乱是因为后面需求变更
  182. { label: '冠心病筛评管理情况汇总表', id: '91' },
  183. { label: '冠心病评估情况统计表', id: '77' },
  184. { label: '冠心病上转情况统计表', id: '78' },
  185. { label: '冠心病下转情况统计表', id: '79' },
  186. { label: '冠心病康复管理情况统计表', id: '80' },
  187. // { label: '冠心病康复管理情况统计表', id: '87' },
  188. // { label: '康复随访记录', id: '87' },
  189. { label: '冠心病管理全流程闭环管理', id: '81' },
  190. { label: '居民预约情况明细', id: '88' },
  191. { label: '就诊明细查询', id: '83' },
  192. { label: '下转动态分析', id: '84' },
  193. { label: '康复随访详情', id: '86' },
  194. { label: '康复下转明细', id: '87' },
  195. { label: '签约情况统计', id: '82' },
  196. { label: '消息推送明细', id: '89' }
  197. ],
  198. jkjlbTabsTree: [
  199. {
  200. label: '活动举办报名汇总',
  201. code: '92',
  202. root: true,
  203. children: [
  204. { id: '1', prop: 'joinPatientNum', label: '参与居民人数', code: '92', tip: '该区域/社区举办的活动中,已报名/参与的居民人数(已去重)' },
  205. { id: '2', prop: 'joinHospitalNum', label: '参与社区医院数量', code: '92', tip: '该区域/社区举办的活动中,已报名。参与的居民签约的社区医院总数(已去重)', width: '150' },
  206. { id: '3', prop: 'eventTotal', label: '活动举办总数', code: '92', tip: '该区域/社区举办的活动数量总和' },
  207. { id: '4', prop: 'eventDoneNum', label: '已办活动场数', code: '92', tip: '该区域/社区举办的活动中,已结束的活动数量总和' },
  208. { id: '5', prop: 'eventIngNum', label: '活动中活动场数', code: '92', tip: '该区域/社区举办的活动中,正在活动中的活动数量总和' },
  209. { id: '6', prop: 'eventNotStartNum', label: '未开始活动场数', code: '92', tip: '该区域/社区举办的活动中,未到活动开始时间的活动数量' },
  210. { id: '7', prop: 'healthSportNum', label: '健康运动类活动', code: '92', tip: '该区域/社区举办的活动中,一级类别为:“健康运动”的活动数量总和' },
  211. { id: '8', prop: 'healthEduNum', label: '健康教育类活动', code: '92', tip: '该区域/社区举办的活动中,一级类别为:“健康教育”的活动数量总和' },
  212. { id: '9', prop: 'promoteBusinessNum', label: '促进业务类活动', code: '92', tip: '该区域/社区举办的活动中,一级类别为:“促进业务”的活动数量总和' },
  213. { id: '10', prop: 'signUpTotal', label: '活动报名总人数', code: '92', tip: '该区域/社区举办的活动中,已报名/参与的人数(重复报名按多次计算)' },
  214. {
  215. id: '11',
  216. prop: 'healthSportSignUpNum',
  217. label: '健康运动类报名',
  218. code: '92',
  219. tip: '该区域/社区举办的一级类别为:“健康运动”的活动中,已报名/参与的人数(重复报名按多次计算)'
  220. },
  221. {
  222. id: '12',
  223. prop: 'healthEduSignUpNum',
  224. label: '健康教育类报名',
  225. code: '92',
  226. tip: '该区域/社区举办的一级类别为:“健康教育”的活动中,已报名/参与的人数(重复报名按多次计算)'
  227. },
  228. {
  229. id: '13',
  230. prop: 'promoteBusinessSignUpNum',
  231. label: '促进业务类报名',
  232. code: '92',
  233. tip: '该区域/社区举办的一级类别为:“促进业务”的活动中,已报名/参与的人数(重复报名按多次计算)'
  234. }
  235. ]
  236. },
  237. {
  238. label: '居民积分汇总',
  239. code: '93',
  240. root: true,
  241. children: [
  242. { id: '21', prop: 'joinNum', label: '参与积分人数', code: '93' },
  243. { id: '22', prop: 'integrateTotal', label: '累计积分数', code: '93' },
  244. { id: '23', prop: 'useIntegrate', label: '已使用积分', code: '93' },
  245. { id: '24', prop: 'noUseIntegrate', label: '未使用积分', code: '93' }
  246. ]
  247. },
  248. {
  249. label: '红包奖励汇总',
  250. code: '94',
  251. root: true,
  252. children: [
  253. { id: '25', prop: 'activityTimes', label: '举办活动次数', code: '94' },
  254. { id: '26', prop: 'targetNum', label: '目标参与人数', code: '94' },
  255. { id: '27', prop: 'joinNum', label: '实际参与人数', code: '94' },
  256. { id: '28', prop: 'rewardNum', label: '领取奖励人数', code: '94' },
  257. { id: '29', prop: 'feeNum', label: '领取奖励金额', code: '94' }
  258. ]
  259. }
  260. ],
  261. jkjlbTabsData: [
  262. { label: '活动举办明细', id: '95' },
  263. { label: '居民活动报名明细', id: '96' },
  264. { label: '居民积分明细', id: '97' },
  265. { label: '居民红包奖励明细', id: '90' }
  266. ],
  267. jkjlbList: [],
  268. copdFilterCheckValue: [],
  269. handleNodeShow: 1,
  270. handleNodeId: 0,
  271. radio1: '',
  272. radio2: '',
  273. radio3: '',
  274. radio4: '',
  275. radio5: '',
  276. radio6: '',
  277. radio7: '',
  278. radio8: '',
  279. radio9: '',
  280. radio10: '',
  281. cities: [
  282. { value: '高血压', num: '4' },
  283. { value: '糖尿病', num: '5' },
  284. { value: '65岁以上人群', num: '3' },
  285. { value: '0-6岁小孩', num: '7' },
  286. { value: '计划生育家庭', num: '9' },
  287. { value: '严重精神障碍', num: '10' },
  288. { value: '残疾人', num: '11' },
  289. { value: '普通人群', num: '1' },
  290. { value: '结核病', num: '12' },
  291. { value: '低保人群', num: '8' },
  292. { value: '孕产妇', num: '6' }
  293. ],
  294. checkedCities: [],
  295. specialCities: [],
  296. specialCheckedCities: [],
  297. serveCities: [
  298. { value: '残疾人', num: '1' },
  299. { value: '失能/半失能老人', num: '5' },
  300. { value: '80岁以上老人', num: '7' },
  301. { value: '肺结核患者', num: '2' },
  302. { value: '计生特殊家庭', num: '3' },
  303. { value: '重性精神病', num: '4' },
  304. { value: '其他', num: '6' }
  305. ],
  306. serveSpecialCities: [],
  307. options: [
  308. {
  309. value: '1',
  310. label: '是'
  311. },
  312. {
  313. value: '0',
  314. label: '否'
  315. }
  316. ],
  317. value: '',
  318. form: {
  319. endorseTheTicket: '',
  320. renew: '',
  321. backToSign: '',
  322. WeChat: ''
  323. },
  324. form2: {
  325. juniorCollege: '',
  326. family: '',
  327. resident: '',
  328. patientType: ''
  329. },
  330. form3: {
  331. family: '',
  332. resident: ''
  333. },
  334. form4: {
  335. family: '',
  336. resident: ''
  337. },
  338. form5: {
  339. family: '',
  340. resident: ''
  341. },
  342. handleData: [],
  343. diseaseData: [],
  344. serviceTypeData: [],
  345. analyseData: [], //分析数据
  346. searchJsonTime: undefined,
  347. loadingTwo: false,
  348. radio1Show: null,
  349. serverType: '',
  350. diseaseDataType: '',
  351. serviceTypeDataType: '',
  352. fullscreenLoading: false,
  353. derive: '',
  354. tabsList: [
  355. { id: '1', text: '综合查询', show: true },
  356. { id: '2', text: '明细查询', show: false },
  357. { id: '3', text: '汇总数据', show: false },
  358. { id: '4', text: '专科综合查询', show: false },
  359. // {id:'5',text:'慢阻肺综合查询',show:false},
  360. { id: '10', text: '健康俱乐部', show: false },
  361. { id: '6', text: '慢阻肺统计', show: false },
  362. { id: '7', text: '疾控慢阻肺监测', show: false },
  363. { id: '8', text: '家庭病床统计', show: false },
  364. { id: '9', text: '冠心病统计', show: false }
  365. ],
  366. tabsId: '1',
  367. facility: '', //体征数据分析 - 设备类型
  368. illness: '', //体征数据分析 - 疾病类型
  369. form6: {
  370. resident: '',
  371. doctor: ''
  372. },
  373. form7: {
  374. resident: '',
  375. doctorOne: '',
  376. hospital: '',
  377. doctorTwo: '',
  378. administrativeOffice: ''
  379. },
  380. form9: {
  381. resident: '',
  382. doctorTwo: ''
  383. },
  384. form10: {
  385. resident: '',
  386. doctorTwo: ''
  387. },
  388. form11: {
  389. patientName: '',
  390. status: '',
  391. hospitalCode: '',
  392. hospitalDoctor: '',
  393. orgCode: '',
  394. doctor: '',
  395. archiveStatus: '',
  396. patientType: ''
  397. },
  398. form12: {
  399. patientName: '',
  400. status: '',
  401. doctor: '',
  402. hospital: '',
  403. archiveStatus: ''
  404. },
  405. form13: {
  406. patientName: '',
  407. doctorName: ''
  408. },
  409. getHealthData: [],
  410. form8: {
  411. renew: ''
  412. },
  413. reservationData: [],
  414. wexinBindingData: [],
  415. hospitalData: [],
  416. administrativeOffice: [],
  417. jifenData: [],
  418. ruhuData: [],
  419. redPacketData: [],
  420. collect: [
  421. {
  422. id: 'kfxzrs,kfxzrc,szrs,szrc',
  423. label: '专病汇总',
  424. code: '1',
  425. children: [
  426. { id: 'kfxzrs', label: '康复下转人数', code: '1' },
  427. { id: 'kfxzrc', label: '康复下转人次', code: '1' },
  428. { id: 'szrs', label: '上转人数', code: '1' },
  429. { id: 'szrc', label: '上转人次', code: '1' }
  430. ]
  431. },
  432. {
  433. id: 'scsbs,scrc,yctzrc,gyrc',
  434. label: '体征数据汇总',
  435. code: '2',
  436. children: [
  437. { id: 'scsbs', label: '上传设备数', code: '2' },
  438. { id: 'scrc', label: '上传人次', code: '2' },
  439. { id: 'yctzrc', label: '异常体征人次', code: '2' },
  440. { id: 'gyrc', label: '干预人次', code: '2' }
  441. ]
  442. },
  443. {
  444. id: 'fwgd',
  445. label: '上门服务汇总',
  446. code: '3',
  447. children: [{ id: 'fwgd', label: '服务工单', code: '3' }]
  448. }
  449. ],
  450. specHosName: '',
  451. specHosList: [],
  452. collectCode: '',
  453. diseaseReport: [],
  454. diseaseColumn: [],
  455. diseaseHeader: [],
  456. facilitySign: '',
  457. getDeviceReport: [],
  458. getDeviceColumn: [],
  459. getDeviceHeader: [],
  460. getDoorReport: [],
  461. getDoorColumn: [],
  462. getDoorHeader: [],
  463. isCheck: false,
  464. deorsumvergence: [{ value: '', label: '全部' }],
  465. rehabilitationHospital: [{ value: '', label: '全部' }],
  466. archiveList: [{ value: '', label: '全部' }],
  467. inviteStatus: [
  468. { value: '', label: '全部' },
  469. { value: '0', label: '待回复' },
  470. { value: '1', label: '进行中' },
  471. { value: '2', label: '已完成' },
  472. { value: '3', label: '未回复' }
  473. ],
  474. inviteStatus1: [
  475. { value: '', label: '全部' },
  476. { value: '1', label: '门诊患者' },
  477. { value: '2', label: '出院患者' }
  478. ],
  479. recoveryList: [],
  480. dialogVisible: false,
  481. signatoryList: [],
  482. tableKey: '',
  483. indicator: [],
  484. communityHospitals: [],
  485. invitationList: [],
  486. expertFamilyIdType: '',
  487. expertReplyData: [],
  488. specializedHospital: [{ value: '', label: '全部' }],
  489. mzfzhcxData: [{ name: '测试数据1条' }],
  490. mzftjTree: [
  491. {
  492. id: 'zhzrs,yglrs,yrzrs,ysfrs,yczrs,bnrglrs,swrs',
  493. label: '患者管理统计',
  494. code: '1',
  495. children: [
  496. { id: 'zhzrs', label: '总患者人数', code: '1' },
  497. { id: 'yglrs', label: '已管理人数', code: '1' },
  498. { id: 'yrzrs', label: '已入组人数', code: '1' },
  499. { id: 'ysfrs', label: '已失访人数', code: '1' },
  500. { id: 'yczrs', label: '已出组人数', code: '1' },
  501. { id: 'bnrglrs', label: '不纳入管理人数', code: '1' },
  502. { id: 'swrs', label: '死亡人数', code: '1' }
  503. ]
  504. },
  505. {
  506. id: 'yjcrs,yjccs,djcrs,djccs,djcrs,djccs',
  507. label: '监查稽查统计',
  508. code: '2',
  509. children: [
  510. { id: 'yjcrs', label: '已稽查人数', code: '2' },
  511. { id: 'yjccs', label: '已稽查次数', code: '2' },
  512. { id: 'djcrs', label: '待监查人数', code: '2' },
  513. { id: 'djccs', label: '待监查次数', code: '2' },
  514. { id: 'djcrs', label: '待稽查人数', code: '2' },
  515. { id: 'djccs', label: '待稽查次数', code: '2' }
  516. ]
  517. },
  518. {
  519. id: 'xzrs,jsxzrs',
  520. label: '下转接收统计',
  521. code: '3',
  522. children: [
  523. { id: 'xzrs', label: '下转人数', code: '3' },
  524. { id: 'jsxzrs', label: '接收下转人数', code: '3' }
  525. ]
  526. },
  527. {
  528. id: 'v1sxrs,v2rzrs,v3rs,v4rs,v5rs,v6rs,zgrs,tlzls',
  529. label: '随访进度统计',
  530. code: '4',
  531. children: [
  532. { id: 'v1sxrs', label: 'v1筛选人数', code: '4' },
  533. { id: 'v2rzrs', label: 'v2入组人数', code: '4' },
  534. { id: 'v3rs', label: 'v3人数', code: '4' },
  535. { id: 'v4rs', label: 'v4人数', code: '4' },
  536. { id: 'v5rs', label: 'v5人数', code: '4' },
  537. { id: 'v6rs', label: 'v6人数', code: '4' },
  538. { id: 'zgrs', label: '在管人数', code: '4' },
  539. { id: 'tlzls', label: '脱落总例数', code: '4' }
  540. ]
  541. }
  542. ],
  543. list: [],
  544. startTime: new Date('2023', '05', '26'),
  545. endTime: new Date(),
  546. regionList: [],
  547. regionData: [{ label: '全市', id: '1', type: '1' }],
  548. regionListList: [],
  549. tertiaryHospitalsData: [{ label: '全部', id: '1', type: '2' }],
  550. communityHospitalsList: [],
  551. communityHospitalsData: [{ label: '全部', id: '1', type: '3' }],
  552. groupingList: [],
  553. groupingData: [{ label: '全部', id: '1', type: '4' }],
  554. administrationStatusList: [],
  555. administrationStatusData: [{ label: '全部', id: '1', type: '5' }],
  556. show: false,
  557. showTwo: false,
  558. showThree: false,
  559. currentPage: 1,
  560. currentSize: 10,
  561. datatotal: 0, //总数
  562. loadingTwo: false,
  563. setDisabled: {
  564. disabledDate: function (time) {
  565. return time.getTime() < new Date('2023', '05', '26') || time.getTime() > Date.now()
  566. }
  567. },
  568. s: '',
  569. e: '',
  570. // 下转状态
  571. transferStatusOptions: [
  572. {
  573. label: '全部',
  574. value: -1
  575. },
  576. {
  577. label: '已下转',
  578. value: 1
  579. },
  580. {
  581. label: '未下转',
  582. value: 2
  583. }
  584. ],
  585. // 接收状态
  586. receiveStatusOptions: [
  587. {
  588. label: '全部',
  589. value: -1
  590. },
  591. {
  592. label: '已接收',
  593. value: 1
  594. },
  595. {
  596. label: '未接收',
  597. value: 2
  598. }
  599. ],
  600. // 接收的社区医院
  601. receivingHospitalList: [],
  602. // 档案状态
  603. recordStatusOptions: [
  604. {
  605. label: '全部',
  606. value: -1
  607. },
  608. {
  609. label: '正常',
  610. value: 1
  611. },
  612. {
  613. label: '失访',
  614. value: 2
  615. },
  616. {
  617. label: '回退',
  618. value: 3
  619. }
  620. ],
  621. // 生存状态
  622. survivalStatusOption: [
  623. {
  624. label: '全部',
  625. value: -1
  626. },
  627. {
  628. label: '生存',
  629. value: 1
  630. },
  631. {
  632. label: '死亡',
  633. value: 2
  634. }
  635. ],
  636. componentId: []
  637. },
  638. components: {
  639. vuedals: Vuedals.Component
  640. },
  641. watch: {
  642. rangeCode: function (val) {
  643. var vm = this
  644. if (vm.initlevel != 2) {
  645. vm.communityCode = ''
  646. }
  647. vm.teamCode = ''
  648. vm.getTreeList()
  649. },
  650. areaCode: function (val) {
  651. var vm = this
  652. vm.selChange(3)
  653. },
  654. communityCode: function (val) {
  655. var vm = this
  656. vm.selChange(5)
  657. },
  658. 'startTime': {
  659. handler: function (o) {
  660. if (!o) {
  661. this.list.splice(0, 1)
  662. }
  663. },
  664. deep: true,
  665. immediate: true
  666. },
  667. 'endTime': {
  668. handler: function (o) {
  669. if (!o) {
  670. this.list.splice(0, 1)
  671. }
  672. },
  673. deep: true,
  674. immediate: true
  675. }
  676. },
  677. mounted: function () {
  678. var vm = this
  679. //初始化数据
  680. var searchStr = location.search
  681. if (searchStr) {
  682. vm.searchStr = 0
  683. vm.tabsList = [{ id: '7', text: '疾控慢阻肺监测', show: true }]
  684. vm.tabsClick({ id: '7', text: '疾控慢阻肺监测', show: true })
  685. }
  686. initData(vm)
  687. vm.getQuotaStr()
  688. vm.getfwDictName()
  689. vm.getDiseaseTypeList()
  690. vm.height = document.body.offsetHeight - 85
  691. window.onresize = function () {
  692. vm.height = document.body.offsetHeight - 85
  693. }
  694. this.s = this.startTime.format('yyyy-MM-dd')
  695. this.e = this.endTime.format('yyyy-MM-dd')
  696. this.list.unshift({ type: '0', id: 'time', label: this.s + '~' + this.e })
  697. for (var i = 46; i <= 98; i++) {
  698. this.componentId.push(i + '')
  699. }
  700. EventBus.$on('toPage', function (data) {
  701. vm.handleNodeId = data.id
  702. vm.$nextTick(function () {
  703. if (vm.handleNodeId == 77) {
  704. vm.$refs.gxbEvaluation.getData(data)
  705. } else if (vm.handleNodeId == 78) {
  706. vm.$refs.gxbTurnup.getData(data)
  707. } else if (vm.handleNodeId == 79) {
  708. vm.$refs.gxbMz.getData(data)
  709. } else if (vm.handleNodeId == 80) {
  710. vm.$refs.gxbCy.getData(data)
  711. }
  712. })
  713. })
  714. EventBus.$on('preview-person-info', function (data) {
  715. vm.$refs.personInfo.openDialog(data)
  716. })
  717. },
  718. beforeDestroy() {
  719. EventBus.$off('toPage')
  720. EventBus.$off('preview-person-info')
  721. },
  722. methods: {
  723. getfwDictName() {
  724. var vm = this
  725. statisticAPI.getDictByDictName({ name: 'health_bank_service_type' }).then(function (res) {
  726. vm.health_bank_service_type = res.list
  727. })
  728. },
  729. //获取综合查询指标
  730. getQuotaStr() {
  731. var vm = this
  732. statisticAPI.getDictByDictName({ name: 'jkcopd_quotaStr' }).then(function (res) {
  733. vm.copdManageSearchFilterList = res.list
  734. })
  735. },
  736. startTimeChange: function (o) {
  737. if (!this.list[0] || this.list[0].type != 0) {
  738. this.list.unshift({
  739. type: '0',
  740. id: 'time',
  741. label: o.format('yyyy-MM-dd') + '~' + this.endTime.format('yyyy-MM-dd')
  742. })
  743. } else {
  744. this.list[0].label = o.format('yyyy-MM-dd') + '~' + this.endTime.format('yyyy-MM-dd')
  745. }
  746. },
  747. endTimeChange: function (o) {
  748. if (!this.list[0] || this.list[0].type != 0) {
  749. this.list.unshift({
  750. type: '0',
  751. id: 'time',
  752. label: this.startTime.format('yyyy-MM-dd') + '~' + o.format('yyyy-MM-dd')
  753. })
  754. } else {
  755. this.list[0].label = this.startTime.format('yyyy-MM-dd') + '~' + o.format('yyyy-MM-dd')
  756. }
  757. },
  758. // 确定
  759. confirm: function () {
  760. this.hospitalWorkStatistics()
  761. },
  762. // 选择
  763. change: function (val) {
  764. this.list = this.list.concat(val)
  765. },
  766. // 已选
  767. deleteClick: function (item) {
  768. if (item.id == 'time') {
  769. this.startTime = ''
  770. this.endTime = ''
  771. this.list.splice(0, 1)
  772. }
  773. var index = this.list.findIndex(function (v) {
  774. return item.id == v.id
  775. })
  776. this.list.splice(index, 1)
  777. },
  778. // 取消
  779. cancel: function () {
  780. this.startTime = new Date('2023', '05', '26')
  781. this.endTime = new Date()
  782. if (!this.list[0] || this.list[0].type != 0) {
  783. this.list.unshift({
  784. type: '0',
  785. id: 'time',
  786. label: this.startTime.format('yyyy-MM-dd') + '~' + this.endTime.format('yyyy-MM-dd')
  787. })
  788. } else {
  789. this.list[0].label = this.startTime.format('yyyy-MM-dd') + '~' + this.endTime.format('yyyy-MM-dd')
  790. }
  791. },
  792. // 导出
  793. exportHandle: function () {
  794. var vm = this
  795. vm.loadingTwo = true
  796. statisticAPI
  797. .exportHospitalWorkStatistics(
  798. {
  799. startDate: this.startTime.format('yyyy-MM-dd'),
  800. endDate: this.endTime.format('yyyy-MM-dd')
  801. },
  802. '慢阻肺综合查询表.xls'
  803. )
  804. .then(function (res) {
  805. vm.loadingTwo = false
  806. })
  807. },
  808. renderTableHeader: function (h, item) {
  809. var $index = item.$index
  810. return h('div', [
  811. h('span', this.diseaseHeader[$index - 1] + ' ', {
  812. align: 'center',
  813. marginTop: '10px'
  814. }),
  815. h(
  816. 'el-popover',
  817. {
  818. props: {
  819. placement: 'top-start', // 一般 icon 处可添加浮层说明,浮层位置等属性
  820. width: '100',
  821. trigger: 'hover'
  822. }
  823. },
  824. [
  825. h('p', this.indicator[$index - 2], {
  826. class: 'text-align: center; margin: 0'
  827. }),
  828. h('i', {
  829. // 生成 i 标签 ,添加icon 设置 样式,slot 必填
  830. class: 'el-icon-question',
  831. style: 'color:#ccc,margin:18px,padding-top:10px',
  832. slot: 'reference'
  833. })
  834. ]
  835. )
  836. ])
  837. },
  838. renderHeadeRexpert: function (h, item) {
  839. var index = item.$index
  840. return [
  841. index == '3'
  842. ? '邀请次数'
  843. : index == '4'
  844. ? '进行中'
  845. : index == '5'
  846. ? '已回复'
  847. : index == '6'
  848. ? '未回复'
  849. : index == '7'
  850. ? '回复率'
  851. : index == '8'
  852. ? '平均响应时长'
  853. : '用户评价',
  854. h(
  855. 'el-tooltip',
  856. {
  857. props: {
  858. content: (function () {
  859. return index == '3'
  860. ? '发起邀请总次数'
  861. : index == ''
  862. ? '其中咨询未完成,包含待回复和进行中'
  863. : index == '5'
  864. ? '其中医生已回复且咨询已结束的'
  865. : index == '6'
  866. ? '其中咨询已结束医生未回复的'
  867. : index == '7'
  868. ? '已回复 / 邀请次数'
  869. : index == '8'
  870. ? '[邀请1响应时长+ 邀请2响应时长 + ...] / 总次数'
  871. : '用户评价'
  872. })(),
  873. placement: 'top'
  874. }
  875. },
  876. [
  877. h('span', {
  878. class: {
  879. 'el-icon-question': true
  880. }
  881. })
  882. ]
  883. )
  884. ]
  885. },
  886. // 获取康复下转明细 --- 下转状态
  887. deorsumvergenceStatusFunction: function (name) {
  888. var vm = this
  889. signAPI.getDictByDictName({ name: name }).then(function (res) {
  890. if (res.status === 200) {
  891. if (name == 'rehabilitation_status') {
  892. res.list.forEach(function (v) {
  893. vm.deorsumvergence.push({
  894. value: v.code,
  895. label: v.value
  896. })
  897. })
  898. }
  899. if (name == 'rehabilitation_hospital') {
  900. res.list.forEach(function (v) {
  901. vm.rehabilitationHospital.push({
  902. value: v.code,
  903. label: v.value
  904. })
  905. })
  906. }
  907. if (name == 'archive_status') {
  908. res.list.forEach(function (v) {
  909. vm.archiveList.push({
  910. value: v.code,
  911. label: v.value
  912. })
  913. })
  914. }
  915. }
  916. })
  917. },
  918. // 获取社区医院
  919. hospitalsByType: function () {
  920. var vm = this
  921. statisticAPI
  922. .hospitalsByType({
  923. type: 1,
  924. code: '350200'
  925. })
  926. .then(function (res) {
  927. if (res.status == 200) {
  928. res.list.forEach(function (v) {
  929. vm.communityHospitals.push({
  930. value: v.code,
  931. label: v.name
  932. })
  933. })
  934. }
  935. })
  936. .catch(function (err) {
  937. console.log(err, 'Errr')
  938. })
  939. },
  940. // 康复下转操作
  941. operation: function (num, item) {
  942. var vm = this
  943. if (num != 2) {
  944. statisticAPI
  945. .synchronizePationSingle({ id: item.id })
  946. .then(function (res) {
  947. if (res.status == 200) {
  948. toastr.info('操作成功')
  949. this.tableKey = Math.random()
  950. } else {
  951. toastr.error(res.msg)
  952. }
  953. })
  954. .catch(function (err) {
  955. console.log(err, 'Errr')
  956. })
  957. } else {
  958. vm.signatoryList = []
  959. statisticAPI
  960. .kangfuGetSignInfo({ idcard: item.idcard })
  961. .then(function (res) {
  962. if (res.status == 200) {
  963. if (res.data != null) {
  964. vm.signatoryList.push(res.data)
  965. }
  966. }
  967. })
  968. .catch(function (err) {
  969. console.log(err, 'Errr')
  970. })
  971. this.dialogVisible = true
  972. }
  973. },
  974. getImgurl: function (url) {
  975. var imgUrl = url && url.split(',')[0]
  976. return httpRequest.getImgUrl(imgUrl)
  977. },
  978. reset: function () {
  979. if (this.tabsId == 1) {
  980. this.getTreeList()
  981. } else {
  982. this.collect = [
  983. {
  984. id: 'kfxzrs,kfxzrc,szrs,szrc',
  985. label: '专病汇总',
  986. code: '1',
  987. children: [
  988. { id: 'kfxzrs', label: '康复下转人数', code: '1' },
  989. { id: 'kfxzrc', label: '康复下转人次', code: '1' },
  990. { id: 'szrs', label: '下转人数', code: '1' },
  991. { id: 'szrc', label: '下转人数', code: '1' }
  992. ]
  993. },
  994. {
  995. id: 'scsbs,scrc,yctzrc,gyrc',
  996. label: '体征数据汇总',
  997. code: '2',
  998. children: [
  999. { id: 'scsbs', label: '上传设备数', code: '2' },
  1000. { id: 'scrc', label: '上传人次', code: '2' },
  1001. { id: 'yctzrc', label: '异常体征人次', code: '2' },
  1002. { id: 'gyrc', label: '干预人次', code: '2' }
  1003. ]
  1004. },
  1005. {
  1006. id: 'fwgd',
  1007. label: '上门服务汇总',
  1008. code: '3',
  1009. children: [{ id: 'fwgd', label: '服务工单', code: '3' }]
  1010. },
  1011. {
  1012. id: 'activityTimes,targetNum,joinNum,rewardNum,feeNum',
  1013. label: '红包奖励汇总',
  1014. code: '4',
  1015. children: [
  1016. { id: 'activityTimes', label: '举办活动次数', code: '4' },
  1017. { id: 'targetNum', label: '目标参与人数', code: '4' },
  1018. { id: 'joinNum', label: '实际参与人数', code: '4' },
  1019. { id: 'rewardNum', label: '领取奖励人数', code: '4' },
  1020. { id: 'feeNum', label: '领取奖励金额', code: '4' }
  1021. ]
  1022. }
  1023. ]
  1024. }
  1025. },
  1026. // 清除
  1027. eliminateClick: function () {
  1028. this.radio = this.handleNodeId == 44 || this.expertFamilyIdType == 'zhuanke1' || this.handleNodeId == 45 ? '2' : '1'
  1029. this.radio1 = ''
  1030. this.radio2 = ''
  1031. this.radio3 = ''
  1032. this.radio4 = ''
  1033. this.radio5 = ''
  1034. this.radio6 = ''
  1035. this.radio7 = ''
  1036. this.radio8 = ''
  1037. this.radio9 = ''
  1038. this.radio10 = ''
  1039. this.serviceType = ''
  1040. this.form = {
  1041. endorseTheTicket: '',
  1042. renew: '',
  1043. backToSign: '',
  1044. WeChat: ''
  1045. }
  1046. this.form2 = {
  1047. juniorCollege: '',
  1048. family: '',
  1049. resident: ''
  1050. }
  1051. this.form3 = {
  1052. family: '',
  1053. resident: ''
  1054. }
  1055. this.form4 = {
  1056. family: '',
  1057. resident: ''
  1058. }
  1059. this.form5 = {
  1060. family: '',
  1061. resident: ''
  1062. }
  1063. this.form13 = {
  1064. patientName: '',
  1065. doctorName: ''
  1066. }
  1067. this.facility = '' //体征数据分析 - 设备类型
  1068. this.illness = '' //体征数据分析 - 疾病类型
  1069. this.form6 = {
  1070. resident: '',
  1071. doctor: ''
  1072. }
  1073. this.form7 = {
  1074. resident: '',
  1075. doctorOne: '',
  1076. hospital: '',
  1077. doctorTwo: '',
  1078. administrativeOffice: ''
  1079. }
  1080. ;(this.form9 = {
  1081. resident: '',
  1082. doctorTwo: ''
  1083. }),
  1084. (this.form10 = {
  1085. resident: '',
  1086. doctorTwo: ''
  1087. }),
  1088. (this.form8 = {
  1089. renew: ''
  1090. })
  1091. this.facilitySign = ''
  1092. this.form11 = {
  1093. patientName: '',
  1094. status: '',
  1095. hospitalCode: '',
  1096. hospitalDoctor: '',
  1097. orgCode: '',
  1098. doctor: '',
  1099. archiveStatus: ''
  1100. }
  1101. ;(this.form12 = {
  1102. patientName: '',
  1103. status: '',
  1104. doctor: '',
  1105. hospital: '',
  1106. archiveStatus: ''
  1107. }),
  1108. initData(this)
  1109. // initTime(this)
  1110. // initScope(this)
  1111. },
  1112. tabsClick: function (item) {
  1113. var vm = this
  1114. this.collectCode = ''
  1115. this.copdFilterCheckValue = []
  1116. vm.tabsId = item.id
  1117. if (item.id != 4) {
  1118. vm.expertFamilyIdType = ''
  1119. }
  1120. if (item.id == 5) {
  1121. vm.handleNodeShow = 5
  1122. }
  1123. vm.tabsList.forEach(function (res) {
  1124. if (res.id == item.id) {
  1125. res.show = true
  1126. } else {
  1127. res.show = false
  1128. }
  1129. })
  1130. vm.eliminateClick()
  1131. },
  1132. // 获取汇总数据的专科医院
  1133. specHosData: function () {
  1134. var vm = this
  1135. statisticAPI.getSpecialHospital().then(function (res) {
  1136. if (res.status == 200) {
  1137. res.data.forEach(function (item) {
  1138. vm.specHosList.push({ code: item.code, name: item.name })
  1139. })
  1140. }
  1141. })
  1142. },
  1143. getDiseaseTypeList: function () {
  1144. var vm = this
  1145. statisticAPI.getDiseaseTypeList({}).then(function (res) {
  1146. if (res.status == 200) {
  1147. vm.specialCities = res.list
  1148. }
  1149. })
  1150. },
  1151. // 签约人群
  1152. handleCheckedCitiesChange: function (value) {
  1153. var vm = this
  1154. vm.handleData = value
  1155. },
  1156. // 下转病种
  1157. diseaseChange: function (value) {
  1158. var vm = this
  1159. vm.diseaseData = value
  1160. },
  1161. // 服务类型
  1162. serviceTypeChange: function (value) {
  1163. var vm = this
  1164. vm.serviceTypeData = value
  1165. },
  1166. // 综合析树形图
  1167. treedataClick: function (name, data) {
  1168. var vm = this
  1169. vm.handleNodeShow = 1
  1170. vm.handleNodeId = 0
  1171. vm.currentPage = 1
  1172. vm.radio = '1' //签约年度 --创建时间
  1173. // initTime(vm)
  1174. // initScope(vm)
  1175. },
  1176. // 汇总树形图
  1177. collectClick: function (data, isCheck) {
  1178. var vm = this
  1179. vm.derive = data.label
  1180. vm.handleNodeShow = 3
  1181. vm.currentPage = 1
  1182. vm.radio = '1' //签约年度 --创建时间
  1183. vm.isCheck = isCheck
  1184. },
  1185. collCheck: function (data, name) {
  1186. // console.log(arguments)
  1187. var vm = this
  1188. vm.diseaseReport = []
  1189. vm.datatotal = 0
  1190. vm.collect.forEach(function (item) {
  1191. item.children.forEach(function (o) {
  1192. if (o.code != data.code) {
  1193. vm.$refs.collectTree.setChecked(o, false, true)
  1194. }
  1195. })
  1196. if (data.id == item.id) {
  1197. vm.$refs.collectTree.setChecked(item, vm.isCheck, true)
  1198. } else {
  1199. item.children.forEach(function (o) {
  1200. if (data.id == o.id) {
  1201. vm.$refs.collectTree.setChecked(o, vm.isCheck, true)
  1202. }
  1203. })
  1204. }
  1205. })
  1206. vm.handleNodeId = 'huizongshuju'
  1207. vm.collectCode = data.code
  1208. if (data.code == 1) {
  1209. vm.rangeList = [
  1210. { name: '按区', code: 'town' },
  1211. { name: '按社区', code: 'hospital' },
  1212. { name: '按团队', code: 'team' },
  1213. { name: '按专科医院', code: 'specHos' }
  1214. ]
  1215. vm.specHosData()
  1216. } else if (data.code == 4) {
  1217. vm.rangeList = [
  1218. { name: '按区', code: 'town' },
  1219. { name: '按社区', code: 'hospital' }
  1220. ]
  1221. } else {
  1222. vm.rangeList = [
  1223. { name: '按区', code: 'town' },
  1224. { name: '按社区', code: 'hospital' },
  1225. { name: '按团队', code: 'team' }
  1226. ]
  1227. }
  1228. },
  1229. // jkjlbClick(data, isCheck) {},
  1230. jkjlbCheck(data) {
  1231. var vm = this
  1232. // return
  1233. this.jkjlbList = []
  1234. this.handleNodeId = data.code
  1235. vm.handleNodeShow = 2 // 明细查询tabs为2
  1236. vm.jkjlbTabsTree.forEach(function (item) {
  1237. item.children.forEach(function (o) {
  1238. if (o.code != data.code) {
  1239. vm.$refs.collectTree.setChecked(o, false, true)
  1240. }
  1241. })
  1242. })
  1243. this.$nextTick(function () {
  1244. vm.jkjlbList = vm.$refs.collectTree.getCheckedNodes().filter(function (item) {
  1245. return item.root != true
  1246. })
  1247. })
  1248. },
  1249. // 点击明细查询树形图
  1250. handleNodeClick: function (item, type) {
  1251. var vm = this
  1252. vm.jkjlbList = []
  1253. vm.jkjlbTabsTree.forEach(function (item) {
  1254. item.children.forEach(function (o) {
  1255. if(vm.$refs.collectTree) vm.$refs.collectTree.setChecked(o, false, true)
  1256. })
  1257. })
  1258. vm.copdFilterCheckValue = []
  1259. vm.handleNodeId = 0
  1260. vm.derive = item.label
  1261. // if(data.id>=33) { //明细查询以下
  1262. vm.handleNodeShow = 2 // 明细查询tabs为2
  1263. vm.tableHeader = [] // 选择统计的数组
  1264. vm.analyseData = [] // 明细查询数组
  1265. // }
  1266. vm.handleNodeId = item.id //切换后的id
  1267. vm.radio = '1' //签约年度 --创建时间
  1268. vm.radio1 = '' //咨询分析咨询状态
  1269. vm.radio2 = ''
  1270. vm.radio3 = ''
  1271. vm.radio4 = ''
  1272. vm.radio5 = ''
  1273. vm.radio6 = ''
  1274. vm.radio7 = ''
  1275. vm.radio8 = ''
  1276. vm.radio9 = ''
  1277. vm.radio10 = ''
  1278. vm.checkedCities = [] //签约人群清空
  1279. vm.specialCheckedCities = [] //下转病种清空
  1280. vm.serveSpecialCities = [] //服务类型清空
  1281. vm.diseaseReport = []
  1282. vm.datatotal = 0
  1283. vm.form = {
  1284. endorseTheTicket: '',
  1285. renew: '',
  1286. backToSign: '',
  1287. WeChat: ''
  1288. }
  1289. vm.form2 = {
  1290. juniorCollege: '',
  1291. family: '',
  1292. resident: ''
  1293. }
  1294. ;(vm.form3 = {
  1295. family: '',
  1296. resident: ''
  1297. }),
  1298. (vm.form4 = {
  1299. family: '',
  1300. resident: ''
  1301. }),
  1302. (vm.form5 = {
  1303. family: '',
  1304. resident: ''
  1305. }),
  1306. (this.form6 = {
  1307. resident: '',
  1308. doctor: ''
  1309. })
  1310. this.form7 = {
  1311. resident: '',
  1312. doctorOne: '',
  1313. hospital: '',
  1314. doctorTwo: '',
  1315. administrativeOffice: ''
  1316. }
  1317. ;(this.form9 = {
  1318. resident: '',
  1319. doctorTwo: ''
  1320. }),
  1321. (this.form10 = {
  1322. resident: '',
  1323. doctorTwo: ''
  1324. }),
  1325. (this.form8 = {
  1326. renew: ''
  1327. })
  1328. this.form11 = {
  1329. patientName: '',
  1330. status: '',
  1331. hospitalCode: '',
  1332. hospitalDoctor: '',
  1333. orgCode: '',
  1334. doctor: '',
  1335. archiveStatus: ''
  1336. }
  1337. initTime(vm) //时间初始化
  1338. initScope(vm) //数据范围初始化
  1339. vm.currentPage = 1
  1340. if (type == 'zhuanke') {
  1341. vm.handleNodeShow = 4
  1342. vm.radio = '2'
  1343. vm.expertFamilyIdType = 'zhuanke' + item.id
  1344. vm.expertFamily(item.id)
  1345. } else {
  1346. vm.analysFunction(vm.handleNodeId) //明细查询列表查询
  1347. }
  1348. // 慢阻肺监测档案
  1349. if (type == 7) {
  1350. EventBus.$emit('copd-reset-select', {})
  1351. }
  1352. // // 家庭病床统计
  1353. // if (type == 8) {
  1354. // console.log(item, type, '---')
  1355. // EventBus.$emit('jtbc-table-page', { type, id: item.id })
  1356. // console.log('家庭病床')
  1357. // }
  1358. vm.$nextTick(function () {
  1359. if (vm.handleNodeId == 77) {
  1360. vm.$refs.gxbEvaluation.getData()
  1361. } else if (vm.handleNodeId == 78) {
  1362. vm.$refs.gxbTurnup.getData()
  1363. } else if (vm.handleNodeId == 79) {
  1364. vm.$refs.gxbMz.getData()
  1365. } else if (vm.handleNodeId == 80) {
  1366. vm.$refs.gxbCy.getData()
  1367. }
  1368. })
  1369. },
  1370. expertFamily: function (id) {
  1371. var vm = this
  1372. if (id == '1') {
  1373. vm.expertReplyList()
  1374. }
  1375. },
  1376. // 邀请专科回复统计传参
  1377. expertReply: function () {
  1378. var vm = this
  1379. vm.searchJsonTime = vm.beforeReq()
  1380. return {
  1381. // signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
  1382. team: vm.teamCode, //团队
  1383. area: vm.areaCode, //地区
  1384. hospital: vm.communityCode, //社区
  1385. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1386. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1387. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1388. pageSize: vm.currentSize,
  1389. page: vm.currentPage
  1390. }
  1391. },
  1392. // 邀请专科回复统计列表
  1393. expertReplyList: function () {
  1394. var vm = this
  1395. vm.loadingTwo = true
  1396. statisticAPI.consultHelpCountPage(vm.expertReply()).then(function (res) {
  1397. if (res.status == 200) {
  1398. vm.expertReplyData = res.detailModelList
  1399. vm.datatotal = res.totalCount
  1400. vm.loadingTwo = false
  1401. }
  1402. })
  1403. },
  1404. analysFunction: function (id) {
  1405. var vm = this
  1406. // idcard = idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2") 身份证 医保卡 脱敏显示
  1407. vm.detailFunction(id)
  1408. },
  1409. // 下转预约获取医生,科室
  1410. getReservationHosAndDept: function (data) {
  1411. var vm = this
  1412. statisticAPI
  1413. .getReservationHosAndDept({
  1414. hospital: data ? data : '',
  1415. type: data ? '2' : ''
  1416. })
  1417. .then(function (res) {
  1418. if (res.status == 200) {
  1419. if (data) {
  1420. vm.administrativeOffice = []
  1421. res.data.forEach(function (item) {
  1422. vm.administrativeOffice.push({
  1423. value: item.code,
  1424. label: item.name
  1425. })
  1426. })
  1427. } else {
  1428. vm.hospitalData = []
  1429. res.data.forEach(function (item) {
  1430. vm.hospitalData.push({
  1431. value: item.code,
  1432. label: item.name
  1433. })
  1434. })
  1435. }
  1436. }
  1437. })
  1438. },
  1439. hospitalChange: function (data) {
  1440. var vm = this
  1441. vm.getReservationHosAndDept(data)
  1442. },
  1443. // 咨询分析
  1444. getConsultList: function () {
  1445. var vm = this
  1446. vm.loadingTwo = true
  1447. vm.lastAjax = 'statisticsExport/getConsultList'
  1448. statisticAPI
  1449. .getConsultList({
  1450. year: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1451. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1452. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1453. status: vm.radio1, //咨询状态,1已回复,0未回复,2未及时回复
  1454. team: vm.teamCode, //团队
  1455. area: vm.areaCode, //地区
  1456. hospital: vm.communityCode, //社区
  1457. rang: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1458. pageSize: vm.currentSize,
  1459. page: vm.currentPage
  1460. })
  1461. .then(function (res) {
  1462. // console.log(res,"咨询分析")
  1463. if (res.status == 200) {
  1464. vm.analyseData = res.data.list
  1465. vm.datatotal = res.data.total
  1466. vm.loadingTwo = false
  1467. }
  1468. if (res.status == -1) {
  1469. vm.loadingTwo = false
  1470. vm.$message.error(res.msg)
  1471. }
  1472. })
  1473. },
  1474. // 签约分析
  1475. getSignList: function () {
  1476. var vm = this
  1477. vm.lastAjax = 'statisticsExport/getSignList'
  1478. vm.loadingTwo = true
  1479. var handleDataList = []
  1480. vm.serverType = ''
  1481. vm.handleData.forEach(function (res) {
  1482. handleDataList.push(res.num)
  1483. })
  1484. vm.serverType = handleDataList.join(',')
  1485. statisticAPI
  1486. .getSignList({
  1487. year: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1488. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1489. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1490. serverType: vm.serverType, //签约人群
  1491. status: vm.radio2, //签约状态,1已签约,0待审核,2代缴费
  1492. isUpdate: vm.form.endorseTheTicket, //是否改签 1是0否
  1493. isAdd: vm.form.renew, //是否续签 1是0否
  1494. isOut: vm.form.backToSign, //是否退签 1是0否
  1495. isBindWX: vm.form.WeChat, //是否绑定微信 1是0否
  1496. team: vm.teamCode, //团队
  1497. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1498. hospital: vm.communityCode, //社区
  1499. rang: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1500. signYearAge: vm.radio10, // 签约年限
  1501. pageSize: vm.currentSize,
  1502. page: vm.currentPage
  1503. })
  1504. .then(function (res) {
  1505. // console.log(res,"签约分析")
  1506. if (res.status == 200) {
  1507. res.data.list.forEach(function (item) {
  1508. item.sscNum = item.sscNum.replace(/^(.{4})(?:\d+)(.{1})$/, '$1****$2')
  1509. item.idcardNum = item.idcardNum.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')
  1510. })
  1511. vm.analyseData = res.data.list
  1512. vm.datatotal = res.data.total
  1513. vm.loadingTwo = false
  1514. }
  1515. if (res.status == -1) {
  1516. vm.loadingTwo = false
  1517. vm.$message.error(res.msg)
  1518. }
  1519. })
  1520. },
  1521. // 专病分析
  1522. getSickList: function () {
  1523. var vm = this
  1524. // vm.diseaseData
  1525. vm.lastAjax = 'statisticsExport/getSickList'
  1526. vm.loadingTwo = true
  1527. var handleDataList = []
  1528. vm.diseaseDataType = ''
  1529. vm.diseaseData.forEach(function (res) {
  1530. handleDataList.push(res.code)
  1531. })
  1532. vm.diseaseDataType = handleDataList.join(',')
  1533. statisticAPI
  1534. .getSickList({
  1535. year: vm.radio == '1' ? vm.chooseYear : '', //年度
  1536. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1537. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1538. diseaseType: vm.diseaseDataType, //病种类型
  1539. status: vm.radio3, //下转状态,1已接受,0未接受,2未管理
  1540. doctorName: vm.form2.juniorCollege, //专科医生
  1541. familyDoctorName: vm.form2.family, //家庭医生名字
  1542. patientName: vm.form2.resident, // 居民姓名
  1543. team: vm.teamCode, //团队
  1544. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1545. hospital: vm.communityCode, //社区
  1546. rang: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1547. pageSize: vm.currentSize,
  1548. page: vm.currentPage,
  1549. patientType: vm.form2.patientType
  1550. })
  1551. .then(function (res) {
  1552. // console.log(res,"专病分析")
  1553. if (res.status == 200) {
  1554. res.data.list.forEach(function (item) {
  1555. item.sscNum = item.sscNum.replace(/^(.{4})(?:\d+)(.{1})$/, '$1****$2')
  1556. item.idcardNum = item.idcardNum.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')
  1557. })
  1558. vm.analyseData = res.data.list
  1559. vm.datatotal = res.data.total
  1560. vm.loadingTwo = false
  1561. }
  1562. if (res.status == -1) {
  1563. vm.loadingTwo = false
  1564. vm.$message.error(res.msg)
  1565. }
  1566. })
  1567. },
  1568. // 生日祝福分析明细
  1569. getBirthdayPatientList: function () {
  1570. var vm = this
  1571. vm.loadingTwo = true
  1572. vm.lastAjax = 'statisticsExport/getBirthdayPatientList'
  1573. statisticAPI
  1574. .getBirthdayPatientList({
  1575. patientName: vm.form3.resident, // 居民姓名
  1576. doctorName: vm.form3.family, //医生姓名
  1577. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1578. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1579. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1580. status: vm.radio4, //状态(不传为全部,1、已发送,2、未发送)
  1581. team: vm.teamCode, //团队
  1582. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1583. hospital: vm.communityCode, //社区
  1584. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1585. pageSize: vm.currentSize,
  1586. page: vm.currentPage
  1587. })
  1588. .then(function (res) {
  1589. if (res.status == 200) {
  1590. // console.log(res,"Sddddd")
  1591. res.data.detailModelList.forEach(function (item) {
  1592. item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/, '$1****$2')
  1593. item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')
  1594. })
  1595. vm.analyseData = res.data.detailModelList
  1596. vm.datatotal = res.data.total
  1597. vm.loadingTwo = false
  1598. }
  1599. if (res.status == -1) {
  1600. vm.loadingTwo = false
  1601. vm.$message.error(res.msg)
  1602. }
  1603. })
  1604. },
  1605. // 长处方分析明细
  1606. getPrescriptionList: function () {
  1607. var vm = this
  1608. vm.loadingTwo = true
  1609. vm.lastAjax = 'statisticsExport/getPrescriptionList'
  1610. statisticAPI
  1611. .getPrescriptionList({
  1612. patientName: vm.form5.resident, // 居民姓名
  1613. doctorName: vm.form5.family, //医生姓名
  1614. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1615. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1616. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1617. status: vm.radio6, //续方状态 0待审核 20药师审核中 40待支付 100已完成 999其他
  1618. diagnosis: vm.radio7, //续方疾病类型1高血压2糖尿病3其他
  1619. dispensaryType: vm.radio8, // 取药方式1自取2快递3健管师配送
  1620. team: vm.teamCode, //团队
  1621. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1622. hospital: vm.communityCode, //社区
  1623. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1624. pageSize: vm.currentSize,
  1625. page: vm.currentPage
  1626. })
  1627. .then(function (res) {
  1628. if (res.status == 200) {
  1629. res.data.detailModelList.forEach(function (item) {
  1630. // console.log(item.finish_time,"长处方分析")
  1631. item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/, '$1****$2')
  1632. item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')
  1633. })
  1634. vm.analyseData = res.data.detailModelList
  1635. vm.datatotal = res.data.total
  1636. vm.loadingTwo = false
  1637. }
  1638. if (res.status == -1) {
  1639. vm.loadingTwo = false
  1640. vm.$message.error(res.msg)
  1641. }
  1642. })
  1643. },
  1644. // 上门服务分析明细
  1645. getDoorServiceList: function () {
  1646. var vm = this
  1647. vm.lastAjax = ''
  1648. vm.loadingTwo = true
  1649. var handleDataList = []
  1650. vm.serviceTypeDataType = 'statisticsExport/getDoorServiceList'
  1651. vm.serviceTypeData.forEach(function (res) {
  1652. handleDataList.push(res.num)
  1653. })
  1654. vm.serviceTypeDataType = handleDataList.join(',')
  1655. statisticAPI
  1656. .getDoorServiceList({
  1657. patientName: vm.form4.resident, // 居民姓名
  1658. doctorName: vm.form4.family, //医生姓名
  1659. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1660. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1661. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1662. status: vm.radio5, //工单状态 -1已取消,1待派单、2待接单、3已接单、4待服务、5待评价
  1663. type: vm.serviceTypeDataType, //服务类型 1残疾人,2肺结核患者,3计生特殊家庭,4重性精神病,5失能/半失能老人,6其他,7 80岁以上老人
  1664. team: vm.teamCode, //团队
  1665. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1666. hospital: vm.communityCode, //社区
  1667. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1668. pageSize: vm.currentSize,
  1669. page: vm.currentPage
  1670. })
  1671. .then(function (res) {
  1672. if (res.status == 200) {
  1673. // console.log(res,"上门服务分析明细")
  1674. res.data.detailModelList.forEach(function (item) {
  1675. item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/, '$1****$2')
  1676. item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')
  1677. })
  1678. vm.analyseData = res.data.detailModelList
  1679. vm.datatotal = res.data.total
  1680. vm.loadingTwo = false
  1681. }
  1682. if (res.status == -1) {
  1683. vm.loadingTwo = false
  1684. vm.$message.error(res.msg)
  1685. }
  1686. })
  1687. },
  1688. //体征数据分析传参
  1689. getHealthParameter: function () {
  1690. var vm = this
  1691. return {
  1692. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1693. team: vm.teamCode, //团队
  1694. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1695. hospital: vm.communityCode, //社区
  1696. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1697. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1698. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1699. name: vm.form6.resident, // 居民姓名
  1700. category: vm.facility, //设备类型
  1701. doctorName: vm.form6.doctor, //医生姓名
  1702. serverType: vm.illness, //签约疾病类型
  1703. pageSize: vm.currentSize,
  1704. page: vm.currentPage
  1705. }
  1706. },
  1707. //体征数据分析
  1708. physicalSignData: function () {
  1709. var vm = this
  1710. vm.loadingTwo = true
  1711. vm.lastAjax = 'statisticsExport/getHealthList'
  1712. statisticAPI.getHealthList(vm.getHealthParameter()).then(function (res) {
  1713. if (res.status == 200) {
  1714. // console.log(res,"体征数据")
  1715. vm.getHealthData = res.data.detailModelList
  1716. vm.datatotal = res.data.total
  1717. vm.loadingTwo = false
  1718. }
  1719. if (res.status == -1) {
  1720. vm.loadingTwo = false
  1721. vm.$message.error(res.msg)
  1722. }
  1723. })
  1724. },
  1725. //上转预约传参
  1726. reservationParameter: function () {
  1727. var vm = this
  1728. return {
  1729. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1730. team: vm.teamCode, //团队
  1731. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1732. hospital: vm.communityCode, //社区
  1733. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1734. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1735. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1736. name: vm.form7.resident, // 居民姓名
  1737. doctorName: vm.form7.doctorOne, //签约医生姓名
  1738. reservationHospital: vm.form7.hospital, //签约医院
  1739. reservationDept: vm.form7.administrativeOffice, //预约科室
  1740. reservationDoctorName: vm.form7.doctorTwo, //预约医生
  1741. pageSize: vm.currentSize,
  1742. page: vm.currentPage
  1743. }
  1744. },
  1745. // 上转预约
  1746. upTransferAppointment: function () {
  1747. var vm = this
  1748. vm.loadingTwo = true
  1749. vm.lastAjax = 'statisticsExport/getDoctorReservationList'
  1750. statisticAPI.getDoctorReservationList(vm.reservationParameter()).then(function (res) {
  1751. if (res.status == 200) {
  1752. // console.log(res,"上转预约")
  1753. vm.reservationData = res.data.detailModelList
  1754. vm.datatotal = res.data.total
  1755. vm.loadingTwo = false
  1756. vm.getReservationHosAndDept()
  1757. }
  1758. if (res.status == -1) {
  1759. vm.loadingTwo = false
  1760. vm.$message.error(res.msg)
  1761. }
  1762. })
  1763. },
  1764. //微信绑定传参
  1765. wexinBindingParameter: function () {
  1766. var vm = this
  1767. return {
  1768. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1769. team: vm.teamCode, //团队
  1770. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1771. hospital: vm.communityCode, //社区
  1772. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1773. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1774. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1775. binging: vm.form8.renew, //是否绑定微信
  1776. pageSize: vm.currentSize,
  1777. page: vm.currentPage
  1778. }
  1779. },
  1780. // 微信绑定
  1781. wechatBinding: function () {
  1782. var vm = this
  1783. vm.loadingTwo = true
  1784. vm.lastAjax = 'statisticsExport/getWexinBindingList'
  1785. statisticAPI.getWexinBindingList(vm.wexinBindingParameter()).then(function (res) {
  1786. if (res.status == 200) {
  1787. // console.log(res,"微信绑定")
  1788. res.data.detailModelList.forEach(function (res) {
  1789. res.sex = res.sex == 1 ? '男' : '女'
  1790. res.apply_date = new Date(res.apply_date).format('yyyy-MM-dd HH:mm:ss')
  1791. })
  1792. vm.wexinBindingData = res.data.detailModelList
  1793. vm.datatotal = res.data.total
  1794. vm.loadingTwo = false
  1795. }
  1796. if (res.status == -1) {
  1797. vm.loadingTwo = false
  1798. vm.$message.error(res.msg)
  1799. }
  1800. })
  1801. },
  1802. // 居民积分明细传参
  1803. residentIntegralParameter: function () {
  1804. var vm = this
  1805. var parameter = {
  1806. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1807. team: vm.teamCode, //团队
  1808. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1809. hospital: vm.specHosName ? vm.specHosName : vm.communityCode, //专病医院
  1810. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1811. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1812. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1813. pageSize: vm.currentSize,
  1814. page: vm.currentPage,
  1815. patientName: vm.form9.resident || '',
  1816. doctorName: vm.form9.doctorTwo || ''
  1817. }
  1818. return parameter
  1819. },
  1820. // 居民积分明细
  1821. residentIntegral: function () {
  1822. var vm = this
  1823. vm.loadingTwo = true
  1824. vm.lastAjax = 'statisticsExport/patinetIntegralAnalysis'
  1825. statisticAPI.patinetIntegralAnalysis(vm.residentIntegralParameter()).then(function (res) {
  1826. if (res.status == 200) {
  1827. vm.loadingTwo = false
  1828. res.data.list.forEach(function (item) {
  1829. item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/, '$1****$2')
  1830. // item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2")
  1831. })
  1832. vm.jifenData = res.data.list
  1833. vm.datatotal = res.data.total
  1834. } else {
  1835. vm.loadingTwo = false
  1836. vm.$message.error(res.msg)
  1837. }
  1838. })
  1839. },
  1840. patientFeeAnalysisParams: function () {
  1841. var vm = this
  1842. var parameter = {
  1843. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1844. team: vm.teamCode, //团队
  1845. hospital: vm.specHosName ? vm.specHosName : vm.communityCode, //专病医院
  1846. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1847. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1848. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1849. serviceType: vm.serviceType,
  1850. pageSize: vm.currentSize,
  1851. page: vm.currentPage,
  1852. patientName: vm.form13.patientName || '',
  1853. doctorName: vm.form13.doctorName || ''
  1854. }
  1855. return parameter
  1856. },
  1857. residentRedList() {
  1858. var vm = this
  1859. vm.loadingTwo = true
  1860. vm.lastAjax = 'doctor/healthBank/patientFeeAnalysis'
  1861. statisticAPI.patientFeeAnalysis(vm.patientFeeAnalysisParams()).then(function (res) {
  1862. if (res.status == 200) {
  1863. vm.loadingTwo = false
  1864. vm.redPacketData = res.data.list
  1865. vm.datatotal = res.data.total
  1866. } else {
  1867. vm.loadingTwo = false
  1868. vm.$message.error(res.msg)
  1869. }
  1870. })
  1871. },
  1872. // 入户访视明细传参
  1873. interviewParameter: function () {
  1874. var vm = this
  1875. var parameter = {
  1876. // signYear:'2020', //签约年度
  1877. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1878. team: vm.teamCode, //团队
  1879. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1880. hospital: vm.specHosName ? vm.specHosName : vm.communityCode, //专病医院
  1881. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1882. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1883. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1884. pageSize: vm.currentSize,
  1885. page: vm.currentPage,
  1886. patientName: vm.form10.resident || '',
  1887. doctorName: vm.form10.doctorTwo || ''
  1888. }
  1889. return parameter
  1890. },
  1891. // 入户访视
  1892. interview: function () {
  1893. var vm = this
  1894. vm.loadingTwo = true
  1895. vm.lastAjax = 'statisticsExport/findPatientFollowListByCondition'
  1896. statisticAPI.findPatientFollowListByCondition(vm.interviewParameter()).then(function (res) {
  1897. if (res.status == 200) {
  1898. vm.loadingTwo = false
  1899. vm.ruhuData = res.data.list
  1900. vm.datatotal = res.data.total
  1901. } else {
  1902. vm.loadingTwo = false
  1903. vm.$message.error(res.msg)
  1904. }
  1905. })
  1906. },
  1907. //邀请专科回复明细传参
  1908. invitationDetailsParameter: function () {
  1909. var vm = this
  1910. vm.searchJsonTime = vm.beforeReq()
  1911. var parameter = {
  1912. patientName: vm.form12.patientName,
  1913. name: '',
  1914. status: vm.form12.status,
  1915. startTime: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1916. endTime: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1917. specialistName: vm.form12.doctor, //专科医生姓名
  1918. specialistHospital: vm.form12.hospital, //专科医院code
  1919. specialistDeptName: vm.form12.archiveStatus, //专科科室名称
  1920. team: vm.teamCode,
  1921. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1922. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1923. hospital: vm.communityCode, //医院
  1924. pageSize: vm.currentSize,
  1925. page: vm.currentPage
  1926. }
  1927. return parameter
  1928. },
  1929. //邀请专科回复明细列表
  1930. invitationDetails: function () {
  1931. var vm = this
  1932. vm.loadingTwo = true
  1933. statisticAPI.consultHelpDetailPage(vm.invitationDetailsParameter()).then(function (res) {
  1934. if (res.status == 200) {
  1935. vm.loadingTwo = false
  1936. res.detailModelList.forEach(function (v) {
  1937. v.sex = v.sex == 1 ? '男' : '女'
  1938. })
  1939. vm.invitationList = res.detailModelList
  1940. vm.datatotal = res.totalCount
  1941. } else {
  1942. vm.loadingTwo = false
  1943. vm.$message.error(res.msg)
  1944. }
  1945. })
  1946. },
  1947. // 康复下转明细传参
  1948. recoveryParameter: function () {
  1949. var vm = this
  1950. vm.searchJsonTime = vm.beforeReq()
  1951. var parameter = {
  1952. // signYear:vm.radio=='1'?vm.chooseYear:'', //签约年度
  1953. // team:vm.teamCode, //团队
  1954. // area:vm.areaCode=='350200'?'':vm.areaCode, //地区
  1955. // range:vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1956. startTime: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  1957. endTime: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  1958. size: vm.currentSize,
  1959. page: vm.currentPage,
  1960. patientName: vm.form11.patientName,
  1961. status: vm.form11.status,
  1962. hospitalCode: vm.form11.hospitalCode,
  1963. orgCode: vm.form11.orgCode,
  1964. hospitalDoctor: vm.form11.hospitalDoctor,
  1965. doctor: vm.form11.doctor,
  1966. archiveStatus: vm.form11.archiveStatus,
  1967. patientType: vm.form11.patientType
  1968. }
  1969. return parameter
  1970. },
  1971. // 康复下转
  1972. recovery: function () {
  1973. var vm = this
  1974. vm.loadingTwo = true
  1975. vm.lastAjax = 'doctor/specialist/rehabilitation/rehabilitationPatientInfo'
  1976. statisticAPI.rehabilitationPatientInfo(vm.recoveryParameter()).then(function (res) {
  1977. if (res.status == 200) {
  1978. vm.loadingTwo = false
  1979. res.detailModelList.forEach(function (v) {
  1980. v.sex = v.sex == 1 ? '男' : '女'
  1981. })
  1982. vm.recoveryList = res.detailModelList
  1983. vm.datatotal = res.totalCount
  1984. } else {
  1985. vm.loadingTwo = false
  1986. vm.$message.error(res.msg)
  1987. }
  1988. })
  1989. },
  1990. //专病汇总传参
  1991. getSpecialParameter: function () {
  1992. var vm = this
  1993. var parameter = {
  1994. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  1995. team: vm.teamCode, //团队
  1996. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  1997. hospital: vm.specHosName ? vm.specHosName : vm.communityCode, //专病医院
  1998. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  1999. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  2000. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  2001. menu: vm.beforeReq().checked
  2002. // pageSize:vm.currentSize,
  2003. // page:vm.currentPage,
  2004. }
  2005. return parameter
  2006. },
  2007. // 专病汇总
  2008. getSpecialDiseaseReport: function () {
  2009. var vm = this
  2010. vm.loadingTwo = true
  2011. statisticAPI.getSpecialDiseaseReport(vm.getSpecialParameter()).then(function (res) {
  2012. if (res.status == 200) {
  2013. vm.indicator = []
  2014. res.data.column.forEach(function (v) {
  2015. if (v == 'kfxzrs') {
  2016. vm.indicator.push('康复计划人数')
  2017. }
  2018. if (v == 'kfxzrc') {
  2019. vm.indicator.push('康复计划数')
  2020. }
  2021. if (v == 'szrs') {
  2022. vm.indicator.push('预约挂号人数')
  2023. }
  2024. if (v == 'szrc') {
  2025. vm.indicator.push('预约挂号数')
  2026. }
  2027. })
  2028. vm.loadingTwo = false
  2029. vm.diseaseReport = res.data.list
  2030. vm.diseaseColumn = res.data.column
  2031. // '康复计划人数','康复计划数','预约挂号人数','预约挂号数'
  2032. vm.diseaseHeader = res.data.header
  2033. vm.datatotal = res.data.list.length
  2034. } else {
  2035. vm.loadingTwo = false
  2036. vm.$message.error(res.msg)
  2037. }
  2038. })
  2039. },
  2040. //体征分析传参
  2041. getDeviceParameter: function () {
  2042. var vm = this
  2043. var parameter = {
  2044. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  2045. team: vm.teamCode, //团队
  2046. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  2047. hospital: vm.communityCode, //医院
  2048. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  2049. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  2050. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  2051. category: vm.facilitySign,
  2052. menu: vm.beforeReq().checked
  2053. // pageSize:vm.currentSize,
  2054. // page:vm.currentPage,
  2055. }
  2056. return parameter
  2057. },
  2058. // 体征分析数据
  2059. getDeviceHealthReport: function () {
  2060. var vm = this
  2061. vm.loadingTwo = true
  2062. statisticAPI.getDeviceHealthReport(vm.getDeviceParameter()).then(function (res) {
  2063. if (res.status == 200) {
  2064. vm.loadingTwo = false
  2065. // console.log(res,"sss")
  2066. vm.getDeviceReport = res.data.list
  2067. vm.getDeviceColumn = res.data.column
  2068. vm.getDeviceHeader = res.data.header
  2069. vm.datatotal = res.data.list.length
  2070. } else {
  2071. vm.loadingTwo = false
  2072. vm.$message.error(res.msg)
  2073. }
  2074. })
  2075. },
  2076. //上门汇总传参
  2077. getDoorParameter: function () {
  2078. var vm = this
  2079. var parameter = {
  2080. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  2081. team: vm.teamCode, //团队
  2082. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  2083. hospital: vm.communityCode, //医院
  2084. status: vm.radio9,
  2085. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  2086. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  2087. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  2088. menu: vm.beforeReq().checked
  2089. // pageSize:vm.currentSize,
  2090. // page:vm.currentPage,
  2091. }
  2092. return parameter
  2093. },
  2094. // 上门汇总
  2095. getDoorServerOrderReport: function () {
  2096. var vm = this
  2097. vm.loadingTwo = true
  2098. statisticAPI.getDoorServerOrderReport(vm.getDoorParameter()).then(function (res) {
  2099. if (res.status == 200) {
  2100. vm.loadingTwo = false
  2101. // console.log(res,"sss")
  2102. vm.getDoorReport = res.data.list
  2103. vm.getDoorColumn = res.data.column
  2104. vm.getDoorHeader = res.data.header
  2105. vm.datatotal = res.data.list.length
  2106. } else {
  2107. vm.loadingTwo = false
  2108. vm.$message.error(res.msg)
  2109. }
  2110. })
  2111. },
  2112. getredPackageParameter: function () {
  2113. var vm = this
  2114. var parameter = {
  2115. signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
  2116. area: vm.areaCode == '350200' ? '' : vm.areaCode, //地区
  2117. hospital: vm.communityCode, //医院
  2118. range: vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
  2119. startDate: vm.radio == '2' ? vm.searchJsonTime.start : '', //开始时间
  2120. endDate: vm.radio == '2' ? vm.searchJsonTime.end : '', //结束时间
  2121. menu: vm.beforeReq().checked,
  2122. serviceType: vm.serviceType
  2123. // pageSize:vm.currentSize,
  2124. // page:vm.currentPage,
  2125. }
  2126. return parameter
  2127. },
  2128. redPackageRewardStatistics: function () {
  2129. var vm = this
  2130. vm.loadingTwo = true
  2131. statisticAPI.redPackageRewardStatistics(vm.getredPackageParameter()).then(function (res) {
  2132. if (res.status == 200) {
  2133. vm.loadingTwo = false
  2134. vm.getDoorReport = res.data.list
  2135. vm.getDoorColumn = res.data.column
  2136. vm.getDoorHeader = res.data.header
  2137. vm.datatotal = res.data.list.length
  2138. } else {
  2139. vm.loadingTwo = false
  2140. vm.$message.error(res.msg)
  2141. }
  2142. })
  2143. },
  2144. getTreeList: function () {
  2145. var vm = this
  2146. statisticAPI.exportTreeList({ rang: vm.rangeCode }).then(function (res) {
  2147. if (res.status == 200) {
  2148. ;(vm.treedata = []), (jindex = 0)
  2149. _.each(res.data, function (item, index) {
  2150. vm.treedata.push({
  2151. id: 'p_' + jindex,
  2152. label: index,
  2153. children: []
  2154. })
  2155. _.each(item, function (citem, cindex) {
  2156. vm.treedata[jindex].children.push({
  2157. id: cindex,
  2158. label: citem
  2159. })
  2160. })
  2161. jindex++
  2162. })
  2163. }
  2164. })
  2165. },
  2166. beforeReq: function (flag) {
  2167. var vm = this,
  2168. startDate = '',
  2169. endDate = '',
  2170. checked = []
  2171. if (vm.radio == '1') {
  2172. if (vm.chooseYear == 2022) {
  2173. startDate = '2022-07-01'
  2174. endDate = '2022-12-31'
  2175. } else if (vm.chooseYear > 2022) {
  2176. startDate = vm.chooseYear + '-01-01'
  2177. endDate = getEndDate(vm.chooseYear)
  2178. } else {
  2179. startDate = getStartDate(vm.chooseYear)
  2180. endDate = getEndDate(vm.chooseYear)
  2181. }
  2182. vm.timeLevel = 2
  2183. } else {
  2184. if (!vm.start && !vm.end) {
  2185. this.$message({
  2186. message: '请选择创建时间',
  2187. type: 'warning'
  2188. })
  2189. return false
  2190. } else {
  2191. if (vm.start > vm.end) {
  2192. this.$message({
  2193. message: '开始时间应早于结束时间',
  2194. type: 'warning'
  2195. })
  2196. return false
  2197. } else {
  2198. startDate = vm.start
  2199. endDate = vm.end
  2200. vm.timeLevel = 1
  2201. }
  2202. }
  2203. }
  2204. if (vm.handleNodeId == 0 || vm.handleNodeId == 'huizongshuju') {
  2205. var checkTree
  2206. if (vm.tabsId == 1) {
  2207. checkTree = vm.$refs.tree.getCheckedNodes(true)
  2208. } else {
  2209. checkTree = vm.$refs.collectTree.getCheckedNodes(true)
  2210. }
  2211. if (checkTree.length) {
  2212. if (!flag) {
  2213. vm.tableHeader = []
  2214. }
  2215. _.each(checkTree, function (item, index) {
  2216. if (!flag) {
  2217. vm.tableHeader.push({ prop: item.label, label: item.label })
  2218. }
  2219. checked.push(item.id)
  2220. })
  2221. } else {
  2222. this.$message({
  2223. message: '请选择搜索指标!',
  2224. type: 'warning'
  2225. })
  2226. return false
  2227. }
  2228. } else if (vm.handleNodeId == 2) {
  2229. this.$message({
  2230. message: '请选择明细查询!',
  2231. type: 'warning'
  2232. })
  2233. return false
  2234. }
  2235. return { start: startDate, end: endDate, checked: checked.join(',') }
  2236. },
  2237. // 查询
  2238. searchHandle: function (status) {
  2239. // console.log(this.beforeReq())
  2240. var vm = this
  2241. vm.searchJsonTime = vm.beforeReq()
  2242. vm.currentPage = 1
  2243. if (this.radio1 == 1) {
  2244. this.radio1Show = true
  2245. } else {
  2246. this.radio1Show = false
  2247. }
  2248. if (vm.handleNodeId == 0) {
  2249. if (vm.searchJsonTime) {
  2250. vm.searchJson = {
  2251. startDate: vm.searchJsonTime.start,
  2252. endDate: vm.searchJsonTime.end,
  2253. quotaStr: vm.searchJsonTime.checked,
  2254. range: vm.rangeCode,
  2255. team: vm.teamCode,
  2256. hospital: vm.communityCode,
  2257. area: vm.areaCode == '350200' ? '' : vm.areaCode,
  2258. size: vm.currentSize,
  2259. page: vm.currentPage,
  2260. timeLevel: vm.timeLevel
  2261. }
  2262. vm.getStatisticDataList()
  2263. }
  2264. } else if (vm.collectCode == 1) {
  2265. // 专病汇总
  2266. vm.getSpecialDiseaseReport()
  2267. } else if (vm.collectCode == 2) {
  2268. // 体征数据汇总
  2269. vm.getDeviceHealthReport()
  2270. } else if (vm.collectCode == 3) {
  2271. // 上门服务汇总
  2272. vm.getDoorServerOrderReport()
  2273. } else if (vm.collectCode == 4) {
  2274. vm.redPackageRewardStatistics()
  2275. } else {
  2276. vm.detailFunction(vm.handleNodeId, status)
  2277. }
  2278. },
  2279. getStatisticDataList: function () {
  2280. var vm = this
  2281. vm.isloading = true
  2282. var params = JSON.parse(JSON.stringify(vm.searchJson))
  2283. params.page = vm.currentPage
  2284. statisticAPI.getStatisticDataList(params).then(function (res) {
  2285. if (res.status == 200) {
  2286. vm.tabledata = res.data.data
  2287. vm.datatotal = res.data.total
  2288. if (vm.tabledata.length) {
  2289. vm.tableHeader = []
  2290. _.each(vm.tabledata[0], function (item, index) {
  2291. if (
  2292. index != 'town' &&
  2293. index != 'townName' &&
  2294. index != 'hospital' &&
  2295. index != 'hospitalName' &&
  2296. index != 'area' &&
  2297. index != 'areaName' &&
  2298. index != 'code' &&
  2299. index != 'name'
  2300. )
  2301. vm.tableHeader.push({ prop: index, label: index })
  2302. })
  2303. }
  2304. } else {
  2305. vm.$message.error(res.msg)
  2306. }
  2307. vm.isloading = false
  2308. })
  2309. },
  2310. // 导出
  2311. exportHandle: function () {
  2312. // var uid = JSON.parse(window.localStorage.getItem('wlyyAgentForDoc')).uid
  2313. // var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
  2314. // saveAs(blob, "hello world.txt");
  2315. // return
  2316. var vm = this
  2317. var vm = this,
  2318. searchJson = undefined
  2319. vm.fullscreenLoading = true
  2320. searchJson = vm.beforeReq('export')
  2321. var areaCode = vm.areaCode == '350200' ? '' : vm.areaCode
  2322. var chooseYear = vm.radio == '1' ? vm.chooseYear : '' //年份
  2323. var startDate = vm.radio == '2' ? vm.searchJsonTime.start : ''
  2324. var endDate = vm.radio == '2' ? vm.searchJsonTime.end : ''
  2325. if (vm.handleNodeId == 0) {
  2326. if (searchJson) {
  2327. statisticAPI
  2328. .statisticsExportExport(
  2329. {
  2330. startDate: searchJson.start,
  2331. endDate: searchJson.end,
  2332. quotaStr: searchJson.checked,
  2333. range: vm.rangeCode,
  2334. area: areaCode,
  2335. hospital: vm.communityCode,
  2336. team: vm.teamCode,
  2337. timeLevel: vm.timeLevel
  2338. },
  2339. '综合查询.xls'
  2340. )
  2341. .then(function (res) {
  2342. vm.fullscreenLoading = false
  2343. // toastr.info("导出成功")
  2344. // var blob = new Blob(["Hello, world!"]);
  2345. // FileSaver.saveAs(blob, "hello world.txt");
  2346. // console.log(res)
  2347. // FileSaver()
  2348. })
  2349. .catch(function (err) {
  2350. console.error(err)
  2351. })
  2352. // let str = httpRequest.server + 'statisticsExport/export?startDate='+searchJson.start+'&endDate='+searchJson.end+'&quotaStr='+searchJson.checked+'&range='+vm.rangeCode+'&area='+areaCode+'&hospital='+vm.communityCode+'&team='+vm.teamCode+'&timeLevel='+vm.timeLevel
  2353. // window.location.href = str
  2354. }
  2355. } else if (vm.handleNodeId == 33) {
  2356. // 咨询分析
  2357. if (vm.analyseData.length != 0) {
  2358. statisticAPI
  2359. .statisticsExportExportConsultList(
  2360. {
  2361. year: chooseYear,
  2362. startDate: startDate,
  2363. endDate: endDate,
  2364. status: vm.radio1,
  2365. area: areaCode,
  2366. hospital: vm.communityCode,
  2367. rang: vm.rangeCode,
  2368. team: vm.teamCode
  2369. },
  2370. vm.derive + '.xls'
  2371. )
  2372. .then(function (res) {
  2373. vm.fullscreenLoading = false
  2374. })
  2375. .catch(function (err) {
  2376. toastr.info(err)
  2377. vm.fullscreenLoading = false
  2378. console.error(err)
  2379. })
  2380. // var str = httpRequest.server + 'statisticsExport/exportConsultList?year='+chooseYear+'&startDate='+startDate+'&endDate='+endDate+
  2381. // '&status='+vm.radio1+'&area='+areaCode+'&hospital='+vm.communityCode+'&rang='+vm.rangeCode+'&team='+vm.teamCode
  2382. // window.location.href = str
  2383. } else {
  2384. vm.fullscreenLoading = false
  2385. }
  2386. } else if (vm.handleNodeId == 34) {
  2387. // 签约分析
  2388. if (vm.analyseData.length != 0) {
  2389. statisticAPI
  2390. .statisticsExportExportSignList(
  2391. {
  2392. year: chooseYear,
  2393. startDate: startDate,
  2394. endDate: endDate,
  2395. serverType: vm.serverType,
  2396. status: vm.radio2,
  2397. isUpdate: vm.form.endorseTheTicket,
  2398. isAdd: vm.form.renew,
  2399. isOut: vm.form.backToSign,
  2400. isBindWX: vm.form.WeChat,
  2401. area: areaCode,
  2402. hospital: vm.communityCode,
  2403. rang: vm.rangeCode,
  2404. team: vm.teamCode,
  2405. signYearAge: vm.radio10
  2406. },
  2407. vm.derive + '.xls'
  2408. )
  2409. .then(function (res) {
  2410. vm.fullscreenLoading = false
  2411. })
  2412. .catch(function (err) {
  2413. toastr.info(err)
  2414. vm.fullscreenLoading = false
  2415. console.error(err)
  2416. })
  2417. } else {
  2418. vm.fullscreenLoading = false
  2419. }
  2420. } else if (vm.handleNodeId == 35) {
  2421. // 专病分析
  2422. if (vm.analyseData.length != 0) {
  2423. statisticAPI
  2424. .statisticsExportExportSickList(
  2425. {
  2426. year: chooseYear,
  2427. startDate: startDate,
  2428. endDate: endDate,
  2429. diseaseType: vm.diseaseDataType,
  2430. status: vm.radio3,
  2431. doctorName: vm.form2.juniorCollege,
  2432. familyDoctorName: vm.form2.family,
  2433. patientName: vm.form2.resident,
  2434. area: areaCode,
  2435. hospital: vm.communityCode,
  2436. rang: vm.rangeCode,
  2437. team: vm.teamCode,
  2438. patientType: typeof vm.form2.patientType == 'undefined' ? '' : vm.form2.patientType
  2439. },
  2440. vm.derive + '.xls'
  2441. )
  2442. .then(function (res) {
  2443. vm.fullscreenLoading = false
  2444. })
  2445. .catch(function (err) {
  2446. toastr.info(err)
  2447. vm.fullscreenLoading = false
  2448. console.error(err)
  2449. })
  2450. } else {
  2451. vm.fullscreenLoading = false
  2452. }
  2453. } else if (vm.handleNodeId == 36) {
  2454. // 生日祝福分析
  2455. if (vm.analyseData.length != 0) {
  2456. statisticAPI
  2457. .statisticsExportGetBirthdayPatientListExport(
  2458. {
  2459. signYear: chooseYear,
  2460. startDate: startDate,
  2461. endDate: endDate,
  2462. patientName: vm.form3.resident,
  2463. doctorName: vm.form3.family,
  2464. status: vm.radio4,
  2465. area: areaCode,
  2466. hospital: vm.communityCode,
  2467. range: vm.rangeCode,
  2468. team: vm.teamCode,
  2469. pageSize: '50000',
  2470. page: vm.currentPage
  2471. },
  2472. vm.derive + '.xls'
  2473. )
  2474. .then(function (res) {
  2475. vm.fullscreenLoading = false
  2476. })
  2477. .catch(function (err) {
  2478. toastr.info(err)
  2479. vm.fullscreenLoading = false
  2480. console.error(err)
  2481. })
  2482. } else {
  2483. vm.fullscreenLoading = false
  2484. }
  2485. } else if (vm.handleNodeId == 37) {
  2486. // 上门服务分析
  2487. if (vm.analyseData.length != 0) {
  2488. statisticAPI
  2489. .statisticsExportExportDoorServiceList(
  2490. {
  2491. signYear: chooseYear,
  2492. startDate: startDate,
  2493. endDate: endDate,
  2494. patientName: vm.form4.resident,
  2495. doctorName: vm.form4.family,
  2496. status: vm.radio5,
  2497. type: vm.serviceTypeDataType,
  2498. area: areaCode,
  2499. hospital: vm.communityCode,
  2500. range: vm.rangeCode,
  2501. team: vm.teamCode,
  2502. pageSize: vm.currentSize,
  2503. page: vm.currentPage
  2504. },
  2505. vm.derive + '.xls'
  2506. )
  2507. .then(function (res) {
  2508. vm.fullscreenLoading = false
  2509. })
  2510. .catch(function (err) {
  2511. toastr.info(err)
  2512. vm.fullscreenLoading = false
  2513. console.error(err)
  2514. })
  2515. } else {
  2516. vm.fullscreenLoading = false
  2517. }
  2518. } else if (vm.handleNodeId == 38) {
  2519. // 长处方分析
  2520. if (vm.analyseData.length != 0) {
  2521. statisticAPI
  2522. .statisticsExportExportPrescriptionList(
  2523. {
  2524. signYear: chooseYear,
  2525. startDate: startDate,
  2526. endDate: endDate,
  2527. patientName: vm.form5.resident,
  2528. doctorName: vm.form5.family,
  2529. status: vm.radio6,
  2530. diagnosisName: vm.radio7,
  2531. dispensaryType: vm.radio8,
  2532. area: areaCode,
  2533. hospital: vm.communityCode,
  2534. range: vm.rangeCode,
  2535. team: vm.teamCode,
  2536. pageSize: vm.currentSize,
  2537. page: vm.currentPage
  2538. },
  2539. vm.derive + '.xls'
  2540. )
  2541. .then(function (res) {
  2542. vm.fullscreenLoading = false
  2543. })
  2544. .catch(function (err) {
  2545. toastr.info(err)
  2546. vm.fullscreenLoading = false
  2547. console.error(err)
  2548. })
  2549. } else {
  2550. vm.fullscreenLoading = false
  2551. }
  2552. } else if (vm.handleNodeId == 39) {
  2553. // 体征数据
  2554. if (vm.getHealthData.length != 0) {
  2555. statisticAPI
  2556. .exportHealthList(vm.getHealthParameter(), vm.derive + '.xls')
  2557. .then(function (res) {
  2558. vm.fullscreenLoading = false
  2559. })
  2560. .catch(function (err) {
  2561. toastr.info(err)
  2562. vm.fullscreenLoading = false
  2563. console.error(err)
  2564. })
  2565. } else {
  2566. vm.fullscreenLoading = false
  2567. }
  2568. } else if (vm.handleNodeId == 40) {
  2569. // 上转预约
  2570. if (vm.reservationData.length != 0) {
  2571. statisticAPI
  2572. .exportDoctorReservationList(vm.reservationParameter(), vm.derive + '.xls')
  2573. .then(function (res) {
  2574. vm.fullscreenLoading = false
  2575. })
  2576. .catch(function (err) {
  2577. toastr.info(err)
  2578. vm.fullscreenLoading = false
  2579. console.error(err)
  2580. })
  2581. } else {
  2582. vm.fullscreenLoading = false
  2583. }
  2584. } else if (vm.handleNodeId == 41) {
  2585. // 微信绑定数据
  2586. if (vm.wexinBindingData.length != 0) {
  2587. statisticAPI
  2588. .exportWexinBindingList(vm.wexinBindingParameter(), vm.derive + '.xls')
  2589. .then(function (res) {
  2590. vm.fullscreenLoading = false
  2591. })
  2592. .catch(function (err) {
  2593. toastr.info(err)
  2594. vm.fullscreenLoading = false
  2595. console.error(err)
  2596. })
  2597. } else {
  2598. vm.fullscreenLoading = false
  2599. }
  2600. } else if (vm.handleNodeId == 42) {
  2601. // 居民积分明细导出
  2602. if (vm.jifenData.length != 0) {
  2603. statisticAPI
  2604. .exPatinetIntegralAnalysis(_.assign({}, vm.residentIntegralParameter(), { pageSize: 99999 }), vm.derive + '.xls')
  2605. .then(function (res) {
  2606. vm.fullscreenLoading = false
  2607. })
  2608. .catch(function (err) {
  2609. toastr.info(err)
  2610. vm.fullscreenLoading = false
  2611. console.error(err)
  2612. })
  2613. } else {
  2614. vm.fullscreenLoading = false
  2615. }
  2616. } else if (vm.handleNodeId == 43) {
  2617. // 入户访视导出
  2618. if (vm.ruhuData.length != 0) {
  2619. statisticAPI
  2620. .exfindPatientFollowListByCondition(vm.interviewParameter(), vm.derive + '.xls')
  2621. .then(function (res) {
  2622. vm.fullscreenLoading = false
  2623. })
  2624. .catch(function (err) {
  2625. toastr.info(err)
  2626. vm.fullscreenLoading = false
  2627. console.error(err)
  2628. })
  2629. } else {
  2630. vm.fullscreenLoading = false
  2631. }
  2632. } else if (vm.handleNodeId == 44) {
  2633. // 康复下转导出
  2634. if (vm.recoveryList.length != 0) {
  2635. statisticAPI
  2636. .exportRehabilitationPatientInfo(vm.recoveryParameter(), vm.derive + '.xls')
  2637. .then(function (res) {
  2638. vm.fullscreenLoading = false
  2639. })
  2640. .catch(function (err) {
  2641. toastr.info(err)
  2642. vm.fullscreenLoading = false
  2643. console.error(err)
  2644. })
  2645. } else {
  2646. vm.fullscreenLoading = false
  2647. }
  2648. } else if (vm.handleNodeId == 45) {
  2649. // 邀请专科回复明细导出
  2650. if (vm.invitationList.length != 0) {
  2651. var p = _.assign({}, vm.invitationDetailsParameter())
  2652. var docInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'))
  2653. delete p.page
  2654. delete p.pageSize
  2655. p.doctor = docInfo.uid
  2656. statisticAPI
  2657. .exportConsultHelpDetailPage(p, vm.derive + '.xls')
  2658. .then(function (res) {
  2659. vm.fullscreenLoading = false
  2660. })
  2661. .catch(function (err) {
  2662. toastr.info(err)
  2663. vm.fullscreenLoading = false
  2664. console.error(err)
  2665. })
  2666. } else {
  2667. vm.fullscreenLoading = false
  2668. }
  2669. } else if (vm.collectCode == 1) {
  2670. // 专病汇总
  2671. if (vm.diseaseReport.length != 0) {
  2672. statisticAPI
  2673. .exportSpecialDiseaseReport(vm.getSpecialParameter(), vm.derive + '.xls')
  2674. .then(function (res) {
  2675. vm.fullscreenLoading = false
  2676. })
  2677. .catch(function (err) {
  2678. toastr.info(err)
  2679. vm.fullscreenLoading = false
  2680. console.error(err)
  2681. })
  2682. } else {
  2683. vm.fullscreenLoading = false
  2684. }
  2685. } else if (vm.collectCode == 2) {
  2686. // 体征分析
  2687. if (vm.getDeviceReport.length != 0) {
  2688. statisticAPI
  2689. .exportDeviceHealthReport(vm.getDeviceParameter(), vm.derive + '.xls')
  2690. .then(function (res) {
  2691. vm.fullscreenLoading = false
  2692. })
  2693. .catch(function (err) {
  2694. toastr.info(err)
  2695. vm.fullscreenLoading = false
  2696. console.error(err)
  2697. })
  2698. } else {
  2699. vm.fullscreenLoading = false
  2700. }
  2701. } else if (vm.collectCode == 3) {
  2702. // 上门汇总
  2703. if (vm.getDoorReport.length != 0) {
  2704. statisticAPI
  2705. .exportDoorServerOrderReport(vm.getDoorParameter(), vm.derive + '.xls')
  2706. .then(function (res) {
  2707. vm.fullscreenLoading = false
  2708. })
  2709. .catch(function (err) {
  2710. toastr.info(err)
  2711. vm.fullscreenLoading = false
  2712. console.error(err)
  2713. })
  2714. } else {
  2715. vm.fullscreenLoading = false
  2716. }
  2717. } else if (vm.collectCode == 4) {
  2718. // 上门汇总
  2719. if (vm.getDoorReport.length != 0) {
  2720. statisticAPI
  2721. .exportRedPackageRewardStatistics(vm.getredPackageParameter(), vm.derive + '.xls')
  2722. .then(function (res) {
  2723. vm.fullscreenLoading = false
  2724. })
  2725. .catch(function (err) {
  2726. toastr.info(err)
  2727. vm.fullscreenLoading = false
  2728. console.error(err)
  2729. })
  2730. } else {
  2731. vm.fullscreenLoading = false
  2732. }
  2733. } else if (vm.expertFamilyIdType == 'zhuanke1') {
  2734. // 邀请专科回复统计导出
  2735. if (vm.expertReplyData.length != 0) {
  2736. statisticAPI
  2737. .exportConsultHelpCountPage(vm.expertReply(), vm.derive + '.xls')
  2738. .then(function (res) {
  2739. vm.fullscreenLoading = false
  2740. })
  2741. .catch(function (err) {
  2742. toastr.info(err)
  2743. vm.fullscreenLoading = false
  2744. console.error(err)
  2745. })
  2746. } else {
  2747. vm.fullscreenLoading = false
  2748. }
  2749. }
  2750. },
  2751. backClick: function () {
  2752. history.go(-1)
  2753. },
  2754. bindEvent: function () {
  2755. var vm = this
  2756. //监听后退按钮的操作
  2757. EventBus.$on('back-click', function (arg) {
  2758. EventBus.$emit('update-statistics-time', {}) //更新统计时间
  2759. vm.backClick()
  2760. })
  2761. //监听页面刷新
  2762. EventBus.$on('refresh-click', function (arg) {
  2763. EventBus.$emit('update-statistics-time', {}) //更新统计时间
  2764. initData(vm)
  2765. })
  2766. $('#main').removeClass('c-hide')
  2767. },
  2768. detailFunction: function (id, status) {
  2769. var vm = this
  2770. window.ajaxInsArr[vm.lastAjax] && window.ajaxInsArr[vm.lastAjax].abort()
  2771. if (id == 33) {
  2772. // 咨询分析
  2773. vm.getConsultList()
  2774. } else if (id == 34) {
  2775. // 签约分析
  2776. vm.getSignList()
  2777. } else if (id == 35) {
  2778. // 专病分析
  2779. vm.getSickList()
  2780. } else if (id == 36) {
  2781. // 生日祝福分析
  2782. vm.getBirthdayPatientList()
  2783. } else if (id == 37) {
  2784. // 上门服务分析
  2785. vm.getDoorServiceList()
  2786. } else if (id == 38) {
  2787. // 长处方分析
  2788. vm.getPrescriptionList()
  2789. } else if (id == 39) {
  2790. // 体征数据
  2791. vm.physicalSignData()
  2792. } else if (id == 40) {
  2793. // 上转预约
  2794. vm.upTransferAppointment()
  2795. } else if (id == 41) {
  2796. // 微信绑定
  2797. vm.wechatBinding()
  2798. } else if (id == 42) {
  2799. // 居民积分明细
  2800. vm.residentIntegral()
  2801. } else if (id == 43) {
  2802. // 入户访视
  2803. vm.interview()
  2804. } else if (id == 44) {
  2805. // 康复下转
  2806. vm.radio = '2'
  2807. vm.recovery()
  2808. if (!status) {
  2809. vm.pullDown()
  2810. }
  2811. } else if (id == 45) {
  2812. vm.radio = '2'
  2813. vm.invitationDetails()
  2814. if (!status) {
  2815. vm.getSpecialistHospital() //获取专科医院
  2816. }
  2817. } else if (vm.expertFamilyIdType == 'zhuanke1') {
  2818. vm.expertReplyList()
  2819. }
  2820. },
  2821. getSpecialistHospital: function () {
  2822. var vm = this
  2823. vm.specializedHospital = [{ value: '', label: '全部' }]
  2824. homeAPI.getSpecialistHospital().then(function (res) {
  2825. if (res.status == 200) {
  2826. res.data.forEach(function (v) {
  2827. vm.specializedHospital.push({
  2828. value: v.code,
  2829. label: v.name
  2830. })
  2831. })
  2832. }
  2833. })
  2834. },
  2835. pullDown: function () {
  2836. this.deorsumvergenceStatusFunction('archive_status') //档案状态
  2837. this.deorsumvergenceStatusFunction('rehabilitation_status') //下转状态
  2838. this.deorsumvergenceStatusFunction('rehabilitation_hospital') //下转医院
  2839. this.hospitalsByType()
  2840. },
  2841. // 下一页 上一页
  2842. handleCurrentChange: function (val) {
  2843. var vm = this
  2844. vm.currentPage = val
  2845. if (vm.handleNodeId == 0) {
  2846. vm.getStatisticDataList()
  2847. } else {
  2848. vm.detailFunction(vm.handleNodeId)
  2849. }
  2850. },
  2851. //获取省市区 type:区3
  2852. getDistrict: function (type, code, name) {
  2853. var vm = this,
  2854. list = [],
  2855. param = ''
  2856. if (type == 3) {
  2857. list = [{ code: code, name: name }]
  2858. param = 'area'
  2859. } else if (type == 5) {
  2860. list = [{ code: '', name: '全部' }]
  2861. param = 'community'
  2862. }
  2863. var params = {
  2864. type: type,
  2865. code: code
  2866. }
  2867. homeAPI.getDistrict(params).then(function (res) {
  2868. if (res.status == 200) {
  2869. vm[param + 'List'] = list.concat(res.list)
  2870. vm[param + 'Code'] = vm[param + 'List'][0].code
  2871. } else {
  2872. vm.$message.error(res.msg)
  2873. }
  2874. })
  2875. },
  2876. selChange: function (type) {
  2877. var vm = this,
  2878. name = ''
  2879. if (type == 3) {
  2880. vm.initSelOption('community')
  2881. vm.initSelOption('team')
  2882. vm.getCommunityHospital()
  2883. } else if (type == 5) {
  2884. vm.initSelOption('team')
  2885. vm.teamListByArea()
  2886. }
  2887. },
  2888. initSelOption: function (param) {
  2889. var vm = this
  2890. vm[param + 'List'] = [{ code: '', name: '全部' }]
  2891. if (param == 'team') {
  2892. vm[param + 'List'] = [{ id: '', name: '全部' }]
  2893. }
  2894. vm[param + 'Code'] = vm[param + 'List'][0].code || vm[param + 'List'][0].id
  2895. },
  2896. getCommunityHospital: function () {
  2897. var vm = this,
  2898. list = [{ code: '', name: '全部' }],
  2899. param = 'community'
  2900. homeAPI.getCommunityHospital({ area: vm.areaCode == '350200' ? '' : vm.areaCode }).then(function (res) {
  2901. if (res.status == 200) {
  2902. vm[param + 'List'] = list.concat(res.data)
  2903. vm[param + 'Code'] = vm[param + 'List'][0].code
  2904. } else {
  2905. vm.$message.error(res.msg)
  2906. }
  2907. })
  2908. },
  2909. teamListByArea: function () {
  2910. var vm = this,
  2911. list = [{ id: '', name: '全部' }],
  2912. param = 'team'
  2913. homeAPI.teamListByArea({ area: vm.areaCode == '350200' ? '' : vm.areaCode, hospital: vm.communityCode }).then(function (res) {
  2914. if (res.status == 200) {
  2915. vm[param + 'List'] = list.concat(res.data)
  2916. vm[param + 'Code'] = vm[param + 'List'][0].id
  2917. } else {
  2918. vm.$message.error(res.msg)
  2919. }
  2920. })
  2921. },
  2922. // 慢阻肺搜索左侧字段变化
  2923. onCopdFilterChange(event) {
  2924. EventBus.$emit('copd-record-filter-change', event)
  2925. }
  2926. }
  2927. })
  2928. // 初始化时间
  2929. function initTime(vm) {
  2930. var now = new Date()
  2931. vm.end = now.format('yyyy-MM-dd')
  2932. var start = now.getTime() - 30 * 24 * 60 * 60 * 1000
  2933. vm.start = new Date(start).format('yyyy-MM-dd')
  2934. vm.nowyear = vm.chooseYear = now.getFullYear()
  2935. vm.nowmonth = now.getMonth() + 1
  2936. vm.years = []
  2937. for (i = vm.nowyear; i >= 2016; i--) {
  2938. vm.years.push(i)
  2939. }
  2940. }
  2941. // 数据范围初始化
  2942. function initScope(vm) {
  2943. //获得缓存中缓存的角色权限
  2944. var userRole = window.sessionStorage.getItem('selectedRole')
  2945. if (!userRole) {
  2946. return false
  2947. }
  2948. vm.userRole = JSON.parse(userRole)
  2949. //level:2、市,3、区,4、社区,5、团队
  2950. vm.initareaLevel = vm.areaLevel = vm.userRole.code == '350200' ? 2 : vm.userRole.code.length == 6 ? 3 : 4
  2951. vm.initlevel = vm.level = vm.userRole.code == '350200' ? 4 : vm.userRole.code.length == 6 ? 3 : 2
  2952. // vm.lowLevel = vm.initlowLevel = vm.userRole.code == '350200' ? 3 : vm.userRole.code.length == 6 ? 2 : 1;
  2953. vm.initarea = vm.area = vm.userRole.code
  2954. vm.areaTitle = vm.userRole.name
  2955. vm.rangeList = [
  2956. { name: '按区', code: 'town' },
  2957. { name: '按社区', code: 'hospital' },
  2958. { name: '按团队', code: 'team' }
  2959. ]
  2960. if (vm.initlevel == 4) {
  2961. //市获取区
  2962. vm.getDistrict(3, vm.initarea, vm.areaTitle.substr(0, 3))
  2963. vm.rangeCode = vm.rangeList[0].code
  2964. } else if (vm.initlevel == 3) {
  2965. //区获取社区
  2966. vm.areaList = [{ code: vm.initarea, name: vm.areaTitle }]
  2967. vm.areaCode = vm.initarea
  2968. vm.rangeCode = vm.rangeList[0].code
  2969. } else if (vm.initlevel == 2) {
  2970. //社区获取团队
  2971. vm.communityList = [{ code: vm.initarea, name: vm.areaTitle }]
  2972. vm.communityCode = vm.initarea
  2973. vm.rangeList.shift()
  2974. vm.rangeCode = vm.rangeList[0].code
  2975. }
  2976. vm.searchJson.range = vm.rangeCode
  2977. }
  2978. function initData(vm) {
  2979. initScope(vm)
  2980. //初始化时间
  2981. initTime(vm)
  2982. vm.tabledata = []
  2983. vm.bindEvent()
  2984. }