移动端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

203 lignes
8.0 KiB

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