调解系统PC端服务

paymentdetailsDialog.vue 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <div>
  3. <el-dialog :title="title" :visible="openDialog" @close="cancel" :destroy-on-close="true" center>
  4. <el-form ref="form" :model="form" label-width="180px" :disabled="true">
  5. <el-form-item label="案件编号:" prop="caseNum">
  6. <el-input v-model="form.caseNum" placeholder="" />
  7. </el-form-item>
  8. <!-- <el-form-item label="案件标的:" prop="caseSubjectAmount">
  9. <el-input v-model="form.caseSubjectAmount" />
  10. </el-form-item> -->
  11. <!-- <el-form-item label="缴费人:" prop="applicantName">
  12. <el-input v-model="form.applicationName" placeholder="" />
  13. </el-form-item> -->
  14. <el-form-item label="申请人缴费金额:" prop="feePayable">
  15. <el-input v-model="form.feePayable" />
  16. </el-form-item>
  17. <el-form-item label="被申请人缴费金额:" prop="feePayable">
  18. <el-input v-model="form.feePayable" />
  19. </el-form-item>
  20. <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList.length > 0">
  21. <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.caseAttachList" :key="index"
  22. @click="preview(item.annexPath)">
  23. {{ item.annexName }}
  24. </div>
  25. </el-form-item>
  26. <el-form-item label="被申请人缴费凭证:" v-if="form.resCaseAttachList.length > 0">
  27. <div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.resCaseAttachList" :key="index"
  28. @click="preview(item.annexPath)">
  29. {{ item.annexName }}
  30. </div>
  31. </el-form-item>
  32. </el-form>
  33. <div slot="footer" class="dialog-footer">
  34. <el-button type="primary" @click="submitForm" v-if="flag == 0" class="endbutton">确认已缴费</el-button>
  35. <el-button @click="cancel" class="endbutton1">取 消</el-button>
  36. </div>
  37. </el-dialog>
  38. </div>
  39. </template>
  40. <script>
  41. import { confirmPaid } from '@/api/caseManagement/caseManagement.js'
  42. export default {
  43. props: ["openDialog", "title", "flag", "detailform", "getList", "paymentConfirma", "queryParams"],
  44. data() {
  45. return {
  46. form: {},
  47. srcList: []
  48. };
  49. },
  50. watch: {
  51. detailform: {
  52. handler(val) {
  53. if (val) {
  54. this.form = val;
  55. }
  56. },
  57. },
  58. },
  59. methods: {
  60. preview(data) {
  61. window.open(
  62. window.location.origin + "/API" + data,
  63. "_blank"
  64. );
  65. },
  66. // 确认缴费
  67. submitForm() {
  68. let paramsVal = {
  69. caseId: this.paymentConfirma.id,
  70. batchNumber: "",
  71. caseFlowId: this.paymentConfirma.caseFlowId
  72. }
  73. confirmPaid(paramsVal).then((res) => {
  74. this.$message({
  75. message: "确认成功",
  76. type: "success",
  77. });
  78. this.cancel();
  79. this.$emit("getList", this.queryParams);
  80. });
  81. },
  82. cancel() {
  83. this.$emit("cancelpaymentdetails");
  84. },
  85. },
  86. };
  87. </script>
  88. <style lang="scss" scoped>
  89. ::v-deep .el-dialog {
  90. width: 50%;
  91. background: #ffffff;
  92. border-radius: 20px;
  93. }
  94. .endbutton {
  95. width: 124px;
  96. height: 37px;
  97. background: #0072ff;
  98. border-radius: 19px;
  99. span {
  100. width: 32px;
  101. height: 15px;
  102. font-size: 16px;
  103. font-family: Microsoft YaHei;
  104. font-weight: 400;
  105. color: #ffffff;
  106. // line-height: 48px;
  107. }
  108. }
  109. .endbutton1 {
  110. width: 124px;
  111. height: 37px;
  112. background: #ffffff;
  113. border: 1px solid #d0d0d0;
  114. border-radius: 19px;
  115. span {
  116. width: 31px;
  117. height: 13px;
  118. font-size: 16px;
  119. font-family: Microsoft YaHei;
  120. font-weight: 400;
  121. color: #959595;
  122. }
  123. }
  124. </style>