12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265 |
- <template>
- <view class="index" v-if="show">
- <view class="sous_sear">
- <view class="sous_box" @click="getSearch">
- <image :src="searimg" class="sous_img"></image>
- <input placeholder="请输入身份证号或姓名进行查询" class="sous_input" disabled/>
- </view>
- </view>
- <p style="height: 28upx; background-color: #f2f2f2;"></p>
-
- <view class="tab">
- <!-- //表格 -->
- <view class="exele">
- <view class="box">
- <table @change="change">
- <tr class="tr_one">
- <!-- <th style="width: 130upx; text-align: center;">编号</th> -->
- <th style="width: 100upx; text-align: center;">姓名</th>
- <!-- <th style="width: 80upx; text-align: center;">性别</th> -->
- <th style="width: 270upx; text-align: center;">身份证号</th>
- <th style="width: 80upx; text-align: center;">核酸次数</th>
- <th style="width: 170upx; text-align: center;">核酸时间</th>
- <!-- <th style="width: 100upx;">联系方式</th> -->
- <th style="width: 50upx; text-align: center;">操作</th>
- <!-- <th style="width: 60upx;">查看</th> -->
- </tr>
- <scroll-view scroll-y class="scroll-view" upper-threshold="40" lower-threshold="40" @scrolltolower="bot_btn">
- <tr v-for="(item,index) in list" :key="index" :class=" [index%2 ==0 ? 'two_tr two_trtwo':'two_tr']" @click="chakn(item)">
- <!-- <td style="width: 130upx; text-align: center;" >{{ item.code == null ? '暂无信息' : item.code}}</td> -->
- <td style="width: 100upx; text-align: center;" >{{ item.userName == null ? '暂无信息' : item.userName}}</td>
- <!-- <td style="width: 80upx; text-align: center;" >{{ item.gender == null ? '暂无信息' : item.gender}}</td> -->
- <!-- <td style="width: 40upx; text-align: center;">{{item.gender == null? '暂无信息' : item.gender }}</td> -->
- <td style="width: 270upx; text-align: center;">{{item.idCard == null? '暂无信息' : item.idCard }}</td>
- <td style="width: 80upx; text-align: center;" >{{ item.hsjlCount == null ? '暂无信息' : item.hsjlCount}}</td>
- <td style="width: 170upx; text-align: center;" >{{ item.samplingTime == null? '暂无信息' : item.samplingTime}}</td>
- <!-- <td style="width: 100upx;" :class="[item.phone == '' ? 'tdse' : '' ]" >{{ item.phone == ''? '未完善' : item.phone}}</td> -->
- <!-- <td style="width: 100upx; text-align: center;" :class="[item.addtime == null ? 'tdse' : item.addtime == ''? 'tdse' : '' ]">{{ item.addtime ==null ? '未完善' : item.addtime==''? '未完善' : item.addtime}}</td> -->
- <!-- <td style="width: 50upx;" class="coiu" @click.stop="dele(item.id)">删除</td> -->
- <td style="width: 50upx; color: #32B16C;" @click.stop="goDetail(item)">查看</td>
- </tr>
- <div class="shax" v-if="list.length>0">
- {{wtdt}}
- </div>
- <div class="zanwu " v-else><span>暂无数据</span></div>
- </scroll-view>
-
- </table>
- </view>
- </view>
- </view>
- <!-- <div class="xinse" @click="addVacFrom">新增户主</div> -->
- <!-- <div class="xinse" @click.stop="showPicker($event)">选择地址</div> -->
-
- <!-- 弹窗 -->
- <!-- 搜索弹窗 -->
- <view class='bgbox' v-if="searchflag"></view>
- <view class="sfixed" v-if="searchflag">
- <view class="sfixed_tit">筛选查询</view>
- <image :src="closeimg" class="sfixed_clo" @click="getSearClose"></image>
- <view class="sfixed_box">
- <input placeholder="请输入身份证号进行查询" class="sfixed_inp" type="text" value="" v-model="params.idCard" />
- <input placeholder="请输入姓名进行查询" class="sfixed_inp" type="text" value="" v-model="params.userName"/>
-
- <input placeholder="请输入手机号进行查询" class="sfixed_inp" type="number" maxlength="11" value="" v-model="params.phoneNum" v-if="roles"/>
-
- <view class="sfixed_line"></view>
- <view class="sfixed_flex">
- <view class="sfixed_a">筛选条件</view>
- <view class="sfixed_ar" @click="getClearFn">重置</view>
- </view>
-
- <view class="address">
- <view class="addtita" v-if="navidx==0">居住地址</view>
- <view class="addtita" v-else>户籍地址</view>
- <view class="addressa" @click="showPicker">
- <view class="addsa" :style="searchresult?'':'color:#AAAAAA;'">{{searchresult||'选择区域'}}</view>
- <image :src="rimg" class="addsimg"></image>
- <!-- <view class="adds" >
-
- </view> -->
- </view>
- </view>
- <!-- 核酸状态 待测试-->
- <!-- <view class="address">
- <view class="addtita">核酸状态</view>
- <view class="addressa" @click="showStatus">
- <view class="addsa" :style="nucleicAcidStatus?'':'color:#AAAAAA;'">{{nucleicAcidStatus||'选择核酸状态'}}</view>
- <image :src="rimg" class="addsimg"></image>
- </view>
- </view> -->
- <!-- 开始时间 -->
- <view class="address">
- <view class="addtita">开始日期</view>
- <view class="addressa" @click="showDatePicker('start')">
- <view class="addsa" :style="params.startTime?'':'color:#AAAAAA;'">{{params.startTime||'选择开始日期'}}</view>
- <image :src="rimg" class="addsimg"></image>
- </view>
- </view>
- <!-- 结束日期 -->
- <view class="address">
- <view class="addtita">结束日期</view>
- <view class="addressa" @click="showDatePicker('end')">
- <view class="addsa" :style="params.endTime?'':'color:#AAAAAA;'">{{params.endTime||'选择结束日期'}}</view>
- <image :src="rimg" class="addsimg"></image>
- </view>
- </view>
- </view>
- <view class="sfixed_btn" @click="Seach">查询</view>
- </view>
-
-
- <view class="bgbox" v-if="houseflag"></view>
- <!-- 是否户主 -->
- <selectPicker ref="houseselet" :list="houselist" title="请选择" @vacChange="vacHouseChange"></selectPicker>
- <!-- 是否确认 -->
- <selectPicker ref="sureselet" :list="surelist" title="请选择" @vacChange="vacSureChange"></selectPicker>
- <u-picker v-model="datashow" mode="time" :default-time="defaulttime" @confirm="dataSure"></u-picker>
- <!-- 核酸状态 -->
- <selectPicker ref="statusselet" :list="nucstatusclass" title="请选择" @vacChange="vacStatusChange"></selectPicker>
-
- <!-- 选择查看 -->
- <view class="housebox" v-if="houseflag">
- <view class="house_tit">
- <view class="house_titl" @click="getClose">取消</view>
- <view class="house_titc">请选择</view>
- <view class="house_titr"></view>
- </view>
- <view class="houselist" @click="getCheck(0)">查看修改</view>
- <view class="houselist" @click="getCheck(1)">查看家庭成员</view>
- <view class="houselist" @click="getCheck(2)">添加家庭成员</view>
- </view>
- <selectMorePicker
- ref="picker"
- :title="auiPicker.title"
- :layer="auiPicker.layer"
- :titflag='auiPicker.titflag'
- :data="auiPicker.data"
- @callback="pickerCallback"
- ></selectMorePicker>
- <dataTimePicke ref="setpicker" type="date" toolBarTitle="请选择日期" @change="dataconfirm"></dataTimePicke>
- </view>
- </template>
- <script>
- import selectPicker from '@/_components/picker/selectPicker.vue'
- import selectMorePicker from '@/_components/picker/selectMorePicker.vue'
- import dataTimePicke from '@/_components/picker/dataTimePicke.vue'
- export default {
- components:{selectPicker,selectMorePicker,dataTimePicke},
- data() {
- return {
- background: {
- backgroundColor: '#009FE8'
- },
- navidx:1,
- navbg:require("@/static/image/titbg.png"),
- searimg:require("@/static/image/search.png"),
- closeimg:require("@/static/image/del.png"),
- searchflag:false,
- rimg:require('@/static/image/icon_mine_listenter.png'),
- upimg:require("@/static/image/up.png"),
- datashow:false,
- defaulttime:'',
- //列表数据
- list: [],
- show: false,
-
- currentTab: 0, //tab切换
- params: { //上拉刷新
-
- queryType:'hj',
- houseType:'',
- // isConfirm:'',
-
- // phoneNum:'',
- pageNum: 1,
- pageSize: 20,
- idCard:'',
- userName:'',
- startTime:'',
- endTime:'',
- nucleicAcidStatus:'',//核酸信息
- },
-
- villageTowns:'',
- village:'',
- keyword: '',
- haveMore: true,
- wtdt: '上拉加载更多',
- terd: '',
- shoue: false,
- listShow: true, //判断是否有数据 true 有
- columns: [
- ],
- startDate:'选择开始时间',
- endDate:'选择结束时间',
- roles:false,
- showtime:false,
- currentDate: 0,
- searchresult:'',//搜索区域显示
- houselist:[{
- "label": '是',
- "value":0
- },{
- "label": '否',
- "value":1
- }],
- surelist:[{
- "label": '是',
- "value":'Y'
- },{
- "label": '否',
- "value":'N'
- }],
- sureselet:false,
- houseflag:false,
- auiPicker: {
- title: '选择区域',
- layer: null,
- titflag:true,
- data: []
- },
- houseobj:{
- id:'',
- code:''
- },
-
-
- nucleicAcidStatus:'',
- nucstatuslist:[],
- nucstatusclass:[],//核酸列表
- hsjlCount:'',
- hsjlCountlist:[],
- hsjlCountclass:[],//次数字典值
- timekey:'start',
- statusselet:false
- };
- },
- onShow() {
- let type = uni.getStorageSync('token')
- if (!type) {
- uni.redirectTo({
- url: '/pages/login/login'
- })
- }else{
- let roles=uni.getStorageSync('roles')||false
- this.roles=roles
- }
-
- // var iutem = new Date().getFullYear() + 1
- // this.maxDate = new Date(iutem,12,1).getTime()
- // this.minDate= new Date(2017, 10, 1).getTime()
- },
- onLoad(option) {
- uni.$on('refreshData',(data) => {
- // this.params.userName='';
- // this.params.deptId='';
- // this.villageTowns='';
- // this.village='';
- // this.villageTownsId='';
- // this.villageId='';
- this.params.pageNum = 1;
- this.list = []
- // 修改 获取列表的
- // 获取统计
- this.lists(this.params)
- })
- // this.getTownsFn();
- this.params.pageNum = 1
- this.list = []
- // 修改 获取列表的
- // 获取统计
- this.lists(this.params)
- this.getRegionListFirst()
- this.init()
- },
- beforeDestroy() {
- uni.$off("refreshData")
- },
- created() {
- },
- methods: {
- init(){
- this.nucleicAcidStatusFn()
- this.frequencyFn()
- },
- // 核酸状态的字典值
- nucleicAcidStatusFn(){
- var that = this;
- this.$http.get('system/dict/data/type/sys_hsjl_nucleicAcidStatus').then(res => {
- if (res.code == 200) {
- // if (that.params.nucleicAcidStatus) {
- // that.nucleicAcidStatus = that.selectDictLabel(res.data, that.params.nucleicAcidStatus)
- // }
- that.nucstatuslist = res.data;
- this.nucstatusclass = res.data.map(v => {
- return {
- label: v.dictLabel,
- value: v.dictValue
- }
- })
- }
- })
- },
- //次数字典值
- // frequencyFn(){
- // var that = this;
- // this.$http.get('system/dict/data/type/sys_hsjl_frequency').then(res => {
- // if (res.code == 200) {
- // if (that.params.hsjlCount) {
- // that.hsjlCount = that.selectDictLabel(res.data, that.params.hsjlCount)
- // }
- // that.hsjlCountlist = res.data;
- // this.hsjlCountclass = res.data.map(v => {
- // return {
- // label: v.dictLabel,
- // value: v.dictValue
- // }
- // })
- // }
- // })
- // },
- dataSure(){
-
- },
-
- showDatePicker (e) {
- this.timekey=e;
- this.$refs.setpicker.show();
- },
- dataconfirm (e){
- if(this.timekey=='start'){
- this.params.startTime =e;
- }else{
- this.params.endTime = e;
- }
- },
- getSearch(){
- this.searchflag=true
- },
- getSearClose(){
- this.searchflag=false
- },
-
-
- getClose(){
- this.houseflag=false
- },
- getSure(){
- this.houseflag=false
- },
- // 查看修改
- getCheck(e){
- this.houseflag=false
- var id=this.houseobj.id;
- var code=this.houseobj.code;
- if(e==0){
- uni.navigateTo({
- url: '/add/pages/addvacfrom/addpeople?id=' + id
- })
- }else if(e==1){
- uni.navigateTo({
- url: '/home/pages/recordthree/familylist?code='+code
- })
- }else if(e==2){
- // 添加家庭成员
- uni.navigateTo({
- url: '/add/pages/addvacfrom/addpeople?code='+code
- })
- }
-
- },
- // 是否户主
- showHouse(){
- this.$refs.houseselet.show()
- },
- //是否确认
- showSure(){
- this.$refs.sureselet.show()
- },
- // 核酸
- showStatus(){
- this.$refs.statusselet.show()
- },
- vacHouseChange(e){
- this.params.houseType=e[0].label;
- //搜索
- // this.list = []
- // this.params.pageNum = 1
- // this.params.pageSize = 20
- // this.lists(this.params);
- },
- vacSureChange(e){
- this.params.isConfirm=e[0].value;
- //搜索
- // this.list = []
- // this.params.pageNum = 1
- // this.params.pageSize = 20
- // this.lists(this.params);
- },
- vacStatusChange(e){
- this.params.nucleicAcidStatus=e[0].value;
- this.nucleicAcidStatus=e[0].label
- },
-
- getRegionListFirst(){
- this.$http.post('boman-system/chinaArea/treeSelect',{pid: 0},true).then(res=>{
- this.auiPicker.data=res.data
- })
- },
- //显示picker多级联动弹窗
- showPicker(e){
- const _this = this;
- _this.$refs.picker.open().then(function(){
- console.log('picker打开');
- });
- },
- //picker多级联动回调
- pickerCallback(e){
- const _this = this;
- let result = '';
- e.data.forEach(function(item, index){
- if(index==0){
- result += item.name;
- }else{
- result +='/'+ item.name;
- }
- });
- _this.searchresult=result;
- var params={
- idCard:this.params.idCard,
- queryType:this.params.queryType,
- isRl:this.params.isRl,
- houseType:this.params.houseType,
- isConfirm:this.params.isConfirm,
- userName:this.params.userName,
- phoneNum:this.params.phoneNum,
- pageSize:20
- }
- var length=e.data.length;
- // console.log(this.params.queryType,33)
- if(this.params.queryType=='hj'){
- switch (length) {
- case 0:
- break;
- case 1:
- params.provinceId = e.data[0].areaid;
- break;
- case 2:
- params.cityId = e.data[1].areaid;
- break;
- case 3:
- params.regionId = e.data[2].areaid;
- break;
- case 4:
- params.villageTownsId = e.data[3].areaid;
- break;
- case 5:
- params.villageId = e.data[4].areaid;
- break;
- default:
- break;
- }
- }else{
- switch (length) {
- case 0:
- break;
- case 1:
- params.provinceIdXjd = e.data[0].areaid;
- break;
- case 2:
- params.cityIdXjd = e.data[1].areaid;
- break;
- case 3:
- params.regionIdXjd = e.data[2].areaid;
- break;
- case 4:
- params.villageTownsIdXjd = e.data[3].areaid;
- break;
- case 5:
- params.villageIdXjd = e.data[4].areaid;
- break;
- default:
- break;
- }
- }
-
- //搜索
- // this.list = []
- this.params=JSON.parse(JSON.stringify(params));
- // this.params.pageNum = 1
- // this.params.pageSize = 20
- // this.lists(this.params);
- },
- getClearFn(){
- // this.params.userName='';
- // this.params.deptId='';
- // this.villageTowns='';
- // this.village='';
- // this.villageTownsId='';
- // this.villageId='';
- this.searchresult='';
- var params={
- pageNum: 1,
- pageSize: 20,
- idCard:'',
- queryType:this.params.queryType,
- isRl:this.params.isRl,
- houseType:'',
- isConfirm:'',
- userName:'',
- phoneNum:'',
- }
- // this.list = []
- this.params=JSON.parse(JSON.stringify(params));
- // this.lists(this.params)
- },
-
- goDetail(e) {
- if(e.houseType=='是'){
- // 弹窗弹窗
- // 记录选择的
- this.houseflag=true;
- this.houseobj.code=e.code;
- this.houseobj.id=e.id;
- }else{
-
- uni.navigateTo({
- url: '/add/pages/addvacfrom/vaccdetail?id=' + e.id
- })
- }
-
- },
- //查询列表
-
- // 户籍地址
- getListHjFn(){
- var params=this.params;
- this.$http.get("boman-web-core/core/czrk/list", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- },
- //常驻信息
- getListCzFn(){
- var params=this.params;
- this.$http.get("boman-web-core/core/jzdz/list", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- },
- // 人员未认领接口
- getListRyrlFn(){
- var params=this.params;
- // 户籍
- if(this.navidx==1){
- this.$http.get("boman-web-core/core/czrk/ryrl/listHj", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- }else{
- this.$http.get("boman-web-core/core/czrk/ryrl/listCz", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
- })
- }
- // 常驻
-
-
- },
- lists(params) {
- this.$http.get("boman-web-core/core/hsjl/appList", params).then(res => {
- //停止下拉加载
- uni.hideNavigationBarLoading()
- uni.stopPullDownRefresh()
- if (res.code == 200) {
- if (res.rows.length < params.pageSize) {
- this.haveMore = false
- this.wtdt='到底了~';
- } else {
- var num=parseInt(res.rows.length)+parseInt(params.pageSize)*parseInt(params.pageNum-1)
- if(num<res.total){
- this.haveMore = true
- this.wtdt='上拉加载更多'
- }else{
- this.haveMore = false
- this.wtdt='到底了~';
- }
- }
- if(params.pageNum==1){
- this.list = res.rows
- }else{
- this.list = this.list.concat(res.rows)
- }
- // this.init()
- } else {
- uni.showToast({
- title: res.msg,
- duration: 1000,
- icon: 'none'
- });
-
-
- }
-
-
- })
- },
- //刷新
- bot_btn() {
- if (this.haveMore) {
- this.params.pageNum++
- this.lists(this.params)
- }
- },
- //查看
- chakn(item) {
- // uni.setStorageSync('item', item)
- // wx.navigateTo({
- // url: '/pages/home/recordtwo'
- // })
- },
- // 删除
- dele(item){
- this.$http.dele("boman-web-core/core/info/" + item).then(res => {
- if(res.code == 200){
- this.params.pageNum = 1
- this.list = []
- this.lists(this.params)
- }
-
- })
- },
- //搜索
- Seach() {
- this.list = [];
- this.searchflag=false;
- this.params.pageNum = 1
- this.lists(this.params)
- },
- //弹
- changeTab(index){
- this.currentTab = index
- this.params.pageNum=1;
- this.list = []
- if(index == 0){
- this.params.isRl = ''
- this.lists(this.params)
- }else if(index == 1){
- // 已认领
- this.params.isRl = "是"
- this.lists(this.params)
- }else if(index == 2){
- // 未认领
- // this.params.isRl = "否"
- this.getListRyrlFn()
- }
-
-
- },
- // formatter(type, value){
- // if (type === 'year') {
- // return `${value}年`;
- // } else if (type === 'month') {
- // return `${value}月`;
- // }
- // return value;
- // },
- // 点击新增
- // addVacFrom () {
- // uni.navigateTo({
- // url: '/add/pages/addvacfrom/addpeople?type=house'
- // })
- // }
- }
- }
- </script>
- <style lang="scss" scoped>
- .bgbox{position: fixed;left: 0;right: 0;top: 0;bottom: 0;z-index: 200;
- background: rgba(0,0,0,0.5);}
- .housebox{position: fixed;left: 0;right: 0;bottom: 0;z-index: 1000;background: #FFFFFF;border-radius: 30rpx 30rpx 0 0;
- .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;
- .house_titl{font-size: 30rpx;color: #333333;flex: 0 0 auto;height: 100rpx;width: 120rpx;text-align: center;line-height:100rpx;}
- .house_titr{flex: 0 0 auto;font-size: 30rpx;color: #197DE0;height:100rpx;width:120rpx;text-align: center;line-height: 100rpx;}
- .house_titc{line-height: 40rpx;font-size: 34rpx;color: #333;padding: 30rpx;box-sizing: border-box;flex: 1;text-align: center;}
-
- }
- .houselist{width: 100%;text-align: center;font-size: 30rpx;color: #333333;line-height: 88rpx;
- &.act{color: #197DE0;}
- &:last-child{padding-bottom: 20rpx;}
- }
- }
-
-
- .nav_box{display: flex;align-items: center;justify-content: center;flex: 1;
- .nav_boxa{position: relative;width: 214rpx;height: 86rpx;
- .nav_boxb{width: 100%;height: 100%;display: none;}
- .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;}
- &.act{color: #FFFFFF;
- .nav_boxb{display: block;}
- .nav_boxa1{color: #FFFFFF;}
- }
- }
- }
- .address{
- display: flex;align-items: center;
- margin-top: 38rpx;
- .addtita{flex: 0 0 auto;font-size: 28rpx;font-weight: bold;
- color: #343434;}
- .addressa{
- display: flex;align-items: center;
- flex: 1;
- display: flex;align-items: center;justify-content: flex-end;
- overflow: hidden;
- .addsa{font-size: 26rpx;color: #333333;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
- flex: 1;text-align: right;
- }
- .addsimg{width: 16rpx;height: 24rpx;margin-left: 10rpx;flex: 0 0 auto;}
- // .adds{
- // display: flex;align-items: center;justify-content: flex-start;padding:10rpx 20rpx;min-width: 220rpx;box-sizing: border-box;}
- }
-
- .addclear{color: #EA2929;font-size: 26rpx;flex: 0 0 auto;height: 60rpx;line-height: 60rpx;width: 128rpx;text-align:center}
- }
-
-
- .coie{
- width: 100%;
- box-sizing: border-box;
- padding: 0 33upx;
- .coie_nav{
- border-top: 1upx solid #E5E5E5;
- display: flex;
- flex-wrap: wrap;
- padding-bottom: 28upx;
- p{
- width: 33.33%;
- text-align: center;
- display: flex;
- flex-direction: column;
- margin-top: 53upx;
- span{
- font-size: 28upx;
- }
- i{
- font-size: 28upx;
- color: #333;
- margin-top: 28upx;
- }
- }
- }
- }
- .ieju{
- height: 17upx;
- width: 100%;
- background-color: #eee;
- margin-bottom: 33upx;
- }
- //暂无数据
- .zanwu {
- text-align: center;
- padding-top: 20upx;
- span {
- font-size: 24upx;
- }
- }
- .scroll-view {
- max-height: calc(100vh - 401upx);
- }
- .shax {
- // height: 83upx;
- font-size: 25upx;
- color: #666;
- text-align: center;
- }
- .index {
- // padding-top: 33upx;
- max-height: 100vh;
- .sous {
- padding: 24upx 33upx 0;
- // display: flex;
-
- .input {
- height: 80upx;
- border: 1upx solid #E5E5E5;
- flex: 1;
- margin-right: 28upx;
- padding-left: 10upx;
- box-sizing: border-box;
- }
- button {
- // width: 125upx;
- height: 80upx;
- background-color: #1678FF;
- text-size: 28upx;
- color: #fff;
- text-align: center;
- line-height: 80upx;
- }
- }
- //tab
- .tab {
- padding-top:33upx;
- padding-bottom: 100upx;
- .tabs {
- display: flex;
- padding: 0 20upx;
- box-sizing: border-box;
- height: 111upx;
- justify-content: space-between;
- box-shadow: 0px 7px 7px 0px rgba(229, 229, 229, 0.5);
- .one_tab {
- color: #1678FF !important;
- // width: 140upx;
- // text-align: center;
- // .twotabs {
- // font-size: 31upx;
- // color: #666666;
- // ;
- // font-weight: 500;
- // }
- // .twosrtabs {
- // color: #1678FF;
- // }
- // .twotabstwo {
- // font-size: 24upx;
- // color: #AAAAAA;
- // }
- }
- .one_tabqie {
- border-bottom: 8upx solid #1678FF;
- }
- }
- }
- //表格
- .exele {
- .box {
- .tr_one {
- display: flex;
- padding: 0 20upx;
- box-sizing: border-box;
- justify-content: space-between;
- th {
- // flex: 1;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 14upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- line-height: 83upx;
- height: 83upx;
- }
- }
- .two_tr {
- display: flex;
- padding: 0 20upx;
- box-sizing: border-box;
- justify-content: space-between;
- td {
- // flex: 1;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 83upx;
- height: 83upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .tdse {
- color: #E60012 !important;
- }
- .apply_span_xl{
- color: #32B16C !important;
- }
- .apply_span_xltwo{
- color: #ffa200 !important;
- }
- .apply_span_xlfive{
- color: #4c4b4b !important;
- }
- .apply_span_xlthreo{
- color: #f00404 !important;
- }
- .apply_span_xlforu{
- color: #aaaaaa !important;
- }
- // .apply_span_xla{
- // color: #1678FF;
- // text-decoration: underline ;
- // }
- .coiu {
- color: #EC1717;
- }
- }
- .two_trtwo {
- background-color: #F6F9FC;
- }
- }
- }
- }
- .banj {
- height: 86upx;
- width: 100%;
- // text-align: center;
- line-height: 86upx;
- // background-color: #F6F9FC;
- color: #AAAAAA;
- margin-top: 20upx;
- display: flex;
- justify-content: space-around;
- }
- .apply_box{
- .apply_item_input{
- padding: 0 33upx;
- // border-top: 1upx solid #F4F4F4;
- display: flex;
- height: 68upx;
- align-items: center;
- .apply_span_x{
- font-size: 28upx;
- color: #363535;
- span{
- color: #F22346;
- }
- }
- .input_r{
- font-size: 28upx;
- height: 100%;
- flex: 1;
- text-align: right;
- }
- .input_rtwo{
- line-height:68upx;
- }
- .input_rtwoss{
- color: #1678FF;
- }
- .input_rtwosss{
- color: #FF0000;
- }
- }
- .apply_title_jt{
- height: 130upx;
- border-top: 1upx solid #F4F4F4;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 32upx;
- span{
- font-size: 36upx;
- color: #333;
- font-weight: bold;
- }
- .apply_title_btn{
- width: 160upx;
- height: 60upx;
- font-size: 24upx;
- color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- background: #FF568C;
- border-radius: 8upx;
- .img{
- width: 30upx;
- height: 30upx;
- margin-right: 10upx;
- }
- }
- }
- .apply_title_jts{
- border:none;
- }
- .apply_title_jt_item{
- border-bottom: 9upx solid #F4F4F4;
- .apply_item_input_qx{
- color: #FF5185;
- height: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 112upx;
- font-size: 30upx;
- }
- }
- .apply_item_sfz{
- padding: 42upx 20upx;
- border-bottom: 9upx solid #F4F4F4;
- .apply_item_sfz_title{
- font-weight: bold;
- font-size: 34upx;
- margin-bottom: 40upx;
- margin-left: 2upx;
- }
- .apply_item_phones{
- display: flex;
- justify-content: space-between;
- .apply_item_phone{
- width: 340upx;
- height: 218upx;
- .img{
- width: 100%;
- height: 100%;
- border-radius: 20upx;
- }
- }
- }
- }
- .apply_item_zdxx{
- padding: 0 26upx;
- font-size: 34upx;
- font-weight: bold;
- color: #333;
- height: 112upx;
- line-height: 112upx;
- border: 1upx solid #F4F4F4;
- }
- .qt_div{
- height: 112upx;
- border-top: 1upx solid #F4F4F4;
- padding: 0 32upx;
- border-bottom: 9upx solid #F9F9F9;
- .input_l{
- height: 100%;
- font-size: 30upx;
- }
- }
- }
- .tabld{
- display: flex;
- // height: 90upx;
- box-shadow: 0px 7px 5px 0px rgba(218, 218, 218, 0.35);
- view {
- font-size:26upx ;
- font-family: PingFang SC;
- font-weight: 500;
- color: #191919;
- text-align: center;
- flex: 1;
- // line-height: 70upx;
- display: flex;
- flex-direction: column;
- padding: 18rpx 0 20rpx;
- }
- .one_tabhu{
- color: #009FE8;
- position: relative;
- ::after{width: 28rpx;height: 6rpx;background: #009FE8;position: absolute;left: 50%;margin-left: -14rpx;bottom: 0;content: "";}
- }
- }
- .nbhe{
- display: flex;
- margin-bottom: 44upx;
- p{
- font-size: 25upx;
- flex: 1;
- padding: 0 77upx;
- display: flex;
- align-items: center;
- }
- p:nth-child(2){
- justify-content: flex-end;
- }
- img{
- width: 31upx;
- height: 29upx;
- margin-right: 11upx;
- }
- }
- .xinse{
- position: fixed;
- width: 100%;
- bottom: 0;
- left: 0;
- font-size: 33upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- height: 90upx;
- background-color: #00B034;
- text-align: center;
- line-height: 90upx;
- }
- .sous_sear{
- padding: 24rpx 34rpx;background: #FFFFFF;
- .sous_box{width: 100%;height:90rpx;background: #F2F2F2;border-radius: 6rpx;display: flex;align-items: center;padding: 0 34rpx;box-sizing: border-box;
- .sous_img{width: 32rpx;height: 34rpx;margin-right: 18rpx;flex: 0 0 auto;}
- .sous_input{font-size: 30rpx;color: #AAAAAA;flex: 1;}
- }
- }
- // 搜索条件width: 562rpx;
- .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%);
- z-index: 300;max-height: calc(100vh - 280rpx);overflow-y: auto;
- .sfixed_tit{font-size: 28rpx;font-weight: bold;color: #343434;line-height: 44rpx;text-align: center;}
- .sfixed_clo{width: 34rpx;height: 34rpx;position: absolute;right: 34rpx;top: 44rpx;}
- .sfixed_box{
- padding-top: 20rpx;
- .sfixed_inp{width: 100%;height: 76rpx;background:#F2F2F2;padding: 0 34rpx;box-sizing: border-box;font-size: 28rpx;color: #333333;margin-top: 30rpx;}
- .sfixed_line{width: 62rpx;height: 6rpx;background: #009FE8;margin: 38rpx auto 32rpx;}
- .sfixed_flex{display: flex;align-items: center;justify-content: space-between;
- .sfixed_a{font-size: 26rpx;font-weight: bold;color: #666666;}
- .sfixed_ar{font-size: 26rpx;font-weight: bold;color: #DF0024;}
- }
- }
- .sfixed_btn{width: 100%;height: 76rpx;background: #00B034;border: 0px solid #00B034;border-radius: 6rpx;font-size: 28rpx;font-weight: bold;
- color: #FFFFFF;text-align: center;line-height: 76rpx;margin-top: 62rpx;}
-
- }
-
- </style>
|