移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

approvalProcess.vue 8.0 KiB

3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. >
  9. <template #title>
  10. <p style="font-weight: bold;">付款申请流程</p>
  11. </template>
  12. </van-nav-bar>
  13. <div class="main_box">
  14. <van-row v-if="processList.待申请!=2">
  15. <van-col span="6" align="right"><p class="icon_jian blue"><van-icon name="success" size="14" /></p></van-col>
  16. <van-col span="18" class="textBlue">草稿</van-col>
  17. </van-row>
  18. <van-row v-if="processList.待申请==2">
  19. <van-col span="6" align="right"><p class="icon_jian blue"><van-icon name="success" size="14" /></p></van-col>
  20. <van-col span="18" class="textBlue">已申请
  21. <van-row>
  22. <van-col span="24" style="padding: 0;" class="textBlue" v-show="processList.待申请==2">申请人:{{processList.申请人}}</van-col>
  23. </van-row>
  24. <van-row>
  25. <van-col span="24" style="padding: 0;" class="textBlue" v-show="processList.待申请==2">申请时间:{{processList.申请时间}}</van-col>
  26. </van-row>
  27. </van-col>
  28. </van-row>
  29. <van-row>
  30. <van-col span="6" align="right">
  31. <p class="icon_jian" v-show="processList.乡镇审批==1"><van-icon name="minus" size="14" /></p>
  32. <p class="icon_jian blue" v-show="processList.乡镇审批==2"><van-icon name="success" size="14" /></p>
  33. <p class="icon_jian red" v-show="processList.乡镇审批==3"><van-icon name="cross" size="14" /></p>
  34. </van-col>
  35. <van-col span="18">
  36. <p v-show="processList.乡镇审批==1">乡镇审批</p>
  37. <p v-show="processList.乡镇审批==2" class="textBlue">乡镇审批</p>
  38. <p v-show="processList.乡镇审批==3" class="textRed">乡镇审批</p>
  39. <van-row>
  40. <van-col span="24" style="padding: 0;" v-if="processList.乡镇审批人!=null&&processList.乡镇审批人!=''">
  41. <p v-show="processList.乡镇审批==1">审批人:{{processList.乡镇审批人}}</p>
  42. <p v-show="processList.乡镇审批==2" class="textBlue">审批人:{{processList.乡镇审批人}}</p>
  43. <p v-show="processList.乡镇审批==3" class="textRed">审批人:{{processList.乡镇审批人}}</p>
  44. </van-col>
  45. </van-row>
  46. <van-row>
  47. <van-col span="24" style="padding: 0;" v-if="processList.乡镇审批时间!=null&&processList.乡镇审批时间!=''">
  48. <p v-show="processList.乡镇审批==1">审批时间:{{processList.乡镇审批时间}}</p>
  49. <p v-show="processList.乡镇审批==2" class="textBlue">审批时间:{{processList.乡镇审批时间}}</p>
  50. <p v-show="processList.乡镇审批==3" class="textRed">审批时间:{{processList.乡镇审批时间}}</p>
  51. </van-col>
  52. </van-row>
  53. </van-col>
  54. </van-row>
  55. <van-row v-if="form.approveLevel==2">
  56. <van-col span="6" align="right">
  57. <p class="icon_jian" v-show="processList.区县审批==1"><van-icon name="minus" size="14" /></p>
  58. <p class="icon_jian blue" v-show="processList.区县审批==2"><van-icon name="success" size="14" /></p>
  59. <p class="icon_jian red" v-show="processList.区县审批==3"><van-icon name="cross" size="14" /></p>
  60. </van-col>
  61. <van-col span="18">
  62. <p v-show="processList.区县审批==1">区县审批</p>
  63. <p v-show="processList.区县审批==2" class="textBlue">区县审批</p>
  64. <p v-show="processList.区县审批==3" class="textRed">区县审批</p>
  65. <van-row>
  66. <van-col span="24" style="padding: 0;" v-if="processList.区县审批人!=null&&processList.区县审批人!=''">
  67. <p v-show="processList.区县审批==1">审批人:{{processList.区县审批人}}</p>
  68. <p v-show="processList.区县审批==2" class="textBlue">审批人:{{processList.区县审批人}}</p>
  69. <p v-show="processList.区县审批==3" class="textRed">审批人:{{processList.区县审批人}}</p>
  70. </van-col>
  71. </van-row>
  72. <van-row>
  73. <van-col span="24" style="padding: 0;" v-if="processList.区县审批时间!=null&&processList.区县审批时间!=''">
  74. <p v-show="processList.区县审批==1">审批时间:{{processList.区县审批时间}}</p>
  75. <p v-show="processList.区县审批==2" class="textBlue">审批时间:{{processList.区县审批时间}}</p>
  76. <p v-show="processList.区县审批==3" class="textRed">审批时间:{{processList.区县审批时间}}</p>
  77. </van-col>
  78. </van-row>
  79. </van-col>
  80. </van-row>
  81. </div>
  82. </div>
  83. </template>
  84. <script>
  85. import {
  86. getTransferProcess,
  87. getTransfer,
  88. getProjectto,
  89. queryTransferDetail
  90. } from "@/api/onlineHome/bankAgriculture/paymentApproval";
  91. export default {
  92. name: "approvalProcess",
  93. data() {
  94. return {
  95. processList:{},
  96. form:{}
  97. };
  98. },
  99. created() {
  100. this.handleUpdate(this.$route.query.id);
  101. },
  102. methods: {
  103. //查询审批进程
  104. getTransferProcess(id){
  105. getTransferProcess(id).then(res => {
  106. this.processList = res.data.processSchedule
  107. console.log(res.data.processSchedule)
  108. this.processList.乡镇审批时间 = this.processList.乡镇审批时间?this.format(this.processList.乡镇审批时间, "yyyy-MM-dd HH:mm:ss"):""
  109. this.processList.区县审批时间 = this.processList.区县审批时间?this.format(this.processList.区县审批时间, "yyyy-MM-dd HH:mm:ss"):""
  110. this.processList.支付状态时间 = this.processList.支付状态时间?this.format(this.processList.支付状态时间, "yyyy-MM-dd HH:mm:ss"):""
  111. this.processList.入账状态时间 = this.processList.入账状态时间?this.format(this.processList.入账状态时间, "yyyy-MM-dd HH:mm:ss"):""
  112. })
  113. },
  114. handleUpdate(id) {
  115. getTransfer(id).then((response) => {
  116. this.form = response.data;
  117. console.log(this.form)
  118. this.processList = {}
  119. this.getTransferProcess(this.$route.query.id);
  120. if(this.form.capitalExpenditureType==2){
  121. this.capitalExpenditureOpen = true
  122. let param={
  123. 'outId' : this.form.id,
  124. 'ynType' : '1'
  125. }
  126. getProjectto(param).then(res => {
  127. this.projectForm = res.data
  128. this.projectForm.projectFundType+=""
  129. queryTransferDetail(id).then((r) => {
  130. this.chargeItme = r.rows;
  131. this.length = this.chargeItme.length;
  132. this.detailTotal = r.total;
  133. this.loading = false;
  134. });
  135. })
  136. }else{
  137. this.capitalExpenditureOpen = false
  138. queryTransferDetail(id).then((r) => {
  139. this.chargeItme = r.rows;
  140. this.length = this.chargeItme.length;
  141. this.detailTotal = r.total;
  142. this.loading = false;
  143. });
  144. }
  145. });
  146. },
  147. },
  148. }
  149. </script>
  150. <style scoped lang="scss">
  151. .app-container {
  152. padding: 0.2rem 0;
  153. }
  154. .main_box{
  155. width: 96%;
  156. margin: 0 auto;
  157. border-radius: 6px;
  158. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  159. overflow: hidden;
  160. background-color: #FFF;
  161. padding: 20Px 0;
  162. }
  163. .icon_jian{
  164. background-color: #C9C9C9;
  165. display: inline-block;
  166. width: 20Px;
  167. height: 20Px;
  168. line-height: 24Px;
  169. text-align: center;
  170. border-radius: 50%;
  171. color: #FFF;
  172. }
  173. .blue{
  174. background-color: #1D6FE9;
  175. }
  176. .red{
  177. background-color: rgb(245, 108, 108);
  178. }
  179. .textBlue{
  180. color: #1D6FE9!important;
  181. }
  182. .textRed{
  183. color: rgb(245, 108, 108)!important;
  184. }
  185. .van-col{
  186. padding: 20Px 10Px;
  187. }
  188. .van-col:nth-child(2){
  189. font-size: 16Px;
  190. color: #878787;
  191. line-height: 22Px;
  192. }
  193. .van-row{
  194. .van-row{
  195. .van-col{
  196. padding: 5Px 0 0 0!important;
  197. color: #878787;
  198. }
  199. }
  200. }
  201. </style>