|
@@ -84,7 +84,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, ref, computed, defineAsyncComponent, watch } from 'vue'
|
|
|
|
|
|
|
+import { shallowRef, ref, computed, defineAsyncComponent, watch, onMounted } from 'vue'
|
|
|
import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast, Popup, Picker } from 'vant'
|
|
import { CellGroup, Button, Field, Form, FormInstance, FieldRule, showFailToast, Popup, Picker } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
import { useDoBankSign, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
@@ -92,6 +92,7 @@ import { validateRules } from '@/constants/regex'
|
|
|
import { useCountDown } from '@vant/use'
|
|
import { useCountDown } from '@vant/use'
|
|
|
import { useUserStore, i18n } from '@/stores'
|
|
import { useUserStore, i18n } from '@/stores'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
|
|
+import { queryMemberCusBankInfo } from '@/services/api/bank'
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
isedit: {
|
|
isedit: {
|
|
@@ -105,7 +106,7 @@ const SelectBank = defineAsyncComponent(() => import('./select-bank/index.vue'))
|
|
|
// 搜索支行
|
|
// 搜索支行
|
|
|
const SearchBank = defineAsyncComponent(() => import('./search-bank/index.vue'))
|
|
const SearchBank = defineAsyncComponent(() => import('./search-bank/index.vue'))
|
|
|
|
|
|
|
|
-const { formData, onSubmit, cusBanks, selectCusBank, swsFormData, bankInfo, extendInfo, system_1010, system_1013, smsVerificationCode } = useDoBankSign()
|
|
|
|
|
|
|
+const { formData, onSubmit, cusBanks, selectCusBank, swsFormData, bankInfo, extendInfo, system_1010, system_1016, system_1013, smsVerificationCode } = useDoBankSign()
|
|
|
const showModal = shallowRef(true)
|
|
const showModal = shallowRef(true)
|
|
|
const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
const formRef = shallowRef<FormInstance>()
|
|
@@ -311,6 +312,20 @@ watch(configs, (data) => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ // 任务 #6605
|
|
|
|
|
+ if (system_1016.value === '1') {
|
|
|
|
|
+ queryMemberCusBankInfo().then((res) => {
|
|
|
|
|
+ // 签约界面可用渠道列表逻辑变更: 若1016参数有且为1时,通过userid查询经纪会员配置(Qhj/QueryMemberCusBankInfo)的可用渠道列表;1016无或为其它值值,使用原逻辑取得的渠道列表
|
|
|
|
|
+ cusBanks.value = res.data ?? []
|
|
|
|
|
+ // 默认选中第一个
|
|
|
|
|
+ if (res.data.length != 0) {
|
|
|
|
|
+ selectCusBank.value = res.data[0]
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
// 暴露组件属性给父组件调用
|
|
// 暴露组件属性给父组件调用
|
|
|
defineExpose({
|
|
defineExpose({
|
|
|
closed,
|
|
closed,
|