移动端
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

247 satır
9.9 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. <paged-list
  12. ref="pagedList"
  13. :page-num.sync="queryParams.pageNum"
  14. :page-size.sync="queryParams.pageSize"
  15. :total.sync="total"
  16. :getListFunc="getListReq"
  17. @reload="taskList = []"
  18. get-when-created
  19. :finished.sync="finished"
  20. :loading.sync="loading">
  21. <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);">
  22. <van-cell style="padding: 0 0">
  23. <template #title>
  24. <van-row style="">
  25. <van-col span="23" :offset="1">
  26. <p style="display: inline-block;line-height: 30px;margin-left: 6px;width: 100%;overflow: hidden;">
  27. <van-image
  28. height="20"
  29. width="20"
  30. style="vertical-align: middle;margin-right: 10px"
  31. src="../../../../static/images/onlineHome/done.png"></van-image>{{item.auditName}}</p>
  32. </van-col>
  33. </van-row>
  34. </template>
  35. </van-cell>
  36. <van-cell>
  37. <template #title>
  38. <van-row>
  39. <van-col span="6" :offset="1">
  40. <p style="color: #878787">{{item.auditTime.substring(0,10)}}</p>
  41. </van-col>
  42. <van-col span="10" :offset="1">
  43. <p style="color: #878787">{{item.businessType}}</p>
  44. </van-col>
  45. <van-col span="5" :offset="1">
  46. <p v-if="item.auditStatus == '2'" style="font-size: 14px;font-weight:bold;text-align: right;color: red">驳回</p>
  47. <p v-if="item.auditStatus == '3'" style="font-size: 14px;font-weight:bold;text-align: right;color: #1D6FE9">通过</p>
  48. </van-col>
  49. </van-row>
  50. </template>
  51. </van-cell>
  52. </van-cell-group>
  53. </paged-list>
  54. <van-empty v-if="taskList.length<1" description="暂无事项" />
  55. <yinnongIndex></yinnongIndex>
  56. </div>
  57. </template>
  58. <script>
  59. import onlineHomeIndex from "../../onlineHomeIndex";
  60. import yinnongIndex from "../../yinnongIndex";
  61. import {A_myDoneList, A_myTodoList} from "../../../api/audit/aauditpipeline";
  62. import PagedList from "@/components/common/PagedList.vue";
  63. export default {
  64. components: {
  65. PagedList,
  66. onlineHomeIndex,
  67. yinnongIndex
  68. },
  69. name: "done",
  70. data(){
  71. return{
  72. loading:false,
  73. finished:false,
  74. taskList:[],
  75. transferTypeOptions:[],
  76. activeName:this.$route.query.activeName?this.$route.query.activeName:'2',
  77. total:0,
  78. queryParams: {
  79. pageNum: 1,
  80. pageSize: 5,
  81. },
  82. activityBusinessTypeOptions:[],
  83. images:['../../../../static/images/yinnong/banner_02.jpg'],
  84. }
  85. },
  86. created() {
  87. this.getDicts("transfer_type").then(response => {
  88. this.transferTypeOptions = response.data;
  89. });
  90. this.getDicts("activity_business_type").then((response) => {
  91. this.activityBusinessTypeOptions = response.data;
  92. if(this.$route.query.activeName){
  93. this.activeName = this.$route.query.activeName
  94. }
  95. // this.getList();
  96. });
  97. //console.log(this.$route.query.fr)
  98. if(this.$route.query.fr){
  99. this.$cookies.set("from",this.$route.query.fr,"0")
  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. getListReq(pageInfo) {
  111. //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize);
  112. return new Promise((resolve, reject) => {
  113. A_myDoneList(this.queryParams).then((response) => {
  114. //console.info(_this.taskList.length)
  115. response.rows.forEach(res => {
  116. // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
  117. // res.tableName = '来自农村宅基地管理系统'
  118. // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
  119. // res.tableName = '来自银农直联审批管理系统'
  120. // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
  121. // res.tableName = '来自银农直联审批管理系统'
  122. // }
  123. if(this.activityBusinessTypeOptions){
  124. this.activityBusinessTypeOptions.map(t => {
  125. if(t.dictValue === res.businessType){
  126. res.businessType = t.dictLabel
  127. this.taskList.push(res)
  128. }
  129. });
  130. }
  131. });
  132. resolve(response);
  133. });
  134. });
  135. },
  136. getList() {
  137. if(this.$refs.pagedList)
  138. {
  139. this.$refs.pagedList.getList(target);
  140. return;
  141. }
  142. //this.$set(this.queryParams, "systemType", '4');
  143. this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
  144. A_myDoneList(this.queryParams).then((response) => {
  145. response.rows.map(res => {
  146. // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
  147. // res.tableName = '来自农村宅基地管理系统'
  148. // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
  149. // res.tableName = '来自银农直联审批管理系统'
  150. // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
  151. // res.tableName = '来自银农直联审批管理系统'
  152. // }
  153. if(this.activityBusinessTypeOptions){
  154. this.activityBusinessTypeOptions.map(t => {
  155. if(t.dictValue == res.businessType){
  156. res.businessType = t.dictLabel
  157. this.taskList.push(res)
  158. }
  159. });
  160. }
  161. })
  162. if(this.taskList.length >= response.total){
  163. this.finished = true;
  164. return;
  165. }else{
  166. this.loading = false;
  167. this.queryParams.pageNum += 1 ;
  168. }
  169. })
  170. },
  171. goDetail(item){
  172. //console.log(item)
  173. let type = item.tableName;
  174. switch (type) {
  175. case 't_homeuse_zyyctc':
  176. this.$router.push({name:'sunVillageInfoPaidExitDetailNew',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done",electronicSignature:this.electronicSignature,nickName:this.nickName}})
  177. break;
  178. case 't_homeapply_ydjfys':
  179. case 't_homeapply_ydjfkg':
  180. this.$router.push({name:'sunVillageInfoProposerLiteNew',query: {id:item.data.ydjfsqId,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  181. break;
  182. case 't_homeapply_ydjfsq':
  183. this.$router.push({name:'sunVillageInfoProposerLiteNew',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  184. break;
  185. case 'baseApply':
  186. case 'landscope':
  187. case 'accepting':
  188. this.$router.push({name:'approvalForm',query: {id:item.formData.id,taskId:item.taskId,instanceId:item.formData.instanceId,type:item.type}})
  189. break;
  190. case 'toReviewTransferProcess':
  191. case 't_yinnong_transfer':
  192. if(item.data.transferType == '10'){
  193. this.$router.push({name:'approvalApproval10',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  194. break;
  195. }
  196. if(item.data.transferType == '11'){
  197. this.$router.push({name:'approvalApproval11',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  198. break;
  199. }
  200. if(item.data.transferType == '12'){
  201. this.$router.push({name:'approvalApproval12',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  202. break;
  203. }
  204. if(item.data.transferType != '10'&&item.data.transferType != '11'&&item.data.transferType != '12'){
  205. this.$router.push({name:'approvalApproval',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  206. break;
  207. }
  208. case 'yinnong_majorevent':
  209. case 't_yinnong_majorevent':
  210. this.$router.push({name:'approvalApproval13',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"done"}})
  211. break;
  212. case 't_yinnong_cashexpense':
  213. this.$router.push({
  214. path: '/yinnong/cashExpenseApproval',
  215. query: { id: item.data.id, taskId: item.id, auditbatchNo: item.auditbatchNo, type: "done" }
  216. });
  217. break;
  218. case 't_sys_seal':
  219. this.$router.push({name:'sealApproval',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"done"}})
  220. break;
  221. case 't_sys_asset':
  222. this.$router.push({name:'assetApproval',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"done"}})
  223. break;
  224. }
  225. }
  226. },
  227. }
  228. </script>
  229. <style scoped>
  230. >>>.my-swipe .van-swipe-item {
  231. color: #fff;
  232. font-size: 20px;
  233. line-height: 144px;
  234. text-align: center;
  235. }
  236. </style>