|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472 |
- <template>
- <div class="home_wrapper">
- <div class="head_main">
- <div class="location">
- <div class="address" @click="villageVisbile = true"><i class="icon"></i>{{deptName}}</div>
- <van-popup v-model="villageVisbile" round position="bottom">
- <van-cascader
- v-model="villageValue"
- title="请选择所在村"
- :options="hcAreaInfoOption"
- @close="hcAreaInfoClose"
- @finish="hcAreaInfoFinish"
- active-color="#1989fa"
- :field-names="hcAreaInfoFieldName"
- />
- </van-popup>
-
- <div class="address" @click="bookVisbile = true">{{bookName}}</div>
- <van-popup v-model="bookVisbile" round position="bottom">
- <van-picker
- title="请选择账套"
- show-toolbar
- :columns="bookList"
- @confirm="onConfirmBook"
- @cancel="onCancelBook"
- value-key="bookName"
- />
- </van-popup>
-
- </div>
- <van-popover
- v-model="showPopover"
- trigger="click"
- :actions="actions"
- placement="bottom-end"
- @select="selectChange"
- >
- <template #reference>
- <div class="exit_btn">
- <i class="icon"></i>
- </div>
- </template>
- </van-popover>
- <!-- @click="logout"-->
- </div>
- <div class="index_info">
- <div class="title"></div>
-
- <div class="nav_list">
- <div class="nav_list_box">
- <van-cell :border="false" style="border-radius: 6px;">
- <template #title>
- <p style="font-weight: bold;font-size: 18px;display: inline-block">阳光村务</p>
- </template>
- </van-cell>
- <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'2'}}" class="nav_item n_13">党务公开</router-link>
- <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'3'}}" class="nav_item n_14">村务公开</router-link>
- <router-link :to="{name:'sunVillageInfoListFinance'}" class="nav_item n_1">财务公开榜</router-link>
- <router-link :to="{name:'sunVillageInfoListTourists'}" class="nav_item n_2">零工公开榜</router-link>
- <router-link :to="{name:'sunVillageInfoListRegister'}" class="nav_item n_8">零工登记</router-link>
- <router-link :to="{name:'sunVillageInfoStatisticalReport'}" class="nav_item n_9">统计填报</router-link>
- <router-link :to="{name:'sunVillageInfoListIssues'}" class="nav_item n_3">重大事项</router-link>
- <router-link :to="{name:'sunVillageInfoListVote'}" class="nav_item n_5">发布投票</router-link>
- <router-link :to="{name:'sunVillageInfoListPhoto'}" class="nav_item n_11">村庄图公开</router-link>
- <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'1'}}" class="nav_item n_12">合同公开</router-link>
- </div>
- </div>
-
- <div class="nav_list">
- <div class="nav_list_box">
- <van-cell :border="false" style="border-radius: 6px;">
- <template #title>
- <p style="font-weight: bold;font-size: 18px;display: inline-block">支出申请</p>
- </template>
- </van-cell>
- <router-link :to="{name:'sunVillageApprovalList'}" class="nav_item n_01">银行卡转账</router-link>
- <router-link :to="{name:'sunVillageApprovalList2'}" class="nav_item n_02">信用卡还款</router-link>
- <router-link :to="{name:'sunVillageApprovalList11'}" class="nav_item n_03">备付金支出</router-link>
- <router-link :to="{name:'sunVillageApprovalList12'}" class="nav_item n_04">汇票支出</router-link>
- <router-link :to="{name:'sunVillageCollectionList'}" class="nav_item n_05">收款账户</router-link>
- <router-link :to="{name:'sunVillagePaymentAccountList'}" class="nav_item n_06">付款账户</router-link>
- <router-link :to="{name:'sunVillageBankOfDepositList'}" class="nav_item n_07">开户行</router-link>
- </div>
- </div>
-
- <div class="nav_list">
- <div class="nav_list_box">
- <van-cell :border="false" style="border-radius: 6px;">
- <template #title>
- <p style="font-weight: bold;font-size: 18px;display: inline-block">财务信息</p>
- </template>
- </van-cell>
- <router-link :to="{name:'sunVillageInfoListBalanceRanking'}" class="nav_item n_4">余额表</router-link>
- <router-link :to="{name:'sunVillageInfoDetailedLedger'}" class="nav_item n_10">明细账</router-link>
- <router-link :to="{name:'sunVillageInfoFixedAssets'}" class="nav_item n_6">固定资产</router-link>
- <router-link :to="{name:'sunVillageInfoInformation'}" class="nav_item n_7">合同信息</router-link>
- </div>
- </div>
-
- </div>
- <div class="footer">
- 技术支持:北京农燊高科信息技术有限公司
- </div>
- </div>
- </template>
- <script>
- import { changeBook , listByDeptId , treeselectByUser } from "@/api/sunVillage_info/fixedAssets";
- import { getInfo } from "@/api/login/index";
- import {changeDept} from "../../api/onlineHome/done";
- import {bookListByDeptId} from "../../api/homestead";
- import Cookies from "js-cookie";
- import {logout} from "../../api/login";
- export default {
- name: "certificateList",
- data() {
- return {
- showPopover: false,
- actions: [
- { text: '个人信息', icon: 'manager-o' , index: 0 },
- { text: '修改密码', icon: 'edit' , index: 1 },
- { text: '退出登录', icon: 'revoke' , index: 2 },
- ],
- deptIdOptions:[],
- villageVisbile:false,
- showBookList:false,
- deptName:'',
- //选中的值
- villageValue: "",
- //省市区区级list
- hcAreaInfoOption: [],
- hcAreaInfoFieldName: {
- text: "label",
- value: "value",
- children: "children",
- },
- bookName:'',
- queryParams: {
- pageNum: 1,
- pageSize: 100,
- },
- //账套列表
- bookVisbile:false,
- bookList:[],
- bookName:"",
- bookId:"",
- book:"",
- };
- },
- created() {
- getInfo().then(response => {
- this.bookName = response.user.bookName
- this.deptName = response.user.deptName
- Cookies.set("bookName", response.user.bookName, {
- expires: 30,
- });
- Cookies.set("deptName", response.user.deptName, {
- expires: 30,
- });
- Cookies.set("bookId", response.user.loginBookId, {
- expires: 30,
- });
- Cookies.set("deptId", response.user.loginDeptId, {
- expires: 30,
- });
- this.getBookList(response.user.loginDeptId);
- });
-
- treeselectByUser().then((res) => {
- if (res.code == 200) {
- this.hcAreaInfoOption = res.data;
- }
- });
- this.$set(this.queryParams, "systemType", '4');
- },
- methods: {
- //关闭选择地址弹窗
- hcAreaInfoClose() {
- this.villageVisbile = false;
- },
- hcAreaInfoFinish({ value, selectedOptions, tabIndex }) {
- // 切换部门
- let Depquery={"loginDeptID":value}
- changeDept(Depquery).then((response) => {
- if (response.code === 200) {
- this.$store.dispatch("GetInfo").then(() => {
- // this.$router.go(0);
- window.location.href = "/sunVillage_info/index";
- });
- }
- });
- this.villageVisbile = false;
- },
- getBookList(e){
- let params = {
- loginDeptID:e
- }
- listByDeptId(params).then((response) => {
- if (response.code == 200) {
- this.bookList = response.rows;
- }
- })
- },
- onConfirmBook(e){
- this.bookVisbile = false
- this.bookName = e.bookName
- let param={"loginBookId":e.id}
- changeBook(param).then((response) => {
- if (response.code === 200) {
- this.$store.dispatch("GetInfo").then(() => {
- // this.$router.go(0);
- window.location.href = "/sunVillage_info/index";
- });
- }
- });
- },
- onCancelBook(e){
- this.bookVisbile = false
- },
- logout(){
- logout().then(res => {
- this.$router.push({path:"/sunVillage_info/index_code",query:{bookId:Cookies.get('bookId'),deptId:Cookies.get('deptId')}})
- })
- },
- selectChange(val){
- val.index == 0 ? this.$router.push({path:"/sunVillage_info/user"}) : val.index == 1 ? this.$router.push({path:"/sunVillage_info/passWord"}) : val.index == 2 ? this.logout() : '';
- }
- },
- }
- </script>
- <style scoped lang="scss">
- .home_wrapper{
- background: #f1f2f2;
- width: 100vw;
- min-height: 100vh;
- .head_main{
- height: 340px;
- background: url('../../assets/images/sunVillage_info/index_head.png') no-repeat;
- background-size: 100% 100%;
- position: relative;
- .location{
- height: 42px;
- line-height: 42px;
- position: absolute;
- left: 38px;
- top: 72px;
- display: flex;
- .address{
- padding:0 18px;
- background:rgba(255,255,255,0.75);
- border-radius: 42px;
- font-size: 28px;
- color: #3f3d56;
- margin-right: 12px;
- display: flex;
- align-items:center;
- .icon{
- display: block;
- width: 20px;
- height: 26px;
- background: url('../../assets/images/sunVillage_info/index_icon_1.png') no-repeat;
- background-size: 100% 100%;
- margin-right: 10px;
- }
- }
- }
- /deep/ .van-popover__wrapper{
- position: absolute;
- top: 64px;
- right: 36px;
- }
- .exit_btn{
- width: 61px;
- height: 61px;
- /*background: #3f3d56;*/
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- /*position: absolute;*/
- /*top: 64px;*/
- /*right: 36px;*/
- .icon{
- width: 100%;
- height: 100%;
- background: url('../../assets/images/sunVillage_info/login_head_h.png') no-repeat;
- background-size: 100% 100%;
- }
- }
- }
- .index_info{
- padding-top: 4.1vh;
- .title{
- width: 521px;
- height: 52px;
- background: url('../../assets/images/sunVillage_info/index_title.png') no-repeat;
- background-size: 100% 100%;
- margin:0 auto;
- }
- .nav_list{
- margin-top: 6vh;
- padding:0 38px;
- &:nth-child(3){
- margin-top: 3vh;
- }
- &:nth-child(4){
- margin-top: 3vh;
- }
- .van-cell{
- background: transparent;
- }
- .nav_list_box{
- display: flex;
- flex-flow: wrap;
- box-shadow: 0px 0px 18px rgba(63,68,75,0.2);
- /*padding: 0 0 20PX;*/
- border-radius: 15PX;
- overflow: hidden;
- background: #ffffff;
- }
- .nav_box{
- box-shadow: 0px 0px 18px rgba(63,68,75,0.2);
- margin-bottom: 40PX;
- border-radius: 15PX;
- overflow: hidden;
- /deep/ .van-grid-item__content{
- background: transparent;
- padding-top: 0;
- }
- }
- .nav_item{
- width: 25%;
- /*height: 180px;*/
- border-radius: 30px;
- font-size: 24px;
- color: #3f3d56;
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- padding-top: 100px;
- &.n_1{
- background: url('../../assets/images/sunVillage_info/index_block_01.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_2{
- background: url('../../assets/images/sunVillage_info/index_block_02.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_3 {
- background: url('../../assets/images/sunVillage_info/index_block_03.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_4 {
- background: url('../../assets/images/sunVillage_info/index_block_04.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_5 {
- background: url('../../assets/images/sunVillage_info/index_block_05.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_6 {
- background: url('../../assets/images/sunVillage_info/index_block_06.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_7 {
- background: url('../../assets/images/sunVillage_info/index_block_07.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_8 {
- background: url('../../assets/images/sunVillage_info/index_block_08.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_9 {
- background: url('../../assets/images/sunVillage_info/index_block_09.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
-
- }
- &.n_10 {
- background: url('../../assets/images/sunVillage_info/index_block_10.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_11 {
- background: url('../../assets/images/sunVillage_info/index_block_11.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_12 {
- background: url('../../assets/images/sunVillage_info/index_block_12.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_13 {
- background: url('../../assets/images/sunVillage_info/index_block_13.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_14 {
- background: url('../../assets/images/sunVillage_info/index_block_14.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
-
-
- &.n_01 {
- background: url('../../assets/images/sunVillage_info/index_icon_01.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_02 {
- background: url('../../assets/images/sunVillage_info/index_icon_02.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_03 {
- background: url('../../assets/images/sunVillage_info/index_icon_03.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_04 {
- background: url('../../assets/images/sunVillage_info/index_icon_04.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_05 {
- background: url('../../assets/images/sunVillage_info/index_icon_05.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_06 {
- background: url('../../assets/images/sunVillage_info/index_icon_06.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- &.n_07 {
- background: url('../../assets/images/sunVillage_info/index_icon_07.png') no-repeat center top;
- background-size: 50%;
- margin-bottom: 20PX;
- }
- }
- .icon{
- padding: 15px;
- border-radius: 10px;
- box-sizing: border-box;
- width: 80px;
- height: 80px;
- text-align:center;
- }
- .icon img{
- width:50px;
- }
- }
- }
- .footer{
- width: 100%;
- font-size: 22px;
- color: #3f3d56;
- text-align: center;
- padding-top: 20px;
- padding-bottom: 25PX;
- }
- }
- </style>
|