浏览代码

增加银行拓展字段功能

Handy_Cao 2 年之前
父节点
当前提交
7a22b1959f

+ 15 - 4
src/packages/gstj/views/bank/sign/components/edit/Index.vue

@@ -16,8 +16,9 @@
                         :rules="formRules.BankAccountNo" />
                     <Field name="AccountName" label="姓名" readonly v-model="formData.BankAccountName" placeholder="请输入银行卡账户名"
                         :rules="formRules.BankAccountName" />
-                    <Field name="BranchBankName" label="支行名称" v-model="formData.OpenBankName" placeholder="请输入银行卡支行名称"
-                        :rules="formRules.OpenBankName" />
+                    <template v-for="(item, index) in configs" :key="index">
+                        <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                    </template>
                 </CellGroup>
             </Form>
             <template #footer>
@@ -34,16 +35,19 @@
 import { shallowRef } from 'vue'
 import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
-import { useDoBankSign } from '@/business/bank'
-import AppSelect from '../../../../../components/base/select/index.vue'
+import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
 import { validateRules } from '@/constants/regex'
 import { useErrorInfoStore } from '@/stores'
+import { useUserStore } from '@/stores'
 import AppModal from '@/components/base/modal/index.vue'
+import AppSelect from '../../../../../components/base/select/index.vue'
 
 const { formData, onSubmit, banklist, bankInfo } = useDoBankSign()
 const showModal = shallowRef(true)
 const refresh = shallowRef(false) // 是否刷新父组件数据
 const formRef = shallowRef<FormInstance>()
+const { configs } = useDoCusBankExtendConfigs(1)
+const userStore = useUserStore()
 
 const props = defineProps({
     isedit: {
@@ -82,6 +86,13 @@ const formRules: { [key in keyof Proto.t2bBankSignReq]?: FieldRule[] } = {
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog(props.isedit ? '签约信息修改提交成功' : '签约提交成功,请耐心等待审核。').then(() => {

+ 20 - 5
src/packages/gstj/views/bank/wallet/components/deposit/Index.vue

@@ -9,6 +9,10 @@
                         <app-uploader @success="onUploadSuccess" />
                     </template>
                 </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -62,20 +66,23 @@
 </template>
 
 <script lang="ts" setup>
-import { shallowRef } from 'vue'
+import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 import AppUploader from '../../../../../components/base/uploader/index.vue'
 
 const formRef = shallowRef<FormInstance>()
-const { formData, onSubmit, extendInfo } = useDoDeposit()
+const { formData, onSubmit } = useDoDeposit()
 const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const { configs } = useDoCusBankExtendConfigs(2)
+const certificate_photo_url = ref('')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {
@@ -86,7 +93,7 @@ const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRu
     filePath: [{
         message: '请上传转账凭证',
         validator: () => {
-            return !!extendInfo.certificate_photo_url
+            return !!certificate_photo_url.value
         }
     }]
 }
@@ -100,11 +107,19 @@ const onCopy = (status: boolean) => {
 }
 
 const onUploadSuccess = (filePath: string) => {
-    extendInfo.certificate_photo_url = filePath
+    certificate_photo_url.value = filePath
 }
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        obj['certificate_photo_url'] = certificate_photo_url.value
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog('充值申请提交成功,请等待审核。').then(() => {

+ 14 - 6
src/packages/gstj/views/bank/wallet/components/withdraw/Index.vue

@@ -23,11 +23,10 @@
                         {{ sign.bankaccountname }}
                     </template>
                 </Field>
-                <Field label="支行名称">
-                    <template #input>
-                        {{ sign.branchbankname }}
-                    </template>
-                </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -42,7 +41,7 @@
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
@@ -50,6 +49,7 @@ import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 
 const { formData, onSubmit, sign } = useDoWithdraw()
+const { configs } = useDoCusBankExtendConfigs(3)
 /// 资金账户信息
 const { fund } = useAccountFundInfo()
 const { router } = useNavigation()
@@ -57,6 +57,7 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
@@ -73,6 +74,13 @@ const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
 }
 
 const formSubmit = () => {
+    const obj:{[key:string]:unknown}=Object.create({})
+    configs.value.forEach((e)=>{
+        if(e.value){
+            obj[e.fieldcode]=e.value
+        }
+    })
+    formData.extend_info = JSON.stringify(obj)
     fullloading((hideLoading) => {
         onSubmit().then(() => {
             hideLoading()

+ 15 - 4
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -16,8 +16,9 @@
                         :rules="formRules.BankAccountNo" />
                     <Field name="AccountName" label="姓名" readonly v-model="formData.BankAccountName" placeholder="请输入银行卡账户名"
                         :rules="formRules.BankAccountName" />
-                    <Field name="BranchBankName" label="支行名称" v-model="formData.OpenBankName" placeholder="请输入银行卡支行名称"
-                        :rules="formRules.OpenBankName" />
+                    <template v-for="(item, index) in configs" :key="index">
+                        <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                    </template>
                 </CellGroup>
             </Form>
             <template #footer>
@@ -34,16 +35,19 @@
 import { shallowRef } from 'vue'
 import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
-import { useDoBankSign } from '@/business/bank'
-import AppSelect from '../../../../../components/base/select/index.vue'
+import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
 import { validateRules } from '@/constants/regex'
 import { useErrorInfoStore } from '@/stores'
+import { useUserStore } from '@/stores'
 import AppModal from '@/components/base/modal/index.vue'
+import AppSelect from '../../../../../components/base/select/index.vue'
 
 const { formData, onSubmit, banklist, bankInfo } = useDoBankSign()
 const showModal = shallowRef(true)
 const refresh = shallowRef(false) // 是否刷新父组件数据
 const formRef = shallowRef<FormInstance>()
+const { configs } = useDoCusBankExtendConfigs(1)
+const userStore = useUserStore()
 
 const props = defineProps({
     isedit: {
@@ -82,6 +86,13 @@ const formRules: { [key in keyof Proto.t2bBankSignReq]?: FieldRule[] } = {
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog(props.isedit ? '签约信息修改提交成功' : '签约提交成功,请耐心等待审核。').then(() => {

+ 20 - 5
src/packages/mobile/views/bank/wallet/components/deposit/Index.vue

@@ -9,6 +9,10 @@
                         <app-uploader @success="onUploadSuccess" />
                     </template>
                 </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -62,20 +66,23 @@
 </template>
 
 <script lang="ts" setup>
-import { shallowRef } from 'vue'
+import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 import AppUploader from '../../../../../components/base/uploader/index.vue'
 
 const formRef = shallowRef<FormInstance>()
-const { formData, onSubmit, extendInfo } = useDoDeposit()
+const { formData, onSubmit } = useDoDeposit()
 const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const { configs } = useDoCusBankExtendConfigs(2)
+const certificate_photo_url = ref('')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {
@@ -86,7 +93,7 @@ const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRu
     filePath: [{
         message: '请上传转账凭证',
         validator: () => {
-            return !!extendInfo.certificate_photo_url
+            return !!certificate_photo_url.value
         }
     }]
 }
@@ -100,11 +107,19 @@ const onCopy = (status: boolean) => {
 }
 
 const onUploadSuccess = (filePath: string) => {
-    extendInfo.certificate_photo_url = filePath
+    certificate_photo_url.value = filePath
 }
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        obj['certificate_photo_url'] = certificate_photo_url.value
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog('充值申请提交成功,请等待审核。').then(() => {

+ 14 - 6
src/packages/mobile/views/bank/wallet/components/withdraw/Index.vue

@@ -23,11 +23,10 @@
                         {{ sign.bankaccountname }}
                     </template>
                 </Field>
-                <Field label="支行名称">
-                    <template #input>
-                        {{ sign.branchbankname }}
-                    </template>
-                </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -42,7 +41,7 @@
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
@@ -50,6 +49,7 @@ import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 
 const { formData, onSubmit, sign } = useDoWithdraw()
+const { configs } = useDoCusBankExtendConfigs(3)
 /// 资金账户信息
 const { fund } = useAccountFundInfo()
 const { router } = useNavigation()
@@ -57,6 +57,7 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
@@ -73,6 +74,13 @@ const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
 }
 
 const formSubmit = () => {
+    const obj:{[key:string]:unknown}=Object.create({})
+    configs.value.forEach((e)=>{
+        if(e.value){
+            obj[e.fieldcode]=e.value
+        }
+    })
+    formData.extend_info = JSON.stringify(obj)
     fullloading((hideLoading) => {
         onSubmit().then(() => {
             hideLoading()

+ 1 - 0
src/packages/pc/views/account/sign/components/sign/index.vue

@@ -87,6 +87,7 @@ const formSubmit = () => {
                     }
                 })
                 formData.extend_info = JSON.stringify(obj)
+                
                 onSubmit().then(() => {
                     ElMessage.success(bankInfo ? '签约信息修改成功' : '签约提交成功,请耐心等待审核。')
                     onCancel(true)

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

@@ -70,12 +70,12 @@ const formSubmit = () => {
     formRef.value?.validate((valid) => {
         if (valid) {
             const obj:{[key:string]:unknown}=Object.create({})
-                configs.value.forEach((e)=>{
-                    if(e.value){
-                        obj[e.fieldcode]=e.value
-                    }
-                })
-                formData.extend_info = JSON.stringify(obj)
+            configs.value.forEach((e)=>{
+                if(e.value){
+                    obj[e.fieldcode]=e.value
+                }
+            })
+            formData.extend_info = JSON.stringify(obj)
             if (formData.CusBankID) {
                 onSubmit().then(() => {
                     ElMessage.success('提交成功')

+ 15 - 4
src/packages/qxst/views/bank/sign/components/edit/Index.vue

@@ -16,8 +16,9 @@
                         :rules="formRules.BankAccountNo" />
                     <Field name="AccountName" label="姓名" readonly v-model="formData.BankAccountName" placeholder="请输入银行卡账户名"
                         :rules="formRules.BankAccountName" />
-                    <Field name="BranchBankName" label="支行名称" v-model="formData.OpenBankName" placeholder="请输入银行卡支行名称"
-                        :rules="formRules.OpenBankName" />
+                    <template v-for="(item, index) in configs" :key="index">
+                        <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                    </template>
                 </CellGroup>
             </Form>
             <template #footer>
@@ -34,16 +35,19 @@
 import { shallowRef } from 'vue'
 import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
-import { useDoBankSign } from '@/business/bank'
-import AppSelect from '../../../../../components/base/select/index.vue'
+import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
 import { validateRules } from '@/constants/regex'
 import { useErrorInfoStore } from '@/stores'
+import { useUserStore } from '@/stores'
 import AppModal from '@/components/base/modal/index.vue'
+import AppSelect from '../../../../../components/base/select/index.vue'
 
 const { formData, onSubmit, banklist, bankInfo } = useDoBankSign()
 const showModal = shallowRef(true)
 const refresh = shallowRef(false) // 是否刷新父组件数据
 const formRef = shallowRef<FormInstance>()
+const { configs } = useDoCusBankExtendConfigs(1)
+const userStore = useUserStore()
 
 const props = defineProps({
     isedit: {
@@ -82,6 +86,13 @@ const formRules: { [key in keyof Proto.t2bBankSignReq]?: FieldRule[] } = {
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog(props.isedit ? '签约信息修改提交成功' : '签约提交成功,请耐心等待审核。').then(() => {

+ 20 - 5
src/packages/qxst/views/bank/wallet/components/deposit/Index.vue

@@ -9,6 +9,10 @@
                         <app-uploader @success="onUploadSuccess" />
                     </template>
                 </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -62,20 +66,23 @@
 </template>
 
 <script lang="ts" setup>
-import { shallowRef } from 'vue'
+import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 import AppUploader from '../../../../../components/base/uploader/index.vue'
 
 const formRef = shallowRef<FormInstance>()
-const { formData, onSubmit, extendInfo } = useDoDeposit()
+const { formData, onSubmit } = useDoDeposit()
 const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const { configs } = useDoCusBankExtendConfigs(2)
+const certificate_photo_url = ref('')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {
@@ -86,7 +93,7 @@ const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRu
     filePath: [{
         message: '请上传转账凭证',
         validator: () => {
-            return !!extendInfo.certificate_photo_url
+            return !!certificate_photo_url.value
         }
     }]
 }
@@ -100,11 +107,19 @@ const onCopy = (status: boolean) => {
 }
 
 const onUploadSuccess = (filePath: string) => {
-    extendInfo.certificate_photo_url = filePath
+    certificate_photo_url.value = filePath
 }
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        obj['certificate_photo_url'] = certificate_photo_url.value
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog('充值申请提交成功,请等待审核。').then(() => {

+ 14 - 6
src/packages/qxst/views/bank/wallet/components/withdraw/Index.vue

@@ -23,11 +23,10 @@
                         {{ sign.bankaccountname }}
                     </template>
                 </Field>
-                <Field label="支行名称">
-                    <template #input>
-                        {{ sign.branchbankname }}
-                    </template>
-                </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -42,7 +41,7 @@
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
@@ -50,6 +49,7 @@ import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 
 const { formData, onSubmit, sign } = useDoWithdraw()
+const { configs } = useDoCusBankExtendConfigs(3)
 /// 资金账户信息
 const { fund } = useAccountFundInfo()
 const { router } = useNavigation()
@@ -57,6 +57,7 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
@@ -73,6 +74,13 @@ const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
 }
 
 const formSubmit = () => {
+    const obj:{[key:string]:unknown}=Object.create({})
+    configs.value.forEach((e)=>{
+        if(e.value){
+            obj[e.fieldcode]=e.value
+        }
+    })
+    formData.extend_info = JSON.stringify(obj)
     fullloading((hideLoading) => {
         onSubmit().then(() => {
             hideLoading()

+ 15 - 4
src/packages/sbyj/views/bank/sign/components/edit/Index.vue

@@ -16,8 +16,9 @@
                         :rules="formRules.BankAccountNo" />
                     <Field name="AccountName" label="姓名" readonly v-model="formData.BankAccountName" placeholder="请输入银行卡账户名"
                         :rules="formRules.BankAccountName" />
-                    <Field name="BranchBankName" label="支行名称" v-model="formData.OpenBankName" placeholder="请输入银行卡支行名称"
-                        :rules="formRules.OpenBankName" />
+                    <template v-for="(item, index) in configs" :key="index">
+                        <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                    </template>
                 </CellGroup>
             </Form>
             <template #footer>
@@ -34,16 +35,19 @@
 import { shallowRef } from 'vue'
 import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
-import { useDoBankSign } from '@/business/bank'
-import AppSelect from '../../../../../components/base/select/index.vue'
+import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
 import { validateRules } from '@/constants/regex'
 import { useErrorInfoStore } from '@/stores'
+import { useUserStore } from '@/stores'
 import AppModal from '@/components/base/modal/index.vue'
+import AppSelect from '../../../../../components/base/select/index.vue'
 
 const { formData, onSubmit, banklist, bankInfo } = useDoBankSign()
 const showModal = shallowRef(true)
 const refresh = shallowRef(false) // 是否刷新父组件数据
 const formRef = shallowRef<FormInstance>()
+const { configs } = useDoCusBankExtendConfigs(1)
+const userStore = useUserStore()
 
 const props = defineProps({
     isedit: {
@@ -82,6 +86,13 @@ const formRules: { [key in keyof Proto.t2bBankSignReq]?: FieldRule[] } = {
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog(props.isedit ? '签约信息修改提交成功' : '签约提交成功,请耐心等待审核。').then(() => {

+ 3 - 3
src/packages/sbyj/views/bank/statement/Index.vue

@@ -25,10 +25,10 @@
 import { shallowRef } from 'vue'
 import { formatDate } from '@/filters'
 import { useRequest } from '@/hooks/request'
-import { useNavigation } from '@/packages/sbyj/router/navigation'
+import { useNavigation } from '../../../router/navigation'
 import { queryAmountLog } from '@/services/api/bank'
-import AppPullRefresh from '@/packages/sbyj/components/base/pull-refresh/index.vue'
-import AppList from '@/packages/sbyj/components/base/list/index.vue'
+import AppPullRefresh from '../../../components/base/pull-refresh/index.vue'
+import AppList from '../../../components/base/list/index.vue'
 
 const { routerTo } = useNavigation()
 const dataList = shallowRef<Model.AmountLogRsp[]>([])

+ 2 - 2
src/packages/sbyj/views/bank/statement/history/Index.vue

@@ -20,8 +20,8 @@ import { shallowRef } from 'vue'
 import { formatDate } from '@/filters'
 import { useRequest } from '@/hooks/request'
 import { queryHisAmountLog } from '@/services/api/bank'
-import AppPullRefresh from '@/packages/sbyj/components/base/pull-refresh/index.vue'
-import AppList from '@/packages/sbyj/components/base/list/index.vue'
+import AppPullRefresh from '../../../../components/base/pull-refresh/index.vue'
+import AppList from '../../../../components/base/list/index.vue'
 
 const dataList = shallowRef<Model.HisAmountLogRsp[]>([])
 const error = shallowRef(false)

+ 1 - 1
src/packages/sbyj/views/bank/wallet/Index.vue

@@ -17,7 +17,7 @@
 <script lang="ts" setup>
 import { shallowRef } from 'vue'
 import { Tab, Tabs } from 'vant'
-import { useNavigation } from '@/packages/sbyj/router/navigation'
+import { useNavigation } from '../../../router/navigation'
 import AppDeposit from './components/deposit/Index.vue'
 import AppWithdraw from './components/withdraw/Index.vue'
 

+ 20 - 5
src/packages/sbyj/views/bank/wallet/components/deposit/Index.vue

@@ -9,6 +9,10 @@
                         <app-uploader @success="onUploadSuccess" />
                     </template>
                 </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -62,20 +66,23 @@
 </template>
 
 <script lang="ts" setup>
-import { shallowRef } from 'vue'
+import { shallowRef, ref } from 'vue'
 import { Form, Field, CellGroup, Button, FieldRule, FormInstance, showFailToast, showSuccessToast } from 'vant'
-import { useDoDeposit } from '@/business/bank'
+import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
 import { fullloading, dialog } from '@/utils/vant'
 import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 import AppUploader from '../../../../../components/base/uploader/index.vue'
 
 const formRef = shallowRef<FormInstance>()
-const { formData, onSubmit, extendInfo } = useDoDeposit()
+const { formData, onSubmit } = useDoDeposit()
 const { router } = useNavigation()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const { configs } = useDoCusBankExtendConfigs(2)
+const certificate_photo_url = ref('')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRule[] } = {
@@ -86,7 +93,7 @@ const formRules: { [key in keyof Proto.t2bBankDepositReq | 'filePath']?: FieldRu
     filePath: [{
         message: '请上传转账凭证',
         validator: () => {
-            return !!extendInfo.certificate_photo_url
+            return !!certificate_photo_url.value
         }
     }]
 }
@@ -100,11 +107,19 @@ const onCopy = (status: boolean) => {
 }
 
 const onUploadSuccess = (filePath: string) => {
-    extendInfo.certificate_photo_url = filePath
+    certificate_photo_url.value = filePath
 }
 
 const formSubmit = () => {
     fullloading((hideLoading) => {
+        const obj:{[key:string]:unknown}=Object.create({})
+        configs.value.forEach((e)=>{
+            if(e.value){
+                obj[e.fieldcode]=e.value
+            }
+        })
+        obj['certificate_photo_url'] = certificate_photo_url.value
+        formData.extend_info = JSON.stringify(obj)
         onSubmit().then(() => {
             hideLoading()
             dialog('充值申请提交成功,请等待审核。').then(() => {

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

@@ -23,11 +23,10 @@
                         {{ sign.bankaccountname }}
                     </template>
                 </Field>
-                <Field label="支行名称">
-                    <template #input>
-                        {{ sign.branchbankname }}
-                    </template>
-                </Field>
+                <template v-for="(item, index) in configs" :key="index">
+                    <Field v-if="item.usabletype === 1 || item.usabletype === userStore.userInfo?.userinfotype" :name="item.fieldcode" 
+                       :label="item.fieldname" v-model="item.value" :placeholder="`请输入${ item.fieldname }`" />
+                </template>
             </CellGroup>
         </Form>
         <div class="g-form__time">
@@ -35,21 +34,22 @@
         </div>
         <template #footer>
             <div class="g-form__footer inset">
-                <Button round block type="primary" @click="formRef?.submit()">确定</Button>
+                <Button round block type="danger" @click="formRef?.submit()">确定</Button>
             </div>
         </template>
     </app-view>
 </template>
 
 <script lang="ts" setup>
-import { useDoWithdraw, useAccountFundInfo } from '@/business/bank';
+import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/business/bank';
 import { Form, Field, CellGroup, FormInstance, Button, FieldRule } from 'vant'
 import { shallowRef } from 'vue'
 import { fullloading, dialog } from '@/utils/vant'
-import { useNavigation } from '@/packages/sbyj/router/navigation'
+import { useNavigation } from '../../../../../router/navigation'
 import { useUserStore } from '@/stores'
 
 const { formData, onSubmit, sign } = useDoWithdraw()
+const { configs } = useDoCusBankExtendConfigs(3)
 /// 资金账户信息
 const { fund } = useAccountFundInfo()
 const { router } = useNavigation()
@@ -57,6 +57,7 @@ const formRef = shallowRef<FormInstance>()
 const { getSystemParamValue } = useUserStore()
 const start = getSystemParamValue('012')
 const end = getSystemParamValue('013')
+const userStore = useUserStore()
 
 // 表单验证规则
 const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
@@ -73,6 +74,13 @@ const formRules: { [key in keyof Proto.t2bBankWithdrawReq]?: FieldRule[] } = {
 }
 
 const formSubmit = () => {
+    const obj:{[key:string]:unknown}=Object.create({})
+    configs.value.forEach((e)=>{
+        if(e.value){
+            obj[e.fieldcode]=e.value
+        }
+    })
+    formData.extend_info = JSON.stringify(obj)
     fullloading((hideLoading) => {
         onSubmit().then(() => {
             hideLoading()