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

241 line
10 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. >
  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. <van-row v-show="form.transferType==1||form.transferType=='常用转账'">
  82. <van-col span="6" align="right">
  83. <p class="icon_jian" v-show="processList.支付状态==1"><van-icon name="minus" size="14" /></p>
  84. <p class="icon_jian blue" v-show="processList.支付状态==2"><van-icon name="success" size="14" /></p>
  85. <p class="icon_jian red" v-show="processList.支付状态==3"><van-icon name="cross" size="14" /></p>
  86. </van-col>
  87. <van-col span="18">
  88. <p v-show="processList.支付状态==1">待支付</p>
  89. <p v-show="processList.支付状态==2" class="textBlue">支付成功</p>
  90. <p v-show="processList.支付状态==3" class="textRed">支付异常</p>
  91. <van-row>
  92. <van-col span="24" style="padding: 0;">
  93. <p v-show="processList.支付状态==2||processList.支付状态==3">支付时间:{{processList.支付时间}}</p>
  94. </van-col>
  95. </van-row>
  96. </van-col>
  97. </van-row>
  98. <van-row v-show="form.transferType==1||form.transferType=='常用转账'">
  99. <van-col span="6" align="right">
  100. <p class="icon_jian" v-show="processList.入账状态==1"><van-icon name="minus" size="14" /></p>
  101. <p class="icon_jian blue" v-show="processList.入账状态==2"><van-icon name="success" size="14" /></p>
  102. <p class="icon_jian red" v-show="processList.入账状态==3"><van-icon name="cross" size="14" /></p>
  103. </van-col>
  104. <van-col span="18">
  105. <p v-show="processList.入账状态==1">未入账</p>
  106. <p v-show="processList.入账状态==2" class="textBlue">入账成功</p>
  107. <p v-show="processList.入账状态==3" class="textRed">入账异常</p>
  108. <van-row>
  109. <van-col span="24" style="padding: 0;">
  110. <p v-show="processList.入账状态==2||processList.入账状态==3">入账时间:{{processList.入账时间}}</p>
  111. </van-col>
  112. </van-row>
  113. </van-col>
  114. </van-row>
  115. </div>
  116. </div>
  117. </template>
  118. <script>
  119. import {
  120. getTransferProcess,
  121. getTransfer,
  122. getProjectto,
  123. queryTransferDetail
  124. } from "@/api/onlineHome/bankAgriculture/paymentApproval";
  125. export default {
  126. name: "approvalProcess",
  127. data() {
  128. return {
  129. processList:{},
  130. form:{}
  131. };
  132. },
  133. created() {
  134. this.handleUpdate(this.$route.query.id);
  135. },
  136. methods: {
  137. //查询审批进程
  138. getTransferProcess(id){
  139. getTransferProcess(id).then(res => {
  140. this.processList = res.data.processSchedule
  141. console.log(res.data.processSchedule)
  142. this.processList.乡镇审批时间 = this.processList.乡镇审批时间?this.format(this.processList.乡镇审批时间, "yyyy-MM-dd HH:mm:ss"):""
  143. this.processList.区县审批时间 = this.processList.区县审批时间?this.format(this.processList.区县审批时间, "yyyy-MM-dd HH:mm:ss"):""
  144. this.processList.支付状态时间 = this.processList.支付状态时间?this.format(this.processList.支付状态时间, "yyyy-MM-dd HH:mm:ss"):""
  145. this.processList.入账状态时间 = this.processList.入账状态时间?this.format(this.processList.入账状态时间, "yyyy-MM-dd HH:mm:ss"):""
  146. })
  147. },
  148. handleUpdate(id) {
  149. getTransfer(id).then((response) => {
  150. this.form = response.data;
  151. this.processList = {}
  152. this.getTransferProcess(this.$route.query.id);
  153. if(this.form.capitalExpenditureType==2){
  154. this.capitalExpenditureOpen = true
  155. let param={
  156. 'outId' : this.form.id,
  157. 'ynType' : '1'
  158. }
  159. getProjectto(param).then(res => {
  160. this.projectForm = res.data
  161. this.projectForm.projectFundType+=""
  162. queryTransferDetail(id).then((r) => {
  163. this.chargeItme = r.rows;
  164. this.length = this.chargeItme.length;
  165. this.detailTotal = r.total;
  166. this.loading = false;
  167. });
  168. })
  169. }else{
  170. this.capitalExpenditureOpen = false
  171. queryTransferDetail(id).then((r) => {
  172. this.chargeItme = r.rows;
  173. this.length = this.chargeItme.length;
  174. this.detailTotal = r.total;
  175. this.loading = false;
  176. });
  177. }
  178. });
  179. },
  180. },
  181. }
  182. </script>
  183. <style scoped lang="scss">
  184. .app-container {
  185. padding: 0.2rem 0;
  186. }
  187. .main_box{
  188. width: 96%;
  189. margin: 0 auto;
  190. border-radius: 6px;
  191. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  192. overflow: hidden;
  193. background-color: #FFF;
  194. padding: 20Px 0;
  195. }
  196. .icon_jian{
  197. background-color: #C9C9C9;
  198. display: inline-block;
  199. width: 20Px;
  200. height: 20Px;
  201. line-height: 24Px;
  202. text-align: center;
  203. border-radius: 50%;
  204. color: #FFF;
  205. }
  206. .blue{
  207. background-color: #1D6FE9;
  208. }
  209. .red{
  210. background-color: rgb(245, 108, 108);
  211. }
  212. .textBlue{
  213. color: #1D6FE9!important;
  214. }
  215. .textRed{
  216. color: rgb(245, 108, 108)!important;
  217. }
  218. .van-col{
  219. padding: 20Px 10Px;
  220. }
  221. .van-col:nth-child(2){
  222. font-size: 16Px;
  223. color: #878787;
  224. line-height: 22Px;
  225. }
  226. .van-row{
  227. .van-row{
  228. .van-col{
  229. padding: 5Px 0 0 0!important;
  230. color: #878787;
  231. }
  232. }
  233. }
  234. </style>