移动端
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 18 KiB

2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
2 년 전
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. <template>
  2. <div class="home_wrapper">
  3. <div class="head_main">
  4. <div class="location">
  5. <div class="address" @click="villageVisbile = true"><i class="icon"></i>{{deptName}}</div>
  6. <van-popup v-model="villageVisbile" round position="bottom">
  7. <van-cascader
  8. v-model="villageValue"
  9. title="请选择所在村"
  10. :options="hcAreaInfoOption"
  11. @close="hcAreaInfoClose"
  12. @finish="hcAreaInfoFinish"
  13. active-color="#1989fa"
  14. :field-names="hcAreaInfoFieldName"
  15. />
  16. </van-popup>
  17. <div class="address" @click="bookVisbile = true">{{bookName}}</div>
  18. <van-popup v-model="bookVisbile" round position="bottom">
  19. <van-picker
  20. title="请选择账套"
  21. show-toolbar
  22. :columns="bookList"
  23. @confirm="onConfirmBook"
  24. @cancel="onCancelBook"
  25. value-key="bookName"
  26. />
  27. </van-popup>
  28. </div>
  29. <van-popover
  30. v-model="showPopover"
  31. trigger="click"
  32. :actions="actions"
  33. placement="bottom-end"
  34. @select="selectChange"
  35. >
  36. <template #reference>
  37. <div class="exit_btn">
  38. <i class="icon"></i>
  39. </div>
  40. </template>
  41. </van-popover>
  42. <!-- @click="logout"-->
  43. </div>
  44. <div class="index_info">
  45. <div class="title"></div>
  46. <div class="nav_list">
  47. <div class="nav_list_box">
  48. <van-cell :border="false" style="border-radius: 6px;">
  49. <template #title>
  50. <p style="font-weight: bold;font-size: 18px;display: inline-block">阳光村务</p>
  51. </template>
  52. </van-cell>
  53. <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'2'}}" class="nav_item n_13">党务公开</router-link>
  54. <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'3'}}" class="nav_item n_14">村务公开</router-link>
  55. <router-link :to="{name:'sunVillageInfoListFinance'}" class="nav_item n_1">财务公开榜</router-link>
  56. <router-link :to="{name:'sunVillageInfoListTourists'}" class="nav_item n_2">零工公开榜</router-link>
  57. <router-link :to="{name:'sunVillageInfoListRegister'}" class="nav_item n_8">零工登记</router-link>
  58. <router-link :to="{name:'sunVillageInfoStatisticalReport'}" class="nav_item n_9">统计填报</router-link>
  59. <router-link :to="{name:'sunVillageInfoListIssues'}" class="nav_item n_3">重大事项</router-link>
  60. <router-link :to="{name:'sunVillageInfoListVote'}" class="nav_item n_5">发布投票</router-link>
  61. <router-link :to="{name:'sunVillageInfoListPhoto'}" class="nav_item n_11">村庄图公开</router-link>
  62. <router-link :to="{name:'sunVillageInfoListContract',query:{typeX:'1'}}" class="nav_item n_12">合同公开</router-link>
  63. </div>
  64. </div>
  65. <div class="nav_list">
  66. <div class="nav_list_box">
  67. <van-cell :border="false" style="border-radius: 6px;">
  68. <template #title>
  69. <p style="font-weight: bold;font-size: 18px;display: inline-block">支出申请</p>
  70. </template>
  71. </van-cell>
  72. <router-link :to="{name:'sunVillageApprovalList'}" class="nav_item n_01">银行卡转账</router-link>
  73. <router-link :to="{name:'sunVillageApprovalList2'}" class="nav_item n_02">信用卡还款</router-link>
  74. <router-link :to="{name:'sunVillageApprovalList11'}" class="nav_item n_03">备付金支出</router-link>
  75. <router-link :to="{name:'sunVillageApprovalList12'}" class="nav_item n_04">汇票支出</router-link>
  76. <router-link :to="{name:'sunVillageCollectionList'}" class="nav_item n_05">收款账户</router-link>
  77. <router-link :to="{name:'sunVillagePaymentAccountList'}" class="nav_item n_06">付款账户</router-link>
  78. <router-link :to="{name:'sunVillageBankOfDepositList'}" class="nav_item n_07">开户行</router-link>
  79. </div>
  80. </div>
  81. <div class="nav_list">
  82. <div class="nav_list_box">
  83. <van-cell :border="false" style="border-radius: 6px;">
  84. <template #title>
  85. <p style="font-weight: bold;font-size: 18px;display: inline-block">财务信息</p>
  86. </template>
  87. </van-cell>
  88. <router-link :to="{name:'sunVillageInfoListBalanceRanking'}" class="nav_item n_4">余额表</router-link>
  89. <router-link :to="{name:'sunVillageInfoDetailedLedger'}" class="nav_item n_10">明细账</router-link>
  90. <router-link :to="{name:'sunVillageInfoFixedAssets'}" class="nav_item n_6">固定资产</router-link>
  91. <router-link :to="{name:'sunVillageInfoInformation'}" class="nav_item n_7">合同信息</router-link>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="footer">
  96. 技术支持:北京农燊高科信息技术有限公司
  97. </div>
  98. </div>
  99. </template>
  100. <script>
  101. import { changeBook , listByDeptId , treeselectByUser } from "@/api/sunVillage_info/fixedAssets";
  102. import { getInfo } from "@/api/login/index";
  103. import {changeDept} from "../../api/onlineHome/done";
  104. import {bookListByDeptId} from "../../api/homestead";
  105. import Cookies from "js-cookie";
  106. import {logout} from "../../api/login";
  107. export default {
  108. name: "certificateList",
  109. data() {
  110. return {
  111. showPopover: false,
  112. actions: [
  113. { text: '个人信息', icon: 'manager-o' , index: 0 },
  114. { text: '修改密码', icon: 'edit' , index: 1 },
  115. { text: '退出登录', icon: 'revoke' , index: 2 },
  116. ],
  117. deptIdOptions:[],
  118. villageVisbile:false,
  119. showBookList:false,
  120. deptName:'',
  121. //选中的值
  122. villageValue: "",
  123. //省市区区级list
  124. hcAreaInfoOption: [],
  125. hcAreaInfoFieldName: {
  126. text: "label",
  127. value: "value",
  128. children: "children",
  129. },
  130. bookName:'',
  131. queryParams: {
  132. pageNum: 1,
  133. pageSize: 100,
  134. },
  135. //账套列表
  136. bookVisbile:false,
  137. bookList:[],
  138. bookName:"",
  139. bookId:"",
  140. book:"",
  141. };
  142. },
  143. created() {
  144. getInfo().then(response => {
  145. this.bookName = response.user.bookName
  146. this.deptName = response.user.deptName
  147. Cookies.set("bookName", response.user.bookName, {
  148. expires: 30,
  149. });
  150. Cookies.set("deptName", response.user.deptName, {
  151. expires: 30,
  152. });
  153. Cookies.set("bookId", response.user.loginBookId, {
  154. expires: 30,
  155. });
  156. Cookies.set("deptId", response.user.loginDeptId, {
  157. expires: 30,
  158. });
  159. this.getBookList(response.user.loginDeptId);
  160. });
  161. treeselectByUser().then((res) => {
  162. if (res.code == 200) {
  163. this.hcAreaInfoOption = res.data;
  164. }
  165. });
  166. this.$set(this.queryParams, "systemType", '4');
  167. },
  168. methods: {
  169. //关闭选择地址弹窗
  170. hcAreaInfoClose() {
  171. this.villageVisbile = false;
  172. },
  173. hcAreaInfoFinish({ value, selectedOptions, tabIndex }) {
  174. // 切换部门
  175. let Depquery={"loginDeptID":value}
  176. changeDept(Depquery).then((response) => {
  177. if (response.code === 200) {
  178. this.$store.dispatch("GetInfo").then(() => {
  179. // this.$router.go(0);
  180. window.location.href = "/sunVillage_info/index";
  181. });
  182. }
  183. });
  184. this.villageVisbile = false;
  185. },
  186. getBookList(e){
  187. let params = {
  188. loginDeptID:e
  189. }
  190. listByDeptId(params).then((response) => {
  191. if (response.code == 200) {
  192. this.bookList = response.rows;
  193. }
  194. })
  195. },
  196. onConfirmBook(e){
  197. this.bookVisbile = false
  198. this.bookName = e.bookName
  199. let param={"loginBookId":e.id}
  200. changeBook(param).then((response) => {
  201. if (response.code === 200) {
  202. this.$store.dispatch("GetInfo").then(() => {
  203. // this.$router.go(0);
  204. window.location.href = "/sunVillage_info/index";
  205. });
  206. }
  207. });
  208. },
  209. onCancelBook(e){
  210. this.bookVisbile = false
  211. },
  212. logout(){
  213. logout().then(res => {
  214. this.$router.push({path:"/sunVillage_info/index_code",query:{bookId:Cookies.get('bookId'),deptId:Cookies.get('deptId')}})
  215. })
  216. },
  217. selectChange(val){
  218. 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() : '';
  219. }
  220. },
  221. }
  222. </script>
  223. <style scoped lang="scss">
  224. .home_wrapper{
  225. background: #f1f2f2;
  226. width: 100vw;
  227. min-height: 100vh;
  228. .head_main{
  229. height: 340px;
  230. background: url('../../assets/images/sunVillage_info/index_head.png') no-repeat;
  231. background-size: 100% 100%;
  232. position: relative;
  233. .location{
  234. height: 42px;
  235. line-height: 42px;
  236. position: absolute;
  237. left: 38px;
  238. top: 72px;
  239. display: flex;
  240. .address{
  241. padding:0 18px;
  242. background:rgba(255,255,255,0.75);
  243. border-radius: 42px;
  244. font-size: 28px;
  245. color: #3f3d56;
  246. margin-right: 12px;
  247. display: flex;
  248. align-items:center;
  249. .icon{
  250. display: block;
  251. width: 20px;
  252. height: 26px;
  253. background: url('../../assets/images/sunVillage_info/index_icon_1.png') no-repeat;
  254. background-size: 100% 100%;
  255. margin-right: 10px;
  256. }
  257. }
  258. }
  259. /deep/ .van-popover__wrapper{
  260. position: absolute;
  261. top: 64px;
  262. right: 36px;
  263. }
  264. .exit_btn{
  265. width: 61px;
  266. height: 61px;
  267. /*background: #3f3d56;*/
  268. border-radius: 50%;
  269. display: flex;
  270. align-items: center;
  271. justify-content: center;
  272. /*position: absolute;*/
  273. /*top: 64px;*/
  274. /*right: 36px;*/
  275. .icon{
  276. width: 100%;
  277. height: 100%;
  278. background: url('../../assets/images/sunVillage_info/login_head_h.png') no-repeat;
  279. background-size: 100% 100%;
  280. }
  281. }
  282. }
  283. .index_info{
  284. padding-top: 4.1vh;
  285. .title{
  286. width: 521px;
  287. height: 52px;
  288. background: url('../../assets/images/sunVillage_info/index_title.png') no-repeat;
  289. background-size: 100% 100%;
  290. margin:0 auto;
  291. }
  292. .nav_list{
  293. margin-top: 6vh;
  294. padding:0 38px;
  295. &:nth-child(3){
  296. margin-top: 3vh;
  297. }
  298. &:nth-child(4){
  299. margin-top: 3vh;
  300. }
  301. .van-cell{
  302. background: transparent;
  303. }
  304. .nav_list_box{
  305. display: flex;
  306. flex-flow: wrap;
  307. box-shadow: 0px 0px 18px rgba(63,68,75,0.2);
  308. /*padding: 0 0 20PX;*/
  309. border-radius: 15PX;
  310. overflow: hidden;
  311. background: #ffffff;
  312. }
  313. .nav_box{
  314. box-shadow: 0px 0px 18px rgba(63,68,75,0.2);
  315. margin-bottom: 40PX;
  316. border-radius: 15PX;
  317. overflow: hidden;
  318. /deep/ .van-grid-item__content{
  319. background: transparent;
  320. padding-top: 0;
  321. }
  322. }
  323. .nav_item{
  324. width: 25%;
  325. /*height: 180px;*/
  326. border-radius: 30px;
  327. font-size: 24px;
  328. color: #3f3d56;
  329. text-align: center;
  330. display: flex;
  331. align-items: center;
  332. justify-content: center;
  333. padding-top: 100px;
  334. &.n_1{
  335. background: url('../../assets/images/sunVillage_info/index_block_01.png') no-repeat center top;
  336. background-size: 50%;
  337. margin-bottom: 20PX;
  338. }
  339. &.n_2{
  340. background: url('../../assets/images/sunVillage_info/index_block_02.png') no-repeat center top;
  341. background-size: 50%;
  342. margin-bottom: 20PX;
  343. }
  344. &.n_3 {
  345. background: url('../../assets/images/sunVillage_info/index_block_03.png') no-repeat center top;
  346. background-size: 50%;
  347. margin-bottom: 20PX;
  348. }
  349. &.n_4 {
  350. background: url('../../assets/images/sunVillage_info/index_block_04.png') no-repeat center top;
  351. background-size: 50%;
  352. margin-bottom: 20PX;
  353. }
  354. &.n_5 {
  355. background: url('../../assets/images/sunVillage_info/index_block_05.png') no-repeat center top;
  356. background-size: 50%;
  357. margin-bottom: 20PX;
  358. }
  359. &.n_6 {
  360. background: url('../../assets/images/sunVillage_info/index_block_06.png') no-repeat center top;
  361. background-size: 50%;
  362. margin-bottom: 20PX;
  363. }
  364. &.n_7 {
  365. background: url('../../assets/images/sunVillage_info/index_block_07.png') no-repeat center top;
  366. background-size: 50%;
  367. margin-bottom: 20PX;
  368. }
  369. &.n_8 {
  370. background: url('../../assets/images/sunVillage_info/index_block_08.png') no-repeat center top;
  371. background-size: 50%;
  372. margin-bottom: 20PX;
  373. }
  374. &.n_9 {
  375. background: url('../../assets/images/sunVillage_info/index_block_09.png') no-repeat center top;
  376. background-size: 50%;
  377. margin-bottom: 20PX;
  378. }
  379. &.n_10 {
  380. background: url('../../assets/images/sunVillage_info/index_block_10.png') no-repeat center top;
  381. background-size: 50%;
  382. margin-bottom: 20PX;
  383. }
  384. &.n_11 {
  385. background: url('../../assets/images/sunVillage_info/index_block_11.png') no-repeat center top;
  386. background-size: 50%;
  387. margin-bottom: 20PX;
  388. }
  389. &.n_12 {
  390. background: url('../../assets/images/sunVillage_info/index_block_12.png') no-repeat center top;
  391. background-size: 50%;
  392. margin-bottom: 20PX;
  393. }
  394. &.n_13 {
  395. background: url('../../assets/images/sunVillage_info/index_block_13.png') no-repeat center top;
  396. background-size: 50%;
  397. margin-bottom: 20PX;
  398. }
  399. &.n_14 {
  400. background: url('../../assets/images/sunVillage_info/index_block_14.png') no-repeat center top;
  401. background-size: 50%;
  402. margin-bottom: 20PX;
  403. }
  404. &.n_01 {
  405. background: url('../../assets/images/sunVillage_info/index_icon_01.png') no-repeat center top;
  406. background-size: 50%;
  407. margin-bottom: 20PX;
  408. }
  409. &.n_02 {
  410. background: url('../../assets/images/sunVillage_info/index_icon_02.png') no-repeat center top;
  411. background-size: 50%;
  412. margin-bottom: 20PX;
  413. }
  414. &.n_03 {
  415. background: url('../../assets/images/sunVillage_info/index_icon_03.png') no-repeat center top;
  416. background-size: 50%;
  417. margin-bottom: 20PX;
  418. }
  419. &.n_04 {
  420. background: url('../../assets/images/sunVillage_info/index_icon_04.png') no-repeat center top;
  421. background-size: 50%;
  422. margin-bottom: 20PX;
  423. }
  424. &.n_05 {
  425. background: url('../../assets/images/sunVillage_info/index_icon_05.png') no-repeat center top;
  426. background-size: 50%;
  427. margin-bottom: 20PX;
  428. }
  429. &.n_06 {
  430. background: url('../../assets/images/sunVillage_info/index_icon_06.png') no-repeat center top;
  431. background-size: 50%;
  432. margin-bottom: 20PX;
  433. }
  434. &.n_07 {
  435. background: url('../../assets/images/sunVillage_info/index_icon_07.png') no-repeat center top;
  436. background-size: 50%;
  437. margin-bottom: 20PX;
  438. }
  439. }
  440. .icon{
  441. padding: 15px;
  442. border-radius: 10px;
  443. box-sizing: border-box;
  444. width: 80px;
  445. height: 80px;
  446. text-align:center;
  447. }
  448. .icon img{
  449. width:50px;
  450. }
  451. }
  452. }
  453. .footer{
  454. width: 100%;
  455. font-size: 22px;
  456. color: #3f3d56;
  457. text-align: center;
  458. padding-top: 20px;
  459. padding-bottom: 25PX;
  460. }
  461. }
  462. </style>