调解系统PC端服务

paymentdetailsDialog.vue 3.5KB

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