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

approvalProcess2.vue 8.1 KiB

3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. import {
  92. getCash,
  93. getTransferProcess1,
  94. listCashdetailByCashId
  95. } from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
  96. export default {
  97. name: "approvalProcess",
  98. data() {
  99. return {
  100. processList:{},
  101. form:{}
  102. };
  103. },
  104. created() {
  105. this.handleUpdate(this.$route.query.id);
  106. },
  107. methods: {
  108. //查询审批进程
  109. getTransferProcess1(id){
  110. getTransferProcess(id).then(res => {
  111. this.processList = res.data.processSchedule
  112. console.log(res.data.processSchedule)
  113. this.processList.乡镇审批时间 = this.processList.乡镇审批时间?this.format(this.processList.乡镇审批时间, "yyyy-MM-dd HH:mm:ss"):""
  114. this.processList.区县审批时间 = this.processList.区县审批时间?this.format(this.processList.区县审批时间, "yyyy-MM-dd HH:mm:ss"):""
  115. this.processList.支付状态时间 = this.processList.支付状态时间?this.format(this.processList.支付状态时间, "yyyy-MM-dd HH:mm:ss"):""
  116. this.processList.入账状态时间 = this.processList.入账状态时间?this.format(this.processList.入账状态时间, "yyyy-MM-dd HH:mm:ss"):""
  117. })
  118. },
  119. handleUpdate(id) {
  120. getCash(id).then((response) => {
  121. this.form = response.data;
  122. this.processList = {}
  123. this.getTransferProcess1(this.$route.query.id);
  124. if(this.form.capitalExpenditureType==2){
  125. this.capitalExpenditureOpen = true
  126. let param={
  127. 'outId' : this.form.id,
  128. 'ynType' : '2'
  129. }
  130. getProjectto(param).then(res => {
  131. this.projectForm = res.data
  132. this.projectForm.projectFundType+=""
  133. listCashdetailByCashId(id).then((r) => {
  134. this.chargeItme = r.data;
  135. this.length = this.chargeItme.length;
  136. this.detailTotal = r.total;
  137. this.loading = false;
  138. });
  139. })
  140. }else{
  141. this.capitalExpenditureOpen = false
  142. listCashdetailByCashId(id).then((r) => {
  143. this.chargeItme = r.data;
  144. this.length = this.chargeItme.length;
  145. this.detailTotal = r.total;
  146. this.loading = false;
  147. });
  148. }
  149. });
  150. },
  151. },
  152. }
  153. </script>
  154. <style scoped lang="scss">
  155. .app-container {
  156. padding: 0.2rem 0;
  157. }
  158. .main_box{
  159. width: 96%;
  160. margin: 0 auto;
  161. border-radius: 6px;
  162. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  163. overflow: hidden;
  164. background-color: #FFF;
  165. padding: 20Px 0;
  166. }
  167. .icon_jian{
  168. background-color: #C9C9C9;
  169. display: inline-block;
  170. width: 20Px;
  171. height: 20Px;
  172. line-height: 24Px;
  173. text-align: center;
  174. border-radius: 50%;
  175. color: #FFF;
  176. }
  177. .blue{
  178. background-color: #1D6FE9;
  179. }
  180. .red{
  181. background-color: rgb(245, 108, 108);
  182. }
  183. .textBlue{
  184. color: #1D6FE9!important;
  185. }
  186. .textRed{
  187. color: rgb(245, 108, 108)!important;
  188. }
  189. .van-col{
  190. padding: 20Px 10Px;
  191. }
  192. .van-col:nth-child(2){
  193. font-size: 16Px;
  194. color: #878787;
  195. line-height: 22Px;
  196. }
  197. .van-row{
  198. .van-row{
  199. .van-col{
  200. padding: 5Px 0 0 0!important;
  201. color: #878787;
  202. }
  203. }
  204. }
  205. </style>