recordnuclein.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289
  1. <template>
  2. <view class="index" v-if="show">
  3. <p style="height: 20upx; background-color: #f2f2f2;"></p>
  4. <view class="sous_sear" @click="getSearch">
  5. <view class="sous_tit">筛选查询</view>
  6. <input placeholder="请选择筛选条件" class="sous_input" disabled/>
  7. <image :src="searimg" class="sous_img"></image>
  8. </view>
  9. <p style="height: 28upx; background-color: #f2f2f2;"></p>
  10. <view class="tab">
  11. <!-- //表格 -->
  12. <view class="exele">
  13. <view class="box">
  14. <table @change="change">
  15. <tr class="tr_one">
  16. <!-- <th style="width: 130upx; text-align: center;">编号</th> -->
  17. <th style="width: 100upx; text-align: center;">姓名</th>
  18. <!-- <th style="width: 80upx; text-align: center;">性别</th> -->
  19. <th style="width: 270upx; text-align: center;">身份证号</th>
  20. <th style="width: 80upx; text-align: center;">核酸次数</th>
  21. <th style="width: 170upx; text-align: center;">核酸时间</th>
  22. <!-- <th style="width: 100upx;">联系方式</th> -->
  23. <th style="width: 50upx; text-align: center;">操作</th>
  24. <!-- <th style="width: 60upx;">查看</th> -->
  25. </tr>
  26. <scroll-view scroll-y class="scroll-view" upper-threshold="40" lower-threshold="40" @scrolltolower="bot_btn">
  27. <tr v-for="(item,index) in list" :key="index" :class=" [index%2 ==0 ? 'two_tr two_trtwo':'two_tr']" @click="chakn(item)">
  28. <!-- <td style="width: 130upx; text-align: center;" >{{ item.code == null ? '暂无信息' : item.code}}</td> -->
  29. <td style="width: 100upx; text-align: center;" >{{ item.userName == null ? '暂无信息' : item.userName}}</td>
  30. <!-- <td style="width: 80upx; text-align: center;" >{{ item.gender == null ? '暂无信息' : item.gender}}</td> -->
  31. <!-- <td style="width: 40upx; text-align: center;">{{item.gender == null? '暂无信息' : item.gender }}</td> -->
  32. <td style="width: 270upx; text-align: center;">{{item.idCard == null? '暂无信息' : item.idCard }}</td>
  33. <td style="width: 80upx; text-align: center;" >{{ item.hsjlCount == null ? '暂无信息' : item.hsjlCount}}</td>
  34. <td style="width: 170upx; text-align: center;" >{{ item.samplingTime == null? '暂无信息' : item.samplingTime}}</td>
  35. <!-- <td style="width: 100upx;" :class="[item.phone == '' ? 'tdse' : '' ]" >{{ item.phone == ''? '未完善' : item.phone}}</td> -->
  36. <!-- <td style="width: 100upx; text-align: center;" :class="[item.addtime == null ? 'tdse' : item.addtime == ''? 'tdse' : '' ]">{{ item.addtime ==null ? '未完善' : item.addtime==''? '未完善' : item.addtime}}</td> -->
  37. <!-- <td style="width: 50upx;" class="coiu" @click.stop="dele(item.id)">删除</td> -->
  38. <td style="width: 50upx; color: #32B16C;" @click.stop="goDetail(item)">查看</td>
  39. </tr>
  40. <div class="shax" v-if="list.length>0">
  41. {{wtdt}}
  42. </div>
  43. <div class="zanwu " v-else><span>暂无数据</span></div>
  44. </scroll-view>
  45. </table>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- <div class="xinse" @click="addVacFrom">新增户主</div> -->
  50. <!-- <div class="xinse" @click.stop="showPicker($event)">选择地址</div> -->
  51. <!-- 弹窗 -->
  52. <!-- 搜索弹窗 -->
  53. <view class='bgbox' v-if="searchflag" @click="getSearClose"></view>
  54. <view class="searfixed" v-if="searchflag">
  55. <view class="searf_top">
  56. <view class="searf_topl" @click="getSearClose">
  57. <image :src="searimg"></image>
  58. </view>
  59. <view class="searf_topr" @click="getClearFn">重置</view>
  60. </view>
  61. <view class="searf_cen">
  62. <view class="searf_cenli">
  63. <view class="searf_cenlitit">身份证号</view>
  64. <input placeholder="请输入身份证号" type="text" value="" v-model="params.idCard" class="searf_cenlin"/>
  65. </view>
  66. <view class="searf_cenli">
  67. <view class="searf_cenlitit">人员姓名</view>
  68. <input placeholder="请输入人员姓名" type="text" value="" v-model="params.userName" class="searf_cenlin"/>
  69. </view>
  70. <view class="searf_cenli" v-if="roles">
  71. <view class="searf_cenlitit">手机号</view>
  72. <input placeholder="请输入手机号进行查询" maxlength="11" type="number" value="" v-model="params.phoneNum" class="searf_cenlin"/>
  73. </view>
  74. <view class="searf_cenli">
  75. <view class="searf_cenlitit" v-if="navidx==0">居住地址</view>
  76. <view class="searf_cenlitit" v-else>户籍地址</view>
  77. <view class="searf_cenlin" @click="showPicker">
  78. <view class="addsa" :style="searchresult?'':'color:#AAAAAA;'">{{searchresult||'选择区域'}}</view>
  79. <image :src="rimg" class="addsimg"></image>
  80. </view>
  81. </view>
  82. <!-- 是否是户主选择 -->
  83. <view class="searf_cenli">
  84. <view class="searf_cenlitit">是否户主</view>
  85. <view class="searf_cenlin" @click="showHouse">
  86. <view class="addsa" :style="params.houseType?'':'color:#AAAAAA;'">{{params.houseType||'选择是否户主'}}</view>
  87. <image :src="rimg" class="addsimg"></image>
  88. </view>
  89. </view>
  90. <!-- 是否确认 -->
  91. <view class="searf_cenli">
  92. <view class="searf_cenlitit">是否确认</view>
  93. <view class="searf_cenlin" @click="showSure">
  94. <view class="addsa" v-if="params.isConfirm" >{{params.isConfirm=='Y'?'是':'否'}}</view>
  95. <view class="addsa" v-else style="color:#AAAAAA">选择是否确认</view>
  96. <image :src="rimg" class="addsimg"></image>
  97. </view>
  98. </view>
  99. <!-- 人员类别 -->
  100. <view class="searf_cenli">
  101. <view class="searf_cenlitit" style="min-width: 180rpx;">人员类别</view>
  102. <uni-data-checkbox multiple v-model="keyvalue" :localdata="keycategory" >
  103. </uni-data-checkbox>
  104. </view>
  105. </view>
  106. <view class="searf_fot" @click="Seach">查询</view>
  107. </view>
  108. <view class="bgbox" v-if="houseflag"></view>
  109. <!-- 是否户主 -->
  110. <selectPicker ref="houseselet" :list="houselist" title="请选择" @vacChange="vacHouseChange"></selectPicker>
  111. <!-- 是否确认 -->
  112. <selectPicker ref="sureselet" :list="surelist" title="请选择" @vacChange="vacSureChange"></selectPicker>
  113. <u-picker v-model="datashow" mode="time" :default-time="defaulttime" @confirm="dataSure"></u-picker>
  114. <!-- 核酸状态 -->
  115. <selectPicker ref="statusselet" :list="nucstatusclass" title="请选择" @vacChange="vacStatusChange"></selectPicker>
  116. <!-- 选择查看 -->
  117. <view class="housebox" v-if="houseflag">
  118. <view class="house_tit">
  119. <view class="house_titl" @click="getClose">取消</view>
  120. <view class="house_titc">请选择</view>
  121. <view class="house_titr"></view>
  122. </view>
  123. <view class="houselist" @click="getCheck(0)">查看修改</view>
  124. <view class="houselist" @click="getCheck(1)">查看家庭成员</view>
  125. <view class="houselist" @click="getCheck(2)">添加家庭成员</view>
  126. </view>
  127. <selectMorePicker
  128. ref="picker"
  129. :title="auiPicker.title"
  130. :layer="auiPicker.layer"
  131. :titflag='auiPicker.titflag'
  132. :data="auiPicker.data"
  133. @callback="pickerCallback"
  134. ></selectMorePicker>
  135. <dataTimePicke ref="setpicker" type="date" toolBarTitle="请选择日期" @change="dataconfirm"></dataTimePicke>
  136. </view>
  137. </template>
  138. <script>
  139. import selectPicker from '@/_components/picker/selectPicker.vue'
  140. import selectMorePicker from '@/_components/picker/selectMorePicker.vue'
  141. import dataTimePicke from '@/_components/picker/dataTimePicke.vue'
  142. export default {
  143. components:{selectPicker,selectMorePicker,dataTimePicke},
  144. data() {
  145. return {
  146. background: {
  147. backgroundColor: '#009FE8'
  148. },
  149. navidx:1,
  150. navbg:require("@/static/image/titbg.png"),
  151. searimg:require("@/static/image/icon_mine_listenter.png"),
  152. closeimg:require("@/static/image/del.png"),
  153. searchflag:false,
  154. rimg:require('@/static/image/upr.png'),
  155. upimg:require("@/static/image/up.png"),
  156. datashow:false,
  157. defaulttime:'',
  158. //列表数据
  159. list: [],
  160. show: false,
  161. currentTab: 0, //tab切换
  162. params: { //上拉刷新
  163. queryType:'hj',
  164. houseType:'',
  165. // isConfirm:'',
  166. // phoneNum:'',
  167. pageNum: 1,
  168. pageSize: 20,
  169. idCard:'',
  170. userName:'',
  171. startTime:'',
  172. endTime:'',
  173. nucleicAcidStatus:'',//核酸信息
  174. },
  175. villageTowns:'',
  176. village:'',
  177. keyword: '',
  178. haveMore: true,
  179. wtdt: '上拉加载更多',
  180. terd: '',
  181. shoue: false,
  182. listShow: true, //判断是否有数据 true 有
  183. columns: [
  184. ],
  185. startDate:'选择开始时间',
  186. endDate:'选择结束时间',
  187. roles:false,
  188. showtime:false,
  189. currentDate: 0,
  190. searchresult:'',//搜索区域显示
  191. houselist:[{
  192. "label": '是',
  193. "value":0
  194. },{
  195. "label": '否',
  196. "value":1
  197. }],
  198. surelist:[{
  199. "label": '是',
  200. "value":'Y'
  201. },{
  202. "label": '否',
  203. "value":'N'
  204. }],
  205. sureselet:false,
  206. houseflag:false,
  207. auiPicker: {
  208. title: '选择区域',
  209. layer: null,
  210. titflag:true,
  211. data: []
  212. },
  213. houseobj:{
  214. id:'',
  215. code:''
  216. },
  217. nucleicAcidStatus:'',
  218. nucstatuslist:[],
  219. nucstatusclass:[],//核酸列表
  220. hsjlCount:'',
  221. hsjlCountlist:[],
  222. hsjlCountclass:[],//次数字典值
  223. timekey:'start',
  224. statusselet:false
  225. };
  226. },
  227. onShow() {
  228. let type = uni.getStorageSync('token')
  229. if (!type) {
  230. uni.reLaunch({
  231. url: '/pages/login/login'
  232. })
  233. }else{
  234. let roles=uni.getStorageSync('roles')||false
  235. this.roles=roles
  236. }
  237. // var iutem = new Date().getFullYear() + 1
  238. // this.maxDate = new Date(iutem,12,1).getTime()
  239. // this.minDate= new Date(2017, 10, 1).getTime()
  240. },
  241. onLoad(option) {
  242. uni.$on('refreshData',(data) => {
  243. // this.params.userName='';
  244. // this.params.deptId='';
  245. // this.villageTowns='';
  246. // this.village='';
  247. // this.villageTownsId='';
  248. // this.villageId='';
  249. this.params.pageNum = 1;
  250. this.list = []
  251. // 修改 获取列表的
  252. // 获取统计
  253. this.lists(this.params)
  254. })
  255. // this.getTownsFn();
  256. this.params.pageNum = 1
  257. this.list = []
  258. // 修改 获取列表的
  259. // 获取统计
  260. this.lists(this.params)
  261. this.getRegionListFirst()
  262. this.init()
  263. },
  264. beforeDestroy() {
  265. uni.$off("refreshData")
  266. },
  267. created() {
  268. },
  269. methods: {
  270. init(){
  271. this.nucleicAcidStatusFn()
  272. this.frequencyFn()
  273. },
  274. // 核酸状态的字典值
  275. nucleicAcidStatusFn(){
  276. var that = this;
  277. this.$http.get('system/dict/data/type/sys_hsjl_nucleicAcidStatus').then(res => {
  278. if (res.code == 200) {
  279. // if (that.params.nucleicAcidStatus) {
  280. // that.nucleicAcidStatus = that.selectDictLabel(res.data, that.params.nucleicAcidStatus)
  281. // }
  282. that.nucstatuslist = res.data;
  283. this.nucstatusclass = res.data.map(v => {
  284. return {
  285. label: v.dictLabel,
  286. value: v.dictValue
  287. }
  288. })
  289. }
  290. })
  291. },
  292. //次数字典值
  293. // frequencyFn(){
  294. // var that = this;
  295. // this.$http.get('system/dict/data/type/sys_hsjl_frequency').then(res => {
  296. // if (res.code == 200) {
  297. // if (that.params.hsjlCount) {
  298. // that.hsjlCount = that.selectDictLabel(res.data, that.params.hsjlCount)
  299. // }
  300. // that.hsjlCountlist = res.data;
  301. // this.hsjlCountclass = res.data.map(v => {
  302. // return {
  303. // label: v.dictLabel,
  304. // value: v.dictValue
  305. // }
  306. // })
  307. // }
  308. // })
  309. // },
  310. dataSure(){
  311. },
  312. showDatePicker (e) {
  313. this.timekey=e;
  314. this.$refs.setpicker.show();
  315. },
  316. dataconfirm (e){
  317. if(this.timekey=='start'){
  318. this.params.startTime =e;
  319. }else{
  320. this.params.endTime = e;
  321. }
  322. },
  323. getSearch(){
  324. this.searchflag=true
  325. },
  326. getSearClose(){
  327. this.searchflag=false
  328. },
  329. getClose(){
  330. this.houseflag=false
  331. },
  332. getSure(){
  333. this.houseflag=false
  334. },
  335. // 查看修改
  336. getCheck(e){
  337. this.houseflag=false
  338. var id=this.houseobj.id;
  339. var code=this.houseobj.code;
  340. if(e==0){
  341. uni.navigateTo({
  342. url: '/add/pages/addvacfrom/addpeople?id=' + id
  343. })
  344. }else if(e==1){
  345. uni.navigateTo({
  346. url: '/home/pages/recordthree/familylist?code='+code
  347. })
  348. }else if(e==2){
  349. // 添加家庭成员
  350. uni.navigateTo({
  351. url: '/add/pages/addvacfrom/addpeople?code='+code
  352. })
  353. }
  354. },
  355. // 是否户主
  356. showHouse(){
  357. this.$refs.houseselet.show()
  358. },
  359. //是否确认
  360. showSure(){
  361. this.$refs.sureselet.show()
  362. },
  363. // 核酸
  364. showStatus(){
  365. this.$refs.statusselet.show()
  366. },
  367. vacHouseChange(e){
  368. this.params.houseType=e[0].label;
  369. //搜索
  370. // this.list = []
  371. // this.params.pageNum = 1
  372. // this.params.pageSize = 20
  373. // this.lists(this.params);
  374. },
  375. vacSureChange(e){
  376. this.params.isConfirm=e[0].value;
  377. //搜索
  378. // this.list = []
  379. // this.params.pageNum = 1
  380. // this.params.pageSize = 20
  381. // this.lists(this.params);
  382. },
  383. vacStatusChange(e){
  384. this.params.nucleicAcidStatus=e[0].value;
  385. this.nucleicAcidStatus=e[0].label
  386. },
  387. getRegionListFirst(){
  388. this.$http.post('boman-system/chinaArea/treeSelect',{pid: 0},true).then(res=>{
  389. this.auiPicker.data=res.data
  390. })
  391. },
  392. //显示picker多级联动弹窗
  393. showPicker(e){
  394. const _this = this;
  395. _this.$refs.picker.open().then(function(){
  396. console.log('picker打开');
  397. });
  398. },
  399. //picker多级联动回调
  400. pickerCallback(e){
  401. const _this = this;
  402. let result = '';
  403. e.data.forEach(function(item, index){
  404. if(index==0){
  405. result += item.name;
  406. }else{
  407. result +='/'+ item.name;
  408. }
  409. });
  410. _this.searchresult=result;
  411. var params={
  412. idCard:this.params.idCard,
  413. queryType:this.params.queryType,
  414. isRl:this.params.isRl,
  415. houseType:this.params.houseType,
  416. isConfirm:this.params.isConfirm,
  417. userName:this.params.userName,
  418. phoneNum:this.params.phoneNum,
  419. pageSize:20
  420. }
  421. var length=e.data.length;
  422. // console.log(this.params.queryType,33)
  423. if(this.params.queryType=='hj'){
  424. switch (length) {
  425. case 0:
  426. break;
  427. case 1:
  428. params.provinceId = e.data[0].areaid;
  429. break;
  430. case 2:
  431. params.cityId = e.data[1].areaid;
  432. break;
  433. case 3:
  434. params.regionId = e.data[2].areaid;
  435. break;
  436. case 4:
  437. params.villageTownsId = e.data[3].areaid;
  438. break;
  439. case 5:
  440. params.villageId = e.data[4].areaid;
  441. break;
  442. default:
  443. break;
  444. }
  445. }else{
  446. switch (length) {
  447. case 0:
  448. break;
  449. case 1:
  450. params.provinceIdXjd = e.data[0].areaid;
  451. break;
  452. case 2:
  453. params.cityIdXjd = e.data[1].areaid;
  454. break;
  455. case 3:
  456. params.regionIdXjd = e.data[2].areaid;
  457. break;
  458. case 4:
  459. params.villageTownsIdXjd = e.data[3].areaid;
  460. break;
  461. case 5:
  462. params.villageIdXjd = e.data[4].areaid;
  463. break;
  464. default:
  465. break;
  466. }
  467. }
  468. //搜索
  469. // this.list = []
  470. this.params=JSON.parse(JSON.stringify(params));
  471. // this.params.pageNum = 1
  472. // this.params.pageSize = 20
  473. // this.lists(this.params);
  474. },
  475. getClearFn(){
  476. // this.params.userName='';
  477. // this.params.deptId='';
  478. // this.villageTowns='';
  479. // this.village='';
  480. // this.villageTownsId='';
  481. // this.villageId='';
  482. this.searchresult='';
  483. var params={
  484. pageNum: 1,
  485. pageSize: 20,
  486. idCard:'',
  487. queryType:this.params.queryType,
  488. isRl:this.params.isRl,
  489. houseType:'',
  490. isConfirm:'',
  491. userName:'',
  492. phoneNum:'',
  493. }
  494. // this.list = []
  495. this.params=JSON.parse(JSON.stringify(params));
  496. // this.lists(this.params)
  497. },
  498. goDetail(e) {
  499. if(e.houseType=='是'){
  500. // 弹窗弹窗
  501. // 记录选择的
  502. this.houseflag=true;
  503. this.houseobj.code=e.code;
  504. this.houseobj.id=e.id;
  505. }else{
  506. uni.navigateTo({
  507. url: '/add/pages/addvacfrom/nucleindetail?id=' + e.id
  508. })
  509. }
  510. },
  511. //查询列表
  512. // 户籍地址
  513. getListHjFn(){
  514. var params=this.params;
  515. this.$http.get("boman-web-core/core/czrk/list", params).then(res => {
  516. //停止下拉加载
  517. uni.hideNavigationBarLoading()
  518. uni.stopPullDownRefresh()
  519. if (res.code == 200) {
  520. if (res.rows.length < params.pageSize) {
  521. this.haveMore = false
  522. this.wtdt='到底了~';
  523. } else {
  524. var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
  525. if(num<res.total){
  526. this.haveMore = true
  527. this.wtdt='上拉加载更多'
  528. }else{
  529. this.listShow = false
  530. this.haveMore = false
  531. this.wtdt='到底了~';
  532. }
  533. }
  534. if(params.pageNum==1){
  535. this.list = res.rows
  536. }else{
  537. this.list = this.list.concat(res.rows)
  538. }
  539. } else {
  540. uni.showToast({
  541. title: res.msg,
  542. duration: 1000,
  543. icon: 'none'
  544. });
  545. }
  546. })
  547. },
  548. //常驻信息
  549. getListCzFn(){
  550. var params=this.params;
  551. this.$http.get("boman-web-core/core/jzdz/list", params).then(res => {
  552. //停止下拉加载
  553. uni.hideNavigationBarLoading()
  554. uni.stopPullDownRefresh()
  555. if (res.code == 200) {
  556. if (res.rows.length < params.pageSize) {
  557. this.haveMore = false
  558. this.wtdt='到底了~';
  559. } else {
  560. var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
  561. if(num<res.total){
  562. this.haveMore = true
  563. this.wtdt='上拉加载更多'
  564. }else{
  565. this.haveMore = false
  566. this.wtdt='到底了~';
  567. }
  568. }
  569. if(params.pageNum==1){
  570. this.list = res.rows
  571. }else{
  572. this.list = this.list.concat(res.rows)
  573. }
  574. } else {
  575. uni.showToast({
  576. title: res.msg,
  577. duration: 1000,
  578. icon: 'none'
  579. });
  580. }
  581. })
  582. },
  583. // 人员未认领接口
  584. getListRyrlFn(){
  585. var params=this.params;
  586. // 户籍
  587. if(this.navidx==1){
  588. this.$http.get("boman-web-core/core/czrk/ryrl/listHj", params).then(res => {
  589. //停止下拉加载
  590. uni.hideNavigationBarLoading()
  591. uni.stopPullDownRefresh()
  592. if (res.code == 200) {
  593. if (res.rows.length < params.pageSize) {
  594. this.haveMore = false
  595. this.wtdt='到底了~';
  596. } else {
  597. var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
  598. if(num<res.total){
  599. this.haveMore = true
  600. this.wtdt='上拉加载更多'
  601. }else{
  602. this.haveMore = false
  603. this.wtdt='到底了~';
  604. }
  605. }
  606. if(params.pageNum==1){
  607. this.list = res.rows
  608. }else{
  609. this.list = this.list.concat(res.rows)
  610. }
  611. } else {
  612. uni.showToast({
  613. title: res.msg,
  614. duration: 1000,
  615. icon: 'none'
  616. });
  617. }
  618. })
  619. }else{
  620. this.$http.get("boman-web-core/core/czrk/ryrl/listCz", params).then(res => {
  621. //停止下拉加载
  622. uni.hideNavigationBarLoading()
  623. uni.stopPullDownRefresh()
  624. if (res.code == 200) {
  625. if (res.rows.length < params.pageSize) {
  626. this.haveMore = false
  627. this.wtdt='到底了~';
  628. } else {
  629. var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
  630. if(num<res.total){
  631. this.haveMore = true
  632. this.wtdt='上拉加载更多'
  633. }else{
  634. this.haveMore = false
  635. this.wtdt='到底了~';
  636. }
  637. }
  638. if(params.pageNum==1){
  639. this.list = res.rows
  640. }else{
  641. this.list = this.list.concat(res.rows)
  642. }
  643. } else {
  644. uni.showToast({
  645. title: res.msg,
  646. duration: 1000,
  647. icon: 'none'
  648. });
  649. }
  650. })
  651. }
  652. // 常驻
  653. },
  654. lists(params) {
  655. this.$http.get("boman-web-core/core/hsjl/appList", params).then(res => {
  656. //停止下拉加载
  657. uni.hideNavigationBarLoading()
  658. uni.stopPullDownRefresh()
  659. if (res.code == 200) {
  660. if (res.rows.length < params.pageSize) {
  661. this.haveMore = false
  662. this.wtdt='到底了~';
  663. } else {
  664. var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
  665. if(num<res.total){
  666. this.haveMore = true
  667. this.wtdt='上拉加载更多'
  668. }else{
  669. this.haveMore = false
  670. this.wtdt='到底了~';
  671. }
  672. }
  673. if(params.pageNum==1){
  674. this.list = res.rows
  675. }else{
  676. this.list = this.list.concat(res.rows)
  677. }
  678. // this.init()
  679. } else {
  680. uni.showToast({
  681. title: res.msg,
  682. duration: 1000,
  683. icon: 'none'
  684. });
  685. }
  686. })
  687. },
  688. //刷新
  689. bot_btn() {
  690. if (this.haveMore) {
  691. this.params.pageNum++
  692. this.lists(this.params)
  693. }
  694. },
  695. //查看
  696. chakn(item) {
  697. // uni.setStorageSync('item', item)
  698. // wx.navigateTo({
  699. // url: '/pages/home/recordtwo'
  700. // })
  701. },
  702. // 删除
  703. dele(item){
  704. this.$http.dele("boman-web-core/core/info/" + item).then(res => {
  705. if(res.code == 200){
  706. this.params.pageNum = 1
  707. this.list = []
  708. this.lists(this.params)
  709. }
  710. })
  711. },
  712. //搜索
  713. Seach() {
  714. this.list = [];
  715. this.searchflag=false;
  716. this.params.pageNum = 1
  717. this.lists(this.params)
  718. },
  719. //弹
  720. changeTab(index){
  721. this.currentTab = index
  722. this.params.pageNum=1;
  723. this.list = []
  724. if(index == 0){
  725. this.params.isRl = ''
  726. this.lists(this.params)
  727. }else if(index == 1){
  728. // 已认领
  729. this.params.isRl = "是"
  730. this.lists(this.params)
  731. }else if(index == 2){
  732. // 未认领
  733. // this.params.isRl = "否"
  734. this.getListRyrlFn()
  735. }
  736. },
  737. // formatter(type, value){
  738. // if (type === 'year') {
  739. // return `${value}年`;
  740. // } else if (type === 'month') {
  741. // return `${value}月`;
  742. // }
  743. // return value;
  744. // },
  745. // 点击新增
  746. // addVacFrom () {
  747. // uni.navigateTo({
  748. // url: '/add/pages/addvacfrom/addpeople?type=house'
  749. // })
  750. // }
  751. }
  752. }
  753. </script>
  754. <style lang="scss" scoped>
  755. .bgbox{position: fixed;left: 0;right: 0;top: 0;bottom: 0;z-index: 200;
  756. background: rgba(0,0,0,0.5);}
  757. .housebox{position: fixed;left: 0;right: 0;bottom: 0;z-index: 1000;background: #FFFFFF;border-radius: 30rpx 30rpx 0 0;
  758. .house_tit{width: 100%;height: 100rpx;position: relative;z-index: 999;background: #F2F2F2;border-radius: 30rpx 30rpx 0 0;display: flex;align-items: center;margin-bottom: 10rpx;
  759. .house_titl{font-size: 30rpx;color: #333333;flex: 0 0 auto;height: 100rpx;width: 120rpx;text-align: center;line-height:100rpx;}
  760. .house_titr{flex: 0 0 auto;font-size: 30rpx;color: #197DE0;height:100rpx;width:120rpx;text-align: center;line-height: 100rpx;}
  761. .house_titc{line-height: 40rpx;font-size: 34rpx;color: #333;padding: 30rpx;box-sizing: border-box;flex: 1;text-align: center;}
  762. }
  763. .houselist{width: 100%;text-align: center;font-size: 30rpx;color: #333333;line-height: 88rpx;
  764. &.act{color: #197DE0;}
  765. &:last-child{padding-bottom: 20rpx;}
  766. }
  767. }
  768. .nav_box{display: flex;align-items: center;justify-content: center;flex: 1;
  769. .nav_boxa{position: relative;width: 214rpx;height: 86rpx;
  770. .nav_boxb{width: 100%;height: 100%;display: none;}
  771. .nav_boxa1{font-size: 34rpx;font-weight: bold;color: #0678AC;text-align: center;padding-top: 14rpx;box-sizing: border-box;position: absolute;left: 0;top: 0;right: 0;bottom: 0;}
  772. &.act{color: #FFFFFF;
  773. .nav_boxb{display: block;}
  774. .nav_boxa1{color: #FFFFFF;}
  775. }
  776. }
  777. }
  778. .address{
  779. display: flex;align-items: center;
  780. margin-top: 38rpx;
  781. .addtita{flex: 0 0 auto;font-size: 28rpx;font-weight: bold;
  782. color: #343434;}
  783. .addressa{
  784. display: flex;align-items: center;
  785. flex: 1;
  786. display: flex;align-items: center;justify-content: flex-end;
  787. overflow: hidden;
  788. .addsa{font-size: 26rpx;color: #333333;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
  789. flex: 1;text-align: right;
  790. }
  791. .addsimg{width: 16rpx;height: 24rpx;margin-left: 10rpx;flex: 0 0 auto;}
  792. // .adds{
  793. // display: flex;align-items: center;justify-content: flex-start;padding:10rpx 20rpx;min-width: 220rpx;box-sizing: border-box;}
  794. }
  795. .addclear{color: #EA2929;font-size: 26rpx;flex: 0 0 auto;height: 60rpx;line-height: 60rpx;width: 128rpx;text-align:center}
  796. }
  797. .coie{
  798. width: 100%;
  799. box-sizing: border-box;
  800. padding: 0 33upx;
  801. .coie_nav{
  802. border-top: 1upx solid #E5E5E5;
  803. display: flex;
  804. flex-wrap: wrap;
  805. padding-bottom: 28upx;
  806. p{
  807. width: 33.33%;
  808. text-align: center;
  809. display: flex;
  810. flex-direction: column;
  811. margin-top: 53upx;
  812. span{
  813. font-size: 28upx;
  814. }
  815. i{
  816. font-size: 28upx;
  817. color: #333;
  818. margin-top: 28upx;
  819. }
  820. }
  821. }
  822. }
  823. .ieju{
  824. height: 17upx;
  825. width: 100%;
  826. background-color: #eee;
  827. margin-bottom: 33upx;
  828. }
  829. //暂无数据
  830. .zanwu {
  831. text-align: center;
  832. padding-top: 20upx;
  833. span {
  834. font-size: 24upx;
  835. }
  836. }
  837. .scroll-view {
  838. max-height: calc(100vh - 401upx);
  839. }
  840. .shax {
  841. // height: 83upx;
  842. font-size: 25upx;
  843. color: #666;
  844. text-align: center;
  845. }
  846. .index {
  847. // padding-top: 33upx;
  848. max-height: 100vh;
  849. .sous {
  850. padding: 24upx 33upx 0;
  851. // display: flex;
  852. .input {
  853. height: 80upx;
  854. border: 1upx solid #E5E5E5;
  855. flex: 1;
  856. margin-right: 28upx;
  857. padding-left: 10upx;
  858. box-sizing: border-box;
  859. }
  860. button {
  861. // width: 125upx;
  862. height: 80upx;
  863. background-color: #1678FF;
  864. text-size: 28upx;
  865. color: #fff;
  866. text-align: center;
  867. line-height: 80upx;
  868. }
  869. }
  870. //tab
  871. .tab {
  872. padding-top:33upx;
  873. padding-bottom: 100upx;
  874. .tabs {
  875. display: flex;
  876. padding: 0 20upx;
  877. box-sizing: border-box;
  878. height: 111upx;
  879. justify-content: space-between;
  880. box-shadow: 0px 7px 7px 0px rgba(229, 229, 229, 0.5);
  881. .one_tab {
  882. color: #1678FF !important;
  883. // width: 140upx;
  884. // text-align: center;
  885. // .twotabs {
  886. // font-size: 31upx;
  887. // color: #666666;
  888. // ;
  889. // font-weight: 500;
  890. // }
  891. // .twosrtabs {
  892. // color: #1678FF;
  893. // }
  894. // .twotabstwo {
  895. // font-size: 24upx;
  896. // color: #AAAAAA;
  897. // }
  898. }
  899. .one_tabqie {
  900. border-bottom: 8upx solid #1678FF;
  901. }
  902. }
  903. }
  904. //表格
  905. .exele {
  906. .box {
  907. .tr_one {
  908. display: flex;
  909. padding: 0 20upx;
  910. box-sizing: border-box;
  911. justify-content: space-between;
  912. th {
  913. // flex: 1;
  914. font-size: 24upx;
  915. font-family: PingFang SC;
  916. font-weight: 500;
  917. color: #333333;
  918. line-height: 14upx;
  919. overflow: hidden;
  920. text-overflow: ellipsis;
  921. white-space: nowrap;
  922. line-height: 83upx;
  923. height: 83upx;
  924. }
  925. }
  926. .two_tr {
  927. display: flex;
  928. padding: 0 20upx;
  929. box-sizing: border-box;
  930. justify-content: space-between;
  931. td {
  932. // flex: 1;
  933. font-size: 24upx;
  934. font-family: PingFang SC;
  935. font-weight: 500;
  936. color: #333333;
  937. line-height: 83upx;
  938. height: 83upx;
  939. overflow: hidden;
  940. text-overflow: ellipsis;
  941. white-space: nowrap;
  942. }
  943. .tdse {
  944. color: #E60012 !important;
  945. }
  946. .apply_span_xl{
  947. color: #32B16C !important;
  948. }
  949. .apply_span_xltwo{
  950. color: #ffa200 !important;
  951. }
  952. .apply_span_xlfive{
  953. color: #4c4b4b !important;
  954. }
  955. .apply_span_xlthreo{
  956. color: #f00404 !important;
  957. }
  958. .apply_span_xlforu{
  959. color: #aaaaaa !important;
  960. }
  961. // .apply_span_xla{
  962. // color: #1678FF;
  963. // text-decoration: underline ;
  964. // }
  965. .coiu {
  966. color: #EC1717;
  967. }
  968. }
  969. .two_trtwo {
  970. background-color: #EBEFF2;
  971. }
  972. }
  973. }
  974. }
  975. .banj {
  976. height: 86upx;
  977. width: 100%;
  978. // text-align: center;
  979. line-height: 86upx;
  980. // background-color: #F6F9FC;
  981. color: #AAAAAA;
  982. margin-top: 20upx;
  983. display: flex;
  984. justify-content: space-around;
  985. }
  986. .apply_box{
  987. .apply_item_input{
  988. padding: 0 33upx;
  989. // border-top: 1upx solid #F4F4F4;
  990. display: flex;
  991. height: 68upx;
  992. align-items: center;
  993. .apply_span_x{
  994. font-size: 28upx;
  995. color: #363535;
  996. span{
  997. color: #F22346;
  998. }
  999. }
  1000. .input_r{
  1001. font-size: 28upx;
  1002. height: 100%;
  1003. flex: 1;
  1004. text-align: right;
  1005. }
  1006. .input_rtwo{
  1007. line-height:68upx;
  1008. }
  1009. .input_rtwoss{
  1010. color: #1678FF;
  1011. }
  1012. .input_rtwosss{
  1013. color: #FF0000;
  1014. }
  1015. }
  1016. .apply_title_jt{
  1017. height: 130upx;
  1018. border-top: 1upx solid #F4F4F4;
  1019. display: flex;
  1020. justify-content: space-between;
  1021. align-items: center;
  1022. padding: 0 32upx;
  1023. span{
  1024. font-size: 36upx;
  1025. color: #333;
  1026. font-weight: bold;
  1027. }
  1028. .apply_title_btn{
  1029. width: 160upx;
  1030. height: 60upx;
  1031. font-size: 24upx;
  1032. color: #fff;
  1033. display: flex;
  1034. justify-content: center;
  1035. align-items: center;
  1036. background: #FF568C;
  1037. border-radius: 8upx;
  1038. .img{
  1039. width: 30upx;
  1040. height: 30upx;
  1041. margin-right: 10upx;
  1042. }
  1043. }
  1044. }
  1045. .apply_title_jts{
  1046. border:none;
  1047. }
  1048. .apply_title_jt_item{
  1049. border-bottom: 9upx solid #F4F4F4;
  1050. .apply_item_input_qx{
  1051. color: #FF5185;
  1052. height: 100%;
  1053. display: flex;
  1054. justify-content: center;
  1055. align-items: center;
  1056. height: 112upx;
  1057. font-size: 30upx;
  1058. }
  1059. }
  1060. .apply_item_sfz{
  1061. padding: 42upx 20upx;
  1062. border-bottom: 9upx solid #F4F4F4;
  1063. .apply_item_sfz_title{
  1064. font-weight: bold;
  1065. font-size: 34upx;
  1066. margin-bottom: 40upx;
  1067. margin-left: 2upx;
  1068. }
  1069. .apply_item_phones{
  1070. display: flex;
  1071. justify-content: space-between;
  1072. .apply_item_phone{
  1073. width: 340upx;
  1074. height: 218upx;
  1075. .img{
  1076. width: 100%;
  1077. height: 100%;
  1078. border-radius: 20upx;
  1079. }
  1080. }
  1081. }
  1082. }
  1083. .apply_item_zdxx{
  1084. padding: 0 26upx;
  1085. font-size: 34upx;
  1086. font-weight: bold;
  1087. color: #333;
  1088. height: 112upx;
  1089. line-height: 112upx;
  1090. border: 1upx solid #F4F4F4;
  1091. }
  1092. .qt_div{
  1093. height: 112upx;
  1094. border-top: 1upx solid #F4F4F4;
  1095. padding: 0 32upx;
  1096. border-bottom: 9upx solid #F9F9F9;
  1097. .input_l{
  1098. height: 100%;
  1099. font-size: 30upx;
  1100. }
  1101. }
  1102. }
  1103. .tabld{
  1104. display: flex;
  1105. // height: 90upx;
  1106. box-shadow: 0px 7px 5px 0px rgba(218, 218, 218, 0.35);
  1107. view {
  1108. font-size:26upx ;
  1109. font-family: PingFang SC;
  1110. font-weight: 500;
  1111. color: #191919;
  1112. text-align: center;
  1113. flex: 1;
  1114. // line-height: 70upx;
  1115. display: flex;
  1116. flex-direction: column;
  1117. padding: 18rpx 0 20rpx;
  1118. }
  1119. .one_tabhu{
  1120. color: #009FE8;
  1121. position: relative;
  1122. ::after{width: 28rpx;height: 6rpx;background: #009FE8;position: absolute;left: 50%;margin-left: -14rpx;bottom: 0;content: "";}
  1123. }
  1124. }
  1125. .nbhe{
  1126. display: flex;
  1127. margin-bottom: 44upx;
  1128. p{
  1129. font-size: 25upx;
  1130. flex: 1;
  1131. padding: 0 77upx;
  1132. display: flex;
  1133. align-items: center;
  1134. }
  1135. p:nth-child(2){
  1136. justify-content: flex-end;
  1137. }
  1138. img{
  1139. width: 31upx;
  1140. height: 29upx;
  1141. margin-right: 11upx;
  1142. }
  1143. }
  1144. .xinse{
  1145. position: fixed;
  1146. width: 100%;
  1147. bottom: 0;
  1148. left: 0;
  1149. font-size: 33upx;
  1150. font-family: PingFang SC;
  1151. font-weight: 500;
  1152. color: #FFFFFF;
  1153. height: 90upx;
  1154. background-color: #00B034;
  1155. text-align: center;
  1156. line-height: 90upx;
  1157. }
  1158. .sous_sear{
  1159. padding: 0rpx 32rpx;background: #FFFFFF;height: 112rpx;box-sizing: border-box;display: flex;align-items: center;
  1160. .sous_tit{font-size: 28rpx;color: #343434;flex: 0 0 auto;}
  1161. .sous_img{width: 18rpx;height: 32rpx;margin-left: 20rpx;flex: 0 0 auto;}
  1162. .sous_input{font-size: 30rpx;color: #AAAAAA;flex: 1;text-align: right;}
  1163. }
  1164. // 搜索条件width: 562rpx;
  1165. .sfixed{min-height: 840rpx;background: #FFFFFF;border-radius: 14rpx;padding: 40rpx 34rpx;box-sizing: border-box;position: fixed;left: 60rpx;right: 60rpx;top: 50%;transform: translateY(-50%);
  1166. z-index: 300;max-height: calc(100vh - 280rpx);overflow-y: auto;
  1167. .sfixed_tit{font-size: 28rpx;font-weight: bold;color: #343434;line-height: 44rpx;text-align: center;}
  1168. .sfixed_clo{width: 34rpx;height: 34rpx;position: absolute;right: 34rpx;top: 44rpx;}
  1169. .sfixed_box{
  1170. padding-top: 20rpx;
  1171. .sfixed_inp{width: 100%;height: 76rpx;background:#F2F2F2;padding: 0 34rpx;box-sizing: border-box;font-size: 28rpx;color: #333333;margin-top: 30rpx;}
  1172. .sfixed_line{width: 62rpx;height: 6rpx;background: #009FE8;margin: 38rpx auto 32rpx;}
  1173. .sfixed_flex{display: flex;align-items: center;justify-content: space-between;
  1174. .sfixed_a{font-size: 26rpx;font-weight: bold;color: #666666;}
  1175. .sfixed_ar{font-size: 26rpx;font-weight: bold;color: #DF0024;}
  1176. }
  1177. }
  1178. .sfixed_btn{width: 100%;height: 76rpx;background: #00B034;border: 0px solid #00B034;border-radius: 6rpx;font-size: 28rpx;font-weight: bold;
  1179. color: #FFFFFF;text-align: center;line-height: 76rpx;margin-top: 62rpx;}
  1180. }
  1181. // 搜索弹窗新
  1182. .searfixed{width: 648rpx;background: #FFFFFF;z-index: 1200;position: fixed;right: 0;top: 0;bottom: 0;display: flex;flex-direction: column;
  1183. .searf_top{display: flex;align-items: center;justify-content: space-between;padding:20rpx 34rpx 20rpx 0;margin-bottom: 20rpx;flex:0 0 auto;
  1184. .searf_topl{width: 80rpx;height: 50rpx;display: flex;align-items: center;padding-left: 34rpx;box-sizing: border-box;
  1185. image{width: 18rpx;height: 32rpx;transform: rotate(180deg);}
  1186. }
  1187. .searf_topr{width: 98rpx;height: 42rpx;
  1188. background: linear-gradient(-90deg, #3C6AF8, #5E8AC6);
  1189. border-radius: 20rpx;font-size: 26rpx;color: #FFFFFF;line-height: 42rpx;text-align: center;}
  1190. }
  1191. .searf_cen{flex: 1;overflow-y: auto;padding: 0 34rpx;
  1192. .searf_cenli{margin-bottom: 40rpx;
  1193. .searf_cenlitit{font-size: 28rpx;font-weight: bold;color: #343434;margin-bottom: 24rpx;}
  1194. .searf_cenlin{width: 100%;height: 70rpx;background: #F2F2F2;border-radius: 34rpx;padding: 0 40rpx;box-sizing: border-box;line-height: 70rpx;font-size: 28rpx;color: #333333;display: flex;align-items: center;overflow: hidden;
  1195. .addsa{flex: 1;font-size: 28rpx;color: #333333;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
  1196. .addsimg{width: 32rpx;height: 18rpx;flex: 0 0 auto;}
  1197. }
  1198. }
  1199. }
  1200. .searf_fot{width: 100%;height: 90rpx;
  1201. background: linear-gradient(-90deg, #3C6AF8, #5E8AC6);line-height: 90rpx;text-align: center;font-weight: bold;
  1202. color: #FFFFFF;font-size: 30rpx;}
  1203. }
  1204. </style>