recordstate.vue 33 KB

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