9 files modified
1 files added
| | |
| | | method: 'POST', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const getPlaceList = (params) => { |
| | | return http.request({ |
| | | url: '/blade-doorplateAddress/doorplateAddress/getPlaceList', |
| | | method: 'GET', |
| | | params |
| | | }) |
| | | } |
| | |
| | | version: '2.0.0', |
| | | // 开发环境接口Url |
| | | // devUrl: 'http://z4042833u6.wicp.vip', |
| | | devUrl: 'http://192.168.2.140:9528', |
| | | // devUrl: 'https://srgdjczzxtpt.com:2080/api', |
| | | // devUrl: 'http://192.168.2.140:9528', |
| | | devUrl: 'https://srgdjczzxtpt.com:2080/api', |
| | | // devUrl: 'https://kt39592615.goho.co', |
| | | minioBaseUrl: "https://srgdjczzxtpt.com:2080/gminio/jczz/", |
| | | // minioBaseUrl: "http://192.168.0.101:9528/", |
| | |
| | | "pages": [{ |
| | | "path": "index", |
| | | "style": { |
| | | "navigationBarTitleText": "我的任务", |
| | | "navigationBarTitleText": "待办事项", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | |
| | | { |
| | | "path": "views/auditSite", |
| | | "style": { |
| | | "navigationBarTitleText": "场所任务", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | |
| | | { |
| | | "path": "views/cshw", |
| | | "style": { |
| | |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | |
| | | { |
| | | "path": "houseNumber/siteInspect", |
| | | "style": { |
| | |
| | | "iconPath": "static/img/tabbar-01.png", |
| | | "text": "首页" |
| | | }, |
| | | // { |
| | | // "pagePath": "pages/circle/index", |
| | | // "iconPath": "static/img/tabbar-02.png", |
| | | // "selectedIconPath": "static/img/tabbar-02-selected.png", |
| | | // "text": "圈子" |
| | | // }, |
| | | { |
| | | "pagePath": "pages/circle/index", |
| | | "iconPath": "static/img/tabbar-02.png", |
| | | "selectedIconPath": "static/img/tabbar-02-selected.png", |
| | | "text": "圈子" |
| | | }, |
| | | { |
| | | "pagePath": "pages/user/center", |
| | | "iconPath": "static/img/tabbar-03.png", |
| | |
| | | </u-grid>
|
| | | </view> -->
|
| | |
|
| | | <view class="nav bgc-ff" v-if="roleType == 2 && curSelectSite.addressType == 1">
|
| | | <view class="mb-20">
|
| | | <u-tabs :list="tabs" @click="changeTabs" :current="tabIndex" lineColor="#ecf4ff" :activeStyle="{
|
| | | color: '#017BFC',
|
| | | fontWeight: 'bold',
|
| | | backgroundColor:'#ecf4ff',
|
| | | borderRadius:'14rpx',
|
| | | padding:'14rpx 28rpx',
|
| | | transition:'background .2s'
|
| | | }" :itemStyle="{fontSize:'28rpx'}"></u-tabs>
|
| | |
|
| | |
|
| | | <view class="" v-if="roleType == 2 && curSelectSite.addressType == 1">
|
| | | <view class="tabs flex">
|
| | | <!-- <u-tabs :list="tabs" @click="changeTabs" :current="tabIndex" lineColor="#ecf4ff" :activeStyle="{
|
| | | color: '#017BFC',
|
| | | fontWeight: 'bold',
|
| | | backgroundColor:'#ecf4ff',
|
| | | borderRadius:'14rpx',
|
| | | padding:'14rpx 28rpx',
|
| | | transition:'background .2s'
|
| | | }" :itemStyle="{fontSize:'28rpx'}"></u-tabs> -->
|
| | |
|
| | |
|
| | | <view class="tabs-item" :class="k == tabIndex?'tabs-active':''" v-for="(i,k) in tabs"
|
| | | @click="changeTabs(k)">
|
| | | {{i.name}}
|
| | | </view>
|
| | |
|
| | |
|
| | | </view>
|
| | | <u-grid :border="false" col="4">
|
| | | <u-grid-item @click="navigatorPage(i.path)" v-for="(i,k) in tabs[tabIndex].list" :key="k">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon :name="i.icon" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">{{i.text}}</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </u-grid>
|
| | |
|
| | | <view class="nav bgc-ff">
|
| | |
|
| | | <u-grid :border="false" col="4">
|
| | | <u-grid-item @click="navigatorPage(i.path)" v-for="(i,k) in tabs[tabIndex].list" :key="k">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon :name="i.icon" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">{{i.text}}</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </u-grid>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="nav bgc-ff" v-if="roleType == 2 && curSelectSite.addressType == 2">
|
| | | <view class="mb-20">
|
| | | <u-tabs :list="tabs2" @click="changeTabs" :current="tabIndex" lineColor="#ecf4ff" :activeStyle="{
|
| | | color: '#017BFC',
|
| | | fontWeight: 'bold',
|
| | | backgroundColor:'#ecf4ff',
|
| | | borderRadius:'14rpx',
|
| | | padding:'14rpx 28rpx',
|
| | | transition:'background .2s'
|
| | | }" :itemStyle="{fontSize:'28rpx'}"></u-tabs>
|
| | |
|
| | | <view v-if="roleType == 2 && curSelectSite.addressType == 2">
|
| | | <view class="tabs flex">
|
| | |
|
| | | <view class="tabs-item" :class="k == tabIndex?'tabs-active':''" v-for="(i,k) in tabs2"
|
| | | @click="changeTabs(k)">
|
| | | {{i.name}}
|
| | | </view>
|
| | |
|
| | |
|
| | | </view>
|
| | | <u-grid :border="false" col="4">
|
| | | <u-grid-item @click="navigatorPage(i.path)" v-for="(i,k) in tabs2[tabIndex].list" :key="k">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon :name="i.icon" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">{{i.text}}</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | <view class="nav bgc-ff">
|
| | | <u-grid :border="false" col="4">
|
| | | <u-grid-item @click="navigatorPage(i.path)" v-for="(i,k) in tabs2[tabIndex].list" :key="k">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon :name="i.icon" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">{{i.text}}</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | |
|
| | | <block v-if="tabIndex == 1">
|
| | | <u-grid-item @click="navigatorPage('/subPackage/label/form')"
|
| | | v-if="curSelectSite.isFront == 1">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon name="/static/icon/nav-11.png" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">二手交易</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | <u-grid-item @click="navigatorPage('/subPackage/label/check')"
|
| | | v-if="curSelectSite.isNine == 1">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon name="/static/icon/nav-11.png" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">消防自查</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </block>
|
| | | <block v-if="tabIndex == 1">
|
| | | <u-grid-item @click="navigatorPage('/subPackage/label/form')"
|
| | | v-if="curSelectSite.isFront == 1">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon name="/static/icon/nav-11.png" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">二手交易</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | <u-grid-item @click="navigatorPage('/subPackage/label/check')"
|
| | | v-if="curSelectSite.isNine == 1">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon name="/static/icon/nav-11.png" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">消防自查</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </block>
|
| | | <block v-if="tabIndex == 2">
|
| | | <u-grid-item @click="navToSiteList()">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon name="/static/icon/nav-11.png" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">场所任务</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </block>
|
| | | </u-grid>
|
| | | </view>
|
| | |
|
| | | <block v-if="tabIndex == 2">
|
| | | <u-grid-item @click="navToAddRepair()">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon name="/static/icon/nav-11.png" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">企业商户上报</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | <u-grid-item @click="navToSiteList()">
|
| | | <view class="nav-item flex f-d-c a-i-c">
|
| | | <u-icon name="/static/icon/nav-11.png" width="80rpx" height="80rpx"></u-icon>
|
| | | <text class="nav-item-text f-26 mt-10">场所任务</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </block>
|
| | |
|
| | | </u-grid>
|
| | | </view>
|
| | |
|
| | |
|
| | | </view>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | <view class="bgc-ff p-20 mb-20 pb-20" v-if="isShowHouse">
|
| | |
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="bgc-ff mb-20 p-20 pb-20" v-if="sectionList.length">
|
| | | <view class="menu-tabs">
|
| | | <view class=" mb-20 " v-if="sectionList.length">
|
| | | <!-- <view class="menu-tabs">
|
| | | <u-tabs :list="sectionList" @click="changeMenuTabs" :current="menuTabIndex" lineColor="#ecf4ff"
|
| | | :activeStyle="{
|
| | | color: '#017BFC',
|
| | |
| | | padding:'14rpx 28rpx',
|
| | | transition:'background .2s'
|
| | | }" :itemStyle="{fontSize:'28rpx'}" :scrollable="false"></u-tabs>
|
| | | </view> -->
|
| | |
|
| | |
|
| | | <view class="tabs flex">
|
| | |
|
| | | <view class="tabs-item" :class="k == menuTabIndex?'tabs-active':''" v-for="(i,k) in sectionList"
|
| | | @click="changeMenuTabs(k)">
|
| | | {{i.name}}
|
| | | </view>
|
| | |
|
| | |
|
| | | </view>
|
| | |
|
| | | <u-grid :border="false" col="4">
|
| | | <u-grid-item @click="navigatorPage(item.path)"
|
| | | v-for="(item, index) in sectionList[menuTabIndex].children" :index="index" :key="index"
|
| | | :customStyle="{paddingTop:20+'rpx'}">
|
| | | <view class="grid-item flex f-d-c a-i-c" :style="{background:item.background}">
|
| | | <u-icon :name="item.pictureImg" width="60rpx" height="60rpx"></u-icon>
|
| | | <text class="grid-text f-24 fw mt-10">{{item.name}}</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </u-grid>
|
| | | <view class="menu bgc-ff p-20 pb-20">
|
| | | <u-grid :border="false" col="4">
|
| | | <u-grid-item @click="navigatorPage(item.path)"
|
| | | v-for="(item, index) in sectionList[menuTabIndex].children" :index="index" :key="index"
|
| | | :customStyle="{paddingTop:20+'rpx'}">
|
| | | <view class="grid-item flex f-d-c a-i-c" :style="{background:item.background}">
|
| | | <u-icon :name="item.pictureImg" width="60rpx" height="60rpx"></u-icon>
|
| | | <text class="grid-text f-24 fw mt-10">{{item.name}}</text>
|
| | | </view>
|
| | | </u-grid-item>
|
| | | </u-grid>
|
| | | </view>
|
| | |
|
| | |
|
| | | </view>
|
| | |
|
| | |
|
| | |
| | |
|
| | | tabs: [{
|
| | | name: '公众服务',
|
| | | list: [{
|
| | | list: [
|
| | | // {
|
| | | // icon: "/static/icon/nav-02.png",
|
| | | // text: "公共报事",
|
| | | // path: '/subPackage/bs/views/repair'
|
| | | // },
|
| | | {
|
| | | icon: "/static/icon/nav-02.png",
|
| | | text: "公共报事",
|
| | | path: '/subPackage/bs/views/repair'
|
| | | text: "公共维修",
|
| | | path: "/subPackage/bs/views/addRepair?title=公共维修&type=1"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-02.png",
|
| | | text: "居家维修",
|
| | | path: "/subPackage/bs/views/addRepair?title=居家维修&type=2"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-04.png",
|
| | | text: "矛盾纠纷",
|
| | | path: "/subPackage/bs/views/addRepair?title=矛盾纠纷&type=3"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-11.png",
|
| | | text: "投诉举报",
|
| | | path: "/subPackage/bs/views/addRepair?title=投诉举报&type=4"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-03.png",
|
| | |
| | | name: '公众服务',
|
| | | list: [{
|
| | | icon: "/static/icon/nav-02.png",
|
| | | text: "公共报事",
|
| | | path: '/subPackage/bs/views/repair'
|
| | | text: "公共维修",
|
| | | path: "/subPackage/bs/views/addRepair?title=公共维修&type=1"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-02.png",
|
| | | text: "居家维修",
|
| | | path: "/subPackage/bs/views/addRepair?title=居家维修&type=2"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-04.png",
|
| | | text: "矛盾纠纷",
|
| | | path: "/subPackage/bs/views/addRepair?title=矛盾纠纷&type=3"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-11.png",
|
| | | text: "投诉举报",
|
| | | path: "/subPackage/bs/views/addRepair?title=投诉举报&type=4"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-03.png",
|
| | |
| | | {
|
| | | name: '企业服务',
|
| | | list: [{
|
| | | text: "场所维护",
|
| | | icon: "",
|
| | | path: "/subPackage/workbench/views/editExamine"
|
| | | }]
|
| | | text: "场所维护",
|
| | | icon: "/static/icon/nav-02.png",
|
| | | path: "/subPackage/workbench/views/editExamine"
|
| | | },
|
| | | {
|
| | | icon: "/static/icon/nav-02.png",
|
| | | text: "企业商户上报",
|
| | | path: "/subPackage/bs/views/addRepair?title=企业商户上报&type=5"
|
| | | }
|
| | | ]
|
| | | },
|
| | | {
|
| | | name: '社区服务',
|
| | |
| | |
|
| | | changeTabs(e) {
|
| | | // console.log(item);
|
| | | this.tabIndex = e.index
|
| | | this.tabIndex = e
|
| | | },
|
| | |
|
| | |
|
| | | changeMenuTabs(e) {
|
| | | this.menuTabIndex = e.index;
|
| | | this.menuTabIndex = e;
|
| | | },
|
| | |
|
| | |
|
| | |
| | | // } else {
|
| | | // uni.setStorageSync("taskMenu", []);
|
| | | // }
|
| | |
|
| | | if (this.sectionList.length) {
|
| | | let list = this.sectionList.filter(item => item.name == "日常办公");
|
| | | let taskList = list[0].children.filter(item => item.name == "待办事项");
|
| | |
| | | } else {
|
| | | uni.setStorageSync("taskMenu", []);
|
| | | }
|
| | |
|
| | | }, 200)
|
| | | },
|
| | |
|
| | |
| | | houseCode
|
| | | } = uni.getStorageSync("siteInfo")
|
| | | uni.navigateTo({
|
| | | url: `/subPackage/workbench/views/audit?code=${houseCode}&from=index`
|
| | | url: `/subPackage/workbench/views/auditSite?code=${houseCode}&from=index`
|
| | | })
|
| | | },
|
| | |
|
| | | //企业商户上报
|
| | | navToAddRepair() {
|
| | | let url = `/subPackage/bs/views/addRepair?title=企业商户上报&type="5`
|
| | | this.$u.func.globalNavigator(url, "navTo")
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
| | | .nav {
|
| | | padding: 10rpx 0;
|
| | | margin-bottom: 20rpx;
|
| | | border-radius: 10rpx;
|
| | | border-radius: 0 0 10rpx 10rpx;
|
| | |
|
| | | .nav-item {
|
| | | padding: 10rpx 0;
|
| | |
| | | }
|
| | |
|
| | | .tabs {
|
| | | padding: 20rpx;
|
| | |
|
| | | border-radius: 10rpx 10rpx 0 0;
|
| | | // margin-bottom: 4rpx;
|
| | | background-color: rgb(236, 244, 255);
|
| | |
|
| | | .tabs-item {
|
| | | padding: 10rpx 30rpx;
|
| | | // padding: 12rpx 24rpx;
|
| | | flex: 1;
|
| | | text-align: center;
|
| | | padding: 20rpx 0;
|
| | | }
|
| | |
|
| | | .tabs-active {
|
| | | border-radius: 10rpx;
|
| | | background-color: rgb(236, 244, 255);
|
| | | color: #017BFC;
|
| | | border-radius: 10rpx 10rpx 0 0;
|
| | | // background-color: rgb(236, 244, 255);
|
| | | // color: #017BFC;
|
| | | // color: rgb(236, 244, 255);
|
| | | // background-color: #017BFC;
|
| | | background-color: #fff;
|
| | | font-weight: bold;
|
| | | }
|
| | | }
|
| | |
| | | .menu-tabs {
|
| | | padding: 20rpx 0;
|
| | | }
|
| | |
|
| | | .menu {
|
| | | border-radius: 0 0 10rpx 10rpx;
|
| | | }
|
| | | </style> |
| | |
| | | },
|
| | |
|
| | | navToInspect() {
|
| | | if (!this.info.principa) {
|
| | | if (this.info.status == 1) {
|
| | | this.$showTips("请先完善场所信息")
|
| | | return
|
| | | }
|
| | | if (!this.info.principal_phone) {
|
| | | this.$showTips("请先完善场所信息")
|
| | | return
|
| | | }
|
| | | if (!this.info.place_name) {
|
| | | this.$showTips("请先完善场所信息")
|
| | | return
|
| | | }
|
| | | if (!this.info.image_urls) {
|
| | | this.$showTips("请先完善场所信息")
|
| | | return
|
| | | }
|
| | | if (!this.info.location) {
|
| | | this.$showTips("请先完善场所信息")
|
| | | return
|
| | | }
|
| | | if (!this.info.principal_id_card) {
|
| | | this.$showTips("请先完善场所信息")
|
| | | return
|
| | | }
|
| | |
|
| | | uni.navigateTo({
|
| | | url: `/subPackage/house/houseNumber/siteInspect?code=${this.stdId}&name=${this.placeName}`
|
| | | })
|
| | |
| | | getHouseList({ |
| | | current: pageNo, |
| | | size: pageSize, |
| | | townStreetName: uni.getStorageSync("curStreet"), |
| | | // townStreetName: uni.getStorageSync("curStreet"), |
| | | address: this.addressName |
| | | }).then(res => { |
| | | this.$refs.paging.complete(res.data.records); |
| | |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="nav bgc-ff mb-20 mt-20" v-if="comprehensive.length"> |
| | | <view class="caption"> |
| | | <view class="nav bgc-ff mt-20" v-if="comprehensive.length"> |
| | | <!-- <view class="caption"> |
| | | <view class="flex a-i-c"> |
| | | <view class="line"></view> |
| | | <text class="f-32 fw">综治任务</text> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(i.path)" v-for="i in comprehensive"> |
| | | <text class="f-28">{{i.name}}</text> |
| | |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | <view class="nav bgc-ff mb-20" v-if="securityList.length"> |
| | | <view class="caption"> |
| | | <view class="nav bgc-ff mb-20 mt-20" v-if="securityList.length"> |
| | | <!-- <view class="caption"> |
| | | <view class="flex a-i-c"> |
| | | <view class="line"></view> |
| | | <text class="f-32 fw">公安任务</text> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(`${i.path}&from=task`)" v-for="i in securityList"> |
| | | <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(i.path)" v-for="i in securityList"> |
| | | <text class="f-28">{{i.name}}</text> |
| | | <view class="flex"> |
| | | <block v-if="bailCount > 0"> |
| | |
| | | let data = res.data; |
| | | this.countInfo = res.data; |
| | | for (let i of this.comprehensive) { |
| | | if (i.name == "场所审核") { |
| | | if (i.name.trim() == "场所审核") { |
| | | i.count = data.cssh; |
| | | } else if (i.name == "报事报修") { |
| | | } else if (i.name.trim() == "报事报修") { |
| | | i.count = data.bsbx; |
| | | } else if (i.name == "住户审核") { |
| | | } else if (i.name.trim() == "住户审核") { |
| | | i.count = data.zhsh |
| | | } else if (i.name.trim() == "标签报事") { |
| | | } else if (i.name.trim() == "二手交易") { |
| | | i.count = data.bqsj |
| | | } else if (i.name == "租房管理") { |
| | | } else if (i.name.trim() == "租户确认") { |
| | | i.count = data.czsh |
| | | } else if (i.name == "走访任务") { |
| | | } else if (i.name.trim() == "走访任务") { |
| | | i.count = data.zfrw; |
| | | } else if (i.name.trim() == "走访任务") { |
| | | i.count = data.zfrw; |
| | | } |
| | | } |
| | |
| | | icon: "none" |
| | | }) |
| | | } else { |
| | | this.$u.func.globalNavigator(`${url}?from=task`) |
| | | console.log("url===>", url) |
| | | uni.navigateTo({ |
| | | url: `${url}?from=task`, |
| | | complete: (res) => { |
| | | console.log("errr=>", res) |
| | | } |
| | | }) |
| | | // this.$u.func.globalNavigator(`${url}?from=task`) |
| | | } |
| | | } |
| | | } |
| | |
| | | <text class="f-28">时间筛选</text> |
| | | <u-icon name="arrow-down"></u-icon> |
| | | </view> |
| | | <u-search placeholder="请输入需要查询信息的名称" v-model="keyWord" :clearabled="true" :showAction="true" |
| | | <u-search placeholder="请输入需要查询信息的名称" v-model="keyword" :clearabled="true" :showAction="true" |
| | | :animation="true" @search="searchConfirm" @clear="clearConfirm"></u-search> |
| | | </view> |
| | | </view> |
| | |
| | | this.getList() |
| | | }, |
| | | clearConfirm() { |
| | | this.keyWord = '' |
| | | this.keyword = '' |
| | | this.searchConfirm() |
| | | }, |
| | | changeTab(e) { |
| New file |
| | |
| | | <template> |
| | | <view> |
| | | <u-sticky> |
| | | <view class="bgc-ff"> |
| | | <view class="tab"> |
| | | <!-- <u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}" |
| | | :activeStyle="{color:'#017BFC'}"> |
| | | </u-tabs> --> |
| | | <view class="search flex j-c-s-b a-i-c"> |
| | | <view class="tab-filter flex j-c-c a-i-c" @click="showDateModal"> |
| | | <text class="f-28">时间筛选</text> |
| | | <u-icon name="arrow-down"></u-icon> |
| | | </view> |
| | | <u-search placeholder="请输入需要查询信息的名称" v-model="keyWord" :clearabled="true" :showAction="true" |
| | | :animation="true" @search="searchConfirm" @clear="clearConfirm"></u-search> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </u-sticky> |
| | | |
| | | <view class="list"> |
| | | <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k" |
| | | @click="navTo(i.id,i.reportType,i.status,i.type)"> |
| | | <view class="item-title flex a-i-c j-c-s-b mb-20"> |
| | | <text class="f-32 fw">{{i.name}}</text> |
| | | <u-tag v-if="i.status == 4" text="待完成" type="warning" plain plainFill></u-tag> |
| | | <u-tag v-if="i.status == 1" text="待审批" type="warning" plain plainFill></u-tag> |
| | | <u-tag v-if="i.status == 2" text="审核通过" type="success" plain plainFill></u-tag> |
| | | <u-tag v-if="i.status == 3" text="审核拒绝" type="error" plain plainFill></u-tag> |
| | | </view> |
| | | <view class="item-row flex a-i-c j-c-s-b"> |
| | | <text class="f-28">时间</text> |
| | | <text class="f-28 c-66">{{i.createTime}}</text> |
| | | </view> |
| | | <view class="item-row flex a-i-c j-c-s-b"> |
| | | <text class="f-28">地址</text> |
| | | <text class="address f-28 c-66">{{i.addressName || ""}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-toast ref="uToast"></u-toast> |
| | | <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line /> |
| | | |
| | | <date-range-modal ref="dateRane" @comfirm="handleComfirmDate" @rest="handleRestDate" /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getAuditReportingList |
| | | } from "@/api/reporting/reporting" |
| | | import dateRangeModal from '@/components/dateRangeModal/modal.vue'; |
| | | export default { |
| | | components: { |
| | | dateRangeModal |
| | | }, |
| | | data() { |
| | | return { |
| | | tabList: [ |
| | | |
| | | { |
| | | name: "全部", |
| | | status: "", |
| | | }, |
| | | { |
| | | name: "待完成", |
| | | status: 4, |
| | | }, |
| | | { |
| | | name: "待审核", |
| | | status: 1 |
| | | }, |
| | | { |
| | | name: "审核通过", |
| | | status: 2 |
| | | }, |
| | | { |
| | | name: "已拒绝", |
| | | status: 3 |
| | | } |
| | | ], |
| | | tabIndex: 1, |
| | | currentStatus: 4, |
| | | list: [], |
| | | loadingStatus: 'nomore', |
| | | currentPage: 1, |
| | | frequency: '', |
| | | reportType: "", |
| | | selectDate: [], |
| | | houseCode: "", |
| | | keyword: "" |
| | | } |
| | | }, |
| | | |
| | | onLoad(option) { |
| | | console.log(option); |
| | | if (option.reportType) { |
| | | this.reportType = option.reportType; |
| | | uni.setNavigationBarTitle({ |
| | | title: "取保候审" |
| | | }) |
| | | } |
| | | if (option.from == "index") { |
| | | uni.setNavigationBarTitle({ |
| | | title: "场所任务" |
| | | }) |
| | | } |
| | | if (option.from == "task") { |
| | | this.tabIndex = 1; |
| | | this.currentStatus = 1; |
| | | } |
| | | if (option.code) { |
| | | this.houseCode = option.code; |
| | | } |
| | | // this.getList() |
| | | }, |
| | | |
| | | onShow() { |
| | | this.resetParams(); |
| | | this.getList() |
| | | }, |
| | | |
| | | onReachBottom() { |
| | | this.currentPage++ |
| | | this.getList() |
| | | }, |
| | | |
| | | methods: { |
| | | searchConfirm() { |
| | | this.resetParams() |
| | | this.getList() |
| | | }, |
| | | clearConfirm() { |
| | | this.keyWord = '' |
| | | this.searchConfirm() |
| | | }, |
| | | changeTab(e) { |
| | | this.tabIndex = e.index; |
| | | this.currentStatus = e.status; |
| | | this.resetParams(); |
| | | this.getList(); |
| | | }, |
| | | resetParams() { |
| | | this.list = []; |
| | | this.currentPage = 1; |
| | | }, |
| | | getList() { |
| | | this.$nextTick(() => { |
| | | this.loadingStatus = 'loadingmore' |
| | | this.$refs.uToast.show({ |
| | | type: 'loading', |
| | | message: '正在加载', |
| | | duration: 9999999 |
| | | }) |
| | | }) |
| | | let params = { |
| | | current: this.currentPage, |
| | | size: 20, |
| | | status: this.currentStatus, |
| | | frequency: this.frequency |
| | | } |
| | | if (this.selectDate.length) { |
| | | params.startTime = this.selectDate[0] |
| | | params.endTime = this.selectDate[1] |
| | | } |
| | | if (this.houseCode) { |
| | | params.houseCode = this.houseCode; |
| | | } |
| | | |
| | | if (this.reportType) { |
| | | params.reportType = this.reportType |
| | | } |
| | | if (this.keyword) { |
| | | params.name = this.keyword; |
| | | } |
| | | |
| | | getAuditReportingList(params).then(res => { |
| | | if (res.code != 200) { |
| | | uni.showToast({ |
| | | title: '数据请求失败', |
| | | icon: 'error' |
| | | }) |
| | | return |
| | | } |
| | | let records = res.data.records; |
| | | this.list = [...this.list, ...records] |
| | | this.$nextTick(() => { |
| | | this.$refs.uToast.isShow = false |
| | | }) |
| | | this.loadingStatus = 'nomore' |
| | | }) |
| | | }, |
| | | navTo(id, reportType, status, type) { |
| | | if (status == 4) { |
| | | if (reportType == 8) { |
| | | this.navToDetail(reportType, id, type) |
| | | } else { |
| | | if (uni.getStorageSync("activeRole").roleName == "民警") { |
| | | this.navToDetail(reportType, id, type) |
| | | } else { |
| | | this.navToEdit(reportType, id, type); |
| | | } |
| | | } |
| | | } else { |
| | | this.navToDetail(reportType, id, type) |
| | | } |
| | | }, |
| | | |
| | | navToEdit(reportType, id, type) { |
| | | // if (reportType == 1) { |
| | | // this.$u.func.globalNavigator(`/subPackage/label/bail?id=${id}`) |
| | | // } else if (reportType == 2 || type == 7) { |
| | | // this.$u.func.globalNavigator(`/subPackage/label/hotel?id=${id}`) |
| | | // } else if (reportType == 3 || reportType == 4 || reportType == 5) { |
| | | // this.$u.func.globalNavigator(`/subPackage/label/form?id=${id}`) |
| | | // } else if (reportType == 6) { |
| | | // this.$u.func.globalNavigator(`/subPackage/label/school?id=${id}`) |
| | | // } |
| | | |
| | | if (reportType == 1) { |
| | | this.$u.func.globalNavigator(`/subPackage/label/bail?id=${id}`) |
| | | } else if (reportType == 2) { |
| | | this.$u.func.globalNavigator(`/subPackage/label/check?id=${id}`) |
| | | } else if (reportType == 5) { |
| | | this.$u.func.globalNavigator(`/subPackage/label/form?id=${id}`) |
| | | } |
| | | }, |
| | | |
| | | navToDetail(reportType, id, type) { |
| | | // if (reportType == 1) { |
| | | // this.$u.func.globalNavigator(`bailReportDetail?id=${id}`) |
| | | // } else if (reportType == 2 || type == 7) { |
| | | // this.$u.func.globalNavigator(`hotelReportDetail?id=${id}`) |
| | | // } else if (reportType == 3 || reportType == 4 || reportType == 5) { |
| | | // this.$u.func.globalNavigator(`labelReportDetail?id=${id}`) |
| | | // } else if (reportType == 6) { |
| | | // this.$u.func.globalNavigator(`schoolReportDetail?id=${id}`) |
| | | // } else { |
| | | // this.$u.func.globalNavigator(`checkReform?id=${id}`) |
| | | // } |
| | | |
| | | if (reportType == 1) { |
| | | this.$u.func.globalNavigator(`bailReportDetail?id=${id}`) |
| | | } else if (reportType == 2) { |
| | | this.$u.func.globalNavigator(`selfCheckDetail?id=${id}`) |
| | | } else if (reportType == 5) { |
| | | this.$u.func.globalNavigator(`labelReportDetail?id=${id}`) |
| | | } else { |
| | | this.$u.func.globalNavigator(`checkReform?id=${id}`) |
| | | } |
| | | |
| | | |
| | | }, |
| | | |
| | | showDateModal() { |
| | | this.$refs.dateRane.open(); |
| | | }, |
| | | |
| | | handleRestDate() { |
| | | this.selectDate = []; |
| | | this.resetParams(); |
| | | this.getList() |
| | | }, |
| | | handleComfirmDate(val) { |
| | | this.selectDate = val; |
| | | this.resetParams(); |
| | | this.getList() |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | page { |
| | | background-color: #F5F5F5; |
| | | } |
| | | |
| | | |
| | | |
| | | .tab { |
| | | // width: 100%; |
| | | |
| | | } |
| | | |
| | | .search { |
| | | padding: 20rpx 20rpx; |
| | | } |
| | | |
| | | // .tab /deep/.u-tabs__wrapper__nav__item { |
| | | // flex: 1; |
| | | // } |
| | | .tab-filter { |
| | | padding: 0 20rpx; |
| | | } |
| | | |
| | | .list { |
| | | margin: 20rpx 30rpx 0; |
| | | } |
| | | |
| | | .list-item { |
| | | padding: 0 30rpx 20rpx; |
| | | border-radius: 8rpx; |
| | | |
| | | .item-title { |
| | | padding: 30rpx 0; |
| | | border-bottom: 1px solid #F5F5F5; |
| | | } |
| | | |
| | | .item-row { |
| | | padding: 10rpx 0; |
| | | |
| | | .address { |
| | | width: 65%; |
| | | text-align: right; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <box-title :title="'基本信息'"></box-title>
|
| | | <u-form labelWidth="70" :model="form" :rules="rules" ref="form" class="form">
|
| | | <u-form-item label="场所位置" required class="form-item" prop="location" @click="getLocation">
|
| | | <u--input border="none" v-model="form.location" placeholder="请选择场所位置"></u--input>
|
| | | <u--textarea border="none" v-model="form.location" placeholder="请选择场所位置"></u--textarea>
|
| | | <u-icon slot="right" name="arrow-right"></u-icon>
|
| | | </u-form-item>
|
| | | <u-form-item label="经纬度" required class="form-item">
|
| | |
| | | <u-form-item label="法人电话" class="form-item" prop="legalTel" required>
|
| | | <u--input border="none" type="number" v-model="form.legalTel" placeholder="请填写法人电话"></u--input>
|
| | | </u-form-item>
|
| | | <u-form-item class="form-item" label="标准地址" required prop="houseCodeBinds"
|
| | | @click="isShowPopup = true">
|
| | | <u--input v-if="!addressNames" border="none" disabled disabledColor="#ffffff"
|
| | | placeholder="请选择标准地址">
|
| | | </u--input>
|
| | | <u-textarea v-if="addressNames" border="none" :disabled="true" disabledColor="#ffffff"
|
| | | v-model="addressNames" placeholder="请选择标准地址">
|
| | | </u-textarea>
|
| | | <u-icon slot="right" name="arrow-right"></u-icon>
|
| | | </u-form-item>
|
| | |
|
| | |
|
| | |
|
| | | </u-form>
|
| | | </view>
|
| | | <view class="license">
|
| | |
| | | </view>
|
| | |
|
| | |
|
| | | <u-popup :show="isShowPopup" mode="bottom" :round="12" closeable="true" @close="isShowPopup = false">
|
| | | <view class="popup-content">
|
| | | <view class="popup-title f-30">选择标准地址</view>
|
| | | <scroll-view class="popup-list" :scroll-y="true">
|
| | | <u-checkbox-group v-model="checkedPlace" iconPlacement="right" placement="column"
|
| | | @change="checkboxChange" shape="circle">
|
| | | <view class="popup-list-item flex j-c-s-b" v-for="(i,k) in placeList" :key="k">
|
| | | <text class="f-28" style="width:85%">{{i.addressName}}</text>
|
| | | <u-checkbox :name="k"></u-checkbox>
|
| | | </view>
|
| | |
|
| | | </u-checkbox-group>
|
| | | </scroll-view>
|
| | |
|
| | | </view>
|
| | |
|
| | | </u-popup>
|
| | |
|
| | |
|
| | | <footer-btn @click="submit"></footer-btn>
|
| | |
|
| | | <!-- <view class="btn-group">
|
| | |
| | | import {
|
| | | minioBaseUrl
|
| | | } from '@/common/setting'
|
| | |
|
| | |
|
| | |
|
| | | import {
|
| | | getPlaceList
|
| | | } from '@/api/place/place.js'
|
| | |
|
| | | export default {
|
| | | mixins: [uploadMixin],
|
| | | components: {
|
| | |
| | | legalPerson: '',
|
| | | legalTel: '',
|
| | | imageUrls: [],
|
| | | planImageUrls: []
|
| | | planImageUrls: [],
|
| | | houseCodeBinds: ""
|
| | | },
|
| | | rules: {
|
| | | "location": {
|
| | |
| | | },
|
| | | personNum: 1,
|
| | | curSelectSite: {},
|
| | | jwd: ""
|
| | | jwd: "",
|
| | | placeList: [],
|
| | | isShowPopup: false,
|
| | | checkedPlace: [],
|
| | | addressNames: ""
|
| | | }
|
| | | },
|
| | | onShow() {
|
| | |
| | | //onReady 为uni-app支持的生命周期之一
|
| | | this.$refs.form.setRules(this.rules)
|
| | | },
|
| | |
|
| | | mounted() {
|
| | |
|
| | | this.$nextTick(() => {
|
| | | this.getCsDetails()
|
| | | this.getPlace();
|
| | | })
|
| | | },
|
| | | methods: {
|
| | |
|
| | | checkboxChange(n) {
|
| | | console.log('change', n);
|
| | | let list = n;
|
| | | let ids = [];
|
| | | let names = []
|
| | |
|
| | | for (let i = 0, ii = list.length; i < ii; i++) {
|
| | |
|
| | | ids.push(this.placeList[list[i]].addressCode)
|
| | | names.push(this.placeList[list[i]].addressName)
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | this.$set(this.form, "houseCodeBinds", ids.join(","))
|
| | | this.addressNames = names.join(",");
|
| | |
|
| | |
|
| | |
|
| | | },
|
| | |
|
| | | getPlace() {
|
| | | getPlaceList({
|
| | | addressName: this.form.location
|
| | | }).then(res => {
|
| | | console.log(res)
|
| | | this.placeList = res.data;
|
| | | })
|
| | | },
|
| | |
|
| | |
|
| | | getLocation() {
|
| | | uni.chooseLocation({
|
| | | success: (res) => {
|
| | |
| | | border: 1rpx solid #EEEEEE;
|
| | | background-color: #fff;
|
| | | }
|
| | |
|
| | |
|
| | | .popup-content {
|
| | | width: 100%;
|
| | | padding: 0 30rpx 30rpx;
|
| | | box-sizing: border-box;
|
| | | background-color: #fff;
|
| | | // height: 800rpx;
|
| | |
|
| | | .popup-title {
|
| | | padding: 30rpx 0;
|
| | | text-align: center;
|
| | | font-weight: bold;
|
| | | }
|
| | |
|
| | | .popup-list {
|
| | | height: 600rpx;
|
| | | margin-top: 20rpx;
|
| | | }
|
| | |
|
| | | .popup-list-item {
|
| | | padding: 20rpx 0;
|
| | | border-bottom: 1px solid #f1f1f1;
|
| | | position: relative;
|
| | | }
|
| | |
|
| | | .address-name {
|
| | | width: 90%;
|
| | | }
|
| | |
|
| | | .check-icon {
|
| | | position: absolute;
|
| | | right: 20rpx;
|
| | | top: 20rpx;
|
| | | }
|
| | | }
|
| | | </style> |