移动端
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

182 líneas
5.1 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. left-arrow
  5. fixed
  6. placeholder
  7. @click-left="$router.back(-1)"
  8. @click-right="goAdd"
  9. >
  10. <template #title>
  11. <p style="font-weight: bold;">自主经营</p>
  12. </template>
  13. <template #right>
  14. <van-icon name="add" size="18" />
  15. </template>
  16. </van-nav-bar>
  17. <van-list
  18. v-model="loading"
  19. :finished="finished"
  20. finished-text="没有更多了"
  21. @load="getList"
  22. >
  23. <van-swipe-cell v-for="(item,index) in applicationList" :key="index">
  24. <van-cell :title="item.zjddm" center :to="{name:'paidUtilizeDteail', query: {id:item.id}}" >
  25. <template #icon>
  26. <div class="icon" style="background:#FFA63E;width: 45px;">
  27. <van-icon name="../../../../static/images/onlineHome/icon_zzjy.png" size="30" color="#539FFD" style="margin-left: 3px;margin-top: 3px;" />
  28. </div>
  29. </template>
  30. <template #label>
  31. <p>{{item.zcfmc}}{{item.zcfdh}}</p>
  32. </template>
  33. </van-cell>
  34. <!-- <template #right>-->
  35. <!-- <van-row>-->
  36. <!-- <van-col>-->
  37. <!-- <van-button color="#7DDA4F" v-if="item.auditStatus=='草稿'" square text="提交" @click="goSubmit(item.id,index)" type="primary" class="delete-button" />-->
  38. <!-- </van-col>-->
  39. <!-- <van-col>-->
  40. <!-- <van-button square text="修改" v-if="item.auditStatus=='草稿'" :to="{name:'paidUtilizeModify', query: {id:item.id}}" type="info" class="delete-button" />-->
  41. <!-- </van-col>-->
  42. <!-- <van-col>-->
  43. <!-- <van-button square text="删除" v-if="item.auditStatus=='草稿'" @click="deleteList(item.id,index)" type="danger" class="delete-button" />-->
  44. <!-- </van-col>-->
  45. <!-- </van-row>-->
  46. <!-- </template>-->
  47. </van-swipe-cell>
  48. </van-list>
  49. </div>
  50. </template>
  51. <script>
  52. import { getList } from "@/api/onlineHome/phfs/phfs";
  53. import {getGeoServerConfigKey} from "@/api/system/config";
  54. export default {
  55. name: "paidUtilizeList",
  56. data() {
  57. return {
  58. applicationList:[],
  59. houseApplyStatus:[],
  60. sexStatus:[],
  61. tclxStatus:[],
  62. tcfsStatus:[],
  63. auditStatus:[],
  64. loading: false,
  65. finished: false,
  66. queryParams:{
  67. pageNum:1,
  68. pageSize:10,
  69. orderByColumn:'id',
  70. isAsc:'desc'
  71. },
  72. //地图服务地址
  73. mapGeoServerUrl:"",
  74. };
  75. },
  76. created() {
  77. this.houseGetDicts("sex").then((res) => {
  78. this.sexStatus = res.data;
  79. });
  80. },
  81. methods: {
  82. goAdd(){
  83. window.location = 'zzjyAdd';
  84. },
  85. getList(){
  86. setTimeout(() => {
  87. getList(this.queryParams).then(response => {
  88. console.log(response)
  89. for (var i = 0; i < response.rows.length; i++) {
  90. response.rows[i].zcfxb = this.selectDictLabel(this.sexStatus, response.rows[i].zcfxb)
  91. this.applicationList.push(response.rows[i]);
  92. console.log(this.applicationList);
  93. }
  94. if(this.applicationList.length >= response.total){
  95. this.finished = true;
  96. return;
  97. }else{
  98. this.loading = false;
  99. this.queryParams.pageNum += 1 ;
  100. }
  101. });
  102. }, 1000);
  103. },
  104. deleteList(id,index){
  105. this.$dialog.confirm({
  106. message: '您确认删除申请草稿?',
  107. })
  108. .then(() => {
  109. // on confirm
  110. this.applicationList.splice(index,1)
  111. removeList(id).then(res => {
  112. if(res.code = 200){
  113. this.$toast.success('删除成功');
  114. }
  115. });
  116. })
  117. .catch(() => {
  118. // on cancel
  119. });
  120. },
  121. goSubmit(id,index){
  122. this.$dialog.confirm({
  123. message: '您确认提交草稿?',
  124. })
  125. .then(() => {
  126. // on confirm
  127. submitApply(id).then(res => {
  128. if(res.code = 200){
  129. this.$toast.success('提交成功!');
  130. setTimeout(function(){
  131. history.go(0)
  132. },2000)
  133. }
  134. });
  135. })
  136. .catch(() => {
  137. // on cancel
  138. });
  139. }
  140. },
  141. }
  142. </script>
  143. <style scoped lang="scss">
  144. .app-container {
  145. padding: 0.2rem 3%;
  146. }
  147. /deep/.van-cell__title{
  148. flex: 0.7;
  149. }
  150. /deep/.van-cell__title span{
  151. font-family: Arial;
  152. font-size: 0.4rem;
  153. font-weight: normal;
  154. }
  155. /deep/.van-cell__value{
  156. flex: 0.3;
  157. color: #1D6FE9;
  158. font-weight: bold;
  159. }
  160. /deep/.van-swipe-cell{
  161. margin-bottom: 0.2rem;
  162. border-radius: 0.2rem;
  163. overflow: hidden;
  164. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  165. }
  166. /deep/van-ellipsis{
  167. font-weight: bold;
  168. }
  169. .delete-button {
  170. height: 100%;
  171. }
  172. .van-row{
  173. height: 100%;
  174. }
  175. .van-col{
  176. height: 100%;
  177. }
  178. </style>