index.vue 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="70px">
  4. <el-row>
  5. <el-col :span="24">
  6. <el-row>
  7. <el-col :span="6">
  8. <el-form-item label="身份证号" prop="idCard">
  9. <el-input v-model="queryParams.idCard" placeholder="请输入身份证号码" style="width:200px;" clearable @keyup.enter.native="handleQuery" />
  10. </el-form-item>
  11. </el-col>
  12. <el-col :span="6">
  13. <el-form-item label="姓名" prop="userName">
  14. <el-input v-model="queryParams.userName" placeholder="请输入姓名" style="width:200px;" clearable @keyup.enter.native="handleQuery" />
  15. </el-form-item>
  16. </el-col>
  17. <el-col :span="6">
  18. <el-form-item label="联系号码" prop="phoneNum">
  19. <el-input v-model="queryParams.phoneNum" placeholder="请输入联系号码" style="width:190px;"clearable @keyup.enter.native="handleQuery" />
  20. </el-form-item>
  21. </el-col>
  22. <el-col :span="6">
  23. <el-form-item label="年龄阶段" >
  24. <el-select v-model="queryParams.params.age" placeholder="年龄阶段" style="width:190px;" clearable>
  25. <el-option v-for="dict in angesList" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  26. </el-select>
  27. </el-form-item>
  28. </el-col>
  29. </el-row>
  30. </el-col>
  31. <el-col :span="24">
  32. <el-row>
  33. <el-col :span="12" class="jehak">
  34. <el-form-item label="居住地址" prop="villagerGroup">
  35. <el-cascader
  36. placeholder="点击选择居住地址"
  37. :options="optionsList"
  38. filterable
  39. @change="chahetwo"
  40. :props="optionPropsss"
  41. style="width: 140%;"
  42. @keyup.enter.native="handleQuery"
  43. clearable
  44. ref = "cdd"
  45. v-model="listd"
  46. @active-item-change="handleItemChange"
  47. ></el-cascader>
  48. </el-form-item>
  49. </el-col>
  50. <el-col :span="8" class="jehak">
  51. <el-form-item label="户籍地址" prop="villagerGroup">
  52. <el-cascader
  53. placeholder="点击选择户籍地址"
  54. :options="options"
  55. filterable
  56. @change="chahetwo"
  57. :props="optionPropstwo"
  58. style="width: 125%;"
  59. @keyup.enter.native="handleQuery"
  60. clearable
  61. ></el-cascader>
  62. </el-form-item>
  63. </el-col>
  64. <el-col :span="4" >
  65. <el-form-item>
  66. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  67. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  68. </el-form-item>
  69. </el-col>
  70. </el-row>
  71. </el-col>
  72. <el-col :span="24">
  73. <el-row>
  74. </el-row>
  75. </el-col>
  76. </el-row>
  77. </el-form>
  78. <!-- <el-row :gutter="10" class="mb8">
  79. <el-col :span="1.5">
  80. <el-button type="warning" plain icon="el-icon-edit" size="mini" :disabled="multiple" @click="handleDeletehy" >还原</el-button>
  81. </el-col>
  82. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  83. </el-row> -->
  84. <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" stripe style="width: 100%" :height="tableMaxHeight">
  85. <el-table-column type="selection" width="55" align="center" />
  86. <el-table-column label="姓名" align="center" prop="userName" fixed width="100px"/>
  87. <el-table-column label="联系方式" align="center" prop="phoneNum" width="110" />
  88. <el-table-column label="身份证号码" align="center" prop="idCard" width="180" />
  89. <el-table-column label="户籍地址" align="center" prop="domicileSelect" width="280" />
  90. <!-- nowInSelect -->
  91. <el-table-column label="居住地址" align="center" prop="nowInSelect" />
  92. <el-table-column label="是否户主" align="center" prop="houseType" width="90" />
  93. <el-table-column label="删除人" align="center" prop="updateBy" width="90" />
  94. <el-table-column label="删除时间" align="center" prop="updateTime" width="160" />
  95. <el-table-column label="操作" align="left" class-name="small-padding fixed-width" fixed="right" width="80" >
  96. <template slot-scope="scope">
  97. <el-button size="mini" type="text" icon="el-icon-edit" @click="handleDeletehy(scope.row)" class="hueya" >
  98. 还原
  99. </el-button>
  100. </template>
  101. </el-table-column>
  102. </el-table>
  103. <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
  104. <!-- 添加或修改疫苗信息对话框 -->
  105. <el-dialog :title="title" :visible.sync="opens" width="1240px" append-to-body>
  106. <el-form ref="form" :model="form" :rules="rules" label-width="100px">
  107. <el-row>
  108. <el-col :span="8">
  109. <el-form-item label="身份证号" prop="idCard"><el-input v-model="form.idCard" placeholder="请输入身份证号码" @blur="idcde" /></el-form-item>
  110. </el-col>
  111. <el-col :span="8">
  112. <el-form-item label="姓名" prop="userName"><el-input v-model="form.userName" placeholder="请输入姓名" /></el-form-item>
  113. </el-col>
  114. <el-col :span="8">
  115. <el-form-item label="性别" prop="gender">
  116. <!-- <el-input v-model="form.gender" placeholder="请输入性别" /> -->
  117. <el-select v-model="form.gender" placeholder="性别" clearable style="width: 100%;">
  118. <el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  119. </el-select>
  120. </el-form-item>
  121. </el-col>
  122. <el-col :span="24">
  123. <el-row>
  124. <el-col :span="8">
  125. <el-form-item label="联系号码" prop="phoneNum"><el-input v-model="form.phoneNum" placeholder="请输入联系号码" /></el-form-item>
  126. </el-col>
  127. <el-col :span="8">
  128. <el-form-item label="人员分类" prop="keyIndustries">
  129. <el-select v-model="form.keyIndustries" placeholder="人员分类" clearable style="width: 100%;">
  130. <el-option v-for="dict in typeOptionsname" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  131. </el-select>
  132. </el-form-item>
  133. </el-col>
  134. <el-col :span="8">
  135. <el-form-item label="年龄" prop="age"><el-input v-model="form.age" placeholder="请输入年龄" /></el-form-item>
  136. </el-col>
  137. </el-row>
  138. </el-col>
  139. <el-col :span="24">
  140. <el-row>
  141. <el-col :span="12">
  142. <el-form-item label="户籍地址" prop="villageTowns">
  143. <!-- <el-input v-model="form.villageTowns" type="textarea" placeholder="请输入内容" /> -->
  144. <!-- <treeselect v-model="form.parentId" :options="deptOptionstwo" :normalizer="normalizer" :flat="true" :maxHeight="150" @select="djieskle" :multiple=true placeholder="点击选择户籍地" /> -->
  145. <el-cascader
  146. placeholder="点击选择户籍地址"
  147. :options="options"
  148. :filterable="true"
  149. separator="/"
  150. @change="chahe"
  151. v-model="villageTownshy"
  152. :props="optionProps"
  153. style="width: 100%;"
  154. ref="myCascader"
  155. ></el-cascader>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="12">
  159. <el-form-item label="详细地址" prop="domicile"><el-input v-model="form.domicile" type="input" placeholder="请输入户籍详细地址" /></el-form-item>
  160. </el-col>
  161. </el-row>
  162. </el-col>
  163. <el-col :span="12">
  164. <el-form-item label="居住地址" prop="province">
  165. <!-- <area-select
  166. type="text"
  167. v-model="selected"
  168. v-if="jue"
  169. :data="$pcaa"
  170. :level="2"
  171. style="display: flex;line-height: 18px;"
  172. @change="onSelected"
  173. class="hues"
  174. ></area-select> -->
  175. <!-- <el-cascader
  176. placeholder="点击选择居住地址"
  177. :options="optionsList"
  178. filterable
  179. @change="chahetwo"
  180. :props="optionPropsss"
  181. style="width: 130%;"
  182. @keyup.enter.native="handleQuery"
  183. clearable
  184. ref = "cdd"
  185. v-model="list"
  186. ></el-cascader> -->
  187. <el-cascader
  188. :placeholder="nhdyesfgh"
  189. :options="optionsList"
  190. :filterable="true"
  191. separator="/"
  192. @change="onSelected"
  193. v-model="selected"
  194. :props="optionPropsss"
  195. style="width: 100%;"
  196. ref="myCascaderf"
  197. @active-item-change="handleItemChange"
  198. :class="[nhdyesfgh == '点击选择居住地址' ? '' : 'placf']"
  199. ></el-cascader>
  200. </el-form-item>
  201. </el-col>
  202. <el-col :span="12">
  203. <el-form-item label="详细地址" prop="nowIn"><el-input v-model="form.nowIn" type="input" placeholder="请输入内容" /></el-form-item>
  204. </el-col>
  205. <el-col :span="24">
  206. <el-col :span="12">
  207. <el-form-item label="户主" prop="houseType">
  208. <el-select v-model="form.houseType" placeholder="户主" clearable style="width: 100%;" @change="changese">
  209. <el-option v-for="dict in typeOptionshuuj" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  210. </el-select>
  211. </el-form-item>
  212. </el-col>
  213. <el-col :span="12">
  214. <el-form-item label="户编号" prop="code">
  215. <el-input v-model="form.code" placeholder="请输入户主编号"/>
  216. <!-- :disabled="nhe" -->
  217. </el-form-item>
  218. </el-col>
  219. </el-col>
  220. </el-row>
  221. </el-form>
  222. <div slot="footer" class="dialog-footer">
  223. <el-button type="primary" @click="submitForm">确 定</el-button>
  224. <el-button @click="cancel">取 消</el-button>
  225. </div>
  226. </el-dialog>
  227. <!-- 图片预览 -->
  228. <el-dialog :close-on-click-modal="false" title="删除原因" :visible.sync="imashow" width="800px" append-to-body >
  229. <el-form ref="formgt" :model="formgt" :rules="ruleshy" label-width="100px" style="padding-bottom: 30px;">
  230. <el-form-item label="删除原因:" prop="houseType">
  231. <el-select v-model="formgt.houseType" placeholder="请选择删除原因" clearable style="width: 100%;">
  232. <el-option v-for="dict in typeOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
  233. </el-select>
  234. </el-form-item>
  235. </el-form>
  236. <div slot="footer" class="dialog-footer">
  237. <el-button type="primary" @click="submitFormfr">确 定</el-button>
  238. <el-button @click="cancel">取 消</el-button>
  239. </div>
  240. </el-dialog>
  241. <el-dialog :close-on-click-modal="false" title="查看信息" :visible.sync="jiezhong" width="1200px" append-to-body class="ojhgy">
  242. <el-table :data="jiezheList" stripe style="width: 100%">
  243. <el-table-column label="疫苗名称" align="center" prop="vaccineName" />
  244. <el-table-column label="剂次" align="center" prop="jici" />
  245. <el-table-column label="接种时间" align="center" prop="vaccinationTime" width="180">
  246. <template slot-scope="scope">
  247. <span>{{ scope.row.vaccinationTime }}</span>
  248. </template>
  249. </el-table-column>
  250. <el-table-column label="接种地点" align="center" prop=".vaccinationPlace" />
  251. </el-table>
  252. </el-dialog>
  253. </div>
  254. </template>
  255. <script>
  256. import { listInfo, getInfo, delInfo, addInfo, updateInfo, exportInfo, listRoleer, idces, delInfort,yiaoe,exportConfig,exportConfigtyr,importLog,listInfotj,listRoleergth,delInfohy } from '@/api/system/bin';
  257. import { treeselect } from '@/api/system/dept';
  258. import Treeselect from '@riophae/vue-treeselect';
  259. import { getToken } from '@/utils/auth';
  260. import '@riophae/vue-treeselect/dist/vue-treeselect.css';
  261. export default {
  262. name: 'Info',
  263. components: { Treeselect },
  264. data() {
  265. return {
  266. // 遮罩层
  267. loading: true,
  268. // 选中数组
  269. ids: [],
  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. // 是否显示弹出层
  285. opens: false,
  286. tableMaxHeight:300,
  287. process: process.env.VUE_APP_BASE_API,
  288. // 查询参数
  289. queryParams: {
  290. pageNum: 1,
  291. pageSize: 10,
  292. villageTowns: null,
  293. village: null,
  294. villagerGroup: null,
  295. houseType: null,
  296. province: null,
  297. city: null,
  298. userName: null,
  299. isDel:"Y",
  300. gender: null,
  301. idCard: null,
  302. phoneNum: null,
  303. keyIndustries: null,
  304. isVaccination: null,
  305. vaccineName: null,
  306. vaccinationTime: null,
  307. vaccinationPlace: null,
  308. contraindication: null,
  309. params:{
  310. age:''
  311. }
  312. },
  313. config: [],
  314. comfietg:[],
  315. configther:[],
  316. configfor:[],
  317. // 表单参数
  318. form: {
  319. nowIn: '',
  320. age:'',
  321. code:'',
  322. vaccineInfoUserList: [
  323. {
  324. vaccineName: '',
  325. vaccinationTime: '',
  326. vaccinationPlace: '',
  327. jici: '',
  328. progress: '',
  329. url:null,
  330. disableg:false
  331. }
  332. ]
  333. },
  334. // 用户导入参数
  335. upload: {
  336. // 是否显示弹出层(用户导入)
  337. opens: false,
  338. // 弹出层标题(用户导入)
  339. title: "",
  340. // 是否禁用上传
  341. isUploading: false,
  342. // 是否更新已经存在的用户数据
  343. updateSupport: 0,
  344. // 设置上传的请求头部
  345. headers: { Authorization: "Bearer " + getToken() },
  346. // 上传的地址
  347. url: process.env.VUE_APP_BASE_API + "/boman-web-core//file/common/importYmjz"
  348. },
  349. // 表单校验
  350. rules: {
  351. province: [{ required: true, message: '居住地址不能为空', trigger: 'blur' }],
  352. idCard: [{ required: true, message: '身份证号码不能为空', trigger: 'blur' }],
  353. userName: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
  354. villageTowns:[{ required: true, message: '户籍地址不能为空或不能只选潜山市', trigger: 'blur' }],
  355. },
  356. selected: [12, 340800000000, 340882000000, 340882100000, 340882100002],
  357. selectedtwo: [],
  358. statusOptions: [
  359. {
  360. dictValue: '女',
  361. dictLabel: '女'
  362. },
  363. {
  364. dictValue: '男',
  365. dictLabel: '男'
  366. }
  367. ],
  368. statusOptionstue: [
  369. {
  370. dictValue: '已完成',
  371. dictLabel: '已完成'
  372. },
  373. {
  374. dictValue: '未完成',
  375. dictLabel: '未完成'
  376. }
  377. ],
  378. typeOptionshuuj: [
  379. {
  380. dictValue: '是',
  381. dictLabel: '是'
  382. },
  383. {
  384. dictValue: '否',
  385. dictLabel: '否'
  386. }
  387. ],
  388. deptOptionstwo: [],
  389. options: [],
  390. optionss:[],
  391. optionsList: [],
  392. optionProps: {
  393. value: 'label',
  394. label: 'label',
  395. children: 'children',
  396. checkStrictly: true
  397. },
  398. optionPropsss: {
  399. value: 'areaId',
  400. label: 'name',
  401. checkStrictly: true,
  402. lazy: true,
  403. lazyLoad: this.lazyLoads,
  404. leaf: "leaf"
  405. },
  406. optionPropstwo: {
  407. value: 'id',
  408. label: 'label',
  409. children: 'children',
  410. checkStrictly: true
  411. },
  412. heuiq: [],
  413. typeOptions: [],
  414. typeOptionsty: [
  415. {
  416. dictValue: '是',
  417. dictLabel: '是'
  418. },
  419. {
  420. dictValue: '否',
  421. dictLabel: '否'
  422. }
  423. ],
  424. typeOptionstyzandeh:[],
  425. angesList: [
  426. ],
  427. typeOptionsname: [],
  428. typeOptionstimes: [],
  429. typeOptionsvaccinatio: [],
  430. typeOptionscont: [],
  431. typeOptionscontty: [],
  432. typeOptionscontqit:[],
  433. // 剂次
  434. typeOptionstimesgt: [
  435. {
  436. dictValue: '1',
  437. dictLabel: '1'
  438. },
  439. {
  440. dictValue: '2',
  441. dictLabel: '2'
  442. },
  443. {
  444. dictValue: '3',
  445. dictLabel: '3'
  446. },
  447. {
  448. dictValue: '加强针',
  449. dictLabel: '加强针'
  450. }
  451. ],
  452. imashow: false,
  453. naneme: false,
  454. shouwes: false,
  455. shouwestwo:false,
  456. villageTownshy: undefined,
  457. naiseurya: '',
  458. hsuej: '',
  459. jdourdjoaj: false,
  460. jiezhong: false,
  461. jiezheList: [],
  462. fireLise:{config:[]},
  463. nameutaiL:0,
  464. jue:false,
  465. nhue:true,
  466. exportflag:true,
  467. errorlog:false,
  468. errorList:[],
  469. idfer:0,
  470. formgt:{},
  471. list: [],
  472. listd:[],
  473. dneyhsd:{},
  474. nhdyesfgh:'点击选择居住地址',
  475. nhe:false
  476. };
  477. },
  478. created() {
  479. this.getList();
  480. this.getTreeselectjue();
  481. this.mnyesfjer(0)
  482. this.getTreeselectjuetj()
  483. // 重点行业
  484. this.getDicts('person_type').then(response => {
  485. this.typeOptions = response.data;
  486. });
  487. // 疫苗名称
  488. this.getDicts('renyuanfenlei').then(response => {
  489. this.typeOptionsname = response.data;
  490. });
  491. // 年龄阶段
  492. this.getDicts('age_interval').then(response => {
  493. this.angesList = response.data;
  494. });
  495. window.onresize = () => {
  496. this.changeTableMaxHeight()
  497. }
  498. this.changeTableMaxHeight()
  499. // this.form.province = this.selected[0];
  500. // this.form.city = this.selected[1];
  501. // this.form.region = this.selected[2];
  502. console.log(this.selected,456)
  503. // this.queryParams.province = this.selectedtwo[0];
  504. // this.queryParams.city = this.selectedtwo[1];
  505. // this.queryParams.region = this.selectedtwo[2];
  506. // this.naiseurya = this.form.province + this.form.city + this.form.region;
  507. },
  508. mounted() {
  509. console.log(136)
  510. window.onresize = () => {
  511. this.changeTableMaxHeight()
  512. }
  513. this.changeTableMaxHeight()
  514. },
  515. methods: {
  516. onSelected(data) {
  517. console.log(data, 125);
  518. console.log(this.$refs['myCascaderf'].getCheckedNodes()[0].pathLabels)
  519. // province
  520. let nhdye = []
  521. nhdye = this.$refs['myCascaderf'].getCheckedNodes()[0].pathLabels
  522. // id
  523. // this.form.province = data[0];
  524. // this.form.city = data[1];
  525. // this.form.region = data[2];
  526. // 名称
  527. this.form.province = nhdye[0];
  528. this.form.city = nhdye[1];
  529. this.form.region = nhdye[2];
  530. this.form.residenceTown = nhdye[3];
  531. this.form.residenceVillage = nhdye[4];
  532. this.naiseurya = this.form.province + this.form.city + this.form.region;
  533. if (this.jdourdjoaj == false) {
  534. // 修改
  535. this.form.nowIn = '';
  536. }
  537. // this.form.nowIn = undefined
  538. // this.form.villageTowns = data[3]
  539. },
  540. dakousr() {
  541. console.log(2345);
  542. },
  543. mnyesfjer(index){
  544. this.loading = true;
  545. let pids = {}
  546. pids.pid = index
  547. listRoleergth(pids).then(response => {
  548. this.optionsList = this.handleData(response.data);
  549. this.loading = false;
  550. });
  551. },
  552. // // 模拟请求一级节点
  553. // getfristChild() {
  554. // return [
  555. // {
  556. // label: "第一个",
  557. // hasChdild: true,
  558. // leaf: false,
  559. // pid: null,
  560. // value: "1",
  561. // },
  562. // {
  563. // label: "第2个",
  564. // hasChdild: true,
  565. // leaf: false,
  566. // pid: null,
  567. // value: "2",
  568. // },
  569. // {
  570. // label: "第3个",
  571. // hasChdild: true,
  572. // leaf: true,
  573. // pid: null,
  574. // value: "3",
  575. // },
  576. // ];
  577. // },
  578. // // 模拟请求子级节点
  579. // getOther(value) {
  580. // let res = [];
  581. // if (value == 1) {
  582. // res = [
  583. // {
  584. // label: "第一个1",
  585. // hasChdild: false,
  586. // pid: 1,
  587. // value: "11",
  588. // leaf: false, // 差别: 这里加了是否叶子节点属性,后面都加了
  589. // },
  590. // {
  591. // label: "第一个2",
  592. // hasChdild: false,
  593. // pid: 1,
  594. // value: "12",
  595. // leaf: false,
  596. // },
  597. // ];
  598. // }
  599. // if (value == 2) {
  600. // res = [
  601. // {
  602. // label: "第2个1",
  603. // hasChdild: false,
  604. // pid: 2,
  605. // leaf: true,
  606. // value: "5",
  607. // },
  608. // {
  609. // label: "第2个2",
  610. // hasChdild: false,
  611. // leaf: true,
  612. // pid: 2,
  613. // value: "6",
  614. // },
  615. // ];
  616. // }
  617. // if (value == 11) {
  618. // res = [
  619. // {
  620. // label: "第3个1",
  621. // hasChdild: false,
  622. // pid: 2,
  623. // leaf: true,
  624. // value: "111",
  625. // },
  626. // {
  627. // label: "第3个2",
  628. // hasChdild: false,
  629. // leaf: true,
  630. // pid: 2,
  631. // value: "112",
  632. // },
  633. // ];
  634. // }
  635. // return res;
  636. // },
  637. // // 模拟请求一级节点
  638. // getfristChild() {
  639. // return [
  640. // {
  641. // label: "第一个",
  642. // hasChdild: true,
  643. // pid: null,
  644. // value: "1",
  645. // },
  646. // {
  647. // label: "第2个",
  648. // hasChdild: true,
  649. // pid: null,
  650. // value: "2",
  651. // },
  652. // {
  653. // label: "第3个",
  654. // hasChdild: true,
  655. // pid: null,
  656. // value: "3",
  657. // },
  658. // ];
  659. // },
  660. // // 模拟请求子级节点
  661. // getOther(value) {
  662. // let res = [];
  663. // if (value == 1) {
  664. // res = [
  665. // {
  666. // label: "第一个1",
  667. // hasChdild: false,
  668. // pid: 1,
  669. // value: "3",
  670. // },
  671. // {
  672. // label: "第一个2",
  673. // hasChdild: false,
  674. // pid: 1,
  675. // value: "4",
  676. // },
  677. // ];
  678. // }
  679. // if (value == 2) {
  680. // res = [
  681. // {
  682. // label: "第2个1",
  683. // hasChdild: false,
  684. // pid: 2,
  685. // value: "5",
  686. // },
  687. // {
  688. // label: "第2个2",
  689. // hasChdild: false,
  690. // pid: 2,
  691. // value: "6",
  692. // },
  693. // ];
  694. // }
  695. // return res;
  696. // },
  697. // lazyLoads(node, resolve){
  698. // if (node.level == 0) {
  699. // console.log(node,2547);
  700. // if (this.list.length > 0) {
  701. // // 存在回显的id我们才去设置回显
  702. // let res = this.format(); // 这里就是获取第一次要回显的内容了
  703. // console.log("00000", res);
  704. // this.optionsList = res; // 有回显第一次就直接给绑定的对象,不要resolve
  705. // } else {
  706. // let res = this.getfristChild(); // 不存在就默认加载第一集节点
  707. // console.log(res,67)
  708. // resolve(res);
  709. // }
  710. // } else {
  711. // // 记录选择的,不然会点击字节点加载时丢失数据
  712. // let list = this.list;
  713. // // 有children属性了就不要再请求了,不然字节点会重复
  714. // if (!node.data.children) {
  715. // // 获取子节点数据
  716. // let res = this.getOther(node.data.value);
  717. // setTimeout(() => {
  718. // // 模拟延时,实际不需要
  719. // resolve(res);
  720. // }, 100);
  721. // } else {
  722. // resolve([]);
  723. // }
  724. // // 重新把选择的id放回来-
  725. // // this.$nextTick(() => {
  726. // // this.list = [...new Set([...this.list, ...list])]; //差别: 合并并且去重
  727. // // });
  728. // setTimeout(() => {
  729. // this.list = [...new Set([...this.list, ...list])]; //差别: 合并并且去重
  730. // }, 250);
  731. // }
  732. // },
  733. // lazyLoads(node, resolve) {
  734. // console.log(node)
  735. // if (node.level == 0) {
  736. // let res = this.mnyesfjer(0); // 不存在就默认加载第一集节点
  737. // resolve(res);
  738. // } else {
  739. // // 有children属性了就不要再请求了,不然字节点会重复
  740. // // if (!node.data.children) {
  741. // // 获取子节点数据
  742. // let res = this.mnyesfjer(node.data.areaId);
  743. // console.log(node.children)
  744. // let nfhh = node.children.push(res)
  745. // setTimeout(() => {
  746. // resolve(nfhh);
  747. // }, 200);
  748. // // } else {
  749. // // resolve([]);
  750. // // }
  751. // }
  752. // },
  753. format() {
  754. let res = this.getfristChild(); // 拿一级数据
  755. this.list.forEach((item) => {
  756. // 遍历回显的id 二维数组
  757. if (item.length > 1) {
  758. item.forEach(async (sitem, index) => {
  759. if (index == item.length - 1) {
  760. return; // 如果是一级节点就不用查找了
  761. }
  762. let arr = this.getOther(sitem); // 不是一级,获取子级
  763. this.findItem(res, arr, sitem); // 判断当前拿到的子级数据属于哪个一级数据下的子级,并且加到当前一级的children属性下
  764. });
  765. }
  766. });
  767. },
  768. // 递归判断
  769. findItem(res, arr, id) {
  770. for (let i = 0; i < res.length; i++) {
  771. if (res[i].value === id) {
  772. res[i].children = arr; // 有chidlren 也要判断是不是这个children下的子级
  773. return res;
  774. }
  775. if (res[i].children) {
  776. this.findItem(res[i].children, arr, id);
  777. }
  778. }
  779. return res;
  780. },
  781. // getAddress() {
  782. // this.mnyesfjer(0).then(res => {
  783. // this.optionsList = this.handleData(res.data);
  784. // }).catch(err => {
  785. // })
  786. // },
  787. handleItemChange(val) {
  788. console.log(val,235)
  789. let code = val ? val[val.length - 1] : ''; //需请求数据的上级地址的code值
  790. let level = val.length + 1; //需请求第几级地址
  791. this.optionsList = this.handleData(this.optionsList, code, level);
  792. },
  793. handleData(data, val, level) {
  794. console.log(data,val,level)
  795. for (let i = 0; i < data.length; i++) {
  796. if(!data[i].children) {
  797. this.$set(data[i], 'children', []);
  798. }
  799. if(data[i].areaId === val){
  800. let vfer = {}
  801. vfer.pid = val
  802. listRoleergth(vfer).then(res => {
  803. if(res.data.length) {
  804. data[i].children = res.data;
  805. data[i].children.forEach(ele => {
  806. this.$set(ele, 'children', [])
  807. });
  808. }else {
  809. data[i].children = undefined;
  810. }
  811. }).catch(err => {
  812. });
  813. }else {
  814. if(data[i].children.length){
  815. this.handleData(data[i].children,val,level)
  816. }
  817. }
  818. }
  819. return data;
  820. },
  821. onSelectedtwo(data) {
  822. console.log(data);
  823. // province
  824. this.queryParams.province = data[0];
  825. this.queryParams.city = data[1];
  826. this.queryParams.region = data[2];
  827. // this.queryParams.villageTowns = data[3]
  828. },
  829. /** 查询疫苗信息列表 */
  830. getList() {
  831. this.loading = true;
  832. listInfo(this.queryParams).then(response => {
  833. this.infoList = response.rows;
  834. this.total = response.total;
  835. this.loading = false;
  836. });
  837. },
  838. getToken() {
  839. return getToken();
  840. },
  841. getTreeselectjue() {
  842. this.loading = true;
  843. let pids = {}
  844. pids.pid = 0
  845. listRoleer().then(response => {
  846. this.options = response.data;
  847. this.loading = false;
  848. });
  849. },
  850. // 统计数据
  851. getTreeselectjuetj() {
  852. this.loading = true;
  853. listInfotj().then(response => {
  854. this.dneyhsd = response.data
  855. this.loading = false;
  856. });
  857. },
  858. /** 转换角色数据结构 */
  859. normalizer(node) {
  860. // if (node.children && !node.children.length) {
  861. // delete node.children;
  862. // }
  863. return {
  864. id: node.id,
  865. label: node.roleName
  866. };
  867. },
  868. // 点击组/角色
  869. djieskle(node, instanceId) {
  870. // this.personnel(node.id);
  871. console.log(node, instanceId);
  872. },
  873. // 身份证
  874. idcde(event) {
  875. console.log(event);
  876. // 身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
  877. let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
  878. if (reg.test(this.form.idCard)) {
  879. this.idea();
  880. // this.go(this.form.idCard.length);
  881. // callback()
  882. } else {
  883. // callback(new Error('身份证号码不正确'))
  884. this.msgInfo('身份证号码不正确');
  885. }
  886. },
  887. // 实现自动生成生日,性别,年龄
  888. go(val) {
  889. let iden = this.form.idCard;
  890. let sex = null;
  891. let birth = null;
  892. let birthr = '';
  893. let myDate = new Date();
  894. let month = myDate.getMonth() + 1;
  895. let day = myDate.getDate();
  896. let age = 0;
  897. if (val === 18) {
  898. age = myDate.getFullYear() - iden.substring(6, 10) - 1;
  899. sex = iden.substring(16, 17);
  900. birth = iden.substring(6, 10) + '-' + iden.substring(10, 12) + '-' + iden.substring(12, 14);
  901. if (iden.substring(10, 12) < month || (iden.substring(10, 12) == month && iden.substring(12, 14) <= day)) age++;
  902. }
  903. if (val === 15) {
  904. age = myDate.getFullYear() - iden.substring(6, 8) - 1901;
  905. sex = iden.substring(13, 14);
  906. birth = '19' + iden.substring(6, 8) + '-' + iden.substring(8, 10) + '-' + iden.substring(10, 12);
  907. if (iden.substring(8, 10) < month || (iden.substring(8, 10) == month && iden.substring(10, 12) <= day)) age++;
  908. }
  909. if (sex % 2 === 0) sex = '女';
  910. else sex = '男';
  911. this.form.gender = sex;
  912. // this.baseInfo.age = age;
  913. birthr = birth + '';
  914. console.log(birthr);
  915. // this.form.birthday = birthr;
  916. // this.$set(this.form.birthday, birthr)
  917. // this.baseInfo.birthplace = this.area[iden.substring(0,2)];
  918. },
  919. // 请求身份证数据
  920. idea() {
  921. idces({ idCard: this.form.idCard }).then(response => {
  922. console.log(response);
  923. this.form.gender = response.data.gender;
  924. // this.form.birthday = response.data.birthday;
  925. this.form.age = response.data.age
  926. this.form.code = response.data.code
  927. if (response.data.userName == null) {
  928. this.form.userName = undefined;
  929. } else {
  930. this.form.userName = response.data.userName;
  931. }
  932. });
  933. },
  934. // 取消按钮
  935. cancel() {
  936. this.opens = false;
  937. this.jiezhong = false;
  938. this.imashow = false;
  939. this.errorlog=false;
  940. this.reset();
  941. },
  942. gywoa() {
  943. console.log(this.form.isVaccination);
  944. if (this.form.isVaccination !== null) {
  945. if (this.form.isVaccination == '是') {
  946. // 接种疫苗
  947. this.naneme = false,
  948. this.shouwes = true;
  949. }else {
  950. this.naneme = true,
  951. this.shouwes = false,
  952. this.form.vaccineInfoUserList = [{
  953. vaccineName: '',
  954. vaccinationTime: '',
  955. vaccinationPlace: '',
  956. jici: '',
  957. progress: '',
  958. url:null
  959. }
  960. ]
  961. }
  962. }
  963. },
  964. gywoatwo() {
  965. console.log(this.queryParams.isVaccination);
  966. if (this.queryParams.isVaccination !== null) {
  967. if (this.queryParams.isVaccination == '是') {
  968. // 接种疫苗
  969. // (this.naneme = false), (this.shouwes = true);
  970. this.shouwestwo = false
  971. } else {
  972. // (this.naneme = true), (this.shouwes = false);
  973. this.shouwestwo = true
  974. }
  975. }
  976. },
  977. // 表单重置
  978. reset() {
  979. this.form = {
  980. id: null,
  981. villageTowns: null,
  982. village: null,
  983. age:'',
  984. code:'',
  985. villagerGroup: null,
  986. houseType: null,
  987. domicile: null,
  988. province: null,
  989. city: null,
  990. region: null,
  991. userName: null,
  992. isDel:"Y",
  993. gender: null,
  994. idCard: null,
  995. phoneNum: null,
  996. keyIndustries: null,
  997. isVaccination: null,
  998. vaccinationPlace: null,
  999. contraindication: null,
  1000. nowIn: '',
  1001. remark: null,
  1002. residenceTown:null,
  1003. residenceVillage:null
  1004. };
  1005. this.resetForm('form');
  1006. },
  1007. /** 搜索按钮操作 */
  1008. handleQuery() {
  1009. this.queryParams.pageNum = 1;
  1010. console.log(this.queryParams)
  1011. this.getList();
  1012. },
  1013. /** 重置按钮操作 */
  1014. resetQuery() {
  1015. this.nhue = false
  1016. this.selectedtwo = []
  1017. setTimeout( ()=>{
  1018. this.nhue = true
  1019. },100)
  1020. this.queryParams.province = undefined; this.queryParams.city = undefined; this.queryParams.region = undefined;
  1021. this.queryParams.deptId = undefined
  1022. this.listd = []
  1023. this.resetForm('queryForm');
  1024. this.handleQuery();
  1025. },
  1026. // 多选框选中数据
  1027. handleSelectionChange(selection) {
  1028. this.ids = selection.map(item => item.id);
  1029. this.single = selection.length !== 1;
  1030. this.multiple = !selection.length;
  1031. },
  1032. /** 新增按钮操作 */
  1033. handleAdd() {
  1034. this.reset();
  1035. this.opens = true;
  1036. (this.naneme = false),
  1037. (this.shouwes = false);
  1038. this.selected = ['安徽省', '安庆市', '潜山市'],
  1039. this.form.province = this.selected[0];
  1040. this.villageTownshy = '';
  1041. this.naiseurya = '';
  1042. this.hsuej = '';
  1043. this.form.city = this.selected[1];
  1044. this.form.region = this.selected[2];
  1045. this.title = '添加常住人口';
  1046. this.jdourdjoaj = true;
  1047. this.jue = true
  1048. this.form.province = '安徽省';
  1049. this.form.city = '安庆市';
  1050. this.form.region = '潜山市';
  1051. this.form.residenceTown = '梅城镇';
  1052. this.form.residenceVillage = '龙井社区';
  1053. this.nhdyesfgh = this.form.province + '/' + this.form.city + '/' + this.form.region + '/' + this.form.residenceTown + '/' + this.form.residenceVillage;
  1054. console.log(this.form)
  1055. },
  1056. /** 修改按钮操作 */
  1057. handleUpdate(row) {
  1058. this.reset();
  1059. const id = row.id || this.ids;
  1060. getInfo(id).then(response => {
  1061. this.form = response.data;
  1062. this.jue = false
  1063. if(response.data.province !== null && response.data.province !== ""){
  1064. this.nhdyesfgh = response.data.province;
  1065. if(response.data.city !== null && response.data.city !== ""){
  1066. this.nhdyesfgh = response.data.province + '/' + response.data.city;
  1067. if(response.data.region !== null && response.data.region !== ""){
  1068. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region;
  1069. if(this.form.residenceTown !==null && this.form.residenceTown !=='' && this.form.residenceTown !== undefined){
  1070. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.residenceTown;
  1071. if(this.form.residenceVillage !==null && this.form.residenceVillage !=='' && this.form.residenceVillage !== undefined){
  1072. this.nhdyesfgh = response.data.province + '/' + response.data.city + '/' + response.data.region + '/' + this.form.residenceTown + '/' + this.form.residenceVillage;
  1073. }
  1074. }
  1075. }else{
  1076. // this.nhdyesfgh ='点击选择居住地址'
  1077. }
  1078. }else{
  1079. // this.nhdyesfgh ='点击选择居住地址'
  1080. }
  1081. }else{
  1082. this.nhdyesfgh ='点击选择居住地址'
  1083. }
  1084. // if(response.data.province !== null){
  1085. // this.selected[0] = response.data.province;
  1086. // }else{
  1087. // this.selected[0] ='安徽省'
  1088. // }
  1089. // if(response.data.city !== null){
  1090. // this.selected[1] = response.data.city;
  1091. // }else{
  1092. // this.selected[1] = '安庆市'
  1093. // }
  1094. // if(response.data.region !== null){
  1095. // this.selected[2] = response.data.region;
  1096. // }else{
  1097. // this.selected[2] = '潜山市'
  1098. // }
  1099. // this.onSelected(this.selected)
  1100. setTimeout( ()=>{
  1101. this.jue = true
  1102. },100)
  1103. // this.jue = true
  1104. console.log(this.selected,98767)
  1105. // if(this.form){
  1106. if (this.form.isVaccination !== null) {
  1107. if (this.form.isVaccination == '是') {
  1108. // 接种疫苗
  1109. (this.naneme = false), (this.shouwes = true);
  1110. } else {
  1111. (this.naneme = true), (this.shouwes = false);
  1112. }
  1113. } else {
  1114. this.naneme = false;
  1115. this.shouwes = false;
  1116. }
  1117. if (this.form.dictValue !== null && this.form.dictValue !== undefined) {
  1118. this.jicheru(this.form.dictValue);
  1119. }
  1120. if (this.form.villageTowns !== null) {
  1121. this.villageTownshy = this.form.villageTowns;
  1122. if (this.form.village !== null) {
  1123. this.villageTownshy = this.form.village;
  1124. if (this.form.villagerGroup !== null) {
  1125. this.villageTownshy = this.form.villagerGroup;
  1126. }
  1127. }
  1128. }else{
  1129. this.villageTownshy = '';
  1130. }
  1131. console.log(this.villageTownshy,3455)
  1132. if (this.form.vaccineInfoUserList !== null) {
  1133. if (this.form.vaccineInfoUserList.length == 0) {
  1134. }else {
  1135. this.form.isVaccination = '是'
  1136. this.form.vaccineInfoUserList.filter(router =>{
  1137. if(router.url == undefined){
  1138. router.url = null
  1139. }else if(router.url == []){
  1140. router.url = null
  1141. }
  1142. router.disableg = true
  1143. })
  1144. }
  1145. }
  1146. // villageTownshy
  1147. // }
  1148. // this.heuiq.push()
  1149. this.naiseurya = '';
  1150. this.hsuej = '';
  1151. this.opens = true;
  1152. this.jdourdjoaj = false;
  1153. this.title = '查看编辑常住人口';
  1154. });
  1155. },
  1156. chahe(data) {
  1157. console.log(data);
  1158. // let labelValue = this.$refs['myCascader'].inputValue
  1159. // console.log(labelValue)
  1160. console.log(this.$refs['myCascader'])
  1161. this.form.villageTowns = data[1];
  1162. this.form.village = data[2];
  1163. this.form.villagerGroup = data[3];
  1164. if (this.form.villageTowns !== undefined) {
  1165. this.hsuej = this.form.villageTowns;
  1166. if (this.form.village !== undefined) {
  1167. this.hsuej = this.form.villageTowns + this.form.village;
  1168. if (this.form.villagerGroup !== undefined) {
  1169. this.hsuej = this.form.villageTowns + this.form.village + this.form.villagerGroup;
  1170. }
  1171. }
  1172. }
  1173. this.form.domicile = '';
  1174. // if(this.jdourdjoaj == true){
  1175. // //新增
  1176. // this.form.nowIn = this.hsuej
  1177. // }else{
  1178. // this.form.nowIn != this.hsuej
  1179. // }
  1180. },
  1181. chahetwo(data) {
  1182. console.log(data)
  1183. // this.queryParams.villageTowns = data[1];
  1184. // this.queryParams.village = data[2];
  1185. // this.queryParams.villagerGroup = data[3];
  1186. this.queryParams.deptId = data[ data.length - 1]
  1187. },
  1188. /** 提交按钮 */
  1189. submitForm() {
  1190. this.$refs['form'].validate(valid => {
  1191. console.log(this.selected);
  1192. if (valid) {
  1193. if (this.form.id != null) {
  1194. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  1195. // this.form.domicile = this.hsuej + this.form.domicile;
  1196. updateInfo(this.form).then(response => {
  1197. this.msgSuccess('修改成功');
  1198. this.opens = false;
  1199. this.getList();
  1200. });
  1201. } else {
  1202. // this.form.nowIn = this.naiseurya + this.form.nowIn;
  1203. // this.form.domicile = this.hsuej + this.form.domicile;
  1204. // if (this.form.nowIn == 'undefined') {
  1205. // this.form.nowIn = null;
  1206. // }
  1207. console.log(this.form)
  1208. // return
  1209. addInfo(this.form).then(response => {
  1210. this.msgSuccess('新增成功');
  1211. this.opens = false;
  1212. this.getList();
  1213. });
  1214. }
  1215. }
  1216. });
  1217. },
  1218. /** 删除按钮操作 */
  1219. handleDelete(row) {
  1220. const ids = row.id || this.ids;
  1221. this.idfer = ids
  1222. this.imashow = true;
  1223. // this.$confirm('是否确认删除疫苗信息编号为"' + ids + '"的数据项?', '警告', {
  1224. // confirmButtonText: '确定',
  1225. // cancelButtonText: '取消',
  1226. // type: 'warning'
  1227. // })
  1228. // .then(function() {
  1229. // return delInfo(ids);
  1230. // })
  1231. // .then(() => {
  1232. // this.getList();
  1233. // this.msgSuccess('删除成功');
  1234. // });
  1235. },
  1236. submitFormfr(){
  1237. // formgt
  1238. if(this.formgt.houseType == null || this.formgt.houseType == undefined){
  1239. this.$message.error('请选择删除原因');
  1240. return false
  1241. }
  1242. let nhue = {}
  1243. nhue.deleteReason = this.formgt.houseType
  1244. nhue.id = this.idfer
  1245. delInfo(nhue).then(response => {
  1246. this.msgSuccess('删除成功');
  1247. this.imashow = false;
  1248. this.getList();
  1249. });
  1250. },
  1251. // 还原
  1252. handleDeletehy(row){
  1253. const ids = row.id || this.ids;
  1254. this.$confirm('是否确认还原信息?', '警告', {
  1255. confirmButtonText: '确定',
  1256. cancelButtonText: '取消',
  1257. type: 'warning'
  1258. })
  1259. .then(function() {
  1260. return delInfohy(ids);
  1261. })
  1262. .then(() => {
  1263. this.getList();
  1264. this.msgSuccess('还原成功');
  1265. });
  1266. },
  1267. /** 导出按钮操作 */
  1268. handleExport() {
  1269. var heuia = {
  1270.      tableName: "vaccine_info",
  1271.      empty: false,
  1272.      condition: {}
  1273. }
  1274. var that=this;
  1275. heuia.condition = this.queryParams
  1276. const queryParams = this.queryParams
  1277. this.$confirm('是否确认导出?', "警告", {
  1278. confirmButtonText: "确定",
  1279. cancelButtonText: "取消",
  1280. type: "warning"
  1281. }).then(function() {
  1282. return exportConfig(heuia);
  1283. }).then(response => {
  1284. const jues= response.data
  1285. that.exportflag=false;
  1286. that.$alert('数据导入中,系统将自动处理数据,请稍后查看结果', "导出结果", { dangerouslyUseHTMLString: true });
  1287. // that.msgSuccess('数据导入中,系统将自动处理数据,请稍后查看结果');
  1288. // exportConfigtyr().then(responsr => {
  1289. // console.log(responsr)
  1290. // if(responsr.data == true){
  1291. // // this.download(jues);
  1292. // // window.location.href = jues
  1293. // window.open(jues)
  1294. // }else{
  1295. // this.msgSuccess('数据暂未加载完成,请稍后点击导出进度按钮查看');
  1296. // }
  1297. // });
  1298. })
  1299. // this.download('/boman-web-core/core/info/export',
  1300. // {
  1301. // ...this.queryParams
  1302. // },
  1303. // `post_${new Date().getTime()}.xlsx`
  1304. // );
  1305. },
  1306. // 点击查看
  1307. chakei(row) {
  1308. console.log(row);
  1309. // yiaoe({idCard:row.idCard}).then(response => {
  1310. // // this.msgSuccess('操作成功');
  1311. // if(response.code == 200){
  1312. // this.jiezheList = response.data
  1313. // }
  1314. // });
  1315. this.jiezhong = true;
  1316. },
  1317. /** 导入按钮操作 */
  1318. handleImport() {
  1319. this.upload.title = "数据导入";
  1320. this.upload.opens = true;
  1321. },
  1322. // 判断是否选择户主
  1323. changese(){
  1324. console.log(this.form.houseType)
  1325. if(this.form.houseType == '是'){
  1326. this.form.code = this.form.idCard
  1327. this.nhe = false
  1328. }else{
  1329. this.form.code != this.form.idCard
  1330. this.nhe = true
  1331. }
  1332. },
  1333. // 获取屏幕高度
  1334. showFilterForm () {
  1335. this.filterActive = !this.filterActive
  1336. this.changeTableMaxHeight()
  1337. },
  1338. changeTableMaxHeight () {
  1339. let height = document.body.offsetHeight // 网页可视区域高度
  1340. // if (this.filterActive) {
  1341. // this.tableMaxHeight = height - 320
  1342. // } else {
  1343. this.tableMaxHeight = height - 250
  1344. // }
  1345. console.log(height)
  1346. },
  1347. }
  1348. };
  1349. </script>
  1350. <style lang="scss">
  1351. .placf {
  1352. .el-input {
  1353. .el-input__inner::placeholder{
  1354. color: #333;
  1355. }
  1356. /* 谷歌 */
  1357. .el-input__inner::-webkit-input-placeholder {
  1358. color: #333;
  1359. }
  1360. /* 火狐 */
  1361. .el-input__inner:-moz-placeholder {
  1362. color: #333;
  1363. }
  1364. /*ie*/
  1365. .el-input__inner:-ms-input-placeholder {
  1366. color: #333;
  1367. }
  1368. }
  1369. }
  1370. .jdueuh{
  1371. .el-form-item__label {
  1372. width: 0px !important;
  1373. }
  1374. .el-form-item__content {
  1375. margin-left: 10px !important;
  1376. // width: 70%;
  1377. }
  1378. }
  1379. .ijeuhdy{
  1380. .el-form-item__label {
  1381. width: 80px !important;
  1382. }
  1383. .el-form-item__content {
  1384. margin-left: 80px !important;
  1385. // width: 70%;
  1386. }
  1387. }
  1388. .znshu{
  1389. .el-form-item__label {
  1390. width: 80px !important;
  1391. // padding-left: 30px;
  1392. }
  1393. .el-form-item__content {
  1394. margin-left: 80px !important;
  1395. // width: 70%;
  1396. }
  1397. .el-input__inner{
  1398. padding-left: 0 !important;
  1399. }
  1400. }
  1401. .heioangd{
  1402. .el-form-item__label {
  1403. width: 70px !important;
  1404. }
  1405. .el-form-item__content {
  1406. margin-left: 70px !important;
  1407. // width: 70%;
  1408. }
  1409. }
  1410. .hues {
  1411. .area-select {
  1412. margin-left: 0 !important;
  1413. margin-right: 10px;
  1414. }
  1415. }
  1416. .jehak {
  1417. .el-form-item {
  1418. width: 100%;
  1419. }
  1420. .el-form-item__content {
  1421. width: 60%;
  1422. }
  1423. }
  1424. .oiuyty {
  1425. .el-form-item__label {
  1426. width: 80px !important;
  1427. }
  1428. .el-form-item__content {
  1429. margin-left: 80px !important;
  1430. // width: 70%;
  1431. }
  1432. input {
  1433. padding-right: 0 !important;
  1434. }
  1435. }
  1436. .el-dialog__body {
  1437. padding-top: 0;
  1438. padding-bottom: 0;
  1439. }
  1440. .jhy {
  1441. // width: 100%;
  1442. // .el-form-item__content {
  1443. // width: 100%;
  1444. // margin-left: 0 !important;
  1445. // }
  1446. .el-form-item__content {
  1447. margin-left: 55px !important;
  1448. // width: 70%;
  1449. }
  1450. .el-form-item__label {
  1451. width: 55px !important;
  1452. }
  1453. }
  1454. .ehiqya {
  1455. .el-form-item__content {
  1456. display: flex;
  1457. .jdidur {
  1458. flex: 1;
  1459. margin-left: 10px;
  1460. // text-align: left;
  1461. display: flex;
  1462. }
  1463. }
  1464. .upload-demo {
  1465. display: flex;
  1466. }
  1467. }
  1468. .jdoier{
  1469. display: flex;
  1470. align-items: center;
  1471. .upload-demo {
  1472. display: flex;
  1473. }
  1474. }
  1475. .hueyde {
  1476. width: 18px;
  1477. height: 18px;
  1478. margin: 0 5px;
  1479. margin-right: 10px;
  1480. }
  1481. .hueydele {
  1482. width: 15px;
  1483. height: 18px;
  1484. }
  1485. .hyeoa {
  1486. height: 100%;
  1487. display: flex;
  1488. align-items: center;
  1489. }
  1490. .hjdoecdre {
  1491. // margin-top: 50%;
  1492. transform: translateY(50%);
  1493. }
  1494. .ojhgy {
  1495. .el-dialog {
  1496. padding-bottom: 40px;
  1497. padding-top: 10px;
  1498. }
  1499. .el-dialog__header {
  1500. padding-bottom: 20px;
  1501. }
  1502. .el-table .cell {
  1503. line-height: 50px;
  1504. }
  1505. }
  1506. .hueya{
  1507. margin-left: 0 !important;
  1508. }
  1509. .iejghiadh{
  1510. .el-input__inner{
  1511. padding-right: 0 !important;
  1512. padding-left: 5px !important;
  1513. }
  1514. }
  1515. </style>