index.vue 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280
  1. <template>
  2. <div class="app-container">
  3. <!-- 88 88民政部民办非企业单位登记证书查询(新) -->
  4. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
  5. <el-row>
  6. <el-col :span="24">
  7. <el-row>
  8. <el-col :span="8">
  9. <el-form-item label="社会信用代码" prop="usc_code">
  10. <el-input v-model="queryParams.usc_code" placeholder="请输入唯一社会信用代码" style="width:265px;" clearable @keyup.enter.native="handleQuery" />
  11. </el-form-item>
  12. </el-col>
  13. <el-col :span="8">
  14. <el-form-item label="组织名称" prop="org_name">
  15. <el-input v-model="queryParams.org_name" placeholder="请输入组织名称" style="width:265px;" clearable @keyup.enter.native="handleQuery" />
  16. </el-form-item>
  17. </el-col>
  18. <el-col :span="5" style="text-align: center;">
  19. <el-form-item>
  20. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
  21. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  22. </el-form-item>
  23. </el-col>
  24. </el-row>
  25. </el-col>
  26. <el-col :span="24">
  27. <el-row>
  28. </el-row>
  29. </el-col>
  30. </el-row>
  31. </el-form>
  32. <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" stripe style="width: 100%" :height="tableMaxHeight">
  33. <el-table-column type="selection" width="55" align="center" />
  34. <el-table-column label="社会组织名称" align="center" prop="ORG_NAME" />
  35. <el-table-column label="唯一社会信用代码" align="center" prop="USC_CODE" width="125" />
  36. <el-table-column label="证书有效期止" align="center" prop="VALID_TO" width="102"/>
  37. <el-table-column label="注册时间" align="center" prop="REGISTRATION_DATE" width="102"/>
  38. <el-table-column label="法定代表人姓名" align="center" prop="LEGAL_NAME" width="115"/>
  39. <el-table-column label="发证机关" align="center" prop="ISSUE_CERTIFICATE_DEPT" />
  40. <el-table-column label="原始基金数额" align="center" prop="REGISTERED_CAPITAL" />
  41. <el-table-column label="业务范围" align="center" prop="BUSINESS_SCOPE" />
  42. <el-table-column label="地址" align="center" prop="DOMICILE_ADDRES" />
  43. <el-table-column label="主管单位名称" align="center" prop="MANAGER_DEPT" />
  44. <el-table-column label="慈善组织标识" align="center" prop="IFCHARITY" >
  45. <template slot-scope="scope">
  46. <span >{{ scope.row.IFCHARITY == '1'? '慈善组织单位' : '不是慈善组织单位'}}</span>
  47. </template>
  48. </el-table-column>
  49. </el-table>
  50. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
  51. <!-- 添加或修改疫苗信息对话框 -->
  52. <el-dialog :title="title" :visible.sync="opens" width="1240px" append-to-body>
  53. <el-form ref="form" :model="form" :rules="rules" label-width="100px">
  54. <el-row>
  55. <el-col :span="8" v-if="shouwef">
  56. <el-form-item label="身份证号" prop="idCard"><el-input v-model="form.idCard" placeholder="请输入身份证号码" @blur="idcde" /></el-form-item>
  57. </el-col>
  58. <el-col :span="8" v-if="shouwef">
  59. <el-form-item label="姓名" prop="userName"><el-input v-model="form.userName" placeholder="请输入姓名" /></el-form-item>
  60. </el-col>
  61. <el-col :span="8" v-if="shouwef">
  62. <el-form-item label="性别" prop="gender">
  63. <!-- <el-input v-model="form.gender" placeholder="请输入性别" /> -->
  64. <el-select v-model="form.gender" placeholder="性别" clearable style="width: 100%;">
  65. <el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  66. </el-select>
  67. </el-form-item>
  68. </el-col>
  69. <el-col :span="24" v-if="shouwef">
  70. <el-row>
  71. <el-col :span="8">
  72. <el-form-item label="联系号码" prop="phoneNum"><el-input v-model="form.phoneNum" placeholder="请输入联系号码" /></el-form-item>
  73. </el-col>
  74. <el-col :span="8">
  75. <el-form-item label="人员分类" prop="keyIndustries">
  76. <el-select v-model="form.keyIndustries" placeholder="人员分类" clearable style="width: 100%;">
  77. <el-option v-for="dict in typeOptionsname" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  78. </el-select>
  79. </el-form-item>
  80. </el-col>
  81. <el-col :span="8">
  82. <el-form-item label="年龄" prop="age"><el-input v-model="form.age" placeholder="请输入年龄" /></el-form-item>
  83. </el-col>
  84. </el-row>
  85. </el-col>
  86. <el-col :span="24">
  87. <el-row>
  88. <el-col :span="12" style="position: relative;">
  89. <span style="position: absolute;top:5px; color: red;left:25px;">*</span>
  90. <el-form-item label="户籍地址" style="margin-bottom: 5px;" >
  91. <!-- <el-input v-model="form.villageTowns" type="textarea" placeholder="请输入内容" /> -->
  92. <!-- <treeselect v-model="form.parentId" :options="deptOptionstwo" :normalizer="normalizer" :flat="true" :maxHeight="150" @select="djieskle" :multiple=true placeholder="点击选择户籍地" /> -->
  93. <el-cascader
  94. v-if="nhyesfx"
  95. :placeholder="nhdyesfgh"
  96. :options="optionsLists"
  97. :filterable="true"
  98. separator="/"
  99. @change="chahe"
  100. :props="optionPropsss"
  101. style="width: 100%;"
  102. ref="myCascader"
  103. @active-item-change="handleItemChanges"
  104. :class="[nhdyesfgh == '点击选择户籍地址' ? '' : 'placf']"
  105. ></el-cascader>
  106. <!-- @click.native="clicks"
  107. :popper-class="'cascader' + id" -->
  108. <!-- <el-cascader
  109. :placeholder="nhdyesfgh"
  110. :options="optionsList"
  111. :filterable="true"
  112. separator="/"
  113. @change="chahe(index)"
  114. v-model="selected"
  115. :props="optionPropsss"
  116. style="width: 100%;"
  117. ref="myCascader"
  118. @active-item-change="handleItemChange"
  119. :class="[nhdyesfgh == '点击选择居住地址' ? '' : 'placf']"
  120. ></el-cascader> -->
  121. <p style="line-height: 20px; font-size: 12px;color: red;">点击小圆圈一级一级选择</p>
  122. </el-form-item>
  123. </el-col>
  124. <el-col :span="12">
  125. <el-form-item label="详细地址" prop="nowIn"><el-input v-model="form.nowIn" type="input" placeholder="请输入户籍详细地址" /></el-form-item>
  126. </el-col>
  127. </el-row>
  128. </el-col>
  129. <el-col :span="24" v-for="(item, index) in form.czrkJzdzList" :key="index" v-show="senlsduea == false || index !== 0">
  130. <el-col :span="12">
  131. <el-form-item label="居住地址" prop="province" style="margin-bottom: 5px;">
  132. <el-cascader
  133. :placeholder="item.plaed"
  134. :options="item.optiodne"
  135. :filterable="true"
  136. separator="/"
  137. @change="onSelected(index)"
  138. :props="optionPropsss"
  139. style="width: 100%;"
  140. :ref="'myCascaderf' + '' + index"
  141. v-model="item.seleted"
  142. @active-item-change="handleItemChange"
  143. :class="[item.plaed == '请选择居住地址' ? '' : 'placf']"
  144. ></el-cascader>
  145. <!-- :popper-class="'cascader' + idsg"
  146. @click.native="click(index)" -->
  147. <!-- @active-item-change="handleItemChange" v-if = 'nhdyesku' -->
  148. <p style="line-height: 20px; font-size: 12px;color: red;">点击小圆圈一级一级选择</p>
  149. </el-form-item>
  150. <!-- :key="cascaderKey" seleted -->
  151. </el-col>
  152. <el-col :span="11">
  153. <el-form-item label="详细地址" prop="nowIn"><el-input v-model="item.nowIn" type="input" placeholder="请输入内容" /></el-form-item>
  154. </el-col>
  155. <el-col :span="1">
  156. <div class="hyeoa" style="margin-top: 10px;">
  157. <el-tooltip class="item" effect="dark" content="新增居住地址信息,请慎重操作" placement="top-start">
  158. <img src="../../../assets/images/icon_tc_add.png" alt="" class="hueyde" @click="tijea(index)" />
  159. </el-tooltip>
  160. <el-tooltip class="item" effect="dark" content="删除无法恢复,请慎重操作" placement="top-start">
  161. <img src="../../../assets/images/delei.png" alt="" class="hueydele" @click="naeyrfakjf(index, item)" />
  162. </el-tooltip>
  163. </div>
  164. </el-col>
  165. </el-col>
  166. <el-col :span="24" >
  167. <el-col :span="12">
  168. <el-form-item label="户主" prop="houseType">
  169. <el-select v-model="form.houseType" placeholder="户主" clearable style="width: 100%;" @change="changese">
  170. <el-option v-for="dict in typeOptionshuuj" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  171. </el-select>
  172. </el-form-item>
  173. </el-col>
  174. <el-col :span="12">
  175. <el-form-item label="户编号" prop="code">
  176. <el-input v-model="form.code" placeholder="请输入户主编号"/>
  177. <!-- :disabled="nhe" -->
  178. </el-form-item>
  179. </el-col>
  180. </el-col>
  181. <el-col :span="24" >
  182. <el-col :span="12" >
  183. <el-form-item label="与户主关系" prop="yhzgx">
  184. <el-select v-model="form.yhzgx" placeholder="与户主关系" clearable style="width: 100%;">
  185. <el-option v-for="dict in typeOptionstyzandeh" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictLabel" />
  186. </el-select>
  187. </el-form-item>
  188. </el-col>
  189. <el-col :span="12">
  190. <el-form-item label="网格" prop="houseTyper">
  191. <el-cascader
  192. :placeholder="ndhesdweaf"
  193. :options="optionsListwg"
  194. filterable
  195. @change="chahetwoswge"
  196. :props="optionPropsssdwg"
  197. style="width: 100%;"
  198. @keyup.enter.native="handleQuery"
  199. :key="nhduesw"
  200. ref = "cddfr"
  201. @active-item-change="handleItemChangefrwg"
  202. :class="[ndhesdweaf == '点击选择网格' ? '' : 'placf']"
  203. ></el-cascader>
  204. </el-form-item>
  205. </el-col>
  206. </el-col>
  207. <el-col :span="24">
  208. <el-form-item label="备注" prop="remark">
  209. <el-input v-model="form.remark" type="input" placeholder="请输入户籍详细地址" />
  210. </el-form-item>
  211. </el-col>
  212. </el-row>
  213. </el-form>
  214. <div slot="footer" class="dialog-footer">
  215. <el-button type="primary" @click="submitForm">确 定</el-button>
  216. <el-button @click="cancel">取 消</el-button>
  217. </div>
  218. </el-dialog>
  219. <!-- 图片预览 -->
  220. <el-dialog :close-on-click-modal="false" title="变更原因" :visible.sync="imashow" width="800px" append-to-body >
  221. <el-form ref="formgt" :model="formgt" :rules="ruleshy" label-width="100px" style="padding-bottom: 30px;">
  222. <el-form-item label="变更:" prop="houseType">
  223. <el-select v-model="formgt.houseType" placeholder="请选择变更原因" clearable style="width: 100%;">
  224. <el-option v-for="dict in typeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  225. </el-select>
  226. </el-form-item>
  227. </el-form>
  228. <div slot="footer" class="dialog-footer">
  229. <el-button type="primary" @click="submitFormfr">确 定</el-button>
  230. <el-button @click="cancel">取 消</el-button>
  231. </div>
  232. </el-dialog>
  233. <el-dialog :close-on-click-modal="false" title="查看信息" :visible.sync="jiezhong" width="1100px" append-to-body class="ojhgy">
  234. <el-table :data="jiezheList" stripe style="width: 100%">
  235. <el-table-column type="selection" width="55" align="center" />
  236. <el-table-column label="姓名" align="center" prop="userName" fixed width="100"/>
  237. <el-table-column label="与户主关系" align="center" prop="yhzgx" fixed width="100"/>
  238. <el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
  239. <el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
  240. <el-table-column label="户籍地址" align="center" prop="domicileSelect" width="250" />
  241. <!-- nowInSelect -->
  242. <el-table-column label="居住地址" align="center" prop="nowInSelect" />
  243. <!-- <el-table-column label="是否户主" align="center" prop="houseType" width="90" /> -->
  244. <el-table-column v-if="nhyesoder !== 3" label="操作人" align="center" prop="updateBy" width="90" />
  245. <el-table-column v-if="nhyesoder !== 3" label="创建时间" align="center" prop="createTime" />
  246. </el-table>
  247. </el-table>
  248. <pagination v-show="totalfr > 0" :total="totalfr" :page.sync="ndhuwosdjh.pageNum" :limit.sync="ndhuwosdjh.pageSize" @pagination="chakei" />
  249. </el-dialog>
  250. </div>
  251. </template>
  252. <script>
  253. import {listRoleergth } from '@/api/system/residentss';
  254. import { listInfo,listInfoch, getInfo, delInfo, addInfo, updateInfo, exportInfo, listRoleer, idces, delInfort,yiaoe,exportConfig,exportConfigtyr,importLog,delInfohy,listRoleergthwg } from '@/api/bdc/unit';
  255. import { treeselect } from '@/api/system/dept';
  256. import Treeselect from '@riophae/vue-treeselect';
  257. import { getToken } from '@/utils/auth';
  258. import '@riophae/vue-treeselect/dist/vue-treeselect.css';
  259. export default {
  260. name: 'Info',
  261. components: { Treeselect },
  262. data() {
  263. return {
  264. // 遮罩层
  265. loading: false,
  266. // 选中数组
  267. ids: [],
  268. id:'fg',
  269. idsg:'gh',
  270. // 非单个禁用
  271. single: true,
  272. // 非多个禁用
  273. multiple: true,
  274. // 显示搜索条件
  275. showSearch: true,
  276. // 总条数
  277. total: 0,
  278. ruleshy:{},
  279. // 疫苗信息表格数据
  280. infoList: [],
  281. dialogImageUrl: '',
  282. // 弹出层标题
  283. title: '',
  284. totalfr:0,
  285. nhyesfx:false,
  286. ndhesdweaf:'点击选择网格',
  287. // 是否显示弹出层
  288. opens: false,
  289. process: process.env.VUE_APP_BASE_API,
  290. // 查询参数
  291. queryParams: {
  292. pageNum: 1,
  293. pageSize: 10,
  294. MomIdCode: null,
  295. MomName: null,
  296. BirthCode: null,
  297. requestOrgName: null,
  298. requestOrgCode: null,
  299. },
  300. config: [],
  301. comfietg:[],
  302. configther:[],
  303. configfor:[],
  304. senlsduea:false,
  305. nhykis:true,
  306. nhyki:false,
  307. nhduesw:0,
  308. // 表单参数
  309. form: {
  310. nowIn: '',
  311. age:'',
  312. code:'',
  313. czrkJzdzList: [
  314. {
  315. provinceId: '',
  316. province: '',
  317. deptId: '',
  318. cityId: '',
  319. city: '',
  320. regionId:'',
  321. region: '',
  322. townId: '',
  323. town: '',
  324. villageId: '',
  325. village: '',
  326. nowIn:'',
  327. seleted:[],
  328. plaed:'请选择居住地址',
  329. optiodne:[],
  330. disableg:false,
  331. }
  332. ]
  333. },
  334. nbdgywkajs:false,
  335. // 用户导入参数
  336. upload: {
  337. // 是否显示弹出层(用户导入)
  338. opens: false,
  339. // 弹出层标题(用户导入)
  340. title: "",
  341. // 是否禁用上传
  342. isUploading: false,
  343. // 是否更新已经存在的用户数据
  344. updateSupport: 0,
  345. // 设置上传的请求头部
  346. headers: { Authorization: "Bearer " + getToken() },
  347. // 上传的地址
  348. url: process.env.VUE_APP_BASE_API + "/boman-web-core//file/common/importYmjz"
  349. },
  350. // 表单校验
  351. rules: {
  352. idCard: [{ required: true, message: '身份证号码不能为空', trigger: 'blur' }],
  353. userName: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
  354. // villageTowns:[{ required: true, message: '户籍地址不能为空或不能只选潜山市', trigger: 'blur' }],
  355. houseType:[{ required: true, message: '请选择是否户主', trigger: 'blur' }],
  356. code:[{ required: true, message: '请输入户编号信息', trigger: 'blur' }],
  357. yhzgx:[{ required: true, message: '请选择与户主关系', trigger: 'blur' }],
  358. },
  359. selected: [],
  360. selectedtwo: [],
  361. statusOptions: [
  362. {
  363. dictValue: '女',
  364. dictLabel: '女'
  365. },
  366. {
  367. dictValue: '男',
  368. dictLabel: '男'
  369. }
  370. ],
  371. statusOptionstue: [
  372. {
  373. dictValue: '已完成',
  374. dictLabel: '已完成'
  375. },
  376. {
  377. dictValue: '未完成',
  378. dictLabel: '未完成'
  379. }
  380. ],
  381. typeOptionshuuj: [
  382. {
  383. dictValue: '是',
  384. dictLabel: '是'
  385. },
  386. {
  387. dictValue: '否',
  388. dictLabel: '否'
  389. }
  390. ],
  391. deptOptionstwo: [],
  392. options: [],
  393. optionss:[],
  394. optionsList: [],
  395. optionProps: {
  396. value: 'areaId',
  397. label: 'name',
  398. checkStrictly: true,
  399. },
  400. optionPropsssd:{
  401. value: 'areaId',
  402. label: 'name',
  403. checkStrictly: true,
  404. lazy: true,
  405. lazyLoad: this.lazyLoads,
  406. leaf: "leaf"
  407. },
  408. optionPropsss: {
  409. value: 'areaId',
  410. label: 'name',
  411. checkStrictly: true,
  412. },
  413. optionPropsssdwg:{
  414. value: 'id',
  415. label: 'areaName',
  416. checkStrictly: true,
  417. },
  418. optionPropstwo: {
  419. value: 'id',
  420. label: 'label',
  421. children: 'children',
  422. checkStrictly: true
  423. },
  424. heuiq: [],
  425. typeOptions: [],
  426. typeOptionsty: [
  427. {
  428. dictValue: '是',
  429. dictLabel: '是'
  430. },
  431. {
  432. dictValue: '否',
  433. dictLabel: '否'
  434. }
  435. ],
  436. typeOptionstyzandeh:[],
  437. angesList: [
  438. ],
  439. typeOptionsname: [],
  440. typeOptionstimes: [],
  441. typeOptionsvaccinatio: [],
  442. typeOptionscont: [],
  443. typeOptionscontty: [],
  444. typeOptionscontqit:[],
  445. // 剂次
  446. typeOptionstimesgt: [
  447. {
  448. dictValue: '1',
  449. dictLabel: '1'
  450. },
  451. {
  452. dictValue: '2',
  453. dictLabel: '2'
  454. },
  455. {
  456. dictValue: '3',
  457. dictLabel: '3'
  458. },
  459. {
  460. dictValue: '加强针',
  461. dictLabel: '加强针'
  462. }
  463. ],
  464. imashow: false,
  465. naneme: false,
  466. shouwes: false,
  467. shouwestwo:false,
  468. villageTownshy: undefined,
  469. naiseurya: '',
  470. hsuej: '',
  471. jdourdjoaj: false,
  472. jiezhong: false,
  473. jiezheList: [],
  474. optionsListwg:[],
  475. fireLise:{config:[]},
  476. nameutaiL:0,
  477. jue:false,
  478. nhue:true,
  479. exportflag:true,
  480. errorlog:false,
  481. errorList:[],
  482. idfer:0,
  483. formgt:{},
  484. list: [],
  485. listd:[],
  486. lser:[],
  487. dneyhsd:{},
  488. nhdyesfgh:'点击选择户籍地址',
  489. nhe:false,
  490. nhyesoder:0,
  491. ndhuwosdjh:{
  492. pageNum: 1,
  493. pageSize: 10,
  494. },
  495. tableMaxHeight:300,
  496. cascaderKey:0,
  497. optionsLists:[],
  498. nhyeojd:false,
  499. ndhyuewkg:[],
  500. nhdyesku:false,
  501. shouwef:false,
  502. ncdwee:1
  503. };
  504. },
  505. created() {
  506. // this.getList();
  507. // this.form.province = this.selected[0];
  508. // this.form.city = this.selected[1];
  509. // this.form.region = this.selected[2];
  510. console.log(this.selected,456)
  511. console.log(this.cascaderKey,347)
  512. // this.queryParams.province = this.selectedtwo[0];
  513. // this.queryParams.city = this.selectedtwo[1];
  514. // this.queryParams.region = this.selectedtwo[2];
  515. // this.naiseurya = this.form.province + this.form.city + this.form.region;
  516. window.onresize = () => {
  517. this.changeTableMaxHeight()
  518. }
  519. this.changeTableMaxHeight()
  520. },
  521. mounted() {
  522. console.log(136)
  523. window.onresize = () => {
  524. this.changeTableMaxHeight()
  525. }
  526. this.changeTableMaxHeight()
  527. },
  528. methods: {
  529. nhyeosdsef(){
  530. console.log(234)
  531. },
  532. onSelected(data,val) {
  533. console.log(data, 125);
  534. if(this.opens == false){
  535. return false
  536. }
  537. this.nameutaiL = data
  538. console.log(this.nameutaiL,76543)
  539. console.log(this.form.czrkJzdzList[data].seleted)
  540. console.log(this.$refs['myCascaderf' + '' + data],123)
  541. console.log(this.$refs['myCascaderf' + '' + data][0].$refs.panel.checkedValue,data)
  542. console.log(this.$refs['myCascaderf' + '' + data][0].getCheckedNodes()[0].pathLabels)
  543. // if(data !== 0){
  544. // if(this.nhyeojd = true){
  545. // this.$refs['myCascaderf' + '' + this.nameutaiL][0].$refs.panel.clearCheckedNodes()
  546. // }
  547. // }
  548. // var nhedse = []
  549. // nhedse = this.$refs['myCascaderf']
  550. // if(nhedse.length > 1){
  551. // this.$refs['myCascaderf'] = this.$refs['myCascaderf'][0];
  552. // console.log(this.$refs['myCascaderf'],133)
  553. // // for(var i = 0 ; i < nhedse.length; i++){
  554. // // if(i == 0){
  555. // // this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes()
  556. // // }
  557. // // }
  558. // }
  559. // this.$refs['myCascaderf'][0].$refs.panel.checkedValue = this.form.czrkJzdzList[data].seleted
  560. // console.log(this.$refs['myCascaderf'][0].$refs.panel.checkedValue,data)
  561. // console.log(this.$refs['myCascaderf'][0].getCheckedNodes()[0].pathLabels)
  562. this.nhyeojd = false
  563. // this.nhdyesku = false
  564. // province
  565. let nhdye = []
  566. nhdye = this.$refs['myCascaderf' + '' + data][0].getCheckedNodes()[0].pathLabels
  567. let nhyhe = []
  568. nhyhe = this.form.czrkJzdzList[data].seleted
  569. if(nhdye.length == 1){
  570. this.form.czrkJzdzList[data].provinceId = nhyhe[ nhyhe.length - 1];
  571. this.form.czrkJzdzList[data].province = nhdye[ nhdye.length - 1];
  572. this.form.czrkJzdzList[data].cityId = null
  573. this.form.czrkJzdzList[data].city = null
  574. this.form.czrkJzdzList[data].regionId = null
  575. this.form.czrkJzdzList[data].region = null
  576. this.form.czrkJzdzList[data].townId = null
  577. this.form.czrkJzdzList[data].town = null
  578. this.form.czrkJzdzList[data].villageId = null
  579. this.form.czrkJzdzList[data].village = null
  580. }else if(nhdye.length == 2){
  581. this.form.czrkJzdzList[data].cityId = nhyhe[ nhyhe.length - 1];
  582. this.form.czrkJzdzList[data].city = nhdye[ nhdye.length - 1];
  583. this.form.czrkJzdzList[data].regionId = null
  584. this.form.czrkJzdzList[data].region = null
  585. this.form.czrkJzdzList[data].townId = null
  586. this.form.czrkJzdzList[data].town = null
  587. this.form.czrkJzdzList[data].villageId = null
  588. this.form.czrkJzdzList[data].village = null
  589. }else if(nhdye.length == 3){
  590. this.form.czrkJzdzList[data].regionId = nhyhe[ nhyhe.length - 1];
  591. this.form.czrkJzdzList[data].region = nhdye[ nhdye.length - 1];
  592. this.form.czrkJzdzList[data].townId = null
  593. this.form.czrkJzdzList[data].town = null
  594. this.form.czrkJzdzList[data].villageId = null
  595. this.form.czrkJzdzList[data].village = null
  596. }else if(nhdye.length == 4){
  597. this.form.czrkJzdzList[data].townId = nhyhe[ nhyhe.length - 1];
  598. this.form.czrkJzdzList[data].town = nhdye[ nhdye.length - 1];
  599. this.form.czrkJzdzList[data].villageId = null
  600. this.form.czrkJzdzList[data].village = null
  601. }else if(nhdye.length == 5){
  602. this.form.czrkJzdzList[data].villageId = nhyhe[ nhyhe.length - 1];
  603. this.form.czrkJzdzList[data].village = nhdye[ nhdye.length - 1];
  604. }
  605. this.form.czrkJzdzList[data].deptId = nhyhe[ nhyhe.length - 1]
  606. // id
  607. // this.form.province = data[0];
  608. // this.form.city = data[1];
  609. // this.form.region = data[2];
  610. // 名称
  611. // this.naiseurya = this.form.province + this.form.city + this.form.region;
  612. // if (this.jdourdjoaj == false) {
  613. // // 修改
  614. // this.form.nowIn = '';
  615. // }
  616. // this.form.nowIn = undefined
  617. // this.form.villageTowns = data[3]
  618. console.log(this.form)
  619. },
  620. dakousr() {
  621. console.log(2345);
  622. },
  623. mnyesfjer(index,val){
  624. this.loading = true;
  625. let pids = {}
  626. pids.pid = index
  627. listRoleergth(pids).then(response => {
  628. // this.cascaderKey = this.cascaderKey + 1
  629. if(response.data.length == 0){
  630. return
  631. }
  632. if(val !== undefined){
  633. this.nameutaiL = val
  634. }
  635. console.log(this.nameutaiL,87)
  636. this.form.czrkJzdzList[this.nameutaiL].optiodne = this.handleData(response.data);
  637. this.optionsLists = this.handleData(response.data);
  638. this.optionsList = this.handleData(response.data);
  639. // this.form.czrkJzdzList[0].optiodne
  640. this.loading = false;
  641. console.log(this.cascaderKey,8765)
  642. });
  643. },
  644. mnyesfjeropwg(index){
  645. this.loading = true;
  646. let pids = {}
  647. pids.pid= index
  648. listRoleergthwg(pids).then(response => {
  649. this.optionsListwg = this.handleDatawg(response.data);
  650. this.loading = false;
  651. });
  652. },
  653. mnyesfjerty(index,val){
  654. this.loading = true;
  655. let pids = {}
  656. pids.pid = index
  657. listRoleergth(pids).then(response => {
  658. // this.cascaderKey = this.cascaderKey + 1
  659. if(response.data.length == 0){
  660. return
  661. }
  662. if(val !== undefined){
  663. this.nameutaiL = val
  664. }
  665. for(var i = 0 ; i < this.form.czrkJzdzList.length ; i++){
  666. // this.nameutaiL = i
  667. // this.mnyesfjerty(0)
  668. this.form.czrkJzdzList[i].optiodne = this.handleData(response.data);
  669. }
  670. // this.form.czrkJzdzList[0].optiodne
  671. this.loading = false;
  672. console.log(this.cascaderKey,8765)
  673. });
  674. },
  675. mnyesfjerop(index){
  676. this.loading = true;
  677. let pids = {}
  678. pids.pid = index
  679. listRoleergth(pids).then(response => {
  680. this.optionsList = this.handleData(response.data);
  681. this.loading = false;
  682. });
  683. },
  684. mnyesfjers(index){
  685. this.loading = true;
  686. let pids = {}
  687. pids.pid = index
  688. listRoleergth(pids).then(response => {
  689. // this.cascaderKey = this.cascaderKey + 1
  690. if(response.data.length == 0){
  691. return
  692. }
  693. this.optionsLists = this.handleData(response.data);
  694. this.loading = false;
  695. console.log(this.cascaderKey,8765)
  696. });
  697. },
  698. lazyLoads(node, resolve) {
  699. console.log(node,34545678)
  700. if (node.level == 0) {
  701. let res = this.mnyesfjer(0); // 不存在就默认加载第一集节点
  702. resolve(res);
  703. } else {
  704. // 有children属性了就不要再请求了,不然字节点会重复
  705. if (!node.data.children) {
  706. // 获取子节点数据
  707. let res = this.mnyesfjer(node.data.areaId);
  708. console.log(node.children)
  709. let nfhh = node.children.push(res)
  710. setTimeout(() => {
  711. resolve(res);
  712. }, 200);
  713. } else {
  714. resolve([]);
  715. }
  716. }
  717. },
  718. format() {
  719. let res = this.getfristChild(); // 拿一级数据
  720. this.list.forEach((item) => {
  721. // 遍历回显的id 二维数组
  722. if (item.length > 1) {
  723. item.forEach(async (sitem, index) => {
  724. if (index == item.length - 1) {
  725. return; // 如果是一级节点就不用查找了
  726. }
  727. let arr = this.getOther(sitem); // 不是一级,获取子级
  728. this.findItem(res, arr, sitem); // 判断当前拿到的子级数据属于哪个一级数据下的子级,并且加到当前一级的children属性下
  729. });
  730. }
  731. });
  732. },
  733. // 递归判断
  734. findItem(res, arr, id) {
  735. for (let i = 0; i < res.length; i++) {
  736. if (res[i].value === id) {
  737. res[i].children = arr; // 有chidlren 也要判断是不是这个children下的子级
  738. return res;
  739. }
  740. if (res[i].children) {
  741. this.findItem(res[i].children, arr, id);
  742. }
  743. }
  744. return res;
  745. },
  746. // getAddress() {
  747. // this.mnyesfjer(0).then(res => {
  748. // this.optionsList = this.handleData(res.data);
  749. // }).catch(err => {
  750. // })
  751. // },
  752. handleItemChange(val) {
  753. console.log(val,235)
  754. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  755. let level = val.length + 1; //需请求第几级地址
  756. console.log(this.nameutaiL,2345)
  757. console.log(this.form.czrkJzdzList,12365)
  758. this.$set(this.form.czrkJzdzList[this.nameutaiL],'optiodne',this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level))
  759. // this.form.czrkJzdzList[this.nameutaiL].optiodne = this.handleData(this.form.czrkJzdzList[this.nameutaiL].optiodne, code, level);
  760. // console.log(this.optionsList,23456)
  761. // console.log(this.$refs.myCascaderf,2588)
  762. // console.log(this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes(),258)
  763. // if(data !== 0){
  764. // if(this.nhyeojd == true){
  765. // this.$refs['myCascaderf'][this.nameutaiL].$refs.panel.clearCheckedNodes()
  766. // }
  767. // }
  768. // this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes()
  769. // console.log(this.$refs['myCascaderf'][this.nameutaiL].$refs.panel.checkedValue,345678)
  770. },
  771. handleItemChangefr(val) {
  772. console.log(val,235)
  773. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  774. let level = val.length + 1; //需请求第几级地址
  775. this.optionsList = this.handleData(this.optionsList, code, level);
  776. },
  777. handleItemChanges(val) {
  778. console.log(val,235)
  779. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  780. let level = val.length + 1; //需请求第几级地址
  781. this.optionsLists = this.handleData(this.optionsLists, code, level);
  782. this.cascaderKey = this.cascaderKey + 1
  783. },
  784. handleData(data, val, level) {
  785. console.log(data,val,level,7536)
  786. var that = this
  787. for (let i = 0; i < data.length; i++) {
  788. if(!data[i].children) {
  789. that.$set(data[i], 'children', []);
  790. }
  791. if(data[i].areaId === val){
  792. let vfer = {}
  793. vfer.pid = val
  794. listRoleergth(vfer).then(res => {
  795. // this.cascaderKey = this.cascaderKey + 1
  796. if(res.data.length) {
  797. console.log(i,4567)
  798. // data[i].children = res.data;
  799. that.$set(data[i], 'children', res.data)
  800. // this.nhdyesku = true
  801. data[i].children.forEach(ele => {
  802. that.$set(ele, 'children', [])
  803. });
  804. // console.log(data[i].children,45678)
  805. }else {
  806. data[i].children = undefined;
  807. }
  808. }).catch(err => {
  809. });
  810. }else {
  811. if(data[i].children.length){
  812. that.handleData(data[i].children,val,level)
  813. }
  814. }
  815. }
  816. // console.log(data,666666)
  817. return data;
  818. },
  819. handleItemChangefrwg(val) {
  820. console.log(val,235)
  821. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  822. let level = val.length + 1; //需请求第几级地址
  823. this.optionsListwg = this.handleDatawg(this.optionsListwg, code, level);
  824. // this.cascaderKey = this.cascaderKey + 1
  825. },
  826. handleDatawg(data, val, level) {
  827. console.log(data,val,level,7536)
  828. for (let i = 0; i < data.length; i++) {
  829. if(!data[i].children) {
  830. this.$set(data[i], 'children', []);
  831. }
  832. if(data[i].id === val){
  833. let vfer = {}
  834. vfer.pid = val
  835. listRoleergthwg(vfer).then(res => {
  836. // this.cascaderKey = this.cascaderKey + 1
  837. if(res.data.length) {
  838. console.log(data[i].children,4567)
  839. // data[i].children = res.data;
  840. this.$set(data[i], 'children', res.data)
  841. console.log(data[i].children,45678)
  842. this.nhdyesku = true
  843. data[i].children.forEach(ele => {
  844. this.$set(ele, 'children', [])
  845. });
  846. }else {
  847. data[i].children = undefined;
  848. }
  849. }).catch(err => {
  850. });
  851. }else {
  852. if(data[i].children.length){
  853. this.handleDatawg(data[i].children,val,level)
  854. }
  855. }
  856. }
  857. return data;
  858. },
  859. onSelectedtwo(data) {
  860. console.log(data);
  861. // province
  862. this.queryParams.province = data[0];
  863. this.queryParams.city = data[1];
  864. this.queryParams.region = data[2];
  865. // this.queryParams.villageTowns = data[3]
  866. },
  867. /** 查询疫苗信息列表 */
  868. getList() {
  869. this.loading = true;
  870. listInfo(this.queryParams).then(response => {
  871. this.infoList = response.data;
  872. this.nbdgywkajs = true
  873. this.loading = false;
  874. });
  875. },
  876. getListch() {
  877. this.loading = true;
  878. listInfoch(this.queryParams).then(response => {
  879. this.infoList = response.rows;
  880. this.nbdgywkajs = true
  881. this.total = response.total;
  882. this.loading = false;
  883. });
  884. },
  885. getToken() {
  886. return getToken();
  887. },
  888. getTreeselectjue() {
  889. this.loading = true;
  890. let pids = {}
  891. pids.pid = 0
  892. listRoleer().then(response => {
  893. this.options = response.data;
  894. this.loading = false;
  895. });
  896. },
  897. // 统计数据
  898. getTreeselectjuetj() {
  899. this.loading = true;
  900. listInfotj().then(response => {
  901. this.dneyhsd = response.data
  902. this.loading = false;
  903. });
  904. },
  905. /** 转换角色数据结构 */
  906. normalizer(node) {
  907. // if (node.children && !node.children.length) {
  908. // delete node.children;
  909. // }
  910. return {
  911. id: node.id,
  912. label: node.roleName
  913. };
  914. },
  915. // 点击组/角色
  916. djieskle(node, instanceId) {
  917. // this.personnel(node.id);
  918. console.log(node, instanceId);
  919. },
  920. // 身份证
  921. idcde(event) {
  922. console.log(event);
  923. console.log(event);
  924. // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
  925. 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]$/;
  926. 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}$/;
  927. // 护照
  928. // 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}$)/;
  929. let ncjsle = /^[a-zA-Z0-9]{5,17}$/
  930. let nhyeli = /^[a-zA-Z]{5,17}$/
  931. // 港澳
  932. let gnse = /^([A-Z]\d{6,10}(\(\w{1}\))?)$/;
  933. // 台湾
  934. // let tw = /^\d{8}|^[a-zA-Z0-9]{10}|^\d{18}$/
  935. var tw = /^[0-9]{8}$/;
  936. var twe = /^[0-9]{10}$/;
  937. // 校验身份证:
  938. console.log(reg.test(this.form.idCard),23741)
  939. if ( reg.test(this.form.idCard)|| _IDre15.test(this.form.idCard)) {
  940. this.idea();
  941. // this.go(this.form.idCard.length);
  942. // callback()
  943. } else {
  944. if(ncjsle.test(this.form.idCard) || nhyeli.test(this.form.idCard)){
  945. console.log(3)
  946. }else{
  947. if(gnse.test(this.form.idCard) ){
  948. console.log(4)
  949. }else{
  950. if(tw.test(this.form.idCard) || twe.test(this.form.idCard)){
  951. console.log(5)
  952. }else{
  953. this.msgInfo('证件格式不正确');
  954. }
  955. // return false
  956. }
  957. }
  958. // callback(new Error('身份证号码不正确'))
  959. }
  960. // },
  961. // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
  962. },
  963. // 实现自动生成生日,性别,年龄
  964. go(val) {
  965. let iden = this.form.idCard;
  966. let sex = null;
  967. let birth = null;
  968. let birthr = '';
  969. let myDate = new Date();
  970. let month = myDate.getMonth() + 1;
  971. let day = myDate.getDate();
  972. let age = 0;
  973. if (val === 18) {
  974. age = myDate.getFullYear() - iden.substring(6, 10) - 1;
  975. sex = iden.substring(16, 17);
  976. birth = iden.substring(6, 10) + '-' + iden.substring(10, 12) + '-' + iden.substring(12, 14);
  977. if (iden.substring(10, 12) < month || (iden.substring(10, 12) == month && iden.substring(12, 14) <= day)) age++;
  978. }
  979. if (val === 15) {
  980. age = myDate.getFullYear() - iden.substring(6, 8) - 1901;
  981. sex = iden.substring(13, 14);
  982. birth = '19' + iden.substring(6, 8) + '-' + iden.substring(8, 10) + '-' + iden.substring(10, 12);
  983. if (iden.substring(8, 10) < month || (iden.substring(8, 10) == month && iden.substring(10, 12) <= day)) age++;
  984. }
  985. if (sex % 2 === 0) sex = '女';
  986. else sex = '男';
  987. this.form.gender = sex;
  988. // this.baseInfo.age = age;
  989. birthr = birth + '';
  990. console.log(birthr);
  991. // this.form.birthday = birthr;
  992. // this.$set(this.form.birthday, birthr)
  993. // this.baseInfo.birthplace = this.area[iden.substring(0,2)];
  994. },
  995. // 请求身份证数据
  996. idea() {
  997. idces({ idCard: this.form.idCard }).then(response => {
  998. console.log(response);
  999. this.form.gender = response.data.gender;
  1000. // this.form.birthday = response.data.birthday;
  1001. this.form.age = response.data.age
  1002. this.form.code = response.data.code
  1003. if (response.data.userName == null) {
  1004. this.form.userName = undefined;
  1005. } else {
  1006. this.form.userName = response.data.userName;
  1007. }
  1008. if(response.data.code == null){
  1009. this.form.code = null;
  1010. }else{
  1011. this.form.code = response.data.code;
  1012. }
  1013. if(response.data.province == null){
  1014. this.form.province = null;
  1015. this.form.provinceId = null;
  1016. }else{
  1017. this.form.province = response.data.province;
  1018. this.form.provinceId = response.data.provinceId;
  1019. }
  1020. if(response.data.city == null){
  1021. this.form.city = null;
  1022. this.form.cityId = null;
  1023. }else{
  1024. this.form.city = response.data.city;
  1025. this.form.cityId = response.data.cityId;
  1026. }
  1027. if(response.data.region == null){
  1028. this.form.region = null;
  1029. this.form.regionId = null;
  1030. }else{
  1031. this.form.region = response.data.region;
  1032. this.form.regionId = response.data.regionId;
  1033. }
  1034. if(response.data.villageTowns == null){
  1035. this.form.villageTowns = null;
  1036. this.form.villageTownsId = null;
  1037. }else{
  1038. this.form.villageTowns = response.data.villageTowns;
  1039. this.form.villageTownsId = response.data.villageTownsId;
  1040. }
  1041. if(response.data.village == null){
  1042. this.form.village = null;
  1043. this.form.villageId = null;
  1044. }else{
  1045. this.form.village = response.data.village;
  1046. this.form.villageId = response.data.villageId;
  1047. }
  1048. if(response.data.villagerGroupId == null){
  1049. this.form.villagerGroup = null;
  1050. this.form.villagerGroupId = null;
  1051. }else{
  1052. this.form.villagerGroup = response.data.villagerGroup;
  1053. this.form.villagerGroupId = response.data.villagerGroupId;
  1054. }
  1055. if(response.data.province !== null && response.data.province !== ""){
  1056. this.nhdyesfgh = response.data.province;
  1057. if(response.data.city !== null && response.data.city !== ""){
  1058. this.nhdyesfgh = response.data.province + '/' + response.data.city;
  1059. if(response.data.region !== null && response.data.region !== ""){
  1060. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region;
  1061. if(this.form.residenceTown !==null && this.form.residenceTown !=='' && this.form.residenceTown !== undefined){
  1062. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.residenceTown;
  1063. if(this.form.residenceVillage !==null && this.form.residenceVillage !=='' && this.form.residenceVillage !== undefined){
  1064. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.residenceTown + '/' + this.form.residenceVillage;
  1065. }
  1066. }
  1067. }else{
  1068. // this.nhdyesfgh ='点击选择居住地址'
  1069. }
  1070. }else{
  1071. // this.nhdyesfgh ='点击选择居住地址'
  1072. }
  1073. }else{
  1074. this.nhdyesfgh ='点击选择户籍地址'
  1075. }
  1076. if( response.data.czrkJzdzList !== null && response.data.czrkJzdzList.length !== 0 ){
  1077. // this.selected[0] = response.data.province;
  1078. // for(var i = 0 ; i < response.data.czrkJzdzList.length ; i++){
  1079. // this.nameutaiL = i
  1080. this.mnyesfjerty(0)
  1081. // }
  1082. response.data.czrkJzdzList.filter(route =>{
  1083. if(route.province !== ""){
  1084. route.plaed = route.province
  1085. if(route.city !== ""){
  1086. route.plaed = route.plaed + '/' + route.city
  1087. if(route.city !== ""){
  1088. route.plaed = route.plaed + '/' + route.city
  1089. if(route.region !== ""){
  1090. route.plaed = route.plaed + '/' + route.region
  1091. if(route.town !== ""){
  1092. route.plaed = route.plaed + '/' + route.town
  1093. if(route.village !== ""){
  1094. route.plaed = route.plaed + '/' + route.village
  1095. }
  1096. }
  1097. }
  1098. }
  1099. }
  1100. }else{
  1101. route.plaed = '请选择居住地址'
  1102. }
  1103. })
  1104. this.form.czrkJzdzList = response.data.czrkJzdzList
  1105. }
  1106. this.form.phoneNum = response.data.phoneNum
  1107. this.form.houseType = response.data.houseType
  1108. this.form.nowIn = response.data.nowIn
  1109. this.form.remark = response.data.remark
  1110. });
  1111. },
  1112. // 取消按钮
  1113. cancel() {
  1114. this.opens = false;
  1115. this.jiezhong = false;
  1116. this.imashow = false;
  1117. this.nhyesfx = false
  1118. this.errorlog=false;
  1119. this.$refs['myCascaderf' + '' + this.nameutaiL][0].$refs.panel.clearCheckedNodes()
  1120. this.reset();
  1121. },
  1122. gywoa() {
  1123. console.log(this.form.isVaccination);
  1124. if (this.form.isVaccination !== null) {
  1125. if (this.form.isVaccination == '是') {
  1126. // 接种疫苗
  1127. this.naneme = false,
  1128. this.shouwes = true;
  1129. }else {
  1130. this.naneme = true,
  1131. this.shouwes = false,
  1132. this.form.czrkJzdzList = [{
  1133. provinceId: '',
  1134. province: '',
  1135. deptId: '',
  1136. cityId: '',
  1137. city: '',
  1138. regionId:'',
  1139. region: '',
  1140. townId: '',
  1141. town: '',
  1142. villageId: '',
  1143. village: '',
  1144. nowIn:'',
  1145. plaed:'请选择居住地址',
  1146. seleted:[],
  1147. optiodne:[]
  1148. }
  1149. ]
  1150. }
  1151. }
  1152. },
  1153. gywoatwo() {
  1154. console.log(this.queryParams.isVaccination);
  1155. if (this.queryParams.isVaccination !== null) {
  1156. if (this.queryParams.isVaccination == '是') {
  1157. // 接种疫苗
  1158. // (this.naneme = false), (this.shouwes = true);
  1159. this.shouwestwo = false
  1160. } else {
  1161. // (this.naneme = true), (this.shouwes = false);
  1162. this.shouwestwo = true
  1163. }
  1164. }
  1165. },
  1166. // 表单重置
  1167. reset() {
  1168. this.form = {
  1169. id: null,
  1170. age:'',
  1171. code:'',
  1172. houseType: null,
  1173. domicile: null,
  1174. province: null,
  1175. city: null,
  1176. region: null,
  1177. userName: null,
  1178. gender: null,
  1179. idCard: null,
  1180. phoneNum: null,
  1181. keyIndustries: null,
  1182. isVaccination: null,
  1183. vaccinationPlace: null,
  1184. contraindication: null,
  1185. nowIn: '',
  1186. gridId:null,
  1187. remark: null,
  1188. residenceTown:null,
  1189. residenceVillage:null,
  1190. czrkJzdzList: [
  1191. {
  1192. provinceId: '',
  1193. province: '',
  1194. deptId: '',
  1195. cityId: '',
  1196. city: '',
  1197. regionId:'',
  1198. region: '',
  1199. townId: '',
  1200. town: '',
  1201. villageId: '',
  1202. village: '',
  1203. nowIn:'',
  1204. plaed:'请选择居住地址',
  1205. disableg:false,
  1206. optiodne:[],
  1207. seleted:[]
  1208. }
  1209. ]
  1210. };
  1211. this.resetForm('form');
  1212. },
  1213. /** 搜索按钮操作 */
  1214. handleQuery() {
  1215. this.queryParams.pageNum = 1;
  1216. console.log(this.queryParams)
  1217. this.getList();
  1218. // this.getList();
  1219. },
  1220. /** 重置按钮操作 */
  1221. resetQuery() {
  1222. this.nhue = false
  1223. this.selectedtwo = []
  1224. setTimeout( ()=>{
  1225. this.nhue = true
  1226. },100)
  1227. this.queryParams.MomIdCode = undefined; this.queryParams.MomName = undefined; this.queryParams.BirthCode = undefined;
  1228. this.queryParams.requestOrgName = undefined
  1229. this.queryParams.requestOrgCode = undefined
  1230. this.queryParams.cityIdXjd = undefined
  1231. this.queryParams.regionIdXjd = undefined
  1232. this.queryParams.villageTownsIdXjd = undefined
  1233. this.queryParams.villageIdXjd = undefined;
  1234. this.queryParams.provinceId = undefined
  1235. this.queryParams.cityId = undefined
  1236. this.queryParams.regionId = undefined
  1237. this.queryParams.villageTownsId = undefined
  1238. this.queryParams.villageId = undefined
  1239. this.listd = []
  1240. this.lser = []
  1241. this.resetForm('queryForm');
  1242. this.handleQuery();
  1243. },
  1244. // 多选框选中数据
  1245. handleSelectionChange(selection) {
  1246. this.ids = selection.map(item => item.id);
  1247. this.single = selection.length !== 1;
  1248. this.multiple = !selection.length;
  1249. },
  1250. /** 新增按钮操作 */
  1251. handleAdd() {
  1252. this.reset();
  1253. this.opens = true;
  1254. if(this.typeOptionsname.length == 0){
  1255. this.getDicts('renyuanfenlei').then(response => {
  1256. this.typeOptionsname = response.data;
  1257. });
  1258. }
  1259. if(this.typeOptionstyzandeh.length == 0){
  1260. // 与户主关系
  1261. this.getDicts('yuhuzhuguanxi').then(response => {
  1262. this.typeOptionstyzandeh = response.data;
  1263. });
  1264. }
  1265. (this.naneme = false),
  1266. (this.shouwes = false);
  1267. this.form.province = this.selected[0];
  1268. this.villageTownshy = '';
  1269. this.naiseurya = '';
  1270. this.hsuej = '';
  1271. this.senlsduea = false
  1272. this.nhyesfx = true
  1273. this.form.city = this.selected[1];
  1274. this.form.region = this.selected[2];
  1275. this.title = '添加人员信息';
  1276. this.jdourdjoaj = true;
  1277. this.jue = true
  1278. this.nhdyesfgh = '点击选择户籍地址'
  1279. this.shouwef = true
  1280. this.nameutaiL = 0
  1281. this.nhduesw = this.nhduesw +1
  1282. // this.nameutaiL = 0
  1283. this.mnyesfjer(0)
  1284. this.ndhesdweaf = '点击选择网格'
  1285. // this.form.province = '安徽省';
  1286. // this.form.city = '安庆市';
  1287. // this.form.region = '潜山市';
  1288. // this.form.residenceTown = '梅城镇';
  1289. // this.form.residenceVillage = '龙井社区';
  1290. // this.nhdyesfgh = this.form.province + '/' + this.form.city + '/' + this.form.region + '/' + this.form.residenceTown + '/' + this.form.residenceVillage;
  1291. console.log(this.form)
  1292. },
  1293. /** 修改按钮操作 */
  1294. handleUpdate(row) {
  1295. this.reset();
  1296. const id = row.id || this.ids;
  1297. this.nhdyesfgh ='点击选择户籍地址'
  1298. if(this.typeOptionsname.length == 0){
  1299. this.getDicts('renyuanfenlei').then(response => {
  1300. this.typeOptionsname = response.data;
  1301. });
  1302. }
  1303. if(this.typeOptionstyzandeh.length == 0){
  1304. // 与户主关系
  1305. this.getDicts('yuhuzhuguanxi').then(response => {
  1306. this.typeOptionstyzandeh = response.data;
  1307. });
  1308. }
  1309. getInfo(id).then(response => {
  1310. this.form = response.data;
  1311. this.jue = false
  1312. this.nhdyesku = true
  1313. this.senlsduea = true
  1314. if(response.data.province !== null && response.data.province !== ""){
  1315. this.nhdyesfgh = response.data.province;
  1316. if(response.data.city !== null && response.data.city !== ""){
  1317. this.nhdyesfgh = response.data.province + '/' + response.data.city;
  1318. if(response.data.region !== null && response.data.region !== ""){
  1319. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region;
  1320. if(this.form.villageTowns !==null && this.form.villageTowns !=='' && this.form.villageTowns !== undefined){
  1321. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.villageTowns;
  1322. if(this.form.village !==null && this.form.village !=='' && this.form.village !== undefined){
  1323. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.villageTowns + '/' + this.form.village;
  1324. }
  1325. }
  1326. }else{
  1327. // this.nhdyesfgh ='点击选择居住地址'
  1328. }
  1329. }else{
  1330. // this.nhdyesfgh ='点击选择居住地址'
  1331. }
  1332. }else{
  1333. this.nhdyesfgh ='点击选择户籍地址'
  1334. }
  1335. this.nhyesfx = true
  1336. if(response.data.czrkJzdzList.length !== 0 && response.data.czrkJzdzList !== null){
  1337. // this.selected[0] = response.data.province;
  1338. // for(var i = 0 ; i < response.data.czrkJzdzList.length ; i++){
  1339. // this.nameutaiL = i
  1340. response.data.czrkJzdzList.unshift(response.data.czrkJzdzList[0])
  1341. // this.form = response.data;
  1342. this.mnyesfjerty(0)
  1343. // }
  1344. response.data.czrkJzdzList.filter(route =>{
  1345. route.seleted = []
  1346. if(route.province !== ""){
  1347. route.plaed = route.province
  1348. if(route.city !== ""){
  1349. route.plaed = route.plaed + '/' + route.city
  1350. if(route.city !== ""){
  1351. // route.plaed = route.plaed + '/' + route.city
  1352. if(route.region !== ""){
  1353. route.plaed = route.plaed + '/' + route.region
  1354. if(route.town !== ""){
  1355. route.plaed = route.plaed + '/' + route.town
  1356. if(route.village !== ""){
  1357. route.plaed = route.plaed + '/' + route.village
  1358. }
  1359. }
  1360. }
  1361. }
  1362. }
  1363. }else{
  1364. route.plaed = '请选择居住地址'
  1365. }
  1366. })
  1367. }else{
  1368. console.log(this.form.czrkJzdzList,58)
  1369. }
  1370. if(response.data.gridName !==null){
  1371. this.ndhesdweaf = response.data.gridName
  1372. }else{
  1373. this.ndhesdweaf = '点击选择网格'
  1374. }
  1375. // this.onSelected(this.selected)
  1376. setTimeout( ()=>{
  1377. this.jue = true
  1378. },100)
  1379. // this.jue = true
  1380. console.log(this.selected,98767)
  1381. // if(this.form){
  1382. if (this.form.isVaccination !== null) {
  1383. if (this.form.isVaccination == '是') {
  1384. // 接种疫苗
  1385. (this.naneme = false), (this.shouwes = true);
  1386. } else {
  1387. (this.naneme = true), (this.shouwes = false);
  1388. }
  1389. } else {
  1390. this.naneme = false;
  1391. this.shouwes = false;
  1392. }
  1393. if (this.form.dictValue !== null && this.form.dictValue !== undefined) {
  1394. this.jicheru(this.form.dictValue);
  1395. }
  1396. if (this.form.villageTowns !== null) {
  1397. this.villageTownshy = this.form.villageTowns;
  1398. if (this.form.village !== null) {
  1399. this.villageTownshy = this.form.village;
  1400. if (this.form.villagerGroup !== null) {
  1401. this.villageTownshy = this.form.villagerGroup;
  1402. }
  1403. }
  1404. }else{
  1405. this.villageTownshy = '';
  1406. }
  1407. console.log(this.villageTownshy,3455)
  1408. // if (this.form.vaccineInfoUserList !== null) {
  1409. // if (this.form.vaccineInfoUserList.length == 0) {
  1410. // }else {
  1411. // this.form.isVaccination = '是'
  1412. // this.form.vaccineInfoUserList.filter(router =>{
  1413. // if(router.url == undefined){
  1414. // router.url = null
  1415. // }else if(router.url == []){
  1416. // router.url = null
  1417. // }
  1418. // router.disableg = true
  1419. // })
  1420. // }
  1421. // }
  1422. // villageTownshy
  1423. // }
  1424. // this.heuiq.push()
  1425. // this.form = response.data;
  1426. this.naiseurya = '';
  1427. this.hsuej = '';
  1428. this.opens = true;
  1429. this.jdourdjoaj = false;
  1430. this.shouwef = false
  1431. this.title = '查看认领人员';
  1432. });
  1433. },
  1434. chahe(data) {
  1435. console.log(data);
  1436. // let labelValue = this.$refs['myCascader'].inputValue
  1437. // console.log(labelValue)
  1438. console.log(this.$refs['myCascader'])
  1439. // this.form.provinceId = data[1];
  1440. // this.form.cityId = data[2];
  1441. // this.form.regionId = data[3];
  1442. // this.form.villageTownsId = data[3];
  1443. // this.form.villageId = data[3];
  1444. let nhdye = []
  1445. nhdye = this.$refs['myCascader'].getCheckedNodes()[0].pathLabels
  1446. if(data.length == 1){
  1447. this.form.provinceId = data[ data.length - 1];
  1448. this.form.province = nhdye[ data.length - 1];
  1449. this.$set(this.form, 'city', null)
  1450. this.$set(this.form, 'cityId', null)
  1451. this.$set(this.form, 'region', null)
  1452. this.$set(this.form, 'regionId', null)
  1453. this.$set(this.form, 'villageTowns', null)
  1454. this.$set(this.form, 'villageTownsId', null)
  1455. this.$set(this.form, 'villageId', null)
  1456. this.$set(this.form, 'village', null)
  1457. }else if(data.length == 2){
  1458. this.form.cityId = data[ data.length - 1];
  1459. this.form.city = nhdye[ data.length - 1];
  1460. this.$set(this.form, 'region', null)
  1461. this.$set(this.form, 'regionId', null)
  1462. this.$set(this.form, 'villageTowns', null)
  1463. this.$set(this.form, 'villageTownsId', null)
  1464. this.$set(this.form, 'villageId', null)
  1465. this.$set(this.form, 'village', null)
  1466. }else if(data.length == 3){
  1467. this.form.regionId = data[ data.length - 1];
  1468. this.form.region = nhdye[ data.length - 1];
  1469. this.$set(this.form, 'villageTowns', null)
  1470. this.$set(this.form, 'villageTownsId', null)
  1471. this.$set(this.form, 'villageId', null)
  1472. this.$set(this.form, 'village', null)
  1473. }else if(data.length == 4){
  1474. this.form.villageTownsId = data[ data.length - 1];
  1475. this.form.villageTowns = nhdye[ data.length - 1];
  1476. this.$set(this.form, 'villageId', null)
  1477. this.$set(this.form, 'village', null)
  1478. }else if(data.length == 5){
  1479. this.form.villageId = data[ data.length - 1];
  1480. this.form.village = nhdye[ data.length - 1];
  1481. }
  1482. this.form.deptId = data[ data.length - 1];
  1483. // if (this.form.villageTowns !== undefined) {
  1484. // this.hsuej = this.form.villageTowns;
  1485. // if (this.form.village !== undefined) {
  1486. // this.hsuej = this.form.villageTowns + this.form.village;
  1487. // if (this.form.villagerGroup !== undefined) {
  1488. // this.hsuej = this.form.villageTowns + this.form.village + this.form.villagerGroup;
  1489. // }
  1490. // }
  1491. // }
  1492. this.form.domicile = '';
  1493. console.log(this.form)
  1494. // if(this.jdourdjoaj == true){
  1495. // //新增
  1496. // this.form.nowIn = this.hsuej
  1497. // }else{
  1498. // this.form.nowIn != this.hsuej
  1499. // }
  1500. },
  1501. chahetwo(data) {
  1502. console.log(data)
  1503. if(data.length == 1){
  1504. this.queryParams.provinceId = data[ data.length - 1];
  1505. }else if(data.length == 2){
  1506. this.queryParams.provinceId = undefined
  1507. this.queryParams.cityId = data[ data.length - 1];
  1508. }else if(data.length == 3){
  1509. this.queryParams.provinceId = undefined
  1510. this.queryParams.cityId = undefined
  1511. this.queryParams.regionId = data[ data.length - 1];
  1512. }else if(data.length == 4){
  1513. this.queryParams.provinceId = undefined
  1514. this.queryParams.cityId = undefined
  1515. this.queryParams.regionId = undefined
  1516. this.queryParams.villageTownsId = data[ data.length - 1];
  1517. }else if(data.length == 5){
  1518. this.queryParams.provinceId = undefined
  1519. this.queryParams.cityId = undefined
  1520. this.queryParams.regionId = undefined
  1521. this.queryParams.villageTownsId = undefined
  1522. this.queryParams.villageId = data[ data.length - 1];
  1523. }
  1524. },
  1525. // 居住地址搜索条件
  1526. chahetwos(data) {
  1527. console.log(data)
  1528. if(data.length == 1){
  1529. this.queryParams.provinceIdXjd = data[ data.length - 1];
  1530. this.queryParams.cityIdXjd = undefined
  1531. this.queryParams.regionIdXjd = undefined
  1532. this.queryParams.villageTownsIdXjd = undefined
  1533. this.queryParams.villageIdXjd = undefined
  1534. }else if(data.length == 2){
  1535. this.queryParams.provinceIdXjd = undefined
  1536. this.queryParams.cityIdXjd = data[ data.length - 1];
  1537. this.queryParams.regionIdXjd = undefined
  1538. this.queryParams.villageTownsIdXjd = undefined
  1539. this.queryParams.villageIdXjd = undefined
  1540. }else if(data.length == 3){
  1541. this.queryParams.provinceIdXjd = undefined
  1542. this.queryParams.cityIdXjd = undefined
  1543. this.queryParams.regionIdXjd = data[ data.length - 1];
  1544. this.queryParams.villageTownsIdXjd = undefined
  1545. this.queryParams.villageIdXjd = undefined
  1546. }else if(data.length == 4){
  1547. this.queryParams.provinceIdXjd = undefined
  1548. this.queryParams.cityIdXjd = undefined
  1549. this.queryParams.regionIdXjd = undefined
  1550. this.queryParams.villageTownsIdXjd = data[ data.length - 1];
  1551. this.queryParams.villageIdXjd = undefined
  1552. }else if(data.length == 5){
  1553. this.queryParams.provinceIdXjd = undefined
  1554. this.queryParams.cityIdXjd = undefined
  1555. this.queryParams.regionIdXjd = undefined
  1556. this.queryParams.villageTownsIdXjd = undefined
  1557. this.queryParams.villageIdXjd = data[ data.length - 1];
  1558. }
  1559. },
  1560. /** 提交按钮 */
  1561. submitForm() {
  1562. this.$refs['form'].validate(valid => {
  1563. console.log(this.selected);
  1564. if (valid) {
  1565. 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]$/;
  1566. 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}$/;
  1567. // 护照
  1568. // 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}$)/;
  1569. let ncjsle = /^[a-zA-Z0-9]{5,17}$/
  1570. let nhyeli = /^[a-zA-Z]{5,17}$/
  1571. // 港澳
  1572. let gnse = /^([A-Z]\d{6,10}(\(\w{1}\))?)$/;
  1573. // 台湾
  1574. // let tw = /^\d{8}|^[a-zA-Z0-9]{10}|^\d{18}$/
  1575. var tw = /^[0-9]{8}$/;
  1576. var twe = /^[0-9]{10}$/;
  1577. // 校验身份证:
  1578. console.log(reg.test(this.form.idCard),23741)
  1579. if ( reg.test(this.form.idCard)|| _IDre15.test(this.form.idCard)) {
  1580. this.idea();
  1581. // this.go(this.form.idCard.length);
  1582. // callback()
  1583. } else {
  1584. if(ncjsle.test(this.form.idCard) || nhyeli.test(this.form.idCard)){
  1585. console.log(3)
  1586. }else{
  1587. if(gnse.test(this.form.idCard) ){
  1588. console.log(4)
  1589. }else{
  1590. if(tw.test(this.form.idCard) || twe.test(this.form.idCard)){
  1591. console.log(5)
  1592. }else{
  1593. this.msgInfo('证件格式不正确');
  1594. return false
  1595. }
  1596. }
  1597. }
  1598. // callback(new Error('身份证号码不正确'))
  1599. }
  1600. // let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
  1601. // if (reg.test(this.form.idCard)) {
  1602. // // this.idea();
  1603. // // this.go(this.form.idCard.length);
  1604. // // callback()
  1605. // } else {
  1606. // // callback(new Error('身份证号码不正确'))
  1607. // this.msgInfo('身份证号码不正确');
  1608. // return false
  1609. // }
  1610. // 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}$/;
  1611. // console.log(this.form)
  1612. // console.log(redw.test(this.form.phoneNum))
  1613. // if (this.form.phoneNum == null) {
  1614. // // this.idea();
  1615. // // this.go(this.form.idCard.length);
  1616. // // callback()
  1617. // } else{
  1618. // if(this.form.phoneNum !== ''){
  1619. // if(redw.test(this.form.phoneNum)){
  1620. // }else{
  1621. // this.msgInfo('手机号码不正确');
  1622. // return false
  1623. // }
  1624. // }
  1625. // // callback(new Error('身份证号码不正确'))
  1626. // }
  1627. if (this.form.id != null) {
  1628. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  1629. // this.form.domicile = this.hsuej + this.form.domicile;
  1630. if(this.ncdwee == 1){
  1631. this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  1632. }
  1633. this.ncdwee = this.ncdwee + 1
  1634. // this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  1635. this.senlsduea = false
  1636. this.form.isRl = '是'
  1637. console.log(this.form.czrkJzdzList)
  1638. updateInfo(this.form).then(response => {
  1639. console.log(response)
  1640. if(response.code == 200){
  1641. this.ncdwee = 1;
  1642. this.nhdyesfgh ='点击选择户籍地址';
  1643. this.msgSuccess('操作成功');
  1644. this.opens = false;
  1645. this.nhyesfx = false
  1646. if(this.queryParams.queryType == 'cz'){
  1647. this.getListch();
  1648. }else if(this.queryParams.queryType == 'hj'){
  1649. this.getList();
  1650. }
  1651. // this.getList();
  1652. this.ncdwee = 1
  1653. // this.getTreeselectjuetj()
  1654. return false
  1655. }else{
  1656. // this.senlsduea = true
  1657. // this.form.czrkJzdzList.unshift(this.form.czrkJzdzList[0])
  1658. this.nhdyesfgh ='点击选择户籍地址'
  1659. this.ncdwee = 1
  1660. this.$message.error(response.msg + '请重新填写');
  1661. // this.mnyesfjerty(0)
  1662. // if(this.nhyesaw == 1){
  1663. // this.form.czrkJzdzList = this.form.czrkJzdzList.splice(1)
  1664. // }
  1665. this.opens = false
  1666. }
  1667. });
  1668. } else {
  1669. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  1670. // this.form.domicile = this.hsuej + this.form.domicile;
  1671. // if (this.form.nowIn == 'undefined') {
  1672. // this.form.nowIn = null;
  1673. // }
  1674. // if(this.form.czrkJzdzList[0].province == ''){
  1675. // this.msgSuccess('请填写居住地址');
  1676. // return false
  1677. // }
  1678. console.log(this.form)
  1679. this.form.czrkJzdzList.filter(route =>{
  1680. route.seleted = []
  1681. route.optiodne = []
  1682. })
  1683. // return
  1684. addInfo(this.form).then(response => {
  1685. // this.msgSuccess('新增成功');
  1686. // this.opens = false;
  1687. // this.getList();
  1688. if(response.code == 200){
  1689. this.msgSuccess('新增成功');
  1690. this.opens = false;
  1691. this.nhyesfx = false
  1692. if(this.queryParams.queryType == 'cz'){
  1693. this.getListch();
  1694. }else if(this.queryParams.queryType == 'hj'){
  1695. this.getList();
  1696. }
  1697. // this.getList();
  1698. }else{
  1699. this.$message.error(response.msg + '请重新填写');
  1700. this.opens = false
  1701. }
  1702. });
  1703. }
  1704. }
  1705. });
  1706. },
  1707. /** 删除按钮操作 */
  1708. handleDelete(row) {
  1709. const ids = row.id || this.ids[0];
  1710. this.idfer = ids
  1711. this.imashow = true;
  1712. // this.$confirm('是否确认删除疫苗信息编号为"' + ids + '"的数据项?', '警告', {
  1713. // confirmButtonText: '确定',
  1714. // cancelButtonText: '取消',
  1715. // type: 'warning'
  1716. // })
  1717. // .then(function() {
  1718. // return delInfo(ids);
  1719. // })
  1720. // .then(() => {
  1721. // this.getList();
  1722. // this.msgSuccess('删除成功');
  1723. // });
  1724. },
  1725. submitFormfr(){
  1726. // formgt
  1727. if(this.formgt.houseType == null || this.formgt.houseType == undefined){
  1728. this.$message.error('请选择删除原因');
  1729. return false
  1730. }
  1731. let nhue = {}
  1732. nhue.status = this.formgt.houseType
  1733. nhue.id = this.idfer
  1734. delInfo(nhue).then(response => {
  1735. this.msgSuccess('删除成功');
  1736. this.imashow = false;
  1737. if(this.queryParams.queryType == 'cz'){
  1738. this.getListch();
  1739. }else if(this.queryParams.queryType == 'hj'){
  1740. this.getList();
  1741. }
  1742. // this.getList();
  1743. });
  1744. },
  1745. // 点击新增
  1746. tijea(index) {
  1747. console.log(index+ 1)
  1748. this.nameutaiL = index+ 1
  1749. this.cascaderKey = index + 1
  1750. this.form.czrkJzdzList.push({
  1751. provinceId: '',
  1752. province: '',
  1753. deptId: '',
  1754. cityId: '',
  1755. city: '',
  1756. regionId:'',
  1757. region: '',
  1758. townId: '',
  1759. town: '',
  1760. villageId: '',
  1761. village: '',
  1762. nowIn:'',
  1763. disableg:false,
  1764. seleted:[],
  1765. optiodne:[],
  1766. plaed:'请选择居住地址',
  1767. });
  1768. this.nhyeojd = true
  1769. this.mnyesfjer(0)
  1770. // this.form.czrkJzdzList[this.nameutaiL].optiodne
  1771. // console.log(this.cascaderKey,123465)
  1772. // // console.log()
  1773. // console.log( this.$refs.myCascaderf[this.$refs.myCascaderf.length - 1] ,258)
  1774. // // console.log(this.$refs['myCascaderf'][0].$refs.panel.clearCheckedNodes(),258)
  1775. // this.$refs['myCascaderf'][this.$refs.myCascaderf.length - 1].$refs.panel.clearCheckedNodes()
  1776. // console.log(this.$refs['myCascaderf'][0].$refs.panel.checkedValue,34567)
  1777. // this.mnyesfjer(0)
  1778. },
  1779. // 点击删除
  1780. naeyrfakjf(index, item) {
  1781. if(this.form.czrkJzdzList.length == 2){
  1782. this.$message.error('居住地为必填不可全删除');
  1783. return false
  1784. }
  1785. var that = this
  1786. this.$confirm('是否确认删除信息?', '警告', {
  1787. confirmButtonText: '确定',
  1788. cancelButtonText: '取消',
  1789. type: 'warning'
  1790. })
  1791. .then(function() {
  1792. return that.delseeug(index,item)
  1793. })
  1794. .then(() => {
  1795. // this.getList();
  1796. // this.msgSuccess('删除成功');
  1797. });
  1798. },
  1799. delseeug(index,item){
  1800. console.log(234)
  1801. if (this.form.czrkJzdzList.length == 1) {
  1802. // if (this.jdourdjoaj == true) {
  1803. // // 新增
  1804. // this.form.vaccineInfoUserList = [{
  1805. // vaccineName: '',
  1806. // vaccinationTime: '',
  1807. // vaccinationPlace: '',
  1808. // jici: '',
  1809. // progress: '',
  1810. // url:null,
  1811. // disableg:false
  1812. // }]
  1813. // } else {
  1814. // // 修改
  1815. // let ide = this.form.vaccineInfoUserList[index].id;
  1816. // console.log(this.form.vaccineInfoUserList[index]);
  1817. // // ()
  1818. // console.log(ide);
  1819. // if (ide !== undefined) {
  1820. // console.log(234);
  1821. // delInfort(ide).then(response => {
  1822. // this.msgSuccess('操作成功');
  1823. // });
  1824. // }
  1825. // this.form.vaccineInfoUserList = [{
  1826. // vaccineName: '',
  1827. // vaccinationTime: '',
  1828. // vaccinationPlace: '',
  1829. // jici: '',
  1830. // progress: '',
  1831. // url:null,
  1832. // disableg:false
  1833. // }]
  1834. // }
  1835. this.msgSuccess('只剩一条数据,无法删除');
  1836. return false;
  1837. }
  1838. if (this.jdourdjoaj == true) {
  1839. // 新增
  1840. this.form.czrkJzdzList.splice(index, 1);
  1841. } else {
  1842. // 修改
  1843. // ()
  1844. this.form.czrkJzdzList.splice(index, 1);
  1845. }
  1846. this.msgSuccess('删除成功');
  1847. },
  1848. /** 导出按钮操作 */
  1849. handleExport() {
  1850. var heuia = {
  1851.      tableName: "vaccine_info",
  1852.      empty: false,
  1853.      condition: {}
  1854. }
  1855. var that=this;
  1856. heuia.condition = this.queryParams
  1857. const queryParams = this.queryParams
  1858. this.$confirm('是否确认导出?', "警告", {
  1859. confirmButtonText: "确定",
  1860. cancelButtonText: "取消",
  1861. type: "warning"
  1862. }).then(function() {
  1863. return exportConfig(heuia);
  1864. }).then(response => {
  1865. const jues= response.data
  1866. that.exportflag=false;
  1867. that.$alert('数据导入中,系统将自动处理数据,请稍后查看结果', "导出结果", { dangerouslyUseHTMLString: true });
  1868. // that.msgSuccess('数据导入中,系统将自动处理数据,请稍后查看结果');
  1869. // exportConfigtyr().then(responsr => {
  1870. // console.log(responsr)
  1871. // if(responsr.data == true){
  1872. // // this.download(jues);
  1873. // // window.location.href = jues
  1874. // window.open(jues)
  1875. // }else{
  1876. // this.msgSuccess('数据暂未加载完成,请稍后点击导出进度按钮查看');
  1877. // }
  1878. // });
  1879. })
  1880. // this.download('/boman-web-core/core/info/export',
  1881. // {
  1882. // ...this.queryParams
  1883. // },
  1884. // `post_${new Date().getTime()}.xlsx`
  1885. // );
  1886. },
  1887. chahetwoswge(data){
  1888. console.log(data)
  1889. this.form.gridId = data[data.length - 1]
  1890. console.log(this.form.gridId)
  1891. },
  1892. // 点击查看
  1893. chakei(row) {
  1894. console.log(row);
  1895. let nhyes= {pageNum: 1,
  1896. pageSize: 10,}
  1897. this.nhyesoder = row
  1898. if(row == 0){
  1899. // 新增
  1900. listInfotjxz(this.ndhuwosdjh).then(response => {
  1901. // this.msgSuccess('操作成功');
  1902. this.jiezheList = response.rows
  1903. this.totalfr = response.total
  1904. })
  1905. } else if(row == 1){
  1906. // 减少
  1907. listInfotjjs(this.ndhuwosdjh).then(response => {
  1908. // this.msgSuccess('操作成功');
  1909. this.jiezheList = response.rows
  1910. this.totalfr = response.total
  1911. } )
  1912. }// yiaoe({idCard:row.idCard}).then(response => {
  1913. // // this.msgSuccess('操作成功');
  1914. // if(response.code == 200){
  1915. // this.jiezheList = response.data
  1916. // }
  1917. // });
  1918. this.jiezhong = true;
  1919. },
  1920. // 查看家庭成员信息
  1921. handleDeletefamide(row){
  1922. this.nhyesoder = 3
  1923. if(row.code == null){
  1924. this.msgSuccess('无户编号信息,无法查看家庭成员信息');
  1925. return false
  1926. }
  1927. if(row.code == ''){
  1928. this.msgSuccess('无户编号信息,无法查看家庭成员信息');
  1929. return false
  1930. }
  1931. this.jiezhong = true;
  1932. listInfotjjsfaml(row.code).then(response => {
  1933. // this.msgSuccess('操作成功');
  1934. this.jiezheList = response.data
  1935. this.totalfr = 0
  1936. } )
  1937. },
  1938. /** 导入按钮操作 */
  1939. handleImport() {
  1940. this.upload.title = "数据导入";
  1941. this.upload.opens = true;
  1942. },
  1943. // 获取屏幕高度
  1944. showFilterForm () {
  1945. this.filterActive = !this.filterActive
  1946. this.changeTableMaxHeight()
  1947. },
  1948. changeTableMaxHeight () {
  1949. let height = document.body.offsetHeight // 网页可视区域高度
  1950. // if (this.filterActive) {
  1951. // this.tableMaxHeight = height - 320
  1952. // } else {
  1953. this.tableMaxHeight = height - 250
  1954. // }
  1955. console.log(height)
  1956. },
  1957. // 判断是否选择户主
  1958. changese(){
  1959. console.log(this.form.houseType)
  1960. if(this.form.houseType == '是'){
  1961. this.form.code = this.form.idCard
  1962. this.nhe = false
  1963. }else{
  1964. this.form.code != this.form.idCard
  1965. this.nhe = true
  1966. }
  1967. },
  1968. // 常住人口
  1969. chajnd(){
  1970. this.queryParams.queryType = 'cz'
  1971. this.queryParams.pageNum = 1
  1972. this.nhykis = false
  1973. this.nhyki = true
  1974. this.getListch();
  1975. },
  1976. // 户籍人口
  1977. chajnds(){
  1978. this.queryParams.queryType = 'hj'
  1979. this.queryParams.pageNum = 1
  1980. this.nhykis = true
  1981. this.nhyki = false
  1982. this.getList();
  1983. },
  1984. click(event) {
  1985. console.log(event)
  1986. this.$nextTick(() => {
  1987. let d = document.getElementsByClassName("cascader"+ this.idsg)
  1988. this.nameutaiL +'s'
  1989. console.log("cascader"+ '' +this.nameutaiL);
  1990. console.log(48);
  1991. console.log(d);
  1992. console.log(d[0]);
  1993. console.log( !d[0].onclick);
  1994. if( d[event] && !d[event].onclick ){
  1995. d[event].onclick = function(e) {
  1996. console.log(e);
  1997. if( e.target.className == "el-cascader-node__label" ){
  1998. e.target.previousElementSibling.click();
  1999. }
  2000. }
  2001. }
  2002. });
  2003. },
  2004. clicks(event) {
  2005. this.$nextTick(() => {
  2006. let d = document.getElementsByClassName("cascader"+'' +this.id);
  2007. console.log("cascader"+ '' +this.nameutaiL);
  2008. console.log(48);
  2009. console.log(d);
  2010. console.log(d[0]);
  2011. console.log( !d[0].onclick);
  2012. if( d[0] && !d[0].onclick ){
  2013. d[0].onclick = function(e) {
  2014. console.log(e);
  2015. if( e.target.className == "el-cascader-node__label" ){
  2016. e.target.previousElementSibling.click();
  2017. }
  2018. }
  2019. }
  2020. });
  2021. }
  2022. }
  2023. };
  2024. </script>
  2025. <style lang="scss">
  2026. .placf {
  2027. .el-input {
  2028. .el-input__inner::placeholder{
  2029. color: #333;
  2030. }
  2031. /* 谷歌 */
  2032. .el-input__inner::-webkit-input-placeholder {
  2033. color: #333;
  2034. }
  2035. /* 火狐 */
  2036. .el-input__inner:-moz-placeholder {
  2037. color: #333;
  2038. }
  2039. /*ie*/
  2040. .el-input__inner:-ms-input-placeholder {
  2041. color: #333;
  2042. }
  2043. }
  2044. }
  2045. .jdueuh{
  2046. .el-form-item__label {
  2047. width: 0px !important;
  2048. }
  2049. .el-form-item__content {
  2050. margin-left: 10px !important;
  2051. // width: 70%;
  2052. }
  2053. }
  2054. .ijeuhdy{
  2055. .el-form-item__label {
  2056. width: 80px !important;
  2057. }
  2058. .el-form-item__content {
  2059. margin-left: 80px !important;
  2060. // width: 70%;
  2061. }
  2062. }
  2063. .znshu{
  2064. .el-form-item__label {
  2065. width: 80px !important;
  2066. // padding-left: 30px;
  2067. }
  2068. .el-form-item__content {
  2069. margin-left: 80px !important;
  2070. // width: 70%;
  2071. }
  2072. .el-input__inner{
  2073. padding-left: 0 !important;
  2074. }
  2075. }
  2076. .heioangd{
  2077. .el-form-item__label {
  2078. width: 70px !important;
  2079. }
  2080. .el-form-item__content {
  2081. margin-left: 70px !important;
  2082. // width: 70%;
  2083. }
  2084. }
  2085. .hues {
  2086. .area-select {
  2087. margin-left: 0 !important;
  2088. margin-right: 10px;
  2089. }
  2090. }
  2091. .jehak {
  2092. .el-form-item {
  2093. width: 100%;
  2094. }
  2095. .el-form-item__content {
  2096. width: 60%;
  2097. }
  2098. }
  2099. .oiuyty {
  2100. .el-form-item__label {
  2101. width: 80px !important;
  2102. }
  2103. .el-form-item__content {
  2104. margin-left: 80px !important;
  2105. // width: 70%;
  2106. }
  2107. input {
  2108. padding-right: 0 !important;
  2109. }
  2110. }
  2111. .el-dialog__body {
  2112. padding-top: 0;
  2113. padding-bottom: 0;
  2114. }
  2115. .jhy {
  2116. // width: 100%;
  2117. // .el-form-item__content {
  2118. // width: 100%;
  2119. // margin-left: 0 !important;
  2120. // }
  2121. .el-form-item__content {
  2122. margin-left: 55px !important;
  2123. // width: 70%;
  2124. }
  2125. .el-form-item__label {
  2126. width: 55px !important;
  2127. }
  2128. }
  2129. .ehiqya {
  2130. .el-form-item__content {
  2131. display: flex;
  2132. .jdidur {
  2133. flex: 1;
  2134. margin-left: 10px;
  2135. // text-align: left;
  2136. display: flex;
  2137. }
  2138. }
  2139. .upload-demo {
  2140. display: flex;
  2141. }
  2142. }
  2143. .jdoier{
  2144. display: flex;
  2145. align-items: center;
  2146. .upload-demo {
  2147. display: flex;
  2148. }
  2149. }
  2150. .hueyde {
  2151. width: 18px;
  2152. height: 18px;
  2153. margin: 0 5px;
  2154. margin-right: 10px;
  2155. }
  2156. .hueydele {
  2157. width: 15px;
  2158. height: 18px;
  2159. }
  2160. .hyeoa {
  2161. height: 100%;
  2162. display: flex;
  2163. align-items: center;
  2164. }
  2165. .hjdoecdre {
  2166. // margin-top: 50%;
  2167. transform: translateY(50%);
  2168. }
  2169. .ojhgy {
  2170. .el-dialog {
  2171. padding-bottom: 40px;
  2172. padding-top: 10px;
  2173. }
  2174. .el-dialog__header {
  2175. padding-bottom: 20px;
  2176. }
  2177. .el-table .cell {
  2178. line-height: 50px;
  2179. }
  2180. }
  2181. .hueya{
  2182. margin-left: 0 !important;
  2183. }
  2184. .iejghiadh{
  2185. .el-input__inner{
  2186. padding-right: 0 !important;
  2187. padding-left: 5px !important;
  2188. }
  2189. }
  2190. </style>