|
|
@@ -23,23 +23,24 @@
|
|
|
<el-input type="textarea" :maxlength="50" :rows="3" v-model="formData.Remark" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="充值提现时间:">
|
|
|
- <span>{{ start }}-{{ end }}</span>
|
|
|
+ <span>{{ start }} - {{ end }}</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<span v-if="cusBank.canoutamount === 0">{{ msg }}</span>
|
|
|
<template #footer>
|
|
|
<el-button type="info" @click="onCancel">取消</el-button>
|
|
|
- <el-button type="primary" @click="formSubmit">提交</el-button>
|
|
|
+ <el-button type="primary" @click="doWithDrawWarning">提交</el-button>
|
|
|
</template>
|
|
|
</app-drawer>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { ref } from 'vue'
|
|
|
-import { ElMessage, FormInstance, FormRules } from 'element-plus'
|
|
|
+import { ElMessage, FormInstance, FormRules, ElMessageBox } from 'element-plus'
|
|
|
import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
|
import { useAccountStore, useUserStore } from '@/stores'
|
|
|
import AppDrawer from '@pc/components/base/drawer/index.vue'
|
|
|
+import moment from 'moment'
|
|
|
|
|
|
const { loading, formData, onSubmit } = useDoWithdraw()
|
|
|
const accountStore = useAccountStore()
|
|
|
@@ -52,7 +53,8 @@ const { fund } = useAccountFundInfo()
|
|
|
const { getSystemParamValue } = useUserStore()
|
|
|
const msg = getSystemParamValue('302')
|
|
|
const start = getSystemParamValue('012')
|
|
|
-const end = getSystemParamValue('013')
|
|
|
+const limitMsg = getSystemParamValue('1002')
|
|
|
+const end = getSystemParamValue('1003')
|
|
|
|
|
|
const formRules: FormRules = {
|
|
|
Amount: [{
|
|
|
@@ -72,6 +74,24 @@ const onCancel = () => {
|
|
|
show.value = false
|
|
|
}
|
|
|
|
|
|
+const doWithDrawWarning = () => {
|
|
|
+ if (cusBank.value.cusbankid === 'jdjs') {
|
|
|
+ formRef.value?.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ const now = moment(new Date().toDateString())
|
|
|
+ if (now > moment(start) && now < moment(end)) {
|
|
|
+ /// 提交
|
|
|
+ formSubmit()
|
|
|
+ } else {
|
|
|
+ ElMessageBox.confirm(limitMsg, '提示', { confirmButtonText: '我知道了', showCancelButton: false })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ formSubmit()
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const formSubmit = () => {
|
|
|
formRef.value?.validate((valid) => {
|
|
|
if (valid) {
|