Browse Source

查看驳回

lihuilin/feature-20251104102812-现金二期
ZhangYong 2 weeks ago
parent
commit
4fc8a9cadf
  1. 53
      src/views/moneyManage/receiveDetail/receiveService.vue

53
src/views/moneyManage/receiveDetail/receiveService.vue

@ -212,13 +212,15 @@
<div style=" display: flex; ">
<span
style="color: #999999; display: flex; white-space: nowrap;align-items: center;">永久金币</span>
<el-input placeholder="0" style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
<el-input placeholder="0"
style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
v-model="addFormData.permanentGold" />
</div>
<div style="padding-right: 5px; display: flex;">
<span
style="color: #999999; display: flex; white-space: nowrap;align-items: center;">免费金币</span>
<el-input placeholder="0" style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
<el-input placeholder="0"
style="padding-right: 10px; padding-left: 10px; height: 30px; width: 110px;"
v-model="addFormData.freeGold" />
</div>
</div>
@ -386,6 +388,16 @@
</div>
</div>
</el-dialog>
<!-- 查看驳回理由 -->
<el-dialog title="驳回理由" v-model="rejectReasonVisible" width="50%" top="30vh" style="min-width: 200px; max-width: 500px;" :before-close="closeRejectForm">
<div class="reject-reason-box">
{{ rejectReason }}
</div>
<div class="rejectBtn">
<el-button type="primary" @click="closeRejectForm">确定</el-button>
</div>
</el-dialog>
</div>
</template>
@ -441,6 +453,16 @@ const reset = () => {
getlist()
}
const rejectReasonVisible = ref(false)
const rejectReason = ref('')
const closeRejectForm = () => {
rejectReasonVisible.value = false
}
const openRejectReason = (reason) => {
rejectReason.value = reason
rejectReasonVisible.value = true
}
//
const handleDatePickerChange = () => { }
//
@ -613,11 +635,11 @@ const closeAddForm = () => {
}
const testGold = () => {
//
if(addFormData.value.permanentGold == null){
if (addFormData.value.permanentGold == null) {
addFormData.value.permanentGold = 0
}
if(addFormData.value.freeGold == null){
if (addFormData.value.freeGold == null) {
addFormData.value.freeGold = 0
}
const permanentGold = Number(addFormData.value.permanentGold);
@ -676,7 +698,7 @@ const handleAddForm = async () => {
const handleEditForm = async () => {
try {
await addFormRef.value.validate();
if (!testGold().valid) {
if (!testGold().valid) {
ElMessage.error(testGold().message);
return;
}
@ -905,13 +927,6 @@ const submitRefund = async () => {
}
}
//
const openRejectReason = (reason) => {
ElMessageBox.alert(reason, '驳回理由', {
confirmButtonText: '确认',
customClass: 'reject-reason-box',
})
}
// ===================== =====================
//
@ -1218,14 +1233,14 @@ onMounted(async () => {
background-color: #E5EBFE !important;
}
//
.reject-reason-box {
--el-message-box-height: 500px;
width: 80%;
padding: 20px;
}
.reject-reason-box .el-message-box__content {
max-height: 350px;
overflow-y: auto;
white-space: pre-wrap;
.rejectBtn {
margin-top: 20px;
display: flex;
justify-content: flex-end;
}
</style>
Loading…
Cancel
Save