移动端
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

175 líneas
7.0 KiB

  1. done.vue<template>
  2. <div>
  3. <van-nav-bar
  4. title="已办事项"
  5. />
  6. <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white" style="width: 96%;margin: 2%;height:150px;border-radius: 6px;">
  7. <van-swipe-item v-for="(image,index) in images" :key="index">
  8. <img :src="image" style="width:100%;height: 150px"/>
  9. </van-swipe-item>
  10. </van-swipe>
  11. <van-cell-group @click="goDetail(item)" v-for="(item,index) in taskList" :key="index" style="width: 96%;margin:2%;border-radius: 6px;overflow: hidden;padding-top: 10px;padding-bottom: 10px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);">
  12. <van-cell>
  13. <template #title>
  14. <van-row style="">
  15. <van-col span="23" :offset="1">
  16. <h3 style="display: inline-block;line-height: 30px;margin-left: 6px;width: 100%;overflow: hidden;">
  17. <van-image
  18. height="20"
  19. width="20"
  20. style="vertical-align: middle;margin-right: 10px"
  21. src="../../../../static/images/onlineHome/done.png"></van-image>{{item.systemType =='4'?selectDictLabel(transferTypeOptions, item.data.transferType):item.auditName}}</h3>
  22. </van-col>
  23. </van-row>
  24. </template>
  25. </van-cell>
  26. <van-cell>
  27. <template #title>
  28. <van-row>
  29. <van-col span="6" :offset="1">
  30. <p style="color: #878787">{{item.auditTime.substring(0,10)}}</p>
  31. </van-col>
  32. <van-col span="10" :offset="1">
  33. <p style="color: #878787">{{item.businessType}}</p>
  34. </van-col>
  35. <van-col span="5" :offset="1">
  36. <p style="font-size: 14px;font-weight:bold;text-align: right;color: #1D6FE9">{{activeName=='1'?'待审批':'已审批'}}</p>
  37. </van-col>
  38. </van-row>
  39. </template>
  40. </van-cell>
  41. </van-cell-group>
  42. <van-empty v-if="taskList.length<1" description="暂无事项" />
  43. <yinnongIndex></yinnongIndex>
  44. </div>
  45. </template>
  46. <script>
  47. import onlineHomeIndex from "../../onlineHomeIndex";
  48. import yinnongIndex from "../../yinnongIndex";
  49. import {A_myDoneList} from "../../../api/audit/aauditpipeline";
  50. export default {
  51. components: {
  52. onlineHomeIndex,
  53. yinnongIndex
  54. },
  55. name: "done",
  56. data(){
  57. return{
  58. taskList:[],
  59. transferTypeOptions:[],
  60. activeName:this.$route.query.activeName?this.$route.query.activeName:'2',
  61. total:0,
  62. queryParams: {
  63. pageNum: 1,
  64. pageSize: 5,
  65. },
  66. activityBusinessTypeOptions:[],
  67. images:['../../../../static/images/yinnong/banner_02.jpg'],
  68. }
  69. },
  70. created() {
  71. this.getDicts("transfer_type").then(response => {
  72. this.transferTypeOptions = response.data;
  73. });
  74. this.getDicts("activity_business_type").then((response) => {
  75. this.activityBusinessTypeOptions = response.data;
  76. if(this.$route.query.activeName){
  77. this.activeName = this.$route.query.activeName
  78. }
  79. this.getList();
  80. });
  81. console.log(this.$route.query.fr)
  82. if(this.$route.query.fr){
  83. this.$cookies.set("from",this.$route.query.fr,"0")
  84. }
  85. },
  86. methods: {
  87. goOnlineHomeIndex(){
  88. if(this.$cookies.get("from")=="my"){
  89. this.$router.push({name:"yinnongMy"})
  90. }else{
  91. this.$router.push({name:"yinnongWorkbench"})
  92. }
  93. },
  94. getList() {
  95. this.taskList = []
  96. // this.$set(this.queryParams, "systemType", '4');
  97. A_myDoneList(this.queryParams).then((response) => {
  98. response.rows.map(res => {
  99. // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
  100. // res.tableName = '来自农村宅基地管理系统'
  101. // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
  102. // res.tableName = '来自银农直联审批管理系统'
  103. // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
  104. // res.tableName = '来自银农直联审批管理系统'
  105. // }
  106. if(this.activityBusinessTypeOptions){
  107. this.activityBusinessTypeOptions.map(t => {
  108. if(t.dictValue == res.businessType){
  109. res.businessType = t.dictLabel
  110. this.taskList.push(res)
  111. }
  112. });
  113. }
  114. })
  115. })
  116. },
  117. goDetail(item){
  118. console.log(item)
  119. let type = item.tableName;
  120. switch (type) {
  121. case 't_homeuse_zyyctc':
  122. this.$router.push({name:'sunVillageInfoPaidExitDetailNew',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done",electronicSignature:this.electronicSignature,nickName:this.nickName}})
  123. break;
  124. case 't_homeapply_ydjfys':
  125. case 't_homeapply_ydjfkg':
  126. this.$router.push({name:'sunVillageInfoProposerLiteNew',query: {id:item.data.ydjfsqId,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  127. break;
  128. case 't_homeapply_ydjfsq':
  129. this.$router.push({name:'sunVillageInfoProposerLiteNew',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  130. break;
  131. case 'baseApply':
  132. case 'landscope':
  133. case 'accepting':
  134. this.$router.push({name:'approvalForm',query: {id:item.formData.id,taskId:item.taskId,instanceId:item.formData.instanceId,type:item.type}})
  135. break;
  136. case 'toReviewTransferProcess':
  137. case 't_yinnong_transfer':
  138. if(item.data.transferType == '10'){
  139. this.$router.push({name:'approvalApproval10',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  140. break;
  141. }
  142. if(item.data.transferType == '11'){
  143. this.$router.push({name:'approvalApproval11',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  144. break;
  145. }
  146. if(item.data.transferType == '12'){
  147. this.$router.push({name:'approvalApproval12',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  148. break;
  149. }
  150. if(item.data.transferType != '10'&&item.data.transferType != '11'&&item.data.transferType != '12'){
  151. this.$router.push({name:'approvalApproval',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  152. break;
  153. }
  154. case 'yinnong_majorevent':
  155. this.$router.push({name:'approvalApproval13',query: {id:item.formData.id,taskId:item.taskId,type:item.type}})
  156. break;
  157. }
  158. }
  159. },
  160. }
  161. </script>
  162. <style scoped>
  163. >>>.my-swipe .van-swipe-item {
  164. color: #fff;
  165. font-size: 20px;
  166. line-height: 144px;
  167. text-align: center;
  168. }
  169. </style>