调解系统PC端服务

paymentdetailsDialog.vue 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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="140px">
  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.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. <!-- 判断缴费是否通过 -->
  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. })
  103. console.log('申请人');
  104. } else {
  105. // 被申请人 resConfirmPaid
  106. resConfirmPaid(paramsVal).then((res) => {
  107. this.$message({
  108. message: "确认成功",
  109. type: "success",
  110. });
  111. })
  112. console.log('被申请人');
  113. }
  114. this.cancel();
  115. this.$emit("getList", this.queryParams);
  116. }
  117. })
  118. },
  119. cancel() {
  120. this.$emit("cancelpaymentdetails");
  121. },
  122. },
  123. };
  124. </script>
  125. <style lang="scss" scoped>
  126. ::v-deep .el-dialog {
  127. width: 50%;
  128. background: #ffffff;
  129. border-radius: 20px;
  130. }
  131. .endbutton {
  132. width: 124px;
  133. height: 37px;
  134. background: #0072ff;
  135. border-radius: 19px;
  136. span {
  137. width: 32px;
  138. height: 15px;
  139. font-size: 16px;
  140. font-family: Microsoft YaHei;
  141. font-weight: 400;
  142. color: #ffffff;
  143. // line-height: 48px;
  144. }
  145. }
  146. .endbutton1 {
  147. width: 124px;
  148. height: 37px;
  149. background: #ffffff;
  150. border: 1px solid #d0d0d0;
  151. border-radius: 19px;
  152. span {
  153. width: 31px;
  154. height: 13px;
  155. font-size: 16px;
  156. font-family: Microsoft YaHei;
  157. font-weight: 400;
  158. color: #959595;
  159. }
  160. }
  161. </style>