移动端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.vue 18 KiB

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