调解系统PC端服务

paymentdetailsDialog.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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">
  5. <el-form-item label="案件编号:" prop="caseNum">
  6. <el-input v-model="form.caseNum" placeholder="" :disabled="true"/>
  7. </el-form-item>
  8. <!-- <el-form-item label="案件标的:" prop="caseSubjectAmount">
  9. <el-input v-model="form.caseSubjectAmount" :disabled="true"/>
  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" :disabled="true"/>
  16. </el-form-item>
  17. <el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList&&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&&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. <!-- 判断缴费是否通过 -->
  30. <el-form-item label="是否缴费通过:" v-if="flag == 0">
  31. <el-radio-group v-model="yesOrNo">
  32. <el-radio :label="1">通过</el-radio>
  33. <el-radio :label="0">驳回</el-radio>
  34. </el-radio-group>
  35. </el-form-item>
  36. <!-- 缴费驳回原因-->
  37. <el-form-item label="驳回原因:" v-if="yesOrNo == 0" prop="reason" :rules="[{ required: true, message: '请输入驳回原因',trigger: 'blur',},]">
  38. <el-input type="textarea" :rows="2" placeholder="请输入驳回原因" v-model="form.reason"></el-input>
  39. </el-form-item>
  40. </el-form>
  41. <div slot="footer" class="dialog-footer">
  42. <!-- <el-button type="primary" @click="submitForm" v-if="flag == 0" class="endbutton">确认已缴费</el-button> -->
  43. <el-button type="primary" @click="submitForm" v-if="flag == 0" class="endbutton">确 认</el-button>
  44. <el-button @click="cancel" class="endbutton1">取 消</el-button>
  45. </div>
  46. </el-dialog>
  47. </div>
  48. </template>
  49. <script>
  50. import { confirmPaid, resConfirmPaid } from '@/api/caseManagement/caseManagement.js'
  51. export default {
  52. props: ["openDialog", "title", "flag", "detailform", "getList", "paymentConfirma", "queryParams",'isapplicant'],
  53. data() {
  54. return {
  55. form: {
  56. reason: '',//驳回原因
  57. },
  58. yesOrNo: 1,
  59. srcList: [],
  60. };
  61. },
  62. watch: {
  63. detailform: {
  64. handler(val) {
  65. if (val) {
  66. this.form = val;
  67. }
  68. },
  69. },
  70. openDialog: {
  71. handler(val) {
  72. if (val) {
  73. this.yesOrNo = 1
  74. }
  75. }
  76. }
  77. },
  78. methods: {
  79. preview(data) {
  80. window.open(
  81. window.location.origin + "/API" + data,
  82. "_blank"
  83. );
  84. },
  85. // 确认缴费
  86. submitForm() {
  87. let paramsVal = {
  88. caseId: this.paymentConfirma.id,
  89. batchNumber: "",
  90. caseFlowId: this.paymentConfirma.caseFlowId,
  91. yesOrNo: this.yesOrNo,
  92. reason: this.form.reason
  93. }
  94. this.$refs["form"].validate((valid) => {
  95. if (valid) {
  96. if (this.isapplicant) {
  97. confirmPaid(paramsVal).then((res) => {
  98. this.$message({
  99. message: "确认成功",
  100. type: "success",
  101. });
  102. this.cancel();
  103. this.$emit("getList", this.queryParams);
  104. })
  105. console.log('申请人');
  106. } else {
  107. // 被申请人 resConfirmPaid
  108. resConfirmPaid(paramsVal).then((res) => {
  109. this.$message({
  110. message: "确认成功",
  111. type: "success",
  112. });
  113. this.cancel();
  114. this.$emit("getList", this.queryParams);
  115. })
  116. console.log('被申请人');
  117. }
  118. }
  119. })
  120. },
  121. cancel() {
  122. this.$emit("cancelpaymentdetails");
  123. },
  124. },
  125. };
  126. </script>
  127. <style lang="scss" scoped>
  128. ::v-deep .el-dialog {
  129. width: 50%;
  130. background: #ffffff;
  131. border-radius: 20px;
  132. }
  133. .endbutton {
  134. width: 124px;
  135. height: 37px;
  136. background: #0072ff;
  137. border-radius: 19px;
  138. span {
  139. width: 32px;
  140. height: 15px;
  141. font-size: 16px;
  142. font-family: Microsoft YaHei;
  143. font-weight: 400;
  144. color: #ffffff;
  145. // line-height: 48px;
  146. }
  147. }
  148. .endbutton1 {
  149. width: 124px;
  150. height: 37px;
  151. background: #ffffff;
  152. border: 1px solid #d0d0d0;
  153. border-radius: 19px;
  154. span {
  155. width: 31px;
  156. height: 13px;
  157. font-size: 16px;
  158. font-family: Microsoft YaHei;
  159. font-weight: 400;
  160. color: #959595;
  161. }
  162. }
  163. </style>