移动端
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

326 wiersze
13 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-sticky>
  4. <van-nav-bar
  5. title=""
  6. >
  7. <template #left>
  8. <van-icon name="location" color="3A80FB" size="16"/>
  9. <p style="color: #878787;margin-left: 5px" @click="selectDept">{{deptName}}</p>
  10. <van-popup v-model="villageVisbile" round position="bottom" get-container="#app">
  11. <van-cascader
  12. v-model="villageValue"
  13. title="请选择所在村"
  14. :options="hcAreaInfoOption"
  15. @close="hcAreaInfoClose"
  16. @finish="hcAreaInfoFinish"
  17. active-color="#1989fa"
  18. :field-names="hcAreaInfoFieldName"
  19. />
  20. </van-popup>
  21. </template>
  22. <template #right>
  23. <!-- <van-icon name="wap-nav" color="#000" size="18"/>-->
  24. <p style="color: #878787;margin-left: 5px" @click="bookVisbile = true">{{bookName}}</p>
  25. <van-popup v-model="bookVisbile" round position="bottom" get-container="#app">
  26. <van-picker
  27. title="请选择账套"
  28. show-toolbar
  29. :columns="bookList"
  30. @confirm="onConfirmBook"
  31. @cancel="onCancelBook"
  32. value-key="bookName"
  33. />
  34. </van-popup>
  35. </template>
  36. </van-nav-bar>
  37. </van-sticky>
  38. <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white" style="width: 96%;margin: 2%;height:150px;border-radius: 6px;">
  39. <van-swipe-item v-for="(image,index) in images" :key="index">
  40. <img :src="image" style="width:100%;height: 150px"/>
  41. </van-swipe-item>
  42. </van-swipe>
  43. <!-- <van-row style="min-height: 100px;" class="indexCard">-->
  44. <!-- <van-cell style="border-radius: 6px;" is-link :to="{path:'done',query:{fr:'workbench'}}">-->
  45. <!-- <template #title>-->
  46. <!-- <p style="display:inline-block;background: #EC4B2C;height:20px;width: 20px;border-radius: 2px;margin-right: 10px;float: left"></p>-->
  47. <!-- <p style="font-weight: bold;font-size: 18px;display: inline-block;">待办</p>-->
  48. <!-- </template>-->
  49. <!-- <template #label>-->
  50. <!-- <p style="padding-left: 10px;">-->
  51. <!-- {{taskList&&taskList.length>0?taskList[0].projectName+'等,共'+taskList.length+'条':'暂无待办事项'}}-->
  52. <!-- </p>-->
  53. <!-- </template>-->
  54. <!-- </van-cell>-->
  55. <!-- </van-row>-->
  56. <van-row class="indexCard" v-for="( item , index) in menusList" :key="index">
  57. <van-cell style="border-radius: 6px;">
  58. <template #title>
  59. <p style="font-weight: bold;font-size: 18px;display: inline-block">{{item.modleName}}</p>
  60. </template>
  61. </van-cell>
  62. <van-grid :border="false">
  63. <!-- 'yinnongListBalanceRanking'-->
  64. <van-grid-item :text="childrenItem.menuName" :to="{name:childrenItem.menuUrl}" v-for="( childrenItem , childrenIndex ) in item.menus" :key="childrenItem.id" >
  65. <div class="icon all" slot="default" >
  66. <img :src="require('@/assets/images/sunVillage_info/' + childrenItem.menuIcon)" alt />
  67. </div>
  68. <p style="margin-top: 5px;color: #666666;">{{childrenItem.menuName}}</p>
  69. </van-grid-item>
  70. </van-grid>
  71. </van-row>
  72. <!-- <van-row class="indexCard">-->
  73. <!-- <van-cell style="border-radius: 6px;">-->
  74. <!-- <template #title>-->
  75. <!-- <p style="font-weight: bold;font-size: 18px;display: inline-block">支出申请</p>-->
  76. <!-- </template>-->
  77. <!-- </van-cell>-->
  78. <!-- <van-grid :border="false">-->
  79. <!-- <van-grid-item text="银行卡转账" :to="{name:'approvalList'}" >-->
  80. <!-- <div class="icon" slot="default" style="background:#FF4646;" >-->
  81. <!-- <img src="../../../static/images/onlineHome/icon_Y1.png" alt />-->
  82. <!-- </div>-->
  83. <!-- <p style="margin-top: 5px;color: #666666;">银行卡转账</p>-->
  84. <!-- </van-grid-item>-->
  85. <!-- &lt;!&ndash; <van-grid-item text="代管转账" :to="{name:'approvalList4'}" >&ndash;&gt;-->
  86. <!-- &lt;!&ndash; <div class="icon" slot="default" style="background:#c568f5;" >&ndash;&gt;-->
  87. <!-- &lt;!&ndash; <img src="../../../static/images/onlineHome/icon_Y4.png" alt />&ndash;&gt;-->
  88. <!-- &lt;!&ndash; </div>&ndash;&gt;-->
  89. <!-- &lt;!&ndash; <p style="margin-top: 5px;color: #666666;">代管转账</p>&ndash;&gt;-->
  90. <!-- &lt;!&ndash; </van-grid-item>&ndash;&gt;-->
  91. <!-- <van-grid-item text="信用卡还款" :to="{name:'approvalList2'}" >-->
  92. <!-- <div class="icon" slot="default" style="background:#3ac2db;" >-->
  93. <!-- <img src="../../../static/images/onlineHome/icon_Y2.png" alt />-->
  94. <!-- </div>-->
  95. <!-- <p style="margin-top: 5px;color: #666666;">信用卡还款</p>-->
  96. <!-- </van-grid-item>-->
  97. <!-- &lt;!&ndash; <van-grid-item text="现金提现" :to="{name:'approvalList10'}" >&ndash;&gt;-->
  98. <!-- &lt;!&ndash; <div class="icon" slot="default" style="background:#FF6464;" >&ndash;&gt;-->
  99. <!-- &lt;!&ndash; <img src="../../../static/images/onlineHome/icon_Y6.png" alt />&ndash;&gt;-->
  100. <!-- &lt;!&ndash; </div>&ndash;&gt;-->
  101. <!-- &lt;!&ndash; <p style="margin-top: 5px;color: #666666;">现金提现</p>&ndash;&gt;-->
  102. <!-- &lt;!&ndash; </van-grid-item>&ndash;&gt;-->
  103. <!-- <van-grid-item text="备付金支出" :to="{name:'approvalList11'}" >-->
  104. <!-- <div class="icon" slot="default" style="background:#7790FE;" >-->
  105. <!-- <img src="../../../static/images/onlineHome/icon_Y7.png" alt />-->
  106. <!-- </div>-->
  107. <!-- <p style="margin-top: 5px;color: #666666;">备付金支出</p>-->
  108. <!-- </van-grid-item>-->
  109. <!-- <van-grid-item text="汇票支出" :to="{name:'approvalList12'}" >-->
  110. <!-- <div class="icon" slot="default" style="background:#539ffd;" >-->
  111. <!-- <img src="../../../static/images/onlineHome/icon_Y8.png" alt />-->
  112. <!-- </div>-->
  113. <!-- <p style="margin-top: 5px;color: #666666;">汇票支出</p>-->
  114. <!-- </van-grid-item>-->
  115. <!-- <van-grid-item text="收款账户" :to="{name:'collectionList'}" >-->
  116. <!-- <div class="icon" slot="default" style="background:#7dda4f;" >-->
  117. <!-- <img src="../../../static/images/onlineHome/icon_Y9.png" alt />-->
  118. <!-- </div>-->
  119. <!-- <p style="margin-top: 5px;color: #666666;">收款账户</p>-->
  120. <!-- </van-grid-item>-->
  121. <!-- <van-grid-item text="付款账户" :to="{name:'paymentAccountList'}" >-->
  122. <!-- <div class="icon" slot="default" style="background:#FF4646;" >-->
  123. <!-- <img src="../../../static/images/onlineHome/icon_Y10.png" alt />-->
  124. <!-- </div>-->
  125. <!-- <p style="margin-top: 5px;color: #666666;">付款账户</p>-->
  126. <!-- </van-grid-item>-->
  127. <!-- <van-grid-item text="开户行" :to="{name:'yinnongBankOfDepositList'}" >-->
  128. <!-- <div class="icon" slot="default" style="background:#FF6464;" >-->
  129. <!-- <img src="../../../static/images/onlineHome/icon_Y6.png" alt />-->
  130. <!-- </div>-->
  131. <!-- <p style="margin-top: 5px;color: #666666;">开户行</p>-->
  132. <!-- </van-grid-item>-->
  133. <!-- <van-grid-item text="重大事项" :to="{name:'approvalList13'}" >-->
  134. <!-- <div class="icon" slot="default" style="background:#c568f5;" >-->
  135. <!-- <img src="../../../static/images/onlineHome/icon_Y3.png" alt />-->
  136. <!-- </div>-->
  137. <!-- <p style="margin-top: 5px;color: #666666;">重大事项</p>-->
  138. <!-- </van-grid-item>-->
  139. <!-- </van-grid>-->
  140. <!-- </van-row>-->
  141. <!-- <van-row class="indexCard">-->
  142. <!-- <van-cell style="border-radius: 6px;">-->
  143. <!-- <template #title>-->
  144. <!-- <p style="font-weight: bold;font-size: 18px;display: inline-block">执法监管</p>-->
  145. <!-- </template>-->
  146. <!-- </van-cell>-->
  147. <!-- <van-grid :border="false">-->
  148. <!-- <van-grid-item text="纠纷处理" :to="{name:'sunVillageInfoArbitrationList',query: {status:'0'}}" >-->
  149. <!-- <div class="icon all" slot="default" >-->
  150. <!-- <img src="../../../static/images/66.png" alt />-->
  151. <!-- </div>-->
  152. <!-- <p style="margin-top: 5px;color: #666666;">纠纷处理</p>-->
  153. <!-- </van-grid-item>-->
  154. <!-- <van-grid-item text="巡查执法" :to="{name:'yinnongSupervisionList',query: {status:'0'}}" >-->
  155. <!-- <div class="icon all" slot="default" style="background:#1D6FE9;" >-->
  156. <!-- <img src="../../../static/images/onlineHome/icon_Z12.png" alt />-->
  157. <!-- </div>-->
  158. <!-- <p style="margin-top: 5px;color: #666666;">巡查执法</p>-->
  159. <!-- </van-grid-item>-->
  160. <!-- </van-grid>-->
  161. <!-- </van-row>-->
  162. <yinnongIndex></yinnongIndex>
  163. </div>
  164. </template>
  165. <script>
  166. import yinnongIndex from "../yinnongIndex";
  167. import {getInfo} from "../../api/login";
  168. import {changeDept, ListTodo,changeBook,menus} from "../../api/onlineHome/done";
  169. import {treeselectByUser,bookListByDeptId} from "../../api/homestead";
  170. export default {
  171. components: {
  172. yinnongIndex
  173. },
  174. name: "workbench",
  175. data() {
  176. return {
  177. list1: [],
  178. images:['../../../static/images/yinnong/banner_01.jpg'],
  179. deptName:"",
  180. queryParams: {
  181. pageNum: 1,
  182. pageSize: 100,
  183. },
  184. taskList:[],
  185. //省市区区级list
  186. hcAreaInfoOption: [],
  187. //省市区区级显示
  188. villageVisbile: false,
  189. //选中的值
  190. villageValue: "",
  191. hcAreaInfoFieldName: {
  192. text: "label",
  193. value: "value",
  194. children: "children",
  195. },
  196. //账套列表
  197. bookVisbile:false,
  198. bookList:[],
  199. bookName:"",
  200. bookId:"",
  201. book:"",
  202. menusList:[]
  203. };
  204. },
  205. created() {
  206. getInfo().then(response => {
  207. this.bookName = response.user.bookName
  208. this.deptName = response.user.deptName
  209. this.getBookList(response.user.loginDeptId);
  210. });
  211. treeselectByUser().then((res) => {
  212. if (res.code == 200) {
  213. this.hcAreaInfoOption = res.data;
  214. }
  215. }),
  216. /* this.$set(this.queryParams, "systemType", '4');
  217. ListTodo(this.queryParams).then((response) => {
  218. this.taskList = response.rows
  219. })*/
  220. menus({identityType : 4}).then((response) => {
  221. this.menusList = response.data
  222. })
  223. },
  224. methods:{
  225. onConfirmBook(e){
  226. this.bookVisbile = false
  227. this.bookName = e.bookName
  228. let param={"loginBookId":e.id}
  229. changeBook(param).then((response) => {
  230. if (response.code === 200) {
  231. this.$store.dispatch("GetInfo").then(() => {
  232. // this.$router.go(0);
  233. window.location.href = "/yinnong/workbench";
  234. });
  235. }
  236. });
  237. },
  238. onCancelBook(e){
  239. this.bookVisbile = false
  240. },
  241. getBookList(e){
  242. let params = {
  243. loginDeptID:e
  244. }
  245. bookListByDeptId(params).then((response) => {
  246. if (response.code == 200) {
  247. this.bookList = response.rows;
  248. }
  249. })
  250. },
  251. selectDept(){
  252. this.villageVisbile = true;
  253. },
  254. //关闭选择地址弹窗
  255. hcAreaInfoClose() {
  256. this.villageVisbile = false;
  257. },
  258. hcAreaInfoFinish({ value, selectedOptions, tabIndex }) {
  259. // 切换部门
  260. let Depquery={"loginDeptID":value}
  261. changeDept(Depquery).then((response) => {
  262. if (response.code === 200) {
  263. this.$store.dispatch("GetInfo").then(() => {
  264. // this.$router.go(0);
  265. window.location.href = "/yinnong/workbench";
  266. });
  267. }
  268. });
  269. this.villageVisbile = false;
  270. },
  271. }
  272. }
  273. </script>
  274. <style scoped>
  275. >>>.my-swipe .van-swipe-item {
  276. color: #fff;
  277. font-size: 20px;
  278. line-height: 144px;
  279. text-align: center;
  280. }
  281. >>>.van-grid-item__content{
  282. padding:0.213333rem;
  283. }
  284. >>>.van-cell::after{
  285. border: none;
  286. }
  287. >>>.app-container{
  288. padding:0;
  289. }
  290. >>> .icon{
  291. padding: 15px;
  292. border-radius: 10px;
  293. box-sizing: border-box;
  294. width: 80px;
  295. height: 80px;
  296. text-align:center;
  297. }
  298. >>> .icon img{
  299. width:50px;
  300. }
  301. >>> .icon.all{
  302. width: 80px;
  303. padding: 0;
  304. display: flex;
  305. align-items: center;
  306. justify-content: center;
  307. }
  308. >>> .icon.all img{
  309. width: 80px;
  310. /* padding: 0; */
  311. }
  312. >>> .indexCard{
  313. margin:2%;width:96%;padding:20px 0;padding:20px 0;border-radius: 6px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);background: #fff
  314. }
  315. </style>