recordvacc.vue 32 KB

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