comprehensive-query.js 98 KB

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