|
|
@@ -1,6 +1,6 @@
|
|
|
<!-- 资金信息-资金汇总-出金申请 -->
|
|
|
<template>
|
|
|
- <app-drawer title="提现申请" :width="500" v-model:show="show" :loading="loading">
|
|
|
+ <app-drawer title="出金申请" :width="500" v-model:show="show" :loading="loading">
|
|
|
<el-form ref="formRef" v-if="cusBank.canoutamount === 1" class="el-form--vertical" label-width="120px"
|
|
|
:model="formData" :rules="formRules">
|
|
|
<el-form-item label="资金账号">
|
|
|
@@ -9,9 +9,9 @@
|
|
|
<el-form-item label="可出资金">
|
|
|
<span>{{ fund.AvailableOutMoney?.toFixed(2) }}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="提现金额" prop="Amount">
|
|
|
- <el-input-number placeholder="请输入提现金额" :precision="2" v-model="formData.Amount" />
|
|
|
- <el-button type="danger" @click="formData.Amount = fund.AvailableOutMoney">全部提现</el-button>
|
|
|
+ <el-form-item label="出金金额" prop="Amount">
|
|
|
+ <el-input-number placeholder="请输入出金金额" :precision="2" v-model="formData.Amount" />
|
|
|
+ <el-button type="danger" @click="formData.Amount = fund.AvailableOutMoney">全部出金</el-button>
|
|
|
</el-form-item>
|
|
|
<template v-for="(item, index) in configs" :key="index">
|
|
|
<el-form-item :label="item.fieldname" :prop="item.fieldcode"
|
|
|
@@ -22,7 +22,7 @@
|
|
|
<el-form-item class="el-form-item--row" label="备注" prop="Remark">
|
|
|
<el-input type="textarea" :maxlength="50" :rows="3" v-model="formData.Remark" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="提现时间:">
|
|
|
+ <el-form-item label="出金时间:">
|
|
|
<span>{{ start }} - {{ end }}</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
@@ -47,14 +47,13 @@ const accountStore = useAccountStore()
|
|
|
const formRef = ref<FormInstance>()
|
|
|
const show = ref(true)
|
|
|
const userStore = useUserStore()
|
|
|
-const { configs, cusBank } = useDoCusBankExtendConfigs(3)
|
|
|
+const { configs, cusBank, end } = useDoCusBankExtendConfigs(3)
|
|
|
/// 资金账户信息
|
|
|
const { fund } = useAccountFundInfo()
|
|
|
const { getSystemParamValue } = useUserStore()
|
|
|
const msg = getSystemParamValue('302')
|
|
|
const start = getSystemParamValue('012') ?? ''
|
|
|
const limitMsg = getSystemParamValue('1002')
|
|
|
-const end = getSystemParamValue('1003') ?? ''
|
|
|
|
|
|
const formRules: FormRules = {
|
|
|
Amount: [{
|
|
|
@@ -79,6 +78,7 @@ const doWithDrawWarning = () => {
|
|
|
formRef.value?.validate((valid) => {
|
|
|
if (valid) {
|
|
|
const now = moment(new Date().toISOString()).format('HH:mm')
|
|
|
+ console.log(now)
|
|
|
if (now > start && now < end) {
|
|
|
/// 提交
|
|
|
formSubmit()
|