index.vue 128 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626
  1. <template>
  2. <div class="app-container">
  3. <div style="margin-bottom: 20px;">
  4. <!-- 组:<span style="font-weight: 400; color: #009fe8; margin-right: 15px;">{{dneyhsd.zu == null? '暂无数据' : dneyhsd.zu}}</span> -->
  5. <p class="nhoesf" style="font-size: 16px;line-height: 24px; color: #333; font-weight: 700;">当前单位:<span style="font-weight: 400; color: #009fe8; margin-right: 15px; ">{{dneyhsd.dqdw == null? '暂无数据' : dneyhsd.dqdw}}</span>
  6. 镇:<span style="font-weight: 400; color: #009fe8; margin-right: 15px; ">{{dneyhsd.zhen == null? '暂无数据' : dneyhsd.zhen}}</span> 村:<span style="font-weight: 400; color: #009fe8;margin-right: 15px;">{{dneyhsd.cun == null? '暂无数据' : dneyhsd.cun}}</span> 常住人口:<span style="font-weight: 400; margin-right: 15px; color: #f66b0e;">{{dneyhsd.czzrs == null? '暂无数据' : dneyhsd.czzrs}}人</span> <span @click="chakei({row:0,type:'cz'} )">新增:<span style="font-weight: 400; margin-right: 15px; color: #00b034;" >{{dneyhsd.czxz == null? '暂无数据' : dneyhsd.czxz}}人</span></span> <span @click="chakei({row:1,type:'cz'})">减少:<span style="font-weight: 400; margin-right: 15px; color: #fa2323;" >{{dneyhsd.czjs == null? '暂无数据' : dneyhsd.czjs}}人</span></span> 户籍人口:<span style="font-weight: 400; margin-right: 15px; color: #f66b0e;">{{dneyhsd.hjzrs == null? '暂无数据' : dneyhsd.hjzrs}}人</span> <span @click="chakei({row:0,type:'hj'})">新增:<span style="font-weight: 400; margin-right: 15px; color: #00b034;" >{{dneyhsd.hjxz == null? '暂无数据' : dneyhsd.hjxz}}人</span></span> <span @click="chakei({row:1,type:'hj'})">减少:<span style="font-weight: 400; margin-right: 15px; color: #fa2323;" >{{dneyhsd.hjjs == null? '暂无数据' : dneyhsd.hjjs}}人</span></span></p>
  7. </div>
  8. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="70px">
  9. <el-row>
  10. <el-col :span="24">
  11. <el-row>
  12. <el-col :span="12" class="jehak">
  13. <el-form-item label="居住地址" prop="villagerGroup">
  14. <el-cascader
  15. placeholder="点击选择居住地址"
  16. :options="optionsList"
  17. filterable
  18. @change="chahetwos"
  19. :props="optionPropsssd"
  20. style="width: 141%;"
  21. @keyup.enter.native="handleQuery"
  22. ref = "cdd"
  23. v-model="listd"
  24. @active-item-change="handleItemChangefr"
  25. ></el-cascader>
  26. <!-- optionPropsssd optionPropsss-->
  27. </el-form-item>
  28. </el-col>
  29. <el-col :span="12" class="jehak">
  30. <el-form-item label="户籍地址" prop="villagerGroup">
  31. <el-cascader
  32. placeholder="点击选择户籍地址"
  33. :options="optionsListkl"
  34. :filterable="true"
  35. separator="/"
  36. @change="chahetwo"
  37. :props="optionPropsss"
  38. style="width: 134%;"
  39. ref="myCascaderqty"
  40. v-model="lser"
  41. @active-item-change="handleItemChangefrkl"
  42. @keyup.enter.native="handleQuery"
  43. ></el-cascader>
  44. </el-form-item>
  45. </el-col>
  46. </el-row>
  47. </el-col>
  48. <el-col :span="24">
  49. <el-row>
  50. <el-col :span="7">
  51. <el-form-item label="身份证号" prop="idCard">
  52. <el-input v-model="queryParams.idCard" placeholder="请输入身份证号码" style="width:240px;" clearable @keyup.enter.native="handleQuery" />
  53. </el-form-item>
  54. </el-col>
  55. <el-col :span="5">
  56. <el-form-item label="姓名" prop="userName">
  57. <el-input v-model="queryParams.userName" placeholder="请输入姓名" style="width:150px;" clearable @keyup.enter.native="handleQuery" />
  58. </el-form-item>
  59. </el-col>
  60. <el-col :span="6">
  61. <el-form-item label="联系号码" prop="phoneNum">
  62. <el-input v-model="queryParams.phoneNum" placeholder="请输入联系号码" style="width:180px;"clearable @keyup.enter.native="handleQuery" />
  63. </el-form-item>
  64. </el-col>
  65. <el-col :span="6">
  66. <el-form-item label="年龄阶段" >
  67. <el-select v-model="queryParams.params.age" placeholder="年龄阶段" style="width:150px;" clearable>
  68. <el-option v-for="dict in angesList" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  69. </el-select>
  70. </el-form-item>
  71. </el-col>
  72. </el-row>
  73. </el-col>
  74. <el-col :span="24">
  75. <el-row>
  76. <el-col :span="7">
  77. <el-form-item label="是否户主" prop="houseType">
  78. <el-select v-model="queryParams.houseType" placeholder="是否户主" clearable style="width:240px;" @keyup.enter.native="handleQuery"
  79. >
  80. <el-option v-for="dict in typeOptionshuuj" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  81. </el-select>
  82. </el-form-item>
  83. </el-col>
  84. <el-col :span="5">
  85. <el-form-item label="是否确认" prop="isConfirm">
  86. <el-select v-model="queryParams.isConfirm" placeholder="是否确认" clearable style="width: 150px" @keyup.enter.native="handleQuery"
  87. >
  88. <el-option v-for="dict in typeOptionshuujs" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  89. </el-select>
  90. </el-form-item>
  91. </el-col>
  92. <el-col :span="6">
  93. <el-form-item label="全员核酸" prop="isNucleicAcidFive">
  94. <el-select v-model="queryParams.isNucleicAcidFive" placeholder="是否参加5天一次全员核酸" style="width:180px;" clearable>
  95. <el-option v-for="dict in qyhs" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  96. </el-select>
  97. </el-form-item>
  98. </el-col>
  99. <el-col :span="4" >
  100. <el-form-item>
  101. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  102. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  103. </el-form-item>
  104. </el-col>
  105. </el-row>
  106. </el-col>
  107. </el-row>
  108. </el-form>
  109. <el-row :gutter="10" class="mb8">
  110. <el-col :span="1.5"><el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd(0)" >新增户主</el-button></el-col>
  111. <el-col :span="1.5">
  112. <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" >修改</el-button>
  113. </el-col>
  114. <el-col :span="1.5">
  115. <!-- <el-button type="danger" plain icon="el-icon-edit" size="mini" :disabled="multiple" @click="handleDelete" v-if="queryParams.queryType == 'hj'">变更</el-button> -->
  116. </el-col>
  117. <el-col :span="1.5">
  118. <!-- <el-button type="primary" icon="el-icon-view" size="mini" @click="chajndsls" :disabled="single" v-if="queryParams.queryType == 'hj'">变更历史</el-button> -->
  119. </el-col>
  120. <el-col :span="1.5" >
  121. <el-button
  122. type="info"
  123. plain
  124. icon="el-icon-upload2"
  125. size="mini"
  126. @click="handleImport"
  127. v-hasPermi="['system:czrk:importData']"
  128. >导入</el-button>
  129. </el-col>
  130. <el-col :span="1.5">
  131. <!-- :disabled="queryParams.queryType == 'cz'" -->
  132. <el-button
  133. type="warning"
  134. plain
  135. icon="el-icon-download"
  136. size="mini"
  137. @click="handleExporttk"
  138. >导出</el-button>
  139. </el-col>
  140. <el-col :span="1.5">
  141. <!-- :disabled="queryParams.queryType == 'cz'" -->
  142. <el-button
  143. type="primary"
  144. plain
  145. icon="el-icon-wallet"
  146. size="mini"
  147. @click="weirl"
  148. v-hasPermi="['system:czrk:setNoRl']"
  149. >一键未认领</el-button>
  150. </el-col>
  151. <el-col :span="1.5">
  152. <el-button type="primary" :plain="nhykis" icon="el-icon-view" size="mini" @click="chajnd" >查看常住人口信息</el-button>
  153. </el-col>
  154. <el-col :span="1.5">
  155. <el-button type="primary" :plain="nhyki" icon="el-icon-view" size="mini" @click="chajnds" >查看户籍人口信息</el-button>
  156. </el-col>\
  157. <el-col :span="1.5">
  158. <el-button type="primary" :disabled="multiple" :plain="nhyki" icon="el-icon-view" size="mini" @click="hsxx" >批量修改全员核酸信息</el-button>
  159. </el-col>
  160. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  161. </el-row>
  162. <div class="bghks">
  163. <!-- v-if="nbdgywkajs == true" -->
  164. <el-table v-if="nbdgywkajs == true" v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" stripe style="width: 100%" :height="tableMaxHeight">
  165. <el-table-column type="selection" width="55" align="left" />
  166. <el-table-column label="姓名" align="center" prop="userName" fixed="left" width="110" />
  167. <el-table-column label="身份证号码" align="center" prop="idCard" fixed="left" width="180" />
  168. <el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
  169. <el-table-column v-if="queryParams.queryType == 'hj'" label="户籍地址" width="360" align="center" >
  170. <!-- prop="domicileSelect" -->
  171. <!-- style="text-align: left;" -->
  172. <template slot-scope="scope">
  173. <div v-if="scope.row.nowIn !==null" v-html="scope.row.domicileSelect + '<br>' + scope.row.nowIn">
  174. </div>
  175. <div v-else v-html="scope.row.domicileSelect + '<br>' + ''">
  176. </div>
  177. </template>
  178. </el-table-column>
  179. <!-- <el-table-column v-if="queryParams.queryType == 'hj'" label="户籍地详细地址" width="280" align="center" prop="nowin" /> -->
  180. <!-- nowInSelect -->
  181. <el-table-column v-if="queryParams.queryType == 'cz'" label="居住地址" align="center" width="360" >
  182. <template slot-scope="scope">
  183. <div v-if="scope.row.nowIn !==null" v-html="scope.row.nowInSelect + '<br>' + scope.row.nowIn"> </div>
  184. <div v-else v-html="scope.row.nowInSelect + '<br>' + ''"> </div>
  185. </template>
  186. </el-table-column>
  187. <!-- <el-table-column v-if="queryParams.queryType == 'cz'" label="居住地地详细地址" align="center" width="280" prop="nowin"/> -->
  188. <el-table-column label="是否户主" align="center" prop="houseType" width="90" />
  189. <el-table-column label="认领人" align="center" width="110" >
  190. <template slot-scope="scope">
  191. <el-tooltip class="item" effect="dark" :content="scope.row.rlrNike" placement="top-start">
  192. <!-- rlr -->
  193. <span >{{ scope.row.rlr == null? scope.row.rlrNike : scope.row.rlr}}</span>
  194. </el-tooltip>
  195. </template>
  196. </el-table-column>
  197. <el-table-column label="最后一次确认人" align="center" width="120" >
  198. <template slot-scope="scope">
  199. <el-tooltip class="item" effect="dark" :content="scope.row.confirmInfoNikeUser" placement="top-start">
  200. <span>{{ scope.row.confirmInfoUser == null? scope.row.confirmInfoNikeUser : scope.row.confirmInfoUser}}</span>
  201. </el-tooltip>
  202. </template>
  203. </el-table-column>
  204. <el-table-column label="确认时间" align="center" prop="confirmInfoUserTime" width="102" />
  205. <!-- <el-table-column label="是否核酸" align="center" prop="isNucleicAcid" width="90" :formatter="homeNameFormats"/>
  206. <el-table-column label="核酸时间" align="center" prop="nucleicAcidTime" width="102" /> -->
  207. <el-table-column label="来宜号码" align="center" prop="toAppropriatePhone" width="110" />
  208. <el-table-column label="是否5天一次全员核酸" align="center" prop="isNucleicAcidFive" width="150" fixed="right" :formatter="homeNameFormats"/>
  209. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" fixed="right" :width="queryParams.queryType == 'hj' ? '160' : '120'">
  210. <template slot-scope="scope">
  211. <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" >查看修改</el-button>
  212. <!-- <el-button size="mini" type="text" icon="el-icon-view" @click="ncoming(scope.row)" v-if="queryParams.queryType !== 'hj'">核酸信息</el-button> -->
  213. <el-button size="mini" type="text" icon="el-icon-edit" @click="handleDelete(scope.row)" class="hueya" v-if="queryParams.queryType == 'hj'" >变更</el-button>
  214. <el-button size="mini" type="text" icon="el-icon-edit" @click="chajndsls(scope.row)" class="hueya" v-if="queryParams.queryType == 'hj'">变更历史</el-button>
  215. <el-button v-if="scope.row.houseType == '是'" size="mini" type="text" icon="el-icon-edit" @click="handleDeletefamide(scope.row)" class="hueya" >查看家庭成员</el-button>
  216. <el-button v-if="scope.row.houseType == '是'" size="mini" type="text" icon="el-icon-plus" @click="handleAdd(scope.row)" class="hueya" >添加家庭成员</el-button>
  217. </template>
  218. </el-table-column>
  219. </el-table>
  220. <p class="pj">{{user.phonenumber}}</p>
  221. <p class="pjs">{{user.phonenumber}}</p>
  222. </div>
  223. <pagination v-if="queryParams.queryType == 'hj'" v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
  224. <pagination v-if="queryParams.queryType == 'cz'" v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getListjuzhu" />
  225. <!-- v-loading="loading" -->
  226. <!-- 添加或修改疫苗信息对话框 -->
  227. <el-dialog :title="title" :visible.sync="opens" width="1240px" append-to-body>
  228. <el-form ref="form" :model="form" :rules="rules" label-width="100px">
  229. <el-row>
  230. <el-col :span="8">
  231. <el-form-item label="身份证号" prop="idCard"><el-input v-model="form.idCard" placeholder="请输入身份证号码" @blur="idcde" /></el-form-item>
  232. </el-col>
  233. <el-col :span="8">
  234. <el-form-item label="姓名" prop="userName"><el-input v-model="form.userName" placeholder="请输入姓名" /></el-form-item>
  235. </el-col>
  236. <el-col :span="8">
  237. <el-form-item label="性别" prop="gender">
  238. <!-- <el-input v-model="form.gender" placeholder="请输入性别" /> -->
  239. <el-select v-model="form.gender" placeholder="性别" clearable style="width: 100%;">
  240. <el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  241. </el-select>
  242. </el-form-item>
  243. </el-col>
  244. <el-col :span="24">
  245. <el-row>
  246. <el-col :span="8">
  247. <el-form-item label="联系号码" prop="phoneNum"><el-input v-model="form.phoneNum" placeholder="请输入联系号码" /></el-form-item>
  248. </el-col>
  249. <el-col :span="8">
  250. <el-form-item label="人员分类" prop="keyIndustries">
  251. <el-select v-model="form.keyIndustries" placeholder="人员分类" clearable style="width: 100%;">
  252. <el-option v-for="dict in typeOptionsname" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  253. </el-select>
  254. </el-form-item>
  255. </el-col>
  256. <el-col :span="8">
  257. <el-form-item label="年龄" prop="age"><el-input type="number" v-model="form.age" placeholder="请输入年龄" /></el-form-item>
  258. </el-col>
  259. </el-row>
  260. </el-col>
  261. <el-col :span="24">
  262. <el-row>
  263. <el-col :span="12" style="position: relative;">
  264. <span style="position: absolute;top:5px; color: red;left:25px;">*</span>
  265. <el-form-item label="户籍地址" style="margin-bottom: 5px;">
  266. <!-- prop="provinceId" -->
  267. <!-- <el-input v-model="form.villageTowns" type="textarea" placeholder="请输入内容" /> -->
  268. <!-- <treeselect v-model="form.parentId" :options="deptOptionstwo" :normalizer="normalizer" :flat="true" :maxHeight="150" @select="djieskle" @close = "nhyu" :placeholder="nhdyesfgh" /> -->
  269. <el-cascader
  270. v-if="nhyesfx"
  271. :placeholder="nhdyesfgh"
  272. :options="optionsLists"
  273. separator="/"
  274. v-model="nhyeswdga.nhus"
  275. @change="chahe"
  276. :props="optionPropsss"
  277. style="width: 100%;"
  278. ref="myCascader"
  279. :class="[nhdyesfgh == '点击选择户籍地址' ? '' : 'placf']"
  280. @active-item-change="handleItemChanges"
  281. ></el-cascader>
  282. <!-- :popper-class="'cascader' + id"
  283. @click.native="clicks" -->
  284. <!-- @click.native="clicks"
  285. :popper-class="'cascader' + id" -->
  286. <!-- -->
  287. <!-- <el-cascader
  288. :placeholder="nhdyesfgh"
  289. :options="optionsList"
  290. :filterable="true"
  291. separator="/"
  292. @change="chahe(index)"
  293. v-model="selected"
  294. :props="optionPropsss"
  295. style="width: 100%;"
  296. ref="myCascader"
  297. @active-item-change="handleItemChange"
  298. :class="[nhdyesfgh == '点击选择居住地址' ? '' : 'placf']"
  299. ></el-cascader> -->
  300. <p style="line-height: 20px; font-size: 12px;color: red;">点击小圆圈一级一级选择</p>
  301. </el-form-item>
  302. </el-col>
  303. <el-col :span="12">
  304. <el-form-item label="详细地址" prop="nowIn"><el-input v-model="form.nowIn" type="input" placeholder="请输入户籍详细地址" /></el-form-item>
  305. </el-col>
  306. </el-row>
  307. </el-col>
  308. <el-col :span="24" v-for="(item, index) in form.czrkJzdzList" :key="index" v-show="senlsduea == false || index !== 0" >
  309. <!-- v-show="senlsduea == false || index !== 0" -->
  310. <el-col :span="12" >
  311. <el-form-item label="居住地址" prop="province" style="margin-bottom: 5px;">
  312. <!-- item.optiodne -->
  313. <el-cascader
  314. :placeholder="item.plaed"
  315. :options="item.optiodne"
  316. :filterable="true"
  317. separator="/"
  318. @change="onSelected(index)"
  319. :props="optionPropsss"
  320. style="width: 100%;"
  321. :ref="'myCascaderf' + '' + index "
  322. v-model="item.seleted"
  323. :key="cascaderKey"
  324. @expand-change="idjeus"
  325. :class="[item.plaed == '请选择居住地址' ? '' : 'placf']"
  326. @active-item-change="handleItemChange"
  327. ></el-cascader>
  328. <!-- :popper-class="'cascader' + idsg"
  329. @click.native="click(index)" -->
  330. <!-- :popper-class="'cascader' + idsg"
  331. @click.native="click(index)" -->
  332. <!-- :popper-class="'cascader' + idsg" -->
  333. <!-- @click.native="click(index)" -->
  334. <!-- -->
  335. <!-- v-if="jdourdjoaj == false && index == 0" -->
  336. <!-- <treeselect v-model="item.seleted" :options="item.optiodne" :show-count="true" placeholder="请选择归属部门" :load-options="loadOptions" :normalizer="normalizer" /> -->
  337. <!-- </el-form-item> -->
  338. <!-- @active-item-change="handleItemChange" -->
  339. <p style="line-height: 20px; font-size: 12px;color: red;">点击小圆圈一级一级选择</p>
  340. </el-form-item>
  341. <!-- :key="cascaderKey" seleted -->
  342. </el-col>
  343. <el-col :span="11">
  344. <el-form-item label="详细地址" prop="nowIn"><el-input v-model="item.nowIn" type="input" placeholder="请输入内容" /></el-form-item>
  345. </el-col>
  346. <el-col :span="1">
  347. <div class="hyeoa" style="margin-top: 10px;">
  348. <el-tooltip class="item" effect="dark" content="新增居住地址信息,请慎重操作" placement="top-start">
  349. <img src="../../../assets/images/icon_tc_add.png" alt="" class="hueyde" @click="tijea(index)" />
  350. </el-tooltip>
  351. <el-tooltip class="item" effect="dark" content="删除无法恢复,请慎重操作" placement="top-start">
  352. <img src="../../../assets/images/delei.png" alt="" class="hueydele" @click="naeyrfakjf(index, item)" />
  353. </el-tooltip>
  354. </div>
  355. </el-col>
  356. </el-col>
  357. <el-col :span="24">
  358. <el-col :span="12">
  359. <el-form-item label="是否户主" prop="houseType">
  360. <el-select v-model="form.houseType" placeholder="是否户主" clearable style="width: 100%;" @change="changese">
  361. <el-option v-for="dict in typeOptionshuuj" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  362. </el-select>
  363. </el-form-item>
  364. </el-col>
  365. <el-col :span="12">
  366. <el-tooltip class="item" effect="dark" content="如果不知道户编号,请用户主身份证号(已默认是户主身份证号)" placement="top-start">
  367. <el-form-item label="户编号" prop="code">
  368. <el-input v-model="form.code" placeholder="请输入户主编号"/>
  369. <!-- :disabled="nhe" -->
  370. </el-form-item>
  371. </el-tooltip>
  372. </el-col>
  373. </el-col>
  374. <el-col :span="24" v-if="shifouh == false">
  375. <el-col :span="12">
  376. <el-form-item label="户主名称" >
  377. <el-input v-model="form.hzName" placeholder="请输入户主名称"/>
  378. </el-form-item>
  379. </el-col>
  380. <el-col :span="12">
  381. <el-form-item label="户主身份证" prop="hzIdCard">
  382. <el-input v-model="form.hzIdCard" placeholder="请输入户主身份证"/>
  383. <!-- :disabled="nhe" -->
  384. </el-form-item>
  385. </el-col>
  386. </el-col>
  387. <el-col :span="24">
  388. <el-col :span="12">
  389. <el-form-item label="与户主关系" prop="yhzgx">
  390. <el-select filterable v-model="form.yhzgx" placeholder="与户主关系" clearable style="width: 100%;">
  391. <el-option v-for="dict in typeOptionstyzandeh" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictLabel" />
  392. </el-select>
  393. </el-form-item>
  394. </el-col>
  395. <el-col :span="12">
  396. <el-form-item label="网格" prop="houseTyper">
  397. <el-cascader
  398. :placeholder="ndhesdweaf"
  399. :options="optionsListwg"
  400. filterable
  401. @change="chahetwoswge"
  402. :props="optionPropsssdwg"
  403. style="width: 100%;"
  404. ref = "cddfr"
  405. :key="nhduesw"
  406. @active-item-change="handleItemChangefrwg"
  407. :class="[ndhesdweaf == '点击选择网格' ? '' : 'placf']"
  408. ></el-cascader>
  409. </el-form-item>
  410. </el-col>
  411. </el-col>
  412. <el-col :span="24">
  413. <!-- <el-col :span="12">
  414. <el-form-item label="来宜号码" prop="hi_phone">
  415. <el-input :disabled="true" v-model="form.hi_phone" type="input" placeholder="来宜号码" />
  416. </el-form-item>
  417. </el-col> -->
  418. <el-col :span="12">
  419. <el-form-item label="全员核酸" prop="isNucleicAcidFive">
  420. <el-select :disabled="isNucleicflag" v-model="form.isNucleicAcidFive" placeholder="是否参加5天一次全员核酸" clearable style="width: 100%;">
  421. <el-option v-for="dict in qyhs" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  422. </el-select>
  423. </el-form-item>
  424. </el-col>
  425. <el-col :span="12">
  426. <el-form-item label="备注" prop="remark">
  427. <el-input v-model="form.remark" type="input" placeholder="请输入备注" />
  428. </el-form-item>
  429. </el-col>
  430. </el-col>
  431. </el-row>
  432. </el-form>
  433. <div slot="footer" class="dialog-footer">
  434. <el-button type="success" @click="xinxihe" v-if="nhtrew">修改并确认</el-button>
  435. <el-button type="primary" @click="submitForm">确 定</el-button>
  436. <el-button @click="cancel">取 消</el-button>
  437. </div>
  438. </el-dialog>
  439. <!-- 图片预览 -->
  440. <el-dialog :close-on-click-modal="false" title="变更原因" :visible.sync="imashow" width="800px" append-to-body >
  441. <el-form ref="formgt" :model="formgt" :rules="ruleshy" label-width="100px" style="padding-bottom: 30px;">
  442. <el-form-item label="变更原因:" prop="houseType">
  443. <el-select v-model="formgt.houseType" placeholder="请选择变更原因" clearable style="width: 100%;">
  444. <el-option v-for="dict in typeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" v-if="dict.dictValue !== '1'"/>
  445. </el-select>
  446. </el-form-item>
  447. </el-form>
  448. <div slot="footer" class="dialog-footer">
  449. <el-button type="primary" @click="submitFormfr">确 定</el-button>
  450. <el-button @click="cancel">取 消</el-button>
  451. </div>
  452. </el-dialog>
  453. <el-dialog :close-on-click-modal="false" title="查看信息" :visible.sync="jiezhong" :width="nhyesoder == 3 ? '97%' : '87%'" append-to-body class="ojhgy">
  454. <el-row :gutter="10" class="mb8" v-if="nhyesoder == 3">
  455. <el-col :span="1.5"><el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd(bhdes)" >新增</el-button></el-col>
  456. <el-col :span="1.5"><el-button type="primary" plain size="mini" @click="xinxtb" >与户主户籍同步</el-button></el-col>
  457. <el-button type="success" size="mini" plain @click="xinxiheu" >一键确认信息无误</el-button>
  458. </el-row>
  459. <el-table :data="jiezheList" stripe style="width: 100%">
  460. <el-table-column label="姓名" align="center" prop="userName" fixed width="100"/>
  461. <el-table-column label="与户主关系" align="center" prop="yhzgx" fixed width="100"/>
  462. <el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
  463. <el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
  464. <!-- <el-table-column label="户籍地址" align="center" prop="domicileSelect" /> -->
  465. <el-table-column v-if="ndhuwosdjh.queryType == 'hj' || nhyesoder == 3" label="户籍地址" align="center">
  466. <template slot-scope="scope">
  467. <div v-if="scope.row.nowIn !==null" v-html="scope.row.domicileSelect + '<br>' + scope.row.nowIn">
  468. </div>
  469. <div v-else v-html="scope.row.domicileSelect + '<br>' + ''">
  470. </div>
  471. </template>
  472. </el-table-column>
  473. <el-table-column v-if="ndhuwosdjh.queryType == 'cz' || nhyesoder == 3" label="居住地址" align="center" >
  474. <template slot-scope="scope">
  475. <div v-if="scope.row.domicile !==null" v-html="scope.row.nowInSelect + '<br>' + scope.row.domicile"></div>
  476. <div v-else v-html="scope.row.nowInSelect + '<br>' + scope.row.domicile"> </div>
  477. </template>
  478. </el-table-column>
  479. <el-table-column v-if="nhyesoder !== 3" label="操作人" align="center" prop="updateBy" width="100" />
  480. <el-table-column v-if="nhyesoder !== 3" label="创建时间" align="center" prop="createTime" width="150" />
  481. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" fixed="right" width="90" v-if="nhyesoder == 3">
  482. <template slot-scope="scope">
  483. <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" >查看修改</el-button>
  484. </template>
  485. </el-table-column>
  486. </el-table>
  487. </el-table>
  488. <pagination v-show="totalfr > 0" :total="totalfr" :page.sync="ndhuwosdjh.pageNum" :limit.sync="ndhuwosdjh.pageSize" @pagination="chakei({type:ndhuwosdjh.queryType,row:nhyesoder})"/>
  489. </el-dialog>
  490. <!-- 变更历史 -->
  491. <el-dialog :close-on-click-modal="false" title="查看信息" :visible.sync="biangneg" width="97%" append-to-body class="ojhgy">
  492. <el-table :data="bgls" stripe style="width: 100%">
  493. <el-table-column label="姓名" align="center" prop="userName" fixed width="100"/>
  494. <!-- <el-table-column label="与户主关系" align="center" prop="yhzgx" fixed width="100"/> -->
  495. <el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
  496. <el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
  497. <el-table-column label="历史状态" align="center" prop="status" width="90" :formatter="homeNameFormat"/>
  498. <!-- <el-table-column label="户籍地址" align="center" prop="domicileSelect" /> -->
  499. <el-table-column label="户籍地址" align="center" >
  500. <template slot-scope="scope">
  501. <div v-if="scope.row.nowIn !==null" v-html="scope.row.domicileSelect + '<br>' + scope.row.nowIn">
  502. </div>
  503. <div v-else v-html="scope.row.domicileSelect + '<br>' + ''">
  504. </div>
  505. </template>
  506. </el-table-column>
  507. <el-table-column label="变更人" align="center" width="110" >
  508. <template slot-scope="scope">
  509. <el-tooltip class="item" effect="dark" :content="scope.row.changNikeUser" placement="top-start">
  510. <span>{{ scope.row.changUser == null? scope.row.changNikeUser : scope.row.changUser}}</span>
  511. </el-tooltip>
  512. </template>
  513. </el-table-column>
  514. <el-table-column label="变更时间" align="center" prop="changUserTime" width="100" />
  515. <!-- <el-table-column label="操作" align="left" class-name="small-padding fixed-width" fixed="right" width="90" v-if="nhyesoder == 3">
  516. <template slot-scope="scope">
  517. <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" >查看修改</el-button>
  518. </template>
  519. </el-table-column> -->
  520. </el-table>
  521. </el-table>
  522. </el-dialog>
  523. <!-- 核酸信息 -->
  524. <el-dialog :close-on-click-modal="false" title="查看信息" :visible.sync="comind" width="97%" append-to-body class="ojhgy">
  525. <el-table :data="bgls" stripe style="width: 100%">
  526. <el-table-column label="姓名" align="center" prop="userName" fixed width="100"/>
  527. <!-- <el-table-column label="与户主关系" align="center" prop="yhzgx" fixed width="100"/> -->
  528. <el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
  529. <el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
  530. <el-table-column label="家庭住址" align="center" prop="status" width="90" />
  531. <!-- <el-table-column label="户籍地址" align="center" prop="domicileSelect" /> -->
  532. <!-- <el-table-column label="户籍地址" align="center" >
  533. <template slot-scope="scope">
  534. <div v-if="scope.row.nowIn !==null" v-html="scope.row.domicileSelect + '<br>' + scope.row.nowIn">
  535. </div>
  536. <div v-else v-html="scope.row.domicileSelect + '<br>' + ''">
  537. </div>
  538. </template>
  539. </el-table-column> -->
  540. <el-table-column label="采集点" align="center" width="110" >
  541. <template slot-scope="scope">
  542. <el-tooltip class="item" effect="dark" :content="scope.row.changNikeUser" placement="top-start">
  543. <span>{{ scope.row.changUser == null? scope.row.changNikeUser : scope.row.changUser}}</span>
  544. </el-tooltip>
  545. </template>
  546. </el-table-column>
  547. <el-table-column label="采集时间" align="center" prop="changUserTime" width="100" />
  548. <el-table-column label="检测时间" align="center" prop="changUserTime" width="100" />
  549. <el-table-column label="检测地点" align="center" prop="changUserTime" width="100" />
  550. <!-- <el-table-column label="操作" align="left" class-name="small-padding fixed-width" fixed="right" width="90" v-if="nhyesoder == 3">
  551. <template slot-scope="scope">
  552. <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" >查看修改</el-button>
  553. </template>
  554. </el-table-column> -->
  555. </el-table>
  556. </el-table>
  557. </el-dialog>
  558. <el-dialog
  559. title="点击选择导出数据"
  560. :visible.sync="dch"
  561. width="40%"
  562. style="padding-bottom: 20px;"
  563. >
  564. <el-row :gutter="20" style="margin-bottom: 20px;">
  565. <el-col :span='1.5'>
  566. <el-button
  567. type="warning"
  568. plain
  569. icon="el-icon-download"
  570. size="mini"
  571. @click="handleExport"
  572. v-hasPermi="['system:czrk:export']"
  573. >导出</el-button>
  574. </el-col>
  575. <el-col :span='1.5'>
  576. <el-button
  577. type="warning"
  578. plain
  579. icon="el-icon-download"
  580. size="mini"
  581. @click="handleExporttezh"
  582. v-hasPermi="['system:czrk:exportQianShan']"
  583. >导出只填写到潜山市数据</el-button>
  584. </el-col>
  585. <el-col :span='1.5'>
  586. <el-button
  587. type="warning"
  588. plain
  589. icon="el-icon-download"
  590. size="mini"
  591. @click="handleExportte"
  592. v-hasPermi="['system:czrk:exportTownHj']"
  593. >导出只填写到镇数据</el-button>
  594. </el-col>
  595. </el-row>
  596. <div style="height: 20px;">
  597. </div>
  598. <!-- </el-col>
  599. <el-col :span="1.5"> -->
  600. <!-- :disabled="queryParams.queryType == 'cz'" -->
  601. </el-dialog>
  602. <!-- 导入对话框 -->
  603. <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
  604. <!-- upload.url + '?source=' + upload.source -->
  605. <el-upload
  606. ref="upload"
  607. :limit="1"
  608. accept=".xlsx, .xls"
  609. :headers="upload.headers"
  610. :action="upload.url"
  611. :disabled="upload.isUploading"
  612. :on-progress="handleFileUploadProgress"
  613. :on-success="handleFileSuccess"
  614. :auto-upload="false"
  615. drag
  616. >
  617. <i class="el-icon-upload"></i>
  618. <div class="el-upload__text">
  619. 将文件拖到此处,或
  620. <em>点击上传</em>
  621. </div>
  622. <div class="el-upload__tip" slot="tip">
  623. <!-- <div class="nhkhv">
  624. <span><i>*</i>数据来源:</span>
  625. <el-select v-model="upload.source" placeholder="请选择数据来源" style="width: 100%;">
  626. <el-option v-for="dict in typeOptionstimesgt" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  627. </el-select>
  628. </div> -->
  629. <el-link type="info" style="font-size:14px;text-align: center;color: #5E8AC6; width: 100%;" @click="importTemplate">下载模板</el-link>
  630. </div>
  631. <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
  632. </el-upload>
  633. <div slot="footer" class="dialog-footer">
  634. <el-button type="primary" @click="submitFileForm">确 定</el-button>
  635. <el-button @click="nske">取 消</el-button>
  636. </div>
  637. </el-dialog>
  638. <!-- 全员核酸 -->
  639. <el-dialog
  640. title="修改是否5天一次是否全员核酸"
  641. :visible.sync="qyhss"
  642. width="40%"
  643. style="padding-bottom: 20px;"
  644. >
  645. <el-form ref="formhs" :model="formhs" :rules="ruleshs" label-width="100px">
  646. <el-row>
  647. <el-col :span="24">
  648. <!-- <el-col :span="12">
  649. <el-form-item label="来宜号码" prop="hi_phone">
  650. <el-input :disabled="true" v-model="form.hi_phone" type="input" placeholder="来宜号码" />
  651. </el-form-item>
  652. </el-col> -->
  653. <el-col :span="24">
  654. <el-form-item label="全员核酸" prop="isNucleicAcidFive">
  655. <el-select v-model="formhs.isNucleicAcidFive" placeholder="是否参加5天一次全员核酸" clearable style="width: 100%;">
  656. <el-option v-for="dict in qyhs" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  657. </el-select>
  658. </el-form-item>
  659. </el-col>
  660. </el-col>
  661. </el-row>
  662. </el-form>
  663. <div slot="footer" class="dialog-footer">
  664. <el-button type="primary" @click="submitFormhs">确 定</el-button>
  665. <el-button @click="cancelhs">取 消</el-button>
  666. </div>
  667. <!-- </el-col>
  668. <el-col :span="1.5"> -->
  669. <!-- :disabled="queryParams.queryType == 'cz'" -->
  670. </el-dialog>
  671. </div>
  672. </template>
  673. <script>
  674. import { listInfo, listInfos, listInfosls, getInfo, delInfo, addInfo, updateInfo, exportInfo, listRoleer, idces, delInfort,yiaoe,exportConfig,exportConfigtyr,importLog,listInfotj,listRoleergth,listInfotjxz,listInfotjjs,listInfotjjsfaml,listRoleergthwg,listInfotjjssbule,listInfotjjssquer,treeselectdeptst,listInfotjjsfamlwrl,updateInfohsxx } from '@/api/system/residentss';
  675. // import { treeselect } from '@/api/system/dept';
  676. import { treeselect } from "@/api/system/dept";
  677. import Treeselect from '@riophae/vue-treeselect';
  678. import { getToken } from '@/utils/auth';
  679. import { getUserProfile } from "@/api/system/user";
  680. import '@riophae/vue-treeselect/dist/vue-treeselect.css';
  681. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  682. export default {
  683. name: 'Info',
  684. components: { Treeselect },
  685. data() {
  686. return {
  687. // 遮罩层
  688. loading: true,
  689. dch:false,
  690. // 选中数组
  691. ids: [],
  692. cards:[],
  693. // 非单个禁用
  694. single: true,
  695. // 非多个禁用
  696. multiple: true,
  697. // 显示搜索条件
  698. showSearch: true,
  699. // 总条数
  700. total: 0,
  701. totalde:0,
  702. id:'fg',
  703. idsg:'gh',
  704. ruleshy:{},
  705. // 疫苗信息表格数据
  706. infoList: [],
  707. dialogImageUrl: '',
  708. // 弹出层标题
  709. title: '',
  710. totalfr:0,
  711. // 是否显示弹出层
  712. opens: false,
  713. process: process.env.VUE_APP_BASE_API,
  714. qyhss:false,//全员核酸
  715. // 查询参数
  716. queryParams: {
  717. pageNum: 1,
  718. pageSize: 10,
  719. villageTowns: null,
  720. village: null,
  721. villagerGroup: null,
  722. houseType: null,
  723. province: null,
  724. city: null,
  725. userName: null,
  726. queryType:'cz',
  727. gender: null,
  728. idCard: null,
  729. phoneNum: null,
  730. keyIndustries: null,
  731. isVaccination: null,
  732. vaccineName: null,
  733. vaccinationTime: null,
  734. vaccinationPlace: null,
  735. contraindication: null,
  736. isNucleicAcid:null,
  737. params:{
  738. age:''
  739. }
  740. },
  741. config: [],
  742. nhyeswdga:{nhus:[]},
  743. comfietg:[],
  744. configther:[],
  745. configfor:[],
  746. optionsListwg:[],
  747. nhduesw:0,
  748. formhs:{
  749. isNucleicAcidFive:null
  750. },
  751. // 表单参数
  752. form: {
  753. nowIn: '',
  754. age:'',
  755. code:'',
  756. czrkJzdzList: [
  757. {
  758. provinceId: '',
  759. province: '',
  760. deptId: '',
  761. cityId: '',
  762. city: '',
  763. regionId:'',
  764. region: '',
  765. townId: '',
  766. town: '',
  767. villageId: '',
  768. village: '',
  769. nowIn:'',
  770. seleted:[],
  771. plaed:'请选择居住地址',
  772. optiodne:[],
  773. disableg:false
  774. },
  775. {
  776. provinceId: '',
  777. province: '',
  778. deptId: '',
  779. cityId: '',
  780. city: '',
  781. regionId:'',
  782. region: '',
  783. townId: '',
  784. town: '',
  785. villageId: '',
  786. village: '',
  787. nowIn:'',
  788. seleted:[],
  789. plaed:'请选择居住地址',
  790. optiodne:[],
  791. disableg:false
  792. }
  793. ]
  794. },
  795. nhykis:false,
  796. nhyki:true,
  797. nhykils:true,
  798. // 用户导入参数
  799. upload: {
  800. // 是否显示弹出层(用户导入)
  801. open: false,
  802. // 弹出层标题(用户导入)
  803. title: "",
  804. // 是否禁用上传
  805. isUploading: false,
  806. // 是否更新已经存在的用户数据
  807. updateSupport: 0,
  808. // 设置上传的请求头部
  809. headers: { Authorization: "Bearer " + getToken() },
  810. // 上传的地址
  811. url: process.env.VUE_APP_BASE_API + "/boman-web-core/core/jzdz/importData"
  812. },
  813. // 表单校验
  814. rules: {
  815. idCard: [{ required: true, message: '身份证号码不能为空', trigger: 'blur' }],
  816. userName: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
  817. provinceId:[{ required: true, message: '户籍地址不能为空或不能只选潜山市', trigger: 'blur' }],
  818. houseType:[{ required: true, message: '请选择户主', trigger: 'blur' }],
  819. code:[{ required: true, message: '请输入户编号信息', trigger: 'blur' }],
  820. yhzgx:[{ required: true, message: '请选择与户主关系', trigger: 'blur' }],
  821. isNucleicAcidFive:[{ required: true, message: '不能为空', trigger: 'blur' }]
  822. },
  823. ruleshs:{
  824. isNucleicAcidFive:[{ required: true, message: '不能为空', trigger: 'blur' }]
  825. },
  826. // yhzgx:[{ required: true, message: '请选择与户主关系', trigger: 'blur' }],
  827. selected: [],
  828. selectedtwo: [],
  829. statusOptions: [
  830. {
  831. dictValue: '女',
  832. dictLabel: '女'
  833. },
  834. {
  835. dictValue: '男',
  836. dictLabel: '男'
  837. }
  838. ],
  839. statusOptionstue: [
  840. {
  841. dictValue: '已完成',
  842. dictLabel: '已完成'
  843. },
  844. {
  845. dictValue: '未完成',
  846. dictLabel: '未完成'
  847. }
  848. ],
  849. typeOptionshuuj: [
  850. {
  851. dictValue: '是',
  852. dictLabel: '是'
  853. },
  854. {
  855. dictValue: '否',
  856. dictLabel: '否'
  857. }
  858. ],
  859. typeOptionshuujs: [
  860. {
  861. dictValue: 'Y',
  862. dictLabel: '是'
  863. },
  864. {
  865. dictValue: 'N',
  866. dictLabel: '否'
  867. }
  868. ],
  869. deptOptionstwo: [],
  870. options: [],
  871. optionss:[],
  872. optionsList: [],
  873. optionsListkl:[],
  874. optionProps: {
  875. value: 'areaId',
  876. label: 'name',
  877. checkStrictly: true,
  878. },
  879. optionPropsssd:{
  880. value: 'areaId',
  881. label: 'name',
  882. checkStrictly: true,
  883. lazy: true,
  884. lazyLoad: this.lazyLoads,
  885. leaf: "leaf"
  886. },
  887. optionPropsss: {
  888. value: 'areaId',
  889. label: 'name',
  890. checkStrictly: true,
  891. },
  892. // optionPropsss: {
  893. // value: 'id',
  894. // label: 'label',
  895. // checkStrictly: true,
  896. // },
  897. optionPropsssdwg:{
  898. value: 'id',
  899. label: 'areaName',
  900. checkStrictly: true,
  901. },
  902. optionPropstwo: {
  903. value: 'id',
  904. label: 'label',
  905. children: 'children',
  906. checkStrictly: true
  907. },
  908. heuiq: [],
  909. typeOptions: [],
  910. typeOptionsty: [
  911. {
  912. dictValue: '是',
  913. dictLabel: '是'
  914. },
  915. {
  916. dictValue: '否',
  917. dictLabel: '否'
  918. }
  919. ],
  920. typeOptionstyzandeh:[],
  921. angesList: [
  922. ],
  923. typeOptionsname: [],
  924. typeOptionstimes: [],
  925. typeOptionsvaccinatio: [],
  926. typeOptionscont: [],
  927. typeOptionscontty: [],
  928. typeOptionscontqit:[],
  929. // 剂次
  930. typeOptionstimesgt: [
  931. {
  932. dictValue: '1',
  933. dictLabel: '1'
  934. },
  935. {
  936. dictValue: '2',
  937. dictLabel: '2'
  938. },
  939. {
  940. dictValue: '3',
  941. dictLabel: '3'
  942. },
  943. {
  944. dictValue: '加强针',
  945. dictLabel: '加强针'
  946. }
  947. ],
  948. imashow: false,
  949. naneme: false,
  950. shouwes: false,
  951. shouwestwo:false,
  952. villageTownshy: undefined,
  953. naiseurya: '',
  954. hsuej: '',
  955. jdourdjoaj: false,
  956. senlsduea:false,
  957. jiezhong: false,
  958. biangneg:false,
  959. jiezheList: [],
  960. fireLise:{config:[]},
  961. nameutaiL:0,
  962. jue:false,
  963. nhue:true,
  964. exportflag:true,
  965. errorlog:false,
  966. errorList:[],
  967. idfer:0,
  968. formgt:{},
  969. list: [],
  970. listd:[],
  971. lser:[],
  972. ndhesdweaf :'点击选择网格',
  973. dneyhsd:{},
  974. nhdyesfgh:'点击选择户籍地址',
  975. nhe:false,
  976. nhyesoder:0,
  977. ndhuwosdjh:{
  978. pageNum: 1,
  979. pageSize: 10,
  980. queryType:''
  981. },
  982. tableMaxHeight:300,
  983. cascaderKey:0,
  984. optionsLists:[],
  985. nhyeojd:false,
  986. ndhyuewkg:[],
  987. nhdyesku:false,
  988. nbdgywkajs:false,
  989. shifouh:true,
  990. bhdes:{},
  991. nhtrew:false,
  992. bgtes:[],
  993. ndheysfs:false,
  994. nhyesaw:1,
  995. nhyesfx:false,
  996. bgls:[],
  997. comind:false,
  998. nmkl:false,
  999. user:{},
  1000. qyhs:[],
  1001. isNucleicflag:false,//全员核酸禁用
  1002. };
  1003. },
  1004. created() {
  1005. // this.getList();
  1006. this.getListjuzhu()
  1007. // this.getTreeselectjue();
  1008. this.mnyesfjer(0)
  1009. this.mnyesfjerkl("340800000000")
  1010. this.mnyesfjerop(0)
  1011. this.mnyesfjeropwg(0)
  1012. this.getTreeselectjuetj()
  1013. // this.getTreeselect()
  1014. // 年龄阶段
  1015. this.getDicts('age_interval').then(response => {
  1016. this.angesList = response.data;
  1017. });
  1018. // 变更原因
  1019. // if(this.typeOptions.length == 0){
  1020. this.getDicts('person_type').then(response => {
  1021. this.typeOptions = response.data;
  1022. });
  1023. // }
  1024. getUserProfile().then(response => {
  1025. this.user = response.data;
  1026. });
  1027. // 全员核酸
  1028. this.getDicts('nucleic_acid').then(response => {
  1029. this.qyhs = response.data;
  1030. });
  1031. // this.form.province = this.selected[0];
  1032. // this.form.city = this.selected[1];
  1033. // this.form.region = this.selected[2];
  1034. console.log(this.selected,456)
  1035. console.log(this.cascaderKey,347)
  1036. // this.queryParams.province = this.selectedtwo[0];
  1037. // this.queryParams.city = this.selectedtwo[1];
  1038. // this.queryParams.region = this.selectedtwo[2];
  1039. // this.naiseurya = this.form.province + this.form.city + this.form.region;
  1040. window.onresize = () => {
  1041. this.changeTableMaxHeight()
  1042. }
  1043. this.changeTableMaxHeight()
  1044. },
  1045. mounted() {
  1046. console.log(136)
  1047. window.onresize = () => {
  1048. this.changeTableMaxHeight()
  1049. }
  1050. this.changeTableMaxHeight()
  1051. },
  1052. methods: {
  1053. // 获取猪舍
  1054. homeNameFormat(row, column) {
  1055. return this.selectDictLabel(this.typeOptions,row.status);
  1056. },
  1057. homeNameFormats(row, column) {
  1058. return this.selectDictLabel(this.qyhs,row.isNucleicAcidFive);
  1059. },
  1060. /** 初始化下拉框数据 **/
  1061. getRootModels() {
  1062. //初始化数据 只加载根节点
  1063. listRoleergth('0').then(response => {
  1064. // for(let index of response.data){
  1065. // let modeInfo = {} ;
  1066. // modeInfo.id = index.id
  1067. // modeInfo.label = index.name;
  1068. // modeInfo.children = null;
  1069. // this.rootOptions.push(modeInfo);
  1070. // }
  1071. for(var i = 0 ; i < this.form.czrkJzdzList.length ; i++){
  1072. // this.nameutaiL = i
  1073. // this.mnyesfjerty(0)
  1074. this.form.czrkJzdzList[i].optiodne.push(response.data)
  1075. }
  1076. });
  1077. },
  1078. /** 加载子节点数据 **/
  1079. loadOptions({ action, parentNode, callback }){
  1080. console.log(action,125)
  1081. if (action === "LOAD_CHILDREN_OPTIONS") {
  1082. //加载点击节点的 子节点
  1083. var ndhes = {}
  1084. ndhes.pid = parentNode.areaId
  1085. listRoleergth(ndhes).then(response => {
  1086. let arr = [];
  1087. arr = response.data
  1088. // for(let index of response.data){
  1089. // let chiledModeInfo = {} ;
  1090. // chiledModeInfo.id = index.id
  1091. // chiledModeInfo.label = index.name;
  1092. // chiledModeInfo.children = null;
  1093. // arr.push(chiledModeInfo);
  1094. // }
  1095. parentNode.children = arr;
  1096. });
  1097. callback();
  1098. }
  1099. },
  1100. onSelected(data,val) {
  1101. console.log(data, 125);
  1102. if(this.opens == false){
  1103. return false
  1104. }
  1105. this.nameutaiL = data
  1106. // console.log(this.nameutaiL,76543)
  1107. // console.log(this.form.czrkJzdzList[data].seleted)
  1108. // console.log(this.$refs['myCascaderf' + '' + data],123)
  1109. // console.log(this.$refs['myCascaderf' + '' + data][0].$refs.panel.checkedValue,data)
  1110. // console.log(this.$refs['myCascaderf' + '' + data][0].getCheckedNodes()[0].pathLabels)
  1111. // if(data !== 0){
  1112. // if(this.nhyeojd = true){
  1113. // this.$refs['myCascaderf' + '' + this.nameutaiL][0].$refs.panel.clearCheckedNodes()
  1114. // }
  1115. // }
  1116. // var nhedse = []
  1117. // nhedse = this.$refs['myCascaderf']
  1118. // if(nhedse.length > 1){
  1119. // this.$refs['myCascaderf'] = this.$refs['myCascaderf'][0];
  1120. // console.log(this.$refs['myCascaderf'],133)
  1121. // // for(var i = 0 ; i < nhedse.length; i++){
  1122. // // if(i == 0){
  1123. // // this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes()
  1124. // // }
  1125. // // }
  1126. // }
  1127. // this.$refs['myCascaderf'][0].$refs.panel.checkedValue = this.form.czrkJzdzList[data].seleted
  1128. // console.log(this.$refs['myCascaderf'][0].$refs.panel.checkedValue,data)
  1129. // console.log(this.$refs['myCascaderf'][0].getCheckedNodes()[0].pathLabels)
  1130. this.nhyeojd = false
  1131. // this.nhdyesku = false
  1132. // province
  1133. let nhdye = []
  1134. nhdye = this.$refs['myCascaderf' + '' + data][0].getCheckedNodes()[0].pathLabels
  1135. let nhyhe = []
  1136. nhyhe = this.form.czrkJzdzList[data].seleted
  1137. if(nhdye.length == 1){
  1138. this.form.czrkJzdzList[data].provinceId = nhyhe[ nhyhe.length - 1];
  1139. this.form.czrkJzdzList[data].province = nhdye[ nhdye.length - 1];
  1140. this.form.czrkJzdzList[data].cityId = null
  1141. this.form.czrkJzdzList[data].city = null
  1142. this.form.czrkJzdzList[data].regionId = null
  1143. this.form.czrkJzdzList[data].region = null
  1144. this.form.czrkJzdzList[data].townId = null
  1145. this.form.czrkJzdzList[data].town = null
  1146. this.form.czrkJzdzList[data].villageId = null
  1147. this.form.czrkJzdzList[data].village = null
  1148. }else if(nhdye.length == 2){
  1149. this.form.czrkJzdzList[data].cityId = nhyhe[ nhyhe.length - 1];
  1150. this.form.czrkJzdzList[data].city = nhdye[ nhdye.length - 1];
  1151. this.form.czrkJzdzList[data].regionId = null
  1152. this.form.czrkJzdzList[data].region = null
  1153. this.form.czrkJzdzList[data].townId = null
  1154. this.form.czrkJzdzList[data].town = null
  1155. this.form.czrkJzdzList[data].villageId = null
  1156. this.form.czrkJzdzList[data].village = null
  1157. }else if(nhdye.length == 3){
  1158. this.form.czrkJzdzList[data].regionId = nhyhe[ nhyhe.length - 1];
  1159. this.form.czrkJzdzList[data].region = nhdye[ nhdye.length - 1];
  1160. this.form.czrkJzdzList[data].townId = null
  1161. this.form.czrkJzdzList[data].town = null
  1162. this.form.czrkJzdzList[data].villageId = null
  1163. this.form.czrkJzdzList[data].village = null
  1164. }else if(nhdye.length == 4){
  1165. this.form.czrkJzdzList[data].townId = nhyhe[ nhyhe.length - 1];
  1166. this.form.czrkJzdzList[data].town = nhdye[ nhdye.length - 1];
  1167. this.form.czrkJzdzList[data].villageId = null
  1168. this.form.czrkJzdzList[data].village = null
  1169. }else if(nhdye.length == 5){
  1170. this.form.czrkJzdzList[data].villageId = nhyhe[ nhyhe.length - 1];
  1171. this.form.czrkJzdzList[data].village = nhdye[ nhdye.length - 1];
  1172. }
  1173. this.form.czrkJzdzList[data].deptId = nhyhe[ nhyhe.length - 1]
  1174. // id
  1175. // this.form.province = data[0];
  1176. // this.form.city = data[1];
  1177. // this.form.region = data[2];
  1178. // 名称
  1179. // this.naiseurya = this.form.province + this.form.city + this.form.region;
  1180. // if (this.jdourdjoaj == false) {
  1181. // // 修改
  1182. // this.form.nowIn = '';
  1183. // }
  1184. // this.form.nowIn = undefined
  1185. // this.form.villageTowns = data[3]
  1186. console.log(this.form)
  1187. },
  1188. dakousr() {
  1189. console.log(2345);
  1190. },
  1191. mnyesfjer(index,val){
  1192. this.loading = true;
  1193. let pids = {}
  1194. pids.pid = index
  1195. listRoleergth(pids).then(response => {
  1196. // this.cascaderKey = this.cascaderKey + 1
  1197. if(response.data.length == 0){
  1198. return
  1199. }
  1200. if(val !== undefined){
  1201. this.nameutaiL = val
  1202. }
  1203. console.log(this.nameutaiL,87)
  1204. this.form.czrkJzdzList[this.nameutaiL].optiodne = this.handleData(response.data);
  1205. this.optionsList = this.handleData(response.data);
  1206. this.loading = false;
  1207. });
  1208. },
  1209. mnyesfjerkl(index,val){
  1210. this.loading = true;
  1211. let pids = {}
  1212. pids.pid = index
  1213. listRoleergth(pids).then(response => {
  1214. // this.cascaderKey = this.cascaderKey + 1
  1215. if(response.data.length == 0){
  1216. return
  1217. }
  1218. if(val !== undefined){
  1219. this.nameutaiL = val
  1220. }
  1221. this.optionsListkl = this.handleData(response.data);
  1222. this.loading = false;
  1223. });
  1224. },
  1225. mnyesfjerty(index,val){
  1226. this.loading = true;
  1227. let pids = {}
  1228. pids.pid = index
  1229. listRoleergth(pids).then(response => {
  1230. // this.cascaderKey = this.cascaderKey + 1
  1231. if(response.data.length == 0){
  1232. return false
  1233. }
  1234. for(var i = 0 ; i < this.form.czrkJzdzList.length ; i++){
  1235. // this.nameutaiL = i
  1236. // this.mnyesfjerty(0)
  1237. console.log(i,7528)
  1238. this.form.czrkJzdzList[i].optiodne = this.handleData(response.data);
  1239. }
  1240. // this.form.czrkJzdzList[0].optiodne
  1241. this.loading = false;
  1242. console.log(this.cascaderKey,8765)
  1243. });
  1244. },
  1245. mnyesfjerop(index){
  1246. this.loading = true;
  1247. let pids = {}
  1248. pids.pid = index
  1249. listRoleergth(pids).then(response => {
  1250. this.optionsLists = this.handleData(response.data)
  1251. this.loading = false;
  1252. });
  1253. },
  1254. mnyesfjeropwg(index){
  1255. this.loading = true;
  1256. let pids = {}
  1257. pids.pid= index
  1258. listRoleergthwg(pids).then(response => {
  1259. this.optionsListwg = this.handleDatawg(response.data);
  1260. this.loading = false;
  1261. });
  1262. },
  1263. mnyesfjers(index){
  1264. this.loading = true;
  1265. let pids = {}
  1266. pids.pid = index
  1267. listRoleergth(pids).then(response => {
  1268. // this.cascaderKey = this.cascaderKey + 1
  1269. if(response.data.length == 0){
  1270. return
  1271. }
  1272. this.loading = false;
  1273. console.log(this.cascaderKey,8765)
  1274. });
  1275. },
  1276. idjeus(data){
  1277. console.log(data,2347)
  1278. // this.cascaderKey = this.cascaderKey + 1
  1279. },
  1280. format() {
  1281. let res = this.getfristChild(); // 拿一级数据
  1282. this.list.forEach((item) => {
  1283. // 遍历回显的id 二维数组
  1284. if (item.length > 1) {
  1285. item.forEach(async (sitem, index) => {
  1286. if (index == item.length - 1) {
  1287. return; // 如果是一级节点就不用查找了
  1288. }
  1289. let arr = this.getOther(sitem); // 不是一级,获取子级
  1290. this.findItem(res, arr, sitem); // 判断当前拿到的子级数据属于哪个一级数据下的子级,并且加到当前一级的children属性下
  1291. });
  1292. }
  1293. });
  1294. },
  1295. // 递归判断
  1296. findItem(res, arr, id) {
  1297. for (let i = 0; i < res.length; i++) {
  1298. if (res[i].value === id) {
  1299. res[i].children = arr; // 有chidlren 也要判断是不是这个children下的子级
  1300. return res;
  1301. }
  1302. if (res[i].children) {
  1303. this.findItem(res[i].children, arr, id);
  1304. }
  1305. }
  1306. return res;
  1307. },
  1308. // getAddress() {
  1309. // this.mnyesfjer(0).then(res => {
  1310. // this.optionsList = this.handleData(res.data);
  1311. // }).catch(err => {
  1312. // })
  1313. // },
  1314. handleItemChange(val) {
  1315. console.log(val,235)
  1316. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  1317. let level = val.length + 1; //需请求第几级地址
  1318. console.log(this.nameutaiL,2345)
  1319. console.log(this.form.czrkJzdzList,12365)
  1320. this.nameutaiL = this.nameutaiL - 0
  1321. this.$set(this.form.czrkJzdzList[this.nameutaiL],'optiodne',this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level))
  1322. },
  1323. handleItemChangefr(val) {
  1324. console.log(val,235)
  1325. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  1326. let level = val.length + 1; //需请求第几级地址
  1327. this.optionsList = this.handleData(this.optionsList, code, level);
  1328. },
  1329. handleItemChangefrkl(val) {
  1330. console.log(val,235)
  1331. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  1332. let level = val.length + 1; //需请求第几级地址
  1333. this.optionsListkl = this.handleData(this.optionsListkl, code, level);
  1334. },
  1335. handleItemChanges(val) {
  1336. console.log(val,235)
  1337. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  1338. let level = val.length + 1; //需请求第几级地址
  1339. this.optionsLists = this.handleData(this.optionsLists, code, level);
  1340. this.cascaderKey = this.cascaderKey + 1
  1341. },
  1342. handleData(data, val, level) {
  1343. console.log(data,val,level,7536)
  1344. for (let i = 0; i < data.length; i++) {
  1345. if(!data[i].children) {
  1346. this.$set(data[i], 'children', []);
  1347. }
  1348. if(data[i].areaId === val){
  1349. let vfer = {}
  1350. vfer.pid = val
  1351. listRoleergth(vfer).then(res => {
  1352. // this.cascaderKey = this.cascaderKey + 1
  1353. if(res.data.length) {
  1354. console.log(data[i].children,4567)
  1355. // data[i].children = res.data;
  1356. this.$set(data[i], 'children', res.data)
  1357. console.log(data[i].children,45678)
  1358. // this.nhdyesku = true
  1359. data[i].children.forEach(ele => {
  1360. this.$set(ele, 'children', [])
  1361. });
  1362. }else {
  1363. data[i].children = undefined;
  1364. }
  1365. }).catch(err => {
  1366. });
  1367. }else {
  1368. if(data[i].children.length){
  1369. this.handleData(data[i].children,val,level)
  1370. }
  1371. }
  1372. }
  1373. return data;
  1374. },
  1375. handleItemChangefrwg(val) {
  1376. console.log(val,235)
  1377. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  1378. let level = val.length + 1; //需请求第几级地址
  1379. this.optionsListwg = this.handleDatawg(this.optionsListwg, code, level);
  1380. },
  1381. handleDatawg(data, val, level) {
  1382. console.log(data,val,level,7536)
  1383. for (let i = 0; i < data.length; i++) {
  1384. if(!data[i].children) {
  1385. this.$set(data[i], 'children', []);
  1386. }
  1387. if(data[i].id === val){
  1388. let vfer = {}
  1389. vfer.pid = val
  1390. listRoleergthwg(vfer).then(res => {
  1391. // this.cascaderKey = this.cascaderKey + 1
  1392. if(res.data.length) {
  1393. console.log(data[i].children,4567)
  1394. // data[i].children = res.data;
  1395. this.$set(data[i], 'children', res.data)
  1396. console.log(data[i].children,45678)
  1397. this.nhdyesku = true
  1398. data[i].children.forEach(ele => {
  1399. this.$set(ele, 'children', [])
  1400. });
  1401. }else {
  1402. data[i].children = undefined;
  1403. }
  1404. }).catch(err => {
  1405. });
  1406. }else {
  1407. if(data[i].children.length){
  1408. this.handleDatawg(data[i].children,val,level)
  1409. }
  1410. }
  1411. }
  1412. return data;
  1413. },
  1414. onSelectedtwo(data) {
  1415. console.log(data);
  1416. // province
  1417. this.queryParams.province = data[0];
  1418. this.queryParams.city = data[1];
  1419. this.queryParams.region = data[2];
  1420. // this.queryParams.villageTowns = data[3]
  1421. },
  1422. /** 查询户籍疫苗信息列表 */
  1423. getList() {
  1424. this.loading = true;
  1425. this.nbdgywkajs = true
  1426. // this.total = 0
  1427. console.log(this.queryParams.pageNum);
  1428. listInfo(this.queryParams).then(response => {
  1429. console.log(this.queryParams.pageNum);
  1430. this.infoList = response.rows;
  1431. this.total = response.total;
  1432. this.loading = false;
  1433. console.log(this.queryParams.pageNum);
  1434. this.nbdgywkajs = true
  1435. });
  1436. },
  1437. /** 查询居住疫苗信息列表 */
  1438. getListjuzhu() {
  1439. this.loading = true;
  1440. this.nbdgywkajs = true
  1441. // this.total = 0
  1442. listInfos(this.queryParams).then(response => {
  1443. this.infoList = response.rows;
  1444. this.nbdgywkajs = true
  1445. this.total = response.total;
  1446. this.loading = false;
  1447. });
  1448. },
  1449. // 查询历史变更
  1450. getListls(row) {
  1451. this.loading = true;
  1452. // this.nbdgywkajs = true
  1453. this.biangneg = true
  1454. listInfosls(row).then(response => {
  1455. this.bgls = response.data;
  1456. // this.nbdgywkajs = true
  1457. // this.total = response.total;
  1458. this.loading = false;
  1459. });
  1460. },
  1461. getToken() {
  1462. return getToken();
  1463. },
  1464. getTreeselectjue() {
  1465. this.loading = true;
  1466. let pids = {}
  1467. pids.pid = 0
  1468. listRoleer().then(response => {
  1469. this.options = response.data;
  1470. this.loading = false;
  1471. });
  1472. },
  1473. // 统计数据
  1474. getTreeselectjuetj() {
  1475. this.loading = true;
  1476. this.dneyhsd = []
  1477. listInfotj().then(response => {
  1478. if(response.data !== undefined){
  1479. this.dneyhsd = response.data
  1480. }else{
  1481. this.dneyhsd.push({dqdw:null,zhen:null,cun:null,zu:null,czzrs:null,czxz:null,czjs:null,hjzrs:null,hjxz:null,dneyhsd:null})
  1482. }
  1483. this.loading = false;
  1484. });
  1485. },
  1486. // 点击组/角色
  1487. djieskle(node, instanceId) {
  1488. // this.personnel(node.id);
  1489. console.log(node, instanceId);
  1490. },
  1491. nhyu(value, instanceId){
  1492. console.log(value, instanceId);
  1493. },
  1494. // 身份证
  1495. idcde(event) {
  1496. console.log(event);
  1497. // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
  1498. let reg = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
  1499. let _IDre15 = /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/;
  1500. // 护照
  1501. // let ncjsle = /^1[45][0-9]{7}$|(^[P|p|S|s]\d{7}$)|(^[S|s|G|g|E|e]\d{8}$)|(^[Gg|Tt|Ss|Ll|Qq|Dd|Aa|Ff]\d{8}$)|(^[H|h|M|m]\d{8,10}$)/;
  1502. let ncjsle = /^[a-zA-Z0-9]{5,17}$/
  1503. let nhyeli = /^[a-zA-Z]{5,17}$/
  1504. // 港澳
  1505. let gnse = /^([A-Z]\d{6,10}(\(\w{1}\))?)$/;
  1506. // 台湾
  1507. // let tw = /^\d{8}|^[a-zA-Z0-9]{10}|^\d{18}$/
  1508. var tw = /^[0-9]{8}$/;
  1509. var twe = /^[0-9]{10}$/;
  1510. // 校验身份证:
  1511. console.log(reg.test(this.form.idCard),23741)
  1512. if ( reg.test(this.form.idCard)|| _IDre15.test(this.form.idCard)) {
  1513. this.idea();
  1514. // this.go(this.form.idCard.length);
  1515. // callback()
  1516. } else {
  1517. if(ncjsle.test(this.form.idCard) || nhyeli.test(this.form.idCard)){
  1518. console.log(3)
  1519. }else{
  1520. if(gnse.test(this.form.idCard) ){
  1521. console.log(4)
  1522. }else{
  1523. if(tw.test(this.form.idCard) || twe.test(this.form.idCard)){
  1524. console.log(5)
  1525. }else{
  1526. this.msgInfo('证件格式不正确');
  1527. }
  1528. // return false
  1529. }
  1530. }
  1531. // callback(new Error('身份证号码不正确'))
  1532. }
  1533. },
  1534. // 实现自动生成生日,性别,年龄
  1535. go(val) {
  1536. let iden = this.form.idCard;
  1537. let sex = null;
  1538. let birth = null;
  1539. let birthr = '';
  1540. let myDate = new Date();
  1541. let month = myDate.getMonth() + 1;
  1542. let day = myDate.getDate();
  1543. let age = 0;
  1544. if (val === 18) {
  1545. age = myDate.getFullYear() - iden.substring(6, 10) - 1;
  1546. sex = iden.substring(16, 17);
  1547. birth = iden.substring(6, 10) + '-' + iden.substring(10, 12) + '-' + iden.substring(12, 14);
  1548. if (iden.substring(10, 12) < month || (iden.substring(10, 12) == month && iden.substring(12, 14) <= day)) age++;
  1549. }
  1550. if (val === 15) {
  1551. age = myDate.getFullYear() - iden.substring(6, 8) - 1901;
  1552. sex = iden.substring(13, 14);
  1553. birth = '19' + iden.substring(6, 8) + '-' + iden.substring(8, 10) + '-' + iden.substring(10, 12);
  1554. if (iden.substring(8, 10) < month || (iden.substring(8, 10) == month && iden.substring(10, 12) <= day)) age++;
  1555. }
  1556. if (sex % 2 === 0) sex = '女';
  1557. else sex = '男';
  1558. this.form.gender = sex;
  1559. // this.baseInfo.age = age;
  1560. birthr = birth + '';
  1561. console.log(birthr);
  1562. // this.form.birthday = birthr;
  1563. // this.$set(this.form.birthday, birthr)
  1564. // this.baseInfo.birthplace = this.area[iden.substring(0,2)];
  1565. },
  1566. // 请求身份证数据
  1567. idea() {
  1568. idces({ idCard: this.form.idCard }).then(response => {
  1569. console.log(response);
  1570. this.form.gender = response.data.gender;
  1571. // this.form.birthday = response.data.birthday;
  1572. this.form.age = response.data.age
  1573. if(response.data.code !== null){
  1574. this.$set(this.form, 'code', response.data.code)
  1575. // this.form.code = response.data.code
  1576. }
  1577. if (response.data.userName == null) {
  1578. // this.form.userName = undefined;
  1579. // this.$set(this.form, 'userName', null)
  1580. } else {
  1581. // this.form
  1582. // this.form.userName = response.data.userName;
  1583. this.$set(this.form, 'userName', response.data.userName)
  1584. }
  1585. // if(response.data.code == null){
  1586. // // this.form.code = this.form.idCard
  1587. // }else{
  1588. // this.form.code = response.data.code;
  1589. // }
  1590. // if(response.data.province == null){
  1591. // // this.form.province = null;
  1592. // // this.form.provinceId = null;
  1593. // this.$set(this.form, 'province', null)
  1594. // this.$set(this.form, 'provinceId', null)
  1595. // }else{
  1596. // this.form.province = response.data.province;
  1597. // this.form.provinceId = response.data.provinceId;
  1598. // this.$set(this.form, 'province', response.data.province)
  1599. // this.$set(this.form, 'provinceId', response.data.provinceId)
  1600. // }
  1601. // if(response.data.city == null){
  1602. // // this.form.city = null;
  1603. // // this.form.cityId = null;
  1604. // this.$set(this.form, 'city', null)
  1605. // this.$set(this.form, 'cityId', null)
  1606. // }else{
  1607. // // this.form.city = response.data.city;
  1608. // // this.form.cityId = response.data.cityId;
  1609. // this.$set(this.form, 'city', response.data.city)
  1610. // this.$set(this.form, 'cityId', response.data.cityId)
  1611. // }
  1612. // if(response.data.region == null){
  1613. // // this.form.region = null;
  1614. // // this.form.regionId = null;
  1615. // this.$set(this.form, 'region', null)
  1616. // this.$set(this.form, 'regionId', null)
  1617. // }else{
  1618. // // this.form.region = response.data.region;
  1619. // // this.form.regionId = response.data.regionId;
  1620. // this.$set(this.form, 'region', response.data.region)
  1621. // this.$set(this.form, 'regionId', response.data.regionId)
  1622. // }
  1623. // if(response.data.villageTowns == null){
  1624. // // this.form.villageTowns = null;
  1625. // // this.form.villageTownsId = null;
  1626. // this.$set(this.form, 'villageTowns', null)
  1627. // this.$set(this.form, 'villageTownsId', null)
  1628. // }else{
  1629. // // this.form.villageTowns = response.data.villageTowns;
  1630. // // this.form.villageTownsId = response.data.villageTownsId;
  1631. // this.$set(this.form, 'villageTowns', response.data.villageTowns)
  1632. // this.$set(this.form, 'villageTownsId', response.data.villageTownsId)
  1633. // }
  1634. // if(response.data.village == null){
  1635. // // this.form.village = null;
  1636. // // this.form.villageId = null;
  1637. // this.$set(this.form, 'village', null)
  1638. // this.$set(this.form, 'villageId', null)
  1639. // }else{
  1640. // // this.form.village = response.data.village;
  1641. // // this.form.villageId = response.data.villageId;
  1642. // this.$set(this.form, 'village', response.data.village)
  1643. // this.$set(this.form, 'villageId', response.data.villageId)
  1644. // }
  1645. // if(response.data.villagerGroupId == null){
  1646. // // this.form.villagerGroup = null;
  1647. // // this.form.villagerGroupId = null;
  1648. // this.$set(this.form, 'villagerGroup', null)
  1649. // this.$set(this.form, 'villagerGroupId', null)
  1650. // }else{
  1651. // // this.form.villagerGroup = response.data.villagerGroup;
  1652. // // this.form.villagerGroupId = response.data.villagerGroupId;
  1653. // this.$set(this.form, 'villagerGroup', response.data.villagerGroup)
  1654. // this.$set(this.form, 'villagerGroupId', response.data.villagerGroupId)
  1655. // }
  1656. // if(response.data.province !== null && response.data.province !== ""){
  1657. // console.log(3456)
  1658. // this.nhdyesfgh = response.data.province;
  1659. // if(response.data.city !== null && response.data.city !== ""){
  1660. // this.nhdyesfgh = response.data.province + '/' + response.data.city;
  1661. // if(response.data.region !== null && response.data.region !== ""){
  1662. // this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region;
  1663. // if(this.form.villageTowns !==null && this.form.villageTowns !=='' && this.form.villageTowns !== undefined){
  1664. // this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.villageTowns;
  1665. // if(this.form.village !==null && this.form.village !=='' && this.form.village !== undefined){
  1666. // this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.villageTowns + '/' + this.form.village;
  1667. // }
  1668. // }
  1669. // }else{
  1670. // // this.nhdyesfgh ='点击选择居住地址'
  1671. // }
  1672. // }else{
  1673. // // this.nhdyesfgh ='点击选择居住地址'
  1674. // }
  1675. // }else{
  1676. // console.log(34566)
  1677. // this.nhdyesfgh ='点击选择户籍地址'
  1678. // this.nhyeswdga = []
  1679. // }
  1680. // if( response.data.czrkJzdzList !== null && response.data.czrkJzdzList.length !== 0 ){
  1681. // // this.selected[0] = response.data.province;
  1682. // // for(var i = 0 ; i < response.data.czrkJzdzList.length ; i++){
  1683. // // this.nameutaiL = i
  1684. // this.mnyesfjerty(0)
  1685. // // }
  1686. // response.data.czrkJzdzList.filter(route =>{
  1687. // route.seleted = []
  1688. // if(route.province !== ""){
  1689. // route.plaed = route.province
  1690. // if(route.city !== ""){
  1691. // route.plaed = route.plaed + '/' + route.city
  1692. // if(route.city !== ""){
  1693. // // route.plaed = route.plaed + '/' + route.city
  1694. // if(route.region !== ""){
  1695. // route.plaed = route.plaed + '/' + route.region
  1696. // if(route.town !== ""){
  1697. // route.plaed = route.plaed + '/' + route.town
  1698. // if(route.village !== ""){
  1699. // route.plaed = route.plaed + '/' + route.village
  1700. // }
  1701. // }
  1702. // }
  1703. // }
  1704. // }
  1705. // }else{
  1706. // route.plaed = '请选择居住地址'
  1707. // }
  1708. // })
  1709. // this.form.czrkJzdzList = response.data.czrkJzdzList
  1710. // }
  1711. if(this.form.phoneNum == null){
  1712. this.form.phoneNum = response.data.phoneNum
  1713. }
  1714. if(this.form.phoneNum == ''){
  1715. this.form.phoneNum = response.data.phoneNum
  1716. }
  1717. if(response.data.houseType !==null){
  1718. this.form.houseType = response.data.houseType
  1719. }
  1720. if(response.data.nowIn !== nuill){
  1721. this.form.nowIn = response.data.nowIn
  1722. }
  1723. if(response.data.remark !== nuill){
  1724. this.form.remark = response.data.remark
  1725. }
  1726. });
  1727. },
  1728. // 取消按钮
  1729. cancel() {
  1730. this.opens = false;
  1731. this.jiezhong = false;
  1732. this.biangneg = false;
  1733. this.imashow = false;
  1734. this.errorlog=false;
  1735. this.nhyesfx = false
  1736. this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  1737. // this.reset();
  1738. },
  1739. gywoa() {
  1740. console.log(this.form.isVaccination);
  1741. if (this.form.isVaccination !== null) {
  1742. if (this.form.isVaccination == '是') {
  1743. // 接种疫苗
  1744. this.naneme = false,
  1745. this.shouwes = true;
  1746. }else {
  1747. this.naneme = true,
  1748. this.shouwes = false,
  1749. this.form.czrkJzdzList = [{
  1750. provinceId: '',
  1751. province: '',
  1752. deptId: '',
  1753. cityId: '',
  1754. city: '',
  1755. regionId:'',
  1756. region: '',
  1757. townId: '',
  1758. town: '',
  1759. villageId: '',
  1760. village: '',
  1761. nowIn:'',
  1762. seleted:[],
  1763. optiodne:[],
  1764. plaed:'请选择居住地址',
  1765. }
  1766. ]
  1767. }
  1768. }
  1769. },
  1770. gywoatwo() {
  1771. console.log(this.queryParams.isVaccination);
  1772. if (this.queryParams.isVaccination !== null) {
  1773. if (this.queryParams.isVaccination == '是') {
  1774. // 接种疫苗
  1775. // (this.naneme = false), (this.shouwes = true);
  1776. this.shouwestwo = false
  1777. } else {
  1778. // (this.naneme = true), (this.shouwes = false);
  1779. this.shouwestwo = true
  1780. }
  1781. }
  1782. },
  1783. // 表单重置
  1784. reset() {
  1785. this.form = {
  1786. id: undefined,
  1787. age:'',
  1788. code:'',
  1789. houseType: '是',
  1790. domicile: undefined,
  1791. province: undefined,
  1792. city: undefined,
  1793. region: undefined,
  1794. userName: undefined,
  1795. gender: undefined,
  1796. idCard: undefined,
  1797. phoneNum: undefined,
  1798. keyIndustries: undefined,
  1799. isVaccination: undefined,
  1800. vaccinationPlace: undefined,
  1801. contraindication: undefined,
  1802. nowIn: '',
  1803. isConfirm:undefined,
  1804. gridId:undefined,
  1805. remark: undefined,
  1806. villageTowns:undefined,
  1807. village:undefined,
  1808. isNucleicAcidFive:'1',
  1809. czrkJzdzList: [
  1810. {
  1811. provinceId: '',
  1812. province: '',
  1813. deptId: '',
  1814. cityId: '',
  1815. city: '',
  1816. regionId:'',
  1817. region: '',
  1818. townId: '',
  1819. town: '',
  1820. villageId: '',
  1821. village: '',
  1822. nowIn:'',
  1823. disableg:false,
  1824. optiodne:[],
  1825. seleted:[],
  1826. plaed:'请选择居住地址',
  1827. }
  1828. ]
  1829. };
  1830. this.resetForm('form');
  1831. },
  1832. /** 搜索按钮操作 */
  1833. handleQuery() {
  1834. this.queryParams.pageNum = 1;
  1835. console.log(this.queryParams)
  1836. if(this.queryParams.queryType == 'hj'){
  1837. this.getList();
  1838. }else if(this.queryParams.queryType == 'cz'){
  1839. this.getListjuzhu();
  1840. }
  1841. // this.getList();
  1842. },
  1843. /** 重置按钮操作 */
  1844. resetQuery() {
  1845. this.nhue = false
  1846. this.selectedtwo = []
  1847. setTimeout( ()=>{
  1848. this.nhue = true
  1849. },100)
  1850. this.queryParams.province = undefined; this.queryParams.city = undefined; this.queryParams.region = undefined;
  1851. this.queryParams.deptId = undefined
  1852. this.queryParams.provinceIdXjd = undefined
  1853. this.queryParams.cityIdXjd = undefined
  1854. this.queryParams.regionIdXjd = undefined
  1855. this.queryParams.villageTownsIdXjd = undefined
  1856. this.queryParams.villageIdXjd = undefined;
  1857. this.queryParams.provinceId = undefined
  1858. this.queryParams.cityId = undefined
  1859. this.queryParams.regionId = undefined
  1860. this.queryParams.villageTownsId = undefined
  1861. this.queryParams.villageId = undefined
  1862. this.queryParams.isNucleicAcid = undefined
  1863. this.listd = []
  1864. this.lser = []
  1865. this.resetForm('queryForm');
  1866. this.handleQuery();
  1867. },
  1868. // 多选框选中数据
  1869. handleSelectionChange(selection) {
  1870. this.ids = selection.map(item => item.id);
  1871. this.cards=selection.map(item => item.idCard);
  1872. this.single = selection.length !== 1;
  1873. this.multiple = !selection.length;
  1874. },
  1875. /** 新增按钮操作 */
  1876. handleAdd(data) {
  1877. this.form = {}
  1878. // this.nhyeswdga = []
  1879. if(this.typeOptionsname.length == 0){
  1880. this.getDicts('renyuanfenlei').then(response => {
  1881. this.typeOptionsname = response.data;
  1882. });
  1883. }
  1884. if(this.typeOptionstyzandeh.length == 0){
  1885. // 与户主关系
  1886. this.getDicts('yuhuzhuguanxi').then(response => {
  1887. this.typeOptionstyzandeh = response.data;
  1888. });
  1889. }
  1890. this.mnyesfjer(0)
  1891. this.$set(this.nhyeswdga, 'nhus', [])
  1892. this.$nextTick(() =>{
  1893. this.$refs.myCascader.$refs.panel.clearCheckedNodes()
  1894. this.$refs.myCascader.$refs.panel.activePath = []
  1895. })
  1896. this.nhyesfx = true
  1897. this.shifouh = true
  1898. console.log(this.nhyeswdga)
  1899. // this.reset();
  1900. // this.form.czrkJzdzList = [
  1901. // {
  1902. // provinceId: '',
  1903. // province: '',
  1904. // deptId: '',
  1905. // cityId: '',
  1906. // city: '',
  1907. // regionId:'',
  1908. // region: '',
  1909. // townId: '',
  1910. // town: '',
  1911. // villageId: '',
  1912. // village: '',
  1913. // nowIn:'',
  1914. // disableg:false,
  1915. // optiodne:[],
  1916. // seleted:[],
  1917. // plaed:'请选择居住地址',
  1918. // }
  1919. // ]
  1920. this.$set(this.form, 'czrkJzdzList', [
  1921. {
  1922. provinceId: '',
  1923. province: '',
  1924. deptId: '',
  1925. cityId: '',
  1926. city: '',
  1927. regionId:'',
  1928. region: '',
  1929. townId: '',
  1930. town: '',
  1931. villageId: '',
  1932. village: '',
  1933. nowIn:'',
  1934. disableg:false,
  1935. optiodne:[],
  1936. seleted:[],
  1937. plaed:'请选择居住地址',
  1938. }
  1939. ])
  1940. this.form.id = null
  1941. // this.form.age=''
  1942. this.$set(this.form, 'age', null)
  1943. // this.form.code=''
  1944. this.$set(this.form, 'code', null)
  1945. this.$set(this.form, 'houseType', '否')
  1946. // this.form.houseType= '是'
  1947. // this.form.domicile= null
  1948. this.$set(this.form, 'domicile', null)
  1949. // this.form.province= null
  1950. this.$set(this.form, 'province', null)
  1951. // this.form.city= null
  1952. this.$set(this.form, 'city', null)
  1953. // this.form.region= null
  1954. this.$set(this.form, 'region', null)
  1955. // this.form.userName= null
  1956. this.$set(this.form, 'userName', null)
  1957. // this.form.gender= null
  1958. this.$set(this.form, 'gender', null)
  1959. // this.form.idCard= null
  1960. this.$set(this.form, 'idCard', null)
  1961. this.$set(this.form, 'phoneNum', null)
  1962. // this.form.phoneNum= null
  1963. // this.form.keyIndustries= null
  1964. this.$set(this.form, 'keyIndustries', null)
  1965. // this.form.isVaccination= null
  1966. this.$set(this.form, 'isVaccination', null)
  1967. // this.form.vaccinationPlace= null
  1968. this.$set(this.form, 'vaccinationPlace', null)
  1969. // this.form.contraindication= null
  1970. this.$set(this.form, 'contraindication', null)
  1971. // this.form.nowIn= ''
  1972. this.$set(this.form, 'nowIn', '')
  1973. // this.form.isConfirm=null
  1974. this.$set(this.form, 'isConfirm', null)
  1975. // this.form.gridId=null
  1976. this.$set(this.form, 'gridId', null)
  1977. // this.form.remark= null
  1978. this.$set(this.form, 'remark', null)
  1979. // this.form.villageTowns=null
  1980. this.$set(this.form, 'villageTowns', null)
  1981. // this.form.village=null
  1982. this.$set(this.form, 'village', null)
  1983. this.$set(this.form, 'isNucleicAcidFive', '1')
  1984. this.loading = false
  1985. console.log(data)
  1986. this.opens = true;
  1987. (this.naneme = false),
  1988. (this.shouwes = false);
  1989. // this.form.province = this.selected[0];
  1990. this.villageTownshy = '';
  1991. this.naiseurya = '';
  1992. this.hsuej = '';
  1993. // this.form.city = this.selected[1];
  1994. // this.form.region = this.selected[2];
  1995. this.isNucleicflag=false;
  1996. this.title = '添加信息';
  1997. this.jdourdjoaj = true;
  1998. this.senlsduea = false
  1999. this.jiezhong = false
  2000. this.jue = true
  2001. this.nhdyesfgh = '点击选择户籍地址'
  2002. this.ndhesdweaf = '点击选择网格'
  2003. this.nameutaiL = 0
  2004. // this.nhduesw = this.nhduesw + 1
  2005. this.nhtrew = false
  2006. // this.form.province = '安徽省';
  2007. // this.form.city = '安庆市';
  2008. // this.form.region = '潜山市';
  2009. // this.form.villageTowns = '梅城镇';
  2010. // this.form.village = '龙井社区';
  2011. // this.nhdyesfgh = this.form.province + '/' + this.form.city + '/' + this.form.region + '/' + this.form.villageTowns + '/' + this.form.village;
  2012. if(data !== 0){
  2013. this.form.code = data.code
  2014. // this.form.houseType = '否'
  2015. this.$set(this.form, 'houseType', '否')
  2016. }else{
  2017. // this.form.houseType = '是'
  2018. this.$set(this.form, 'houseType', '是')
  2019. }
  2020. console.log(this.form)
  2021. },
  2022. /** 修改按钮操作 */
  2023. handleUpdate(row) {
  2024. this.opens = true;
  2025. this.isNucleicflag=false;
  2026. this.form = {}
  2027. if(this.typeOptionsname.length == 0){
  2028. this.getDicts('renyuanfenlei').then(response => {
  2029. this.typeOptionsname = response.data;
  2030. });
  2031. }
  2032. if(this.typeOptionstyzandeh.length == 0){
  2033. // 与户主关系
  2034. this.getDicts('yuhuzhuguanxi').then(response => {
  2035. this.typeOptionstyzandeh = response.data;
  2036. });
  2037. }
  2038. this.$set(this.form, 'czrkJzdzList', [
  2039. {
  2040. provinceId: '',
  2041. province: '',
  2042. deptId: '',
  2043. cityId: '',
  2044. city: '',
  2045. regionId:'',
  2046. region: '',
  2047. townId: '',
  2048. town: '',
  2049. villageId: '',
  2050. village: '',
  2051. nowIn:'',
  2052. disableg:false,
  2053. optiodne:[],
  2054. seleted:[],
  2055. plaed:'请选择居住地址',
  2056. }
  2057. ])
  2058. this.form.id = null
  2059. // this.form.age=''
  2060. this.$set(this.form, 'age', null)
  2061. // this.form.code=''
  2062. this.$set(this.form, 'code', null)
  2063. this.$set(this.form, 'houseType', '否')
  2064. // this.form.houseType= '是'
  2065. // this.form.domicile= null
  2066. this.$set(this.form, 'domicile', null)
  2067. // this.form.province= null
  2068. this.$set(this.form, 'province', null)
  2069. // this.form.city= null
  2070. this.$set(this.form, 'city', null)
  2071. // this.form.region= null
  2072. this.$set(this.form, 'region', null)
  2073. // this.form.userName= null
  2074. this.$set(this.form, 'userName', null)
  2075. // this.form.gender= null
  2076. this.$set(this.form, 'gender', null)
  2077. // this.form.idCard= null
  2078. this.$set(this.form, 'idCard', null)
  2079. this.$set(this.form, 'phoneNum', null)
  2080. // this.form.phoneNum= null
  2081. // this.form.keyIndustries= null
  2082. this.$set(this.form, 'keyIndustries', null)
  2083. // this.form.isVaccination= null
  2084. this.$set(this.form, 'isVaccination', null)
  2085. // this.form.vaccinationPlace= null
  2086. this.$set(this.form, 'vaccinationPlace', null)
  2087. // this.form.contraindication= null
  2088. this.$set(this.form, 'contraindication', null)
  2089. // this.form.nowIn= ''
  2090. this.$set(this.form, 'nowIn', '')
  2091. // this.form.isConfirm=null
  2092. this.$set(this.form, 'isConfirm', null)
  2093. // this.form.gridId=null
  2094. this.$set(this.form, 'gridId', null)
  2095. // this.form.remark= null
  2096. this.$set(this.form, 'remark', null)
  2097. // this.form.villageTowns=null
  2098. this.$set(this.form, 'villageTowns', null)
  2099. // this.form.village=null
  2100. this.$set(this.form, 'village', null)
  2101. console.log(this.form,34567)
  2102. this.nhyesaw = 1
  2103. // this.reset();
  2104. const id = row.id || this.ids;
  2105. getInfo(id).then(response => {
  2106. this.loading = false
  2107. this.form = response.data;
  2108. this.jue = false
  2109. this.jiezhong = false
  2110. this.nhdyesku = true
  2111. this.nhtrew = true
  2112. this.nhyeswdga.nhus = []
  2113. // 全员核酸3 禁止修改
  2114. if(response.data.isNucleicAcidFive !==null&&response.data.isNucleicAcidFive=='3'){
  2115. this.isNucleicflag=true
  2116. }else{
  2117. this.isNucleicflag=false;
  2118. }
  2119. if(this.form.houseType == '是'){
  2120. //是户主
  2121. this.shifouh = true
  2122. }else{
  2123. this.shifouh = false
  2124. }
  2125. if(response.data.province !== null && response.data.province !== ""){
  2126. this.nhdyesfgh = response.data.province;
  2127. if(response.data.city !== null && response.data.city !== ""){
  2128. this.nhdyesfgh = response.data.province + '/' + response.data.city;
  2129. if(response.data.region !== null && response.data.region !== ""){
  2130. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region;
  2131. if(this.form.villageTowns !==null && this.form.villageTowns !=='' && this.form.villageTowns !== undefined){
  2132. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.villageTowns;
  2133. if(this.form.village !==null && this.form.village !=='' && this.form.village !== undefined){
  2134. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.villageTowns + '/' + this.form.village;
  2135. }
  2136. }
  2137. }else{
  2138. // this.nhdyesfgh ='点击选择居住地址'
  2139. }
  2140. }else{
  2141. // this.nhdyesfgh ='点击选择居住地址'
  2142. }
  2143. }else{
  2144. this.nhdyesfgh ='点击选择户籍地址'
  2145. }
  2146. this.nhyesfx = true
  2147. if(response.data.czrkJzdzList.length !== 0 && response.data.czrkJzdzList !== null){
  2148. // this.selected[0] = response.data.province;
  2149. // for(var i = 0 ; i < response.data.czrkJzdzList.length ; i++){
  2150. // this.nameutaiL = i
  2151. response.data.czrkJzdzList.unshift(response.data.czrkJzdzList[0])
  2152. // this.form = response.data;
  2153. this.mnyesfjerty(0)
  2154. // }
  2155. response.data.czrkJzdzList.filter(route =>{
  2156. route.seleted = []
  2157. if(route.province !== ""){
  2158. route.plaed = route.province
  2159. if(route.city !== ""){
  2160. route.plaed = route.plaed + '/' + route.city
  2161. if(route.city !== ""){
  2162. // route.plaed = route.plaed + '/' + route.city
  2163. if(route.region !== ""){
  2164. route.plaed = route.plaed + '/' + route.region
  2165. if(route.town !== ""){
  2166. route.plaed = route.plaed + '/' + route.town
  2167. if(route.village !== ""){
  2168. route.plaed = route.plaed + '/' + route.village
  2169. }
  2170. }
  2171. }
  2172. }
  2173. }
  2174. }else{
  2175. route.plaed = '请选择居住地址'
  2176. }
  2177. })
  2178. }else{
  2179. console.log(this.form.czrkJzdzList,58)
  2180. }
  2181. if(response.data.gridName !==null){
  2182. this.ndhesdweaf = response.data.gridName
  2183. }else{
  2184. this.ndhesdweaf = '点击选择网格'
  2185. }
  2186. // this.onSelected(this.selected)
  2187. setTimeout( ()=>{
  2188. this.jue = true
  2189. },100)
  2190. // this.jue = true
  2191. console.log(this.selected,98767)
  2192. // if(this.form){
  2193. if (this.form.isVaccination !== null) {
  2194. if (this.form.isVaccination == '是') {
  2195. // 接种疫苗
  2196. (this.naneme = false), (this.shouwes = true);
  2197. } else {
  2198. (this.naneme = true), (this.shouwes = false);
  2199. }
  2200. } else {
  2201. this.naneme = false;
  2202. this.shouwes = false;
  2203. }
  2204. if (this.form.dictValue !== null && this.form.dictValue !== undefined) {
  2205. this.jicheru(this.form.dictValue);
  2206. }
  2207. if (this.form.villageTowns !== null) {
  2208. this.villageTownshy = this.form.villageTowns;
  2209. if (this.form.village !== null) {
  2210. this.villageTownshy = this.form.village;
  2211. if (this.form.villagerGroup !== null) {
  2212. this.villageTownshy = this.form.villagerGroup;
  2213. }
  2214. }
  2215. }else{
  2216. this.villageTownshy = '';
  2217. }
  2218. console.log(this.villageTownshy,3455)
  2219. // if (this.form.vaccineInfoUserList !== null) {
  2220. // if (this.form.vaccineInfoUserList.length == 0) {
  2221. // }else {
  2222. // this.form.isVaccination = '是'
  2223. // this.form.vaccineInfoUserList.filter(router =>{
  2224. // if(router.url == undefined){
  2225. // router.url = null
  2226. // }else if(router.url == []){
  2227. // router.url = null
  2228. // }
  2229. // router.disableg = true
  2230. // })
  2231. // }
  2232. // }
  2233. // villageTownshy
  2234. // }
  2235. // this.heuiq.push()
  2236. this.naiseurya = '';
  2237. this.hsuej = '';
  2238. console.log(this.form.czrkJzdzList,588)
  2239. this.jdourdjoaj = false;
  2240. this.senlsduea = true
  2241. this.title = '查看编辑人口信息';
  2242. });
  2243. },
  2244. chahe(data) {
  2245. // this.$set(this.form, 'province', null)
  2246. // this.$set(this.form, 'provinceId', null)
  2247. // this.$set(this.form, 'city', null)
  2248. // this.$set(this.form, 'cityId', null)
  2249. // this.$set(this.form, 'region', null)
  2250. // this.$set(this.form, 'regionId', null)
  2251. // this.$set(this.form, 'villageTowns', null)
  2252. // this.$set(this.form, 'villageTownsId', null)
  2253. // this.$set(this.form, 'villageId', null)
  2254. // this.$set(this.form, 'village', null)
  2255. console.log(data);
  2256. // let labelValue = this.$refs['myCascader'].inputValue
  2257. // console.log(labelValue)
  2258. console.log(this.$refs['myCascader'])
  2259. // this.form.provinceId = data[1];
  2260. // this.form.cityId = data[2];
  2261. // this.form.regionId = data[3];
  2262. // this.form.villageTownsId = data[3];
  2263. // this.form.villageId = data[3];
  2264. let nhdye = []
  2265. nhdye = this.$refs['myCascader'].getCheckedNodes()[0].pathLabels
  2266. console.log(nhdye)
  2267. if(data.length == 1){
  2268. this.form.provinceId = data[ data.length - 1];
  2269. this.form.province = nhdye[ data.length - 1];
  2270. this.$set(this.form, 'city', null)
  2271. this.$set(this.form, 'cityId', null)
  2272. this.$set(this.form, 'region', null)
  2273. this.$set(this.form, 'regionId', null)
  2274. this.$set(this.form, 'villageTowns', null)
  2275. this.$set(this.form, 'villageTownsId', null)
  2276. this.$set(this.form, 'villageId', null)
  2277. this.$set(this.form, 'village', null)
  2278. }else if(data.length == 2){
  2279. this.form.cityId = data[ data.length - 1];
  2280. this.form.city = nhdye[ data.length - 1];
  2281. this.$set(this.form, 'region', null)
  2282. this.$set(this.form, 'regionId', null)
  2283. this.$set(this.form, 'villageTowns', null)
  2284. this.$set(this.form, 'villageTownsId', null)
  2285. this.$set(this.form, 'villageId', null)
  2286. this.$set(this.form, 'village', null)
  2287. }else if(data.length == 3){
  2288. this.form.regionId = data[ data.length - 1];
  2289. this.form.region = nhdye[ data.length - 1];
  2290. this.$set(this.form, 'villageTowns', null)
  2291. this.$set(this.form, 'villageTownsId', null)
  2292. this.$set(this.form, 'villageId', null)
  2293. this.$set(this.form, 'village', null)
  2294. }else if(data.length == 4){
  2295. this.form.villageTownsId = data[ data.length - 1];
  2296. this.form.villageTowns = nhdye[ data.length - 1];
  2297. this.$set(this.form, 'villageId', null)
  2298. this.$set(this.form, 'village', null)
  2299. }else if(data.length == 5){
  2300. this.form.villageId = data[ data.length - 1];
  2301. this.form.village = nhdye[ data.length - 1];
  2302. }else{
  2303. // this.nhdyesfgh = '点击选择户籍地址'
  2304. }
  2305. this.form.deptId = data[ data.length - 1];
  2306. // if (this.form.villageTowns !== undefined) {
  2307. // this.hsuej = this.form.villageTowns;
  2308. // if (this.form.village !== undefined) {
  2309. // this.hsuej = this.form.villageTowns + this.form.village;
  2310. // if (this.form.villagerGroup !== undefined) {
  2311. // this.hsuej = this.form.villageTowns + this.form.village + this.form.villagerGroup;
  2312. // }
  2313. // }
  2314. // }
  2315. this.form.domicile = '';
  2316. console.log(this.form)
  2317. // if(this.jdourdjoaj == true){
  2318. // //新增
  2319. // this.form.nowIn = this.hsuej
  2320. // }else{
  2321. // this.form.nowIn != this.hsuej
  2322. // }
  2323. },
  2324. chahetwo(data) {
  2325. console.log(data)
  2326. if(data.length == 1){
  2327. // this.queryParams.provinceId = data[ data.length - 1];
  2328. // this.queryParams.villageId = undefined
  2329. // this.queryParams.cityId = undefined
  2330. // this.queryParams.regionId = undefined
  2331. // this.queryParams.villageTownsId = undefined
  2332. this.queryParams.cityId = undefined
  2333. this.queryParams.provinceId = undefined
  2334. this.queryParams.villageTownsId = undefined
  2335. this.queryParams.villageId = undefined
  2336. this.queryParams.regionId = data[ data.length - 1];
  2337. }else if(data.length == 2){
  2338. // this.queryParams.provinceId = undefined
  2339. // this.queryParams.regionId = undefined
  2340. // this.queryParams.villageTownsId = undefined
  2341. // this.queryParams.villageId = undefined
  2342. // this.queryParams.cityId = data[ data.length - 1];
  2343. this.queryParams.provinceId = undefined
  2344. this.queryParams.cityId = undefined
  2345. this.queryParams.regionId = undefined
  2346. this.queryParams.villageId = undefined
  2347. this.queryParams.villageTownsId = data[ data.length - 1];
  2348. }else if(data.length == 3){
  2349. // this.queryParams.cityId = undefined
  2350. // this.queryParams.provinceId = undefined
  2351. // this.queryParams.villageTownsId = undefined
  2352. // this.queryParams.villageId = undefined
  2353. // this.queryParams.regionId = data[ data.length - 1];
  2354. this.queryParams.provinceId = undefined
  2355. this.queryParams.cityId = undefined
  2356. this.queryParams.regionId = undefined
  2357. this.queryParams.villageTownsId = undefined
  2358. this.queryParams.villageId = data[ data.length - 1];
  2359. }else if(data.length == 4){
  2360. // this.queryParams.provinceId = undefined
  2361. // this.queryParams.cityId = undefined
  2362. // this.queryParams.regionId = undefined
  2363. // this.queryParams.villageId = undefined
  2364. // this.queryParams.villageTownsId = data[ data.length - 1];
  2365. }else if(data.length == 5){
  2366. // this.queryParams.provinceId = undefined
  2367. // this.queryParams.cityId = undefined
  2368. // this.queryParams.regionId = undefined
  2369. // this.queryParams.villageTownsId = undefined
  2370. // this.queryParams.villageId = data[ data.length - 1];
  2371. }
  2372. },
  2373. // 居住地址搜索条件
  2374. chahetwos(data) {
  2375. console.log(data)
  2376. if(data.length == 1){
  2377. this.queryParams.provinceIdXjd = data[ data.length - 1];
  2378. this.queryParams.cityIdXjd = undefined
  2379. this.queryParams.regionIdXjd = undefined
  2380. this.queryParams.villageTownsIdXjd = undefined
  2381. this.queryParams.villageIdXjd = undefined
  2382. }else if(data.length == 2){
  2383. this.queryParams.provinceIdXjd = undefined
  2384. this.queryParams.cityIdXjd = data[ data.length - 1];
  2385. this.queryParams.regionIdXjd = undefined
  2386. this.queryParams.villageTownsIdXjd = undefined
  2387. this.queryParams.villageIdXjd = undefined
  2388. }else if(data.length == 3){
  2389. this.queryParams.provinceIdXjd = undefined
  2390. this.queryParams.cityIdXjd = undefined
  2391. this.queryParams.regionIdXjd = data[ data.length - 1];
  2392. this.queryParams.villageTownsIdXjd = undefined
  2393. this.queryParams.villageIdXjd = undefined
  2394. }else if(data.length == 4){
  2395. this.queryParams.provinceIdXjd = undefined
  2396. this.queryParams.cityIdXjd = undefined
  2397. this.queryParams.regionIdXjd = undefined
  2398. this.queryParams.villageTownsIdXjd = data[ data.length - 1];
  2399. this.queryParams.villageIdXjd = undefined
  2400. }else if(data.length == 5){
  2401. this.queryParams.provinceIdXjd = undefined
  2402. this.queryParams.cityIdXjd = undefined
  2403. this.queryParams.regionIdXjd = undefined
  2404. this.queryParams.villageTownsIdXjd = undefined
  2405. this.queryParams.villageIdXjd = data[ data.length - 1];
  2406. }
  2407. },
  2408. chahetwoswge(data){
  2409. console.log(data)
  2410. if(this.opens == false){
  2411. return false
  2412. }
  2413. this.form.gridId = data[data.length - 1]
  2414. console.log(this.form.gridId)
  2415. },
  2416. /** 提交按钮 */
  2417. submitForm(data) {
  2418. this.$refs['form'].validate(valid => {
  2419. console.log(this.selected);
  2420. if (valid) {
  2421. let reg = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
  2422. let _IDre15 = /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/;
  2423. // 护照
  2424. // let ncjsle = /^1[45][0-9]{7}$|(^[P|p|S|s]\d{7}$)|(^[S|s|G|g|E|e]\d{8}$)|(^[Gg|Tt|Ss|Ll|Qq|Dd|Aa|Ff]\d{8}$)|(^[H|h|M|m]\d{8,10}$)/;
  2425. let ncjsle = /^[a-zA-Z0-9]{5,17}$/
  2426. let nhyeli = /^[a-zA-Z]{5,17}$/
  2427. // 港澳
  2428. let gnse = /^([A-Z]\d{6,10}(\(\w{1}\))?)$/;
  2429. // 台湾
  2430. // let tw = /^\d{8}|^[a-zA-Z0-9]{10}|^\d{18}$/
  2431. var tw = /^[0-9]{8}$/;
  2432. var twe = /^[0-9]{10}$/;
  2433. // 校验身份证:
  2434. console.log(reg.test(this.form.idCard),23741)
  2435. if ( reg.test(this.form.idCard)|| _IDre15.test(this.form.idCard)) {
  2436. // this.idea();
  2437. // this.go(this.form.idCard.length);
  2438. // callback()
  2439. } else {
  2440. if(ncjsle.test(this.form.idCard) || nhyeli.test(this.form.idCard)){
  2441. console.log(3)
  2442. }else{
  2443. if(gnse.test(this.form.idCard) ){
  2444. console.log(4)
  2445. }else{
  2446. if(tw.test(this.form.idCard) || twe.test(this.form.idCard)){
  2447. console.log(5)
  2448. }else{
  2449. this.msgInfo('证件格式不正确');
  2450. return false
  2451. }
  2452. // return false
  2453. }
  2454. }
  2455. // callback(new Error('身份证号码不正确'))
  2456. }
  2457. // let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
  2458. // if (reg.test(this.form.idCard)) {
  2459. // // this.idea();
  2460. // // this.go(this.form.idCard.length);
  2461. // // callback()
  2462. // } else {
  2463. // // callback(new Error('身份证号码不正确'))
  2464. // this.msgInfo('身份证号码不正确');
  2465. // return false
  2466. // }
  2467. let redw = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
  2468. console.log(this.form)
  2469. console.log(redw.test(this.form.phoneNum))
  2470. if (this.form.phoneNum == null) {
  2471. // this.idea();
  2472. // this.go(this.form.idCard.length);
  2473. // callback()
  2474. } else{
  2475. if(this.form.phoneNum !== ''){
  2476. if(redw.test(this.form.phoneNum)){
  2477. }else{
  2478. this.msgInfo('手机号码不正确');
  2479. return false
  2480. }
  2481. }
  2482. // callback(new Error('身份证号码不正确'))
  2483. }
  2484. // this.form.isConfirm = 'N'
  2485. this.form.isConfirm = 'Y'
  2486. if (this.form.id != null) {
  2487. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  2488. // this.form.domicile = this.hsuej + this.form.domicile;
  2489. console.log(this.ndheysfs)
  2490. // this.nhyesaw = data
  2491. console.log(this.nhyesaw)
  2492. console.log(this.form.czrkJzdzList)
  2493. if(this.nhyesaw == 1){
  2494. this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  2495. }else if(this.nhyesaw == 2){
  2496. console.log(this.form.czrkJzdzList[0])
  2497. // this.form.czrkJzdzList.unshift(this.form.czrkJzdzList[0])
  2498. }
  2499. console.log(this.form.czrkJzdzList)
  2500. data = data +1
  2501. this.nhyesaw = this.nhyesaw + 1
  2502. this.senlsduea = false
  2503. console.log(this.form.czrkJzdzList)
  2504. updateInfo(this.form).then(response => {
  2505. console.log(response)
  2506. if(response.code == 200){
  2507. this.msgSuccess('修改成功');
  2508. this.nhyesaw = 1
  2509. this.opens = false;
  2510. this.nhyesfx = false
  2511. if(this.queryParams.queryType == 'hj'){
  2512. this.getList();
  2513. }else if(this.queryParams.queryType == 'cz'){
  2514. this.getListjuzhu();
  2515. }
  2516. // this.getList();
  2517. // this.getTreeselectjuetj()
  2518. return false
  2519. }else{
  2520. // this.senlsduea = true
  2521. // this.form.czrkJzdzList.unshift(this.form.czrkJzdzList[0])
  2522. this.nhyesaw = 1
  2523. this.$message.error(response.msg + '请重新填写');
  2524. // this.mnyesfjerty(0)
  2525. // if(this.nhyesaw == 1){
  2526. // this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  2527. // }
  2528. this.opens = false
  2529. }
  2530. // if(response.data.code == 200){
  2531. // this.msgSuccess('修改成功');
  2532. // this.ndheysfs = false
  2533. // }else{
  2534. // this.ndheysfs = true
  2535. // }
  2536. // if(this.nhyesoder == 3){
  2537. // this.jiezhong = true
  2538. // this.handleDeletefamide(this.bhdes)
  2539. // }
  2540. // this.nhyesoder = 4
  2541. });
  2542. } else {
  2543. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  2544. // this.form.domicile = this.hsuej + this.form.domicile;
  2545. // if (this.form.nowIn == 'undefined') {
  2546. // this.form.nowIn = null;
  2547. // }
  2548. if(this.form.province == null){
  2549. this.msgInfo('请填写户籍地址');
  2550. return false
  2551. }
  2552. if(this.form.province == ''){
  2553. this.msgInfo('请填写户籍地址');
  2554. return false
  2555. }
  2556. if(this.form.czrkJzdzList[0].province == ''){
  2557. this.msgInfo('请填写居住地址');
  2558. return false
  2559. }
  2560. if(this.form.czrkJzdzList[0].province == null){
  2561. this.msgInfo('请填写居住地址');
  2562. return false
  2563. }
  2564. console.log(this.form)
  2565. this.form.czrkJzdzList.filter(route =>{
  2566. route.seleted = []
  2567. route.optiodne = []
  2568. })
  2569. this.form.isConfirm = null
  2570. // return
  2571. addInfo(this.form).then(response => {
  2572. if(response.code == 200){
  2573. this.msgSuccess('新增成功');
  2574. this.opens = false;
  2575. this.nhyesfx = false
  2576. if(this.queryParams.queryType == 'hj'){
  2577. this.getList();
  2578. }else if(this.queryParams.queryType == 'cz'){
  2579. this.getListjuzhu();
  2580. }
  2581. // this.getList();
  2582. this.getTreeselectjuetj()
  2583. if(this.nhyesoder == 3){
  2584. this.jiezhong = true
  2585. this.handleDeletefamide(this.bhdes)
  2586. }
  2587. this.nhyesoder = 4
  2588. }else{
  2589. this.$message.error(response.msg + '请重新填写');
  2590. if(this.nhyesoder == 3){
  2591. this.jiezhong = true
  2592. this.handleDeletefamide(this.bhdes)
  2593. }
  2594. this.nhyesoder = 4
  2595. this.opens = false
  2596. }
  2597. });
  2598. }
  2599. }
  2600. });
  2601. },
  2602. /** 删除按钮操作 */
  2603. handleDelete(row) {
  2604. const ids = row.id || this.ids[0];
  2605. this.idfer = ids
  2606. this.imashow = true;
  2607. this.formgt = {}
  2608. // this.$confirm('是否确认删除疫苗信息编号为"' + ids + '"的数据项?', '警告', {
  2609. // confirmButtonText: '确定',
  2610. // cancelButtonText: '取消',
  2611. // type: 'warning'
  2612. // })
  2613. // .then(function() {
  2614. // return delInfo(ids);
  2615. // })
  2616. // .then(() => {
  2617. // this.getList();
  2618. // this.msgSuccess('删除成功');
  2619. // });
  2620. },
  2621. submitFormfr(){
  2622. // formgt
  2623. if(this.formgt.houseType == null || this.formgt.houseType == undefined){
  2624. this.$message.error('请选择变更原因');
  2625. return false
  2626. }
  2627. let nhue = {}
  2628. nhue.status = this.formgt.houseType
  2629. nhue.id = this.idfer
  2630. delInfo(nhue).then(response => {
  2631. this.msgSuccess('变更成功');
  2632. this.imashow = false;
  2633. if(this.queryParams.queryType == 'hj'){
  2634. this.getList();
  2635. }else if(this.queryParams.queryType == 'cz'){
  2636. this.getListjuzhu();
  2637. }
  2638. // this.getList();
  2639. this.getTreeselectjuetj()
  2640. });
  2641. },
  2642. // 点击新增
  2643. tijea(index) {
  2644. console.log(index+ 1)
  2645. this.nameutaiL = index+ 1
  2646. this.cascaderKey = index + 1
  2647. this.form.czrkJzdzList.push({
  2648. provinceId: '',
  2649. province: '',
  2650. deptId: '',
  2651. cityId: '',
  2652. city: '',
  2653. regionId:'',
  2654. region: '',
  2655. townId: '',
  2656. town: '',
  2657. villageId: '',
  2658. village: '',
  2659. nowIn:'',
  2660. disableg:false,
  2661. seleted:[],
  2662. optiodne:[],
  2663. plaed:'请选择居住地址',
  2664. });
  2665. this.nhyeojd = true
  2666. this.mnyesfjer(0)
  2667. // this.form.czrkJzdzList[this.nameutaiL].optiodne
  2668. // console.log(this.cascaderKey,123465)
  2669. // // console.log()
  2670. // console.log( this.$refs.myCascaderf[this.$refs.myCascaderf.length - 1] ,258)
  2671. // // console.log(this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes(),258)
  2672. // this.$refs['myCascaderf'][this.$refs.myCascaderf.length - 1].$refs.panel.clearCheckedNodes()
  2673. // console.log(this.$refs['myCascaderf'][0].$refs.panel.checkedValue,34567)
  2674. // this.mnyesfjer(0)
  2675. },
  2676. // 点击删除
  2677. naeyrfakjf(index, item) {
  2678. console.log(this.form.czrkJzdzList.length,347)
  2679. // if(this.form.czrkJzdzList.length == 2){
  2680. // this.$message.error('居住地为必填不可全删除');
  2681. // return false
  2682. // }
  2683. // this.$message.error(response.msg + '请重新填写');
  2684. var that = this
  2685. this.$confirm('是否确认删除信息?', '警告', {
  2686. confirmButtonText: '确定',
  2687. cancelButtonText: '取消',
  2688. type: 'warning'
  2689. })
  2690. .then(function() {
  2691. return that.delseeug(index,item)
  2692. })
  2693. .then(() => {
  2694. // this.getList();
  2695. // this.msgSuccess('删除成功');
  2696. });
  2697. },
  2698. delseeug(index,item){
  2699. console.log(234)
  2700. if (this.form.czrkJzdzList.length == 1) {
  2701. // if (this.jdourdjoaj == true) {
  2702. // // 新增
  2703. // this.form.vaccineInfoUserList = [{
  2704. // vaccineName: '',
  2705. // vaccinationTime: '',
  2706. // vaccinationPlace: '',
  2707. // jici: '',
  2708. // progress: '',
  2709. // url:null,
  2710. // disableg:false
  2711. // }]
  2712. // } else {
  2713. // // 修改
  2714. // let ide = this.form.vaccineInfoUserList[index].id;
  2715. // console.log(this.form.vaccineInfoUserList[index]);
  2716. // // ()
  2717. // console.log(ide);
  2718. // if (ide !== undefined) {
  2719. // console.log(234);
  2720. // delInfort(ide).then(response => {
  2721. // this.msgSuccess('操作成功');
  2722. // });
  2723. // }
  2724. // this.form.vaccineInfoUserList = [{
  2725. // vaccineName: '',
  2726. // vaccinationTime: '',
  2727. // vaccinationPlace: '',
  2728. // jici: '',
  2729. // progress: '',
  2730. // url:null,
  2731. // disableg:false
  2732. // }]
  2733. // }
  2734. this.msgSuccess('只剩一条数据,无法删除');
  2735. return false;
  2736. }
  2737. if (this.jdourdjoaj == true) {
  2738. // 新增
  2739. this.form.czrkJzdzList.splice(index, 1);
  2740. } else {
  2741. // 修改
  2742. // ()
  2743. this.form.czrkJzdzList.splice(index, 1);
  2744. }
  2745. this.msgSuccess('删除成功');
  2746. },
  2747. /** 导出按钮操作 */
  2748. handleExport() {
  2749. if(this.queryParams.queryType == 'cz'){
  2750. var heuia = {
  2751.      tableName: "vaccine_info",
  2752.      empty: false,
  2753.      condition: {}
  2754. }
  2755. var that=this;
  2756. heuia.condition = this.queryParams
  2757. const queryParams = this.queryParams
  2758. queryParams.pageNum = undefined
  2759. queryParams.pageSize= undefined
  2760. this.download('boman-web-core/core/czrk/export', {
  2761. ...queryParams
  2762. }, `常住数据表格.xlsx`)
  2763. }else if(this.queryParams.queryType == 'hj'){
  2764. var heuia = {
  2765.      tableName: "vaccine_info",
  2766.      empty: false,
  2767.      condition: {}
  2768. }
  2769. var that=this;
  2770. heuia.condition = this.queryParams
  2771. const queryParams = this.queryParams
  2772. queryParams.pageNum = undefined
  2773. queryParams.pageSize= undefined
  2774. this.download('boman-web-core/core/czrk/export', {
  2775. ...queryParams
  2776. }, `户籍数据表格.xlsx`)
  2777. }
  2778. // this.$confirm('是否确认导出?', "警告", {
  2779. // confirmButtonText: "确定",
  2780. // cancelButtonText: "取消",
  2781. // type: "warning"
  2782. // }).then(function() {
  2783. // return that.dachu(queryParams)
  2784. // // return exportConfig(queryParams);
  2785. // }).then(response => {
  2786. // })
  2787. // const jues= response.data
  2788. // that.exportflag=false;
  2789. // that.$alert('数据导入中,系统将自动处理数据,请稍后查看结果', "导出结果", { dangerouslyUseHTMLString: true });
  2790. // that.msgSuccess('数据导入中,系统将自动处理数据,请稍后查看结果');
  2791. // exportConfigtyr().then(responsr => {
  2792. // console.log(responsr)
  2793. // if(responsr.data == true){
  2794. // // this.download(jues);
  2795. // // window.location.href = jues
  2796. // window.open(jues)
  2797. // }else{
  2798. // this.msgSuccess('数据暂未加载完成,请稍后点击导出进度按钮查看');
  2799. // }
  2800. // });
  2801. },
  2802. handleExportte(){
  2803. var heuia = {
  2804.      tableName: "vaccine_info",
  2805.      empty: false,
  2806.      condition: {}
  2807. }
  2808. var that=this;
  2809. heuia.condition = this.queryParams
  2810. const queryParams = this.queryParams
  2811. queryParams.pageNum = undefined
  2812. queryParams.pageSize= undefined
  2813. this.download('boman-web-core/core/czrk/exportTownHj',{...queryParams}, `只填写到镇数据表格.xlsx`)
  2814. },
  2815. handleExporttezh(){
  2816. let nh = {}
  2817. if(this.queryParams.queryType == 'cz'){
  2818. this.download('boman-web-core/core/jzdz/exportQianShanCz', {...nh}, `只填写到潜山市数据表格.xlsx`)
  2819. }else if(this.queryParams.queryType == 'hj'){
  2820. this.download('boman-web-core/core/czrk/exportQianShanHj',{...nh}, `只填写到潜山市数据表格.xlsx`)
  2821. }
  2822. },
  2823. // 导出弹框
  2824. handleExporttk(){
  2825. this.dch = true
  2826. },
  2827. dachu(queryParams){
  2828. this.download('boman-web-core/core/czrk/export', `数据表格.xlsx`)
  2829. },
  2830. // 点击查看
  2831. chakei(row,data) {
  2832. console.log(row,data);
  2833. let nhyes= {pageNum: 1,
  2834. pageSize: 10,}
  2835. this.nhyesoder = row.row
  2836. this.ndhuwosdjh.queryType = row.type
  2837. console.log(this.ndhuwosdjh)
  2838. this.jiezheList = []
  2839. if(row.row == 0){
  2840. // 新增
  2841. listInfotjxz(this.ndhuwosdjh).then(response => {
  2842. // this.msgSuccess('操作成功');
  2843. this.jiezheList = response.rows
  2844. this.totalfr = response.total
  2845. })
  2846. } else if(row.row == 1){
  2847. // 减少
  2848. listInfotjjs(this.ndhuwosdjh).then(response => {
  2849. // this.msgSuccess('操作成功');
  2850. this.jiezheList = response.rows
  2851. this.totalfr = response.total
  2852. } )
  2853. }// yiaoe({idCard:row.idCard}).then(response => {
  2854. // // this.msgSuccess('操作成功');
  2855. // if(response.code == 200){
  2856. // this.jiezheList = response.data
  2857. // }
  2858. // });
  2859. this.jiezhong = true;
  2860. },
  2861. // 查看家庭成员信息
  2862. handleDeletefamide(row){
  2863. this.bhdes= row
  2864. this.nhyesoder = 3
  2865. this.bgtes= []
  2866. if(row.code == null){
  2867. this.msgSuccess('无户编号信息,无法查看家庭成员信息');
  2868. return false
  2869. }
  2870. if(row.code == ''){
  2871. this.msgSuccess('无户编号信息,无法查看家庭成员信息');
  2872. return false
  2873. }
  2874. this.jiezhong = true;
  2875. listInfotjjsfaml(row.code).then(response => {
  2876. // this.msgSuccess('操作成功');
  2877. this.jiezheList = response.data
  2878. this.jiezheList.filter(rout =>{
  2879. this.bgtes.push(rout.id)
  2880. })
  2881. console.log(this.bgtes,456)
  2882. this.totalfr = 0
  2883. } )
  2884. },
  2885. /** 导入按钮操作 */
  2886. handleImport() {
  2887. this.upload.title = "数据导入";
  2888. this.upload.open = true;
  2889. },
  2890. // 获取屏幕高度
  2891. showFilterForm () {
  2892. this.filterActive = !this.filterActive
  2893. this.changeTableMaxHeight()
  2894. },
  2895. changeTableMaxHeight () {
  2896. let height = document.body.offsetHeight // 网页可视区域高度
  2897. // if (this.filterActive) {
  2898. // this.tableMaxHeight = height - 320
  2899. // } else {
  2900. this.tableMaxHeight = height - 250
  2901. // }
  2902. console.log(height)
  2903. },
  2904. // 判断是否选择户主
  2905. changese(){
  2906. console.log(this.form.houseType)
  2907. if(this.form.houseType == '是'){
  2908. if(this.form.code == null){
  2909. this.form.code = this.form.idCard
  2910. }
  2911. if(this.form.code == ''){
  2912. this.form.code = this.form.idCard
  2913. }
  2914. this.nhe = false
  2915. }else{
  2916. this.form.code != this.form.idCard
  2917. this.nhe = true
  2918. }
  2919. },
  2920. // 常住人口
  2921. chajnd(){
  2922. this.queryParams.queryType = 'cz'
  2923. this.queryParams.pageNum = 1
  2924. this.total = 0
  2925. this.nhykis = false
  2926. this.nhyki = true
  2927. this.getListjuzhu();
  2928. },
  2929. // 户籍人口
  2930. chajnds(){
  2931. this.nhykis = true
  2932. this.nhyki = false
  2933. this.queryParams.pageNum = 1
  2934. this.total = 0
  2935. this.queryParams.queryType = 'hj'
  2936. this.getList();
  2937. },
  2938. // 变更历史
  2939. chajndsls(row){
  2940. // listInfosls
  2941. // this.nhykis = true
  2942. // this.nhyki = false
  2943. // this.nhyki = true
  2944. // this.queryParams.pageNum = 1
  2945. // this.queryParams.queryType = 'ls'
  2946. const id = row.id || this.ids[0];
  2947. let nhduw = {}
  2948. nhduw.id = id
  2949. // biangneg
  2950. this.getListls(nhduw);
  2951. },
  2952. // 一键确认
  2953. xinxiheu(){
  2954. let nchesr = []
  2955. nchesr = this.bgtes
  2956. console.log(nchesr)
  2957. listInfotjjssbule(nchesr).then(response => {
  2958. if(response.code == 200){
  2959. this.msgSuccess('操作成功')
  2960. this.jiezhong = false
  2961. if(this.queryParams.queryType == 'hj'){
  2962. this.getList();
  2963. }else if(this.queryParams.queryType == 'cz'){
  2964. this.getListjuzhu();
  2965. }
  2966. // this.getTreeselectjuetj()
  2967. }
  2968. // this.msgSuccess('操作成功');
  2969. })
  2970. },
  2971. xinxihe(){
  2972. this.$refs['form'].validate(valid => {
  2973. console.log(this.selected);
  2974. if (valid) {
  2975. let reg = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
  2976. let _IDre15 = /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/;
  2977. // 护照
  2978. // let ncjsle = /^1[45][0-9]{7}$|(^[P|p|S|s]\d{7}$)|(^[S|s|G|g|E|e]\d{8}$)|(^[Gg|Tt|Ss|Ll|Qq|Dd|Aa|Ff]\d{8}$)|(^[H|h|M|m]\d{8,10}$)/;
  2979. let ncjsle = /^[a-zA-Z0-9]{5,17}$/
  2980. let nhyeli = /^[a-zA-Z]{5,17}$/
  2981. // 港澳
  2982. let gnse = /^([A-Z]\d{6,10}(\(\w{1}\))?)$/;
  2983. // 台湾
  2984. // let tw = /^\d{8}|^[a-zA-Z0-9]{10}|^\d{18}$/
  2985. var tw = /^[0-9]{8}$/;
  2986. var twe = /^[0-9]{10}$/;
  2987. // 校验身份证:
  2988. console.log(reg.test(this.form.idCard),23741)
  2989. if ( reg.test(this.form.idCard)|| _IDre15.test(this.form.idCard)) {
  2990. // this.idea();
  2991. // this.go(this.form.idCard.length);
  2992. // callback()
  2993. } else {
  2994. if(ncjsle.test(this.form.idCard) || nhyeli.test(this.form.idCard)){
  2995. console.log(3)
  2996. }else{
  2997. if(gnse.test(this.form.idCard) ){
  2998. console.log(4)
  2999. }else{
  3000. if(tw.test(this.form.idCard) || twe.test(this.form.idCard)){
  3001. console.log(5)
  3002. }else{
  3003. this.msgInfo('证件格式不正确');
  3004. return false
  3005. }
  3006. // return false
  3007. }
  3008. }
  3009. // callback(new Error('身份证号码不正确'))
  3010. }
  3011. let redw = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
  3012. console.log(this.form)
  3013. console.log(redw.test(this.form.phoneNum))
  3014. if (this.form.phoneNum == null) {
  3015. // this.idea();
  3016. // this.go(this.form.idCard.length);
  3017. // callback()
  3018. } else{
  3019. if(this.form.phoneNum !== ''){
  3020. if(redw.test(this.form.phoneNum)){
  3021. }else{
  3022. this.msgInfo('手机号码不正确');
  3023. return false
  3024. }
  3025. }
  3026. }
  3027. if (this.form.id != null) {
  3028. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  3029. // this.form.domicile = this.hsuej + this.form.domicile;
  3030. console.log(this.form.czrkJzdzList)
  3031. if(this.nhyesaw == 1){
  3032. this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  3033. }else if(this.nhyesaw == 2){
  3034. console.log(this.form.czrkJzdzList[0])
  3035. // this.form.czrkJzdzList.unshift(this.form.czrkJzdzList[0])
  3036. }
  3037. console.log(this.form.czrkJzdzList)
  3038. // data = data +1
  3039. this.nhyesaw = this.nhyesaw + 1
  3040. this.senlsduea = false
  3041. this.form.isConfirm = 'Y'
  3042. console.log(this.form.czrkJzdzList)
  3043. updateInfo(this.form).then(response => {
  3044. console.log(response)
  3045. if(response.code == 200){
  3046. this.msgSuccess('操作成功');
  3047. this.nhyesaw = 1
  3048. this.opens = false;
  3049. this.nhyesfx = false
  3050. if(this.queryParams.queryType == 'hj'){
  3051. this.getList();
  3052. }else if(this.queryParams.queryType == 'cz'){
  3053. this.getListjuzhu();
  3054. }
  3055. // this.getTreeselectjuetj()
  3056. return false
  3057. }else{
  3058. // this.senlsduea = true
  3059. // this.form.czrkJzdzList.unshift(this.form.czrkJzdzList[0])
  3060. this.nhyesaw = 1
  3061. this.$message.error(response.msg + '请重新填写');
  3062. // this.mnyesfjerty(0)
  3063. // if(this.nhyesaw == 1){
  3064. // this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  3065. // }
  3066. this.opens = false
  3067. }
  3068. // if(response.data.code == 200){
  3069. // this.msgSuccess('修改成功');
  3070. // this.ndheysfs = false
  3071. // }else{
  3072. // this.ndheysfs = true
  3073. // }
  3074. // if(this.nhyesoder == 3){
  3075. // this.jiezhong = true
  3076. // this.handleDeletefamide(this.bhdes)
  3077. // }
  3078. // this.nhyesoder = 4
  3079. });
  3080. } else {
  3081. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  3082. // this.form.domicile = this.hsuej + this.form.domicile;
  3083. // if (this.form.nowIn == 'undefined') {
  3084. // this.form.nowIn = null;
  3085. // }
  3086. // if(this.nhyeswdga.length == 0){
  3087. // this.msgInfo('请填写户籍地址');
  3088. // return false
  3089. // }
  3090. // if(this.form.czrkJzdzList[0].province == ''){
  3091. // this.msgInfo('请填写居住地址');
  3092. // return false
  3093. // }
  3094. // if(this.form.czrkJzdzList[0].province == null){
  3095. // this.msgInfo('请填写居住地址');
  3096. // return false
  3097. // }
  3098. // console.log(this.form)
  3099. // this.form.czrkJzdzList.filter(route =>{
  3100. // route.seleted = []
  3101. // route.optiodne = []
  3102. // })
  3103. // return
  3104. // addInfo(this.form).then(response => {
  3105. // this.msgSuccess('新增成功');
  3106. // this.opens = false;
  3107. // this.getList();
  3108. // if(this.nhyesoder == 3){
  3109. // this.jiezhong = true
  3110. // this.handleDeletefamide(this.bhdes)
  3111. // }
  3112. // this.nhyesoder = 4
  3113. // });
  3114. }
  3115. }
  3116. });
  3117. },
  3118. // 信息同步
  3119. xinxtb(){
  3120. listInfotjjssquer(this.bhdes.code).then(response => {
  3121. if(response.code == 200){
  3122. this.msgSuccess(response.msg)
  3123. // this.jiezhong = false
  3124. listInfotjjsfaml(this.bhdes.code).then(response => {
  3125. // this.msgSuccess('操作成功');
  3126. this.bgtes = []
  3127. this.jiezheList = response.data
  3128. this.jiezheList.filter(rout =>{
  3129. this.bgtes.push(rout.id)
  3130. })
  3131. console.log(this.bgtes,456)
  3132. this.totalfr = 0
  3133. })
  3134. // this.getTreeselectjuetj()
  3135. }
  3136. // this.msgSuccess('操作成功');
  3137. })
  3138. },
  3139. // click(){
  3140. click(event) {
  3141. console.log(event)
  3142. this.$nextTick(() => {
  3143. let d = document.getElementsByClassName("cascader"+ this.idsg)
  3144. this.nameutaiL +'s'
  3145. console.log("cascader"+ '' +this.nameutaiL);
  3146. console.log(48);
  3147. console.log(d);
  3148. console.log(d[0]);
  3149. console.log( !d[0].onclick);
  3150. if( d[event] && !d[event].onclick ){
  3151. d[event].onclick = function(e) {
  3152. console.log(e);
  3153. if( e.target.className == "el-cascader-node__label" ){
  3154. e.target.previousElementSibling.click();
  3155. }
  3156. }
  3157. }
  3158. });
  3159. },
  3160. clicks(event) {
  3161. this.$nextTick(() => {
  3162. let d = document.getElementsByClassName("cascader"+'' +this.id);
  3163. console.log("cascader"+ '' +this.nameutaiL);
  3164. console.log(48);
  3165. console.log(d);
  3166. console.log(d[0]);
  3167. console.log( !d[0].onclick);
  3168. if( d[0] && !d[0].onclick ){
  3169. d[0].onclick = function(e) {
  3170. console.log(e);
  3171. if( e.target.className == "el-cascader-node__label" ){
  3172. e.target.previousElementSibling.click();
  3173. }
  3174. }
  3175. }
  3176. });
  3177. },
  3178. //核酸信息
  3179. ncoming(row){
  3180. this.comind = true
  3181. },
  3182. // 一键未认领
  3183. weirl(){
  3184. var that = this
  3185. this.$confirm('是否确认操作一键未认领?', '警告', {
  3186. confirmButtonText: '确定',
  3187. cancelButtonText: '取消',
  3188. type: 'warning'
  3189. })
  3190. .then(function() {
  3191. listInfotjjsfamlwrl().then(response => {
  3192. that.msgSuccess('操作成功');
  3193. })
  3194. })
  3195. .then(() => {
  3196. // this.getList();
  3197. // this.msgSuccess('删除成功');
  3198. });
  3199. },
  3200. // 文件上传中处理
  3201. handleFileUploadProgress(event, file, fileList) {
  3202. this.upload.isUploading = true;
  3203. },
  3204. // 文件上传成功处理
  3205. handleFileSuccess(response, file, fileList) {
  3206. this.upload.open = false;
  3207. this.upload.isUploading = false;
  3208. this.$refs.upload.clearFiles();
  3209. this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
  3210. this.getList();
  3211. },
  3212. // 提交上传文件
  3213. submitFileForm() {
  3214. // console.log(this.upload.source)
  3215. // if(this.upload.source == null){
  3216. // this.msgInfo('请选择数据来源');
  3217. // return false
  3218. // }
  3219. this.$refs.upload.submit();
  3220. },
  3221. /** 下载模板操作 */
  3222. importTemplate() {
  3223. },
  3224. nske(){
  3225. console.log(345)
  3226. this.upload.open = false;
  3227. },
  3228. // 全员核酸
  3229. hsxx(){
  3230. this.qyhss= true
  3231. this.formhs.isNucleicAcidFive
  3232. },
  3233. submitFormhs(){
  3234. this.$refs['formhs'].validate(valid => {
  3235. let nhuesf = {}
  3236. nhuesf.isNucleicAcidFive = this.formhs.isNucleicAcidFive
  3237. nhuesf.idCardList = this.cards
  3238. updateInfohsxx(nhuesf).then(response => {
  3239. // console.log(response)
  3240. if(response.code == 200){
  3241. this.msgSuccess('操作成功');
  3242. this.qyhss = false;
  3243. if(this.queryParams.queryType == 'hj'){
  3244. this.getList();
  3245. }else if(this.queryParams.queryType == 'cz'){
  3246. this.getListjuzhu();
  3247. }
  3248. // this.getTreeselectjuetj()
  3249. return false
  3250. }else{
  3251. this.qyhss = false
  3252. }
  3253. });
  3254. })
  3255. },
  3256. cancelhs(){
  3257. this.qyhss = false
  3258. }
  3259. // }
  3260. }
  3261. };
  3262. </script>
  3263. <style lang="scss">
  3264. .bghks{
  3265. position: relative;
  3266. .pj{
  3267. position: absolute;
  3268. top: 100px;
  3269. left: 380px;
  3270. font-size: 30px;
  3271. color: #dfe0e2;
  3272. transform: rotate(-20deg);
  3273. opacity: 0.6;
  3274. // z-index: -1;
  3275. }
  3276. .pjs{
  3277. position: absolute;
  3278. top: 240px;
  3279. left: 380px;
  3280. font-size: 30px;
  3281. color: #dfe0e2;
  3282. transform: rotate(-20deg);
  3283. opacity: 0.6;
  3284. }
  3285. }
  3286. .placf {
  3287. .el-input {
  3288. .el-input__inner::placeholder{
  3289. color: #333;
  3290. }
  3291. /* 谷歌 */
  3292. .el-input__inner::-webkit-input-placeholder {
  3293. color: #333;
  3294. }
  3295. /* 火狐 */
  3296. .el-input__inner:-moz-placeholder {
  3297. color: #333;
  3298. }
  3299. /*ie*/
  3300. .el-input__inner:-ms-input-placeholder {
  3301. color: #333;
  3302. }
  3303. }
  3304. }
  3305. .jdueuh{
  3306. .el-form-item__label {
  3307. width: 0px !important;
  3308. }
  3309. .el-form-item__content {
  3310. margin-left: 10px !important;
  3311. // width: 70%;
  3312. }
  3313. }
  3314. .ijeuhdy{
  3315. .el-form-item__label {
  3316. width: 80px !important;
  3317. }
  3318. .el-form-item__content {
  3319. margin-left: 80px !important;
  3320. // width: 70%;
  3321. }
  3322. }
  3323. .znshu{
  3324. .el-form-item__label {
  3325. width: 80px !important;
  3326. // padding-left: 30px;
  3327. }
  3328. .el-form-item__content {
  3329. margin-left: 80px !important;
  3330. // width: 70%;
  3331. }
  3332. .el-input__inner{
  3333. padding-left: 0 !important;
  3334. }
  3335. }
  3336. .heioangd{
  3337. .el-form-item__label {
  3338. width: 70px !important;
  3339. }
  3340. .el-form-item__content {
  3341. margin-left: 70px !important;
  3342. // width: 70%;
  3343. }
  3344. }
  3345. .hues {
  3346. .area-select {
  3347. margin-left: 0 !important;
  3348. margin-right: 10px;
  3349. }
  3350. }
  3351. .jehak {
  3352. .el-form-item {
  3353. width: 100%;
  3354. }
  3355. .el-form-item__content {
  3356. width: 60%;
  3357. }
  3358. }
  3359. .oiuyty {
  3360. .el-form-item__label {
  3361. width: 80px !important;
  3362. }
  3363. .el-form-item__content {
  3364. margin-left: 80px !important;
  3365. // width: 70%;
  3366. }
  3367. input {
  3368. padding-right: 0 !important;
  3369. }
  3370. }
  3371. .el-dialog__body {
  3372. padding-top: 0;
  3373. padding-bottom: 0;
  3374. }
  3375. .jhy {
  3376. // width: 100%;
  3377. // .el-form-item__content {
  3378. // width: 100%;
  3379. // margin-left: 0 !important;
  3380. // }
  3381. .el-form-item__content {
  3382. margin-left: 55px !important;
  3383. // width: 70%;
  3384. }
  3385. .el-form-item__label {
  3386. width: 55px !important;
  3387. }
  3388. }
  3389. .ehiqya {
  3390. .el-form-item__content {
  3391. display: flex;
  3392. .jdidur {
  3393. flex: 1;
  3394. margin-left: 10px;
  3395. // text-align: left;
  3396. display: flex;
  3397. }
  3398. }
  3399. .upload-demo {
  3400. display: flex;
  3401. }
  3402. }
  3403. .jdoier{
  3404. display: flex;
  3405. align-items: center;
  3406. .upload-demo {
  3407. display: flex;
  3408. }
  3409. }
  3410. .hueyde {
  3411. width: 18px;
  3412. height: 18px;
  3413. margin: 0 5px;
  3414. margin-right: 10px;
  3415. }
  3416. .hueydele {
  3417. width: 15px;
  3418. height: 18px;
  3419. }
  3420. .hyeoa {
  3421. height: 100%;
  3422. display: flex;
  3423. align-items: center;
  3424. }
  3425. .hjdoecdre {
  3426. // margin-top: 50%;
  3427. transform: translateY(50%);
  3428. }
  3429. .ojhgy {
  3430. .el-dialog {
  3431. padding-bottom: 40px;
  3432. padding-top: 10px;
  3433. }
  3434. .el-dialog__header {
  3435. padding-bottom: 20px;
  3436. }
  3437. .el-table .cell {
  3438. line-height: 50px;
  3439. }
  3440. }
  3441. .hueya{
  3442. margin-left: 0 !important;
  3443. }
  3444. .iejghiadh{
  3445. .el-input__inner{
  3446. padding-right: 0 !important;
  3447. padding-left: 5px !important;
  3448. }
  3449. }
  3450. .nhoesf{
  3451. span:hover{
  3452. cursor:pointer
  3453. }
  3454. }
  3455. </style>