移动端
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.

252 lignes
10 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. import {selectDictLabel} from "@/utils/utils";
  64. export default {
  65. components: {
  66. PagedList,
  67. onlineHomeIndex,
  68. yinnongIndex
  69. },
  70. name: "done",
  71. data(){
  72. return{
  73. loading:false,
  74. finished:false,
  75. taskList:[],
  76. transferTypeOptions:[],
  77. activeName:this.$route.query.activeName?this.$route.query.activeName:'2',
  78. total:0,
  79. queryParams: {
  80. pageNum: 1,
  81. pageSize: 20,
  82. systemType: null,
  83. deptId: null,
  84. translate_dict:'1'
  85. },
  86. activityBusinessTypeOptions:[],
  87. images:['../../../../static/images/yinnong/banner_02.jpg'],
  88. }
  89. },
  90. created() {
  91. this.getDicts("transfer_type").then(response => {
  92. this.transferTypeOptions = response.data;
  93. });
  94. this.getDicts("activity_business_type").then((response) => {
  95. this.activityBusinessTypeOptions = response.data;
  96. if(this.$route.query.activeName){
  97. this.activeName = this.$route.query.activeName
  98. }
  99. });
  100. //console.log(this.$route.query.fr)
  101. if(this.$route.query.fr){
  102. this.$cookies.set("from",this.$route.query.fr,"0")
  103. }
  104. },
  105. methods: {
  106. goOnlineHomeIndex(){
  107. if(this.$cookies.get("from")=="my"){
  108. this.$router.push({name:"yinnongMy"})
  109. }else{
  110. this.$router.push({name:"yinnongWorkbench"})
  111. }
  112. },
  113. getListReq(pageInfo) {
  114. //console.log(pageInfo, this.queryParams.pageNum, this.queryParams.pageSize)
  115. this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
  116. return new Promise((resolve, reject) => {
  117. A_myDoneList(this.queryParams).then((response) => {
  118. //console.info(_this.taskList.length)
  119. response.rows.forEach(res => {
  120. // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
  121. // res.tableName = '来自农村宅基地管理系统'
  122. // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
  123. // res.tableName = '来自银农直联审批管理系统'
  124. // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
  125. // res.tableName = '来自银农直联审批管理系统'
  126. // }
  127. res.businessType = this.selectDictLabel(this.activityBusinessTypeOptions, res.businessType);
  128. this.taskList.push(res)
  129. });
  130. resolve(response);
  131. });
  132. });
  133. },
  134. getList() {
  135. if(this.$refs.pagedList)
  136. {
  137. this.$refs.pagedList.getList(target);
  138. return;
  139. }
  140. //this.$set(this.queryParams, "systemType", '4');
  141. this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
  142. A_myDoneList(this.queryParams).then((response) => {
  143. response.rows.map(res => {
  144. // if(res.tableName?res.tableName.indexOf('t_homeapply')>0:""){
  145. // res.tableName = '来自农村宅基地管理系统'
  146. // }else if(res.tableName?res.tableName.indexOf('sys_seal')>0:""){
  147. // res.tableName = '来自银农直联审批管理系统'
  148. // }else if(res.tableName?res.tableName.indexOf('yinnong')>0:""){
  149. // res.tableName = '来自银农直联审批管理系统'
  150. // }
  151. if(this.activityBusinessTypeOptions){
  152. this.activityBusinessTypeOptions.map(t => {
  153. if(t.dictValue == res.businessType){
  154. res.businessType = t.dictLabel
  155. this.taskList.push(res)
  156. }
  157. });
  158. }
  159. })
  160. if(this.taskList.length >= response.total){
  161. this.finished = true;
  162. return;
  163. }else{
  164. this.loading = false;
  165. this.queryParams.pageNum += 1 ;
  166. }
  167. })
  168. },
  169. goDetail(item){
  170. //console.log(item)
  171. let type = item.tableName;
  172. switch (type) {
  173. case 't_homeuse_zyyctc':
  174. this.$router.push({name:'sunVillageInfoPaidExitDetailNew',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done",electronicSignature:this.electronicSignature,nickName:this.nickName}})
  175. break;
  176. case 't_homeapply_ydjfys':
  177. case 't_homeapply_ydjfkg':
  178. this.$router.push({name:'sunVillageInfoProposerLiteNew',query: {id:item.data.ydjfsqId,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  179. break;
  180. case 't_homeapply_ydjfsq':
  181. this.$router.push({name:'sunVillageInfoProposerLiteNew',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  182. break;
  183. case 'baseApply':
  184. case 'landscope':
  185. case 'accepting':
  186. this.$router.push({name:'approvalForm',query: {id:item.formData.id,taskId:item.taskId,instanceId:item.formData.instanceId,type:item.type}})
  187. break;
  188. case 'toReviewTransferProcess':
  189. case 't_yinnong_transfer':
  190. if(item.data.transferType == '10'){
  191. this.$router.push({name:'approvalApproval10',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  192. break;
  193. }
  194. if(item.data.transferType == '11'){
  195. this.$router.push({name:'approvalApproval11',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  196. break;
  197. }
  198. if(item.data.transferType == '12'){
  199. this.$router.push({name:'approvalApproval12',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  200. break;
  201. }
  202. if(item.data.transferType != '10'&&item.data.transferType != '11'&&item.data.transferType != '12'){
  203. this.$router.push({name:'approvalApproval',query: {id:item.data.id,taskId:item.id,auditbatchNo:item.auditbatchNo,type:"done"}})
  204. break;
  205. }
  206. case 'yinnong_majorevent':
  207. case 't_yinnong_majorevent':
  208. this.$router.push({name:'approvalApproval13',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"done"}})
  209. break;
  210. case 't_yinnong_cashexpense':
  211. this.$router.push({
  212. path: '/yinnong/cashExpenseApproval',
  213. query: { id: item.data.id, taskId: item.id, auditbatchNo: item.auditbatchNo, type: "done" }
  214. });
  215. break;
  216. case 't_sys_seal':
  217. this.$router.push({name:'sealApproval',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"done"}})
  218. break;
  219. case 't_sys_asset':
  220. this.$router.push({name:'assetApproval',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"done"}})
  221. break;
  222. case 't_sys_contraction':
  223. this.$router.push({name:'contractionApproval',query: {id:item.data.id,taskId:item.id, auditbatchNo: item.auditbatchNo, type:"done"}})
  224. break;
  225. case 't_cashier_funds':
  226. this.$router.push({name:'approvalApprovalFuns',query: {id:item.data.id, taskId:item.id, type:"done"}})
  227. break;
  228. }
  229. }
  230. },
  231. }
  232. </script>
  233. <style scoped>
  234. >>>.my-swipe .van-swipe-item {
  235. color: #fff;
  236. font-size: 20px;
  237. line-height: 144px;
  238. text-align: center;
  239. }
  240. </style>