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

doneNew.vue 10 KiB

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