comprehensive-query.js 98 KB

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