Handy_Cao vor 2 Jahren
Ursprung
Commit
a4502880bc

+ 8 - 2
src/packages/gstj/views/bank/wallet/components/deposit/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-deposit">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.caninamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field type="number" v-model="formData.Amount" label="充值金额" placeholder="请填写充值金额"
                     :rules="formRules.Amount" />
@@ -15,6 +15,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+            <span>{{ msg }}</span>
+        </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -68,7 +71,7 @@
 <script lang="ts" setup>
 import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
@@ -80,9 +83,12 @@ const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const { configs } = useDoCusBankExtendConfigs(2)
 const certificate_photo_url = ref('')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {

+ 8 - 5
src/packages/gstj/views/bank/wallet/components/withdraw/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-withdraw">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.canoutamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field class="form-field" type="number" label="提现金额" v-model="formData.Amount" :rules="formRules.Amount">
                     <template #input>
@@ -29,6 +29,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+                <span>{{ msg }}</span>
+            </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -41,7 +44,7 @@
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
@@ -57,7 +60,10 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
@@ -79,9 +85,6 @@ const formSubmit = () => {
         if(e.value){
             obj[e.fieldcode]=e.value
         }
-        if (e.fieldcode === 'bank_branch_name') {
-            formData.BranchBankName = e.value
-        }
     })
     formData.extend_info = JSON.stringify(obj)
     fullloading((hideLoading) => {

+ 4 - 0
src/packages/gstj/views/bank/wallet/components/withdraw/index.less

@@ -11,6 +11,10 @@
         }
     }
 
+    .g-form__bank {
+        padding: 16px;
+    }
+
     .g-form__time {
         color: #999;
         padding-left: 15px;

+ 8 - 2
src/packages/mobile/views/bank/wallet/components/deposit/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-deposit">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.caninamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field type="number" v-model="formData.Amount" label="充值金额" placeholder="请填写充值金额"
                     :rules="formRules.Amount" />
@@ -15,6 +15,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+            <span>{{ msg }}</span>
+        </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -68,7 +71,7 @@
 <script lang="ts" setup>
 import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
@@ -80,9 +83,12 @@ const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const { configs } = useDoCusBankExtendConfigs(2)
 const certificate_photo_url = ref('')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {

+ 8 - 2
src/packages/mobile/views/bank/wallet/components/withdraw/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-withdraw">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.canoutamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field class="form-field" type="number" label="提现金额" v-model="formData.Amount" :rules="formRules.Amount">
                     <template #input>
@@ -29,6 +29,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+                <span>{{ msg }}</span>
+            </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -41,7 +44,7 @@
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
@@ -57,7 +60,10 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {

+ 4 - 0
src/packages/mobile/views/bank/wallet/components/withdraw/index.less

@@ -11,6 +11,10 @@
         }
     }
 
+    .g-form__bank {
+        padding: 16px;
+    }
+
     .g-form__time {
         color: #999;
         padding-left: 15px;

+ 3 - 1
src/packages/pc/views/footer/capital/summary/deposit/index.vue

@@ -16,7 +16,7 @@
                 </el-form-item>
             </template>
         </el-form>
-        <span v-else>请前往网银端进行入金</span>
+        <span v-else>{{ msg }}</span>
         <template #footer>
             <el-button type="info" @click="onCancel(false)">取消</el-button>
             <el-button type="primary" @click="formSubmit">提交</el-button>
@@ -48,6 +48,8 @@ const userStore = useUserStore()
 const certificate_photo_url = ref('')
 /// 查询托管银行信息
 const { cusBank } = useQueryCusBankSignBank()
+const { getSystemParamValue } = useUserStore()
+const msg = getSystemParamValue('302')
 
 const formRules: FormRules = {
     Amount: [{ required: true, message: '请输入充值金额' }],

+ 3 - 1
src/packages/pc/views/footer/capital/summary/withdraw/index.vue

@@ -20,7 +20,7 @@
                 <el-input type="textarea" :maxlength="50" :rows="3" v-model="formData.Remark" />
             </el-form-item>
             </el-form>
-        <span v-else>请前往网银端进行出金</span>
+        <span v-else>{{ msg }}</span>
         <template #footer>
             <el-button type="info" @click="onCancel(false)">取消</el-button>
             <el-button type="primary" @click="formSubmit">提交</el-button>
@@ -46,6 +46,8 @@ const { configs } = useDoCusBankExtendConfigs(3)
 const { fund } = useAccountFundInfo()
 /// 查询托管银行信息
 const { cusBank } = useQueryCusBankSignBank()
+const { getSystemParamValue } = useUserStore()
+const msg = getSystemParamValue('302')
 
 const formRules: FormRules = {
     Amount: [{

+ 8 - 2
src/packages/qxst/views/bank/wallet/components/deposit/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-deposit">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.caninamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field type="number" v-model="formData.Amount" label="充值金额" placeholder="请填写充值金额"
                     :rules="formRules.Amount" />
@@ -15,6 +15,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+            <span>{{ msg }}</span>
+        </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -68,7 +71,7 @@
 <script lang="ts" setup>
 import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
@@ -80,9 +83,12 @@ const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const { configs } = useDoCusBankExtendConfigs(2)
 const certificate_photo_url = ref('')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {

+ 8 - 5
src/packages/qxst/views/bank/wallet/components/withdraw/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-withdraw">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.canoutamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field class="form-field" type="number" label="提现金额" v-model="formData.Amount" :rules="formRules.Amount">
                     <template #input>
@@ -29,6 +29,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+                <span>{{ msg }}</span>
+            </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -41,7 +44,7 @@
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
@@ -57,7 +60,10 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
@@ -79,9 +85,6 @@ const formSubmit = () => {
         if(e.value){
             obj[e.fieldcode]=e.value
         }
-        if (e.fieldcode === 'bank_branch_name') {
-            formData.BranchBankName = e.value
-        }
     })
     formData.extend_info = JSON.stringify(obj)
     fullloading((hideLoading) => {

+ 4 - 0
src/packages/qxst/views/bank/wallet/components/withdraw/index.less

@@ -11,6 +11,10 @@
         }
     }
 
+    .g-form__bank {
+        padding: 16px;
+    }
+
     .g-form__time {
         color: #999;
         padding-left: 15px;

+ 8 - 2
src/packages/sbyj/views/bank/wallet/components/deposit/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-deposit">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.caninamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field type="number" v-model="formData.Amount" label="充值金额" placeholder="请填写充值金额"
                     :rules="formRules.Amount" />
@@ -15,6 +15,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+            <span>{{ msg }}</span>
+        </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -68,7 +71,7 @@
 <script lang="ts" setup>
 import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
@@ -80,9 +83,12 @@ const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const { configs } = useDoCusBankExtendConfigs(2)
 const certificate_photo_url = ref('')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {

+ 8 - 5
src/packages/sbyj/views/bank/wallet/components/withdraw/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-form bank-wallet-withdraw">
-        <Form ref="formRef" class="g-form__container" @submit="formSubmit">
+        <Form ref="formRef" v-if="cusBank.canoutamount === 1" class="g-form__container" @submit="formSubmit">
             <CellGroup inset>
                 <Field class="form-field" type="number" label="提现金额" v-model="formData.Amount" :rules="formRules.Amount">
                     <template #input>
@@ -29,6 +29,9 @@
                 </template>
             </CellGroup>
         </Form>
+        <div class="g-form__bank" v-else>
+                <span>{{ msg }}</span>
+            </div>
         <div class="g-form__time">
             <label>充值提现时间:{{ start }}-{{ end }}</label>
         </div>
@@ -41,7 +44,7 @@
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs, useQueryCusBankSignBank } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
@@ -57,7 +60,10 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const msg = getSystemParamValue('302')
 const userStore = useUserStore()
+/// 查询托管银行信息
+const { cusBank } = useQueryCusBankSignBank()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
@@ -79,9 +85,6 @@ const formSubmit = () => {
         if(e.value){
             obj[e.fieldcode]=e.value
         }
-        if (e.fieldcode === 'bank_branch_name') {
-            formData.BranchBankName = e.value
-        }
     })
     formData.extend_info = JSON.stringify(obj)
     fullloading((hideLoading) => {

+ 4 - 0
src/packages/sbyj/views/bank/wallet/components/withdraw/index.less

@@ -11,6 +11,10 @@
         }
     }
 
+    .g-form__bank {
+        padding: 16px;
+    }
+
     .g-form__time {
         color: #999;
         padding-left: 15px;