Handy_Cao 7 月之前
父节点
当前提交
6defd436ec

+ 18 - 0
src/packages/pc/views/member/institution/marketer/components/edit/index.vue

@@ -21,6 +21,9 @@
             </fieldset>
             <fieldset class="g-fieldset el-form--horizontal">
                 <legend class="g-fieldset__legend">默认做市商资金账户</legend>
+                <!-- <template v-for="item in talist" :key="item.accountid"> -->
+                    <!-- <el-form-item label="币种" prop="userid">{{ item.currency }}</el-form-item> -->
+                <!-- </template> -->
             </fieldset>
             <fieldset class="g-fieldset el-form--horizontal">
                 <legend class="g-fieldset__legend">风险率信息</legend>
@@ -46,6 +49,7 @@ import { getCustomerTypeList } from '@/constants/member'
 import { useRequest } from '@/hooks/request'
 import { getRiskRatioTypeForMarketer } from '@/services/api/investor'
 import { CellProp } from '@pc/components/base/table-details/types'
+import { queryTAAccountList } from '@/services/api/common'
 import AppSelectMember from '@pc/components/modules/select-member/index.vue'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppTableDetails from '@pc/components/base/table-details/index.vue'
@@ -93,6 +97,16 @@ const { data: manger, run: runDefaultManager } = useRequest(getOragnDefaultManag
     }
 })
 
+const { data: talist, run: runTAAccountList } = useRequest(queryTAAccountList, {
+    manual: true,
+    params: {
+        userId: formData?.value.userid
+    },
+    onError: (err) => {
+        ElMessage.error(err)
+    }
+})
+
 const { data: marker, run } = useRequest(getRiskRatioTypeForMarketer, {
     params: {
         riskcontrolmode: 2,
@@ -154,6 +168,10 @@ const onMemberChange = (item?: Model.OrganSelectRsp) => {
         runDefaultManager({
             userid: userid.toString()
         })
+        // 获取资金账号信息
+        runTAAccountList({
+            userId: userid
+        })
     }
 }
 

+ 1 - 1
src/services/api/common/index.ts

@@ -95,7 +95,7 @@ export function queryConfig(options: CommonFetchOptions<{ request: Model.ConfigR
 /**
  * queryTAAccountList
  */
-export function queryTAAccountList(options: CommonFetchOptions<{ request: Model.TAAccountListReq; response: Model.TAAccountListRsp; }>) {
+export function queryTAAccountList(options: CommonFetchOptions<{ request: Model.TAAccountListReq; response: Model.TAAccountListRsp[]; }>) {
     return httpClient.commonRequest('/common/queryTAAccountList', 'get', options)
 }