移动端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

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