feature-JimuReport-1106-yjl
张同海 4 weeks ago
parent aa5496e8f2
commit cb7b6729e3

@ -8,6 +8,7 @@ import {
getNotifications, getNotifications,
getClientSourceSelectList, getClientSourceSelectList,
GetTenantBanks, GetTenantBanks,
GetBankList,
} from './api' } from './api'
import { GetUserList, GetAllClientList } from '/@/api/common' import { GetUserList, GetAllClientList } from '/@/api/common'
import { import {
@ -18,6 +19,8 @@ import {
GetClientSourceSelectList, GetClientSourceSelectList,
GetClientSourceDetailSelectList, GetClientSourceDetailSelectList,
} from '/@/views/operation/seaexport/api/BookingLedger' } from '/@/views/operation/seaexport/api/BookingLedger'
import { useUserStore } from '/@/store/modules/user'
const userStore: any = useUserStore()
const sourceDetailId = ref<any>([]) const sourceDetailId = ref<any>([])
let ClientSourceList = [] let ClientSourceList = []
const res3: API.DataResult = await getClientSourceSelectList() const res3: API.DataResult = await getClientSourceSelectList()
@ -60,27 +63,41 @@ if (res13.succeeded) {
}) })
} }
let rmbAccountData: any = [] let rmbAccountData: any = []
const res14: API.DataResult = await GetTenantBanks({ currency: 'RMB' }) const res14: API.DataResult = await GetBankList({
queryCondition: `[{"FieldName":"linkId","FieldValue":"${userStore.getUserInfo.orgId}","ConditionalType":1},{"FieldName":"currency","FieldValue":"RMB","ConditionalType":1}]`,
pageCondition: { pageIndex: 1, pageSize: 9999, sortConditions: [] },
otherQueryCondition: '',
})
if (res14.succeeded) { if (res14.succeeded) {
rmbAccountData = [] rmbAccountData = []
res14.data.forEach((e) => { res14.data.forEach((e) => {
console.log(e)
if (e.accountName && e.id) {
rmbAccountData.push({ rmbAccountData.push({
label: `${e.bankName}-${e.accountName}-${e.bankAccountNo}`, label: `${e.bankName}-${e.accountName}-${e.bankAccountNo}`,
value: e.id, value: e.id,
...e, ...e,
}) })
}
}) })
} }
let usdAccountData: any = [] let usdAccountData: any = []
const res15: API.DataResult = await GetTenantBanks({ currency: 'USD' }) const res15: API.DataResult = await GetBankList({
queryCondition: `[{"FieldName":"linkId","FieldValue":"${userStore.getUserInfo.orgId}","ConditionalType":1},{"FieldName":"currency","FieldValue":"USD","ConditionalType":1}]`,
pageCondition: { pageIndex: 1, pageSize: 9999, sortConditions: [] },
otherQueryCondition: '',
})
if (res15.succeeded) { if (res15.succeeded) {
usdAccountData = [] usdAccountData = []
res15.data.forEach((e) => { res15.data.forEach((e) => {
if (e.accountName && e.id) {
usdAccountData.push({ usdAccountData.push({
label: `${e.bankName}-${e.accountName}-${e.bankAccountNo}`, label: `${e.bankName}-${e.accountName}-${e.bankAccountNo}`,
value: e.id, value: e.id,
...e, ...e,
}) })
}
}) })
} }
export const EditformSchema: FormSchema[] = [ export const EditformSchema: FormSchema[] = [
@ -892,7 +909,7 @@ export const EditformSchema2: FormSchema[] = [
field: 'rmbAccountId', field: 'rmbAccountId',
label: '人民币账户', label: '人民币账户',
component: 'DEdit', component: 'DEdit',
colProps: { span: 4 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: (En) => { componentProps: (En) => {
return { return {
@ -936,7 +953,7 @@ export const EditformSchema2: FormSchema[] = [
field: 'usdAccountId', field: 'usdAccountId',
label: '美金账户', label: '美金账户',
component: 'DEdit', component: 'DEdit',
colProps: { span: 4 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: (En) => { componentProps: (En) => {
return { return {

@ -24,6 +24,8 @@ enum Api {
CreateSubmit = '/mainApi/ClientStakeholder/CreateSubmit', CreateSubmit = '/mainApi/ClientStakeholder/CreateSubmit',
GetTenantBanks = '/mainApi/ClientAccountDate/GetTenantBanks', GetTenantBanks = '/mainApi/ClientAccountDate/GetTenantBanks',
GetBankList = '/mainApi/Bank/GetBankList',
// orgId
} }
// 确定往来单位是否已使用 (Auth) // 确定往来单位是否已使用 (Auth)
@ -198,3 +200,11 @@ export function GetTenantBanks(data: PageRequest) {
params: data, params: data,
}) })
} }
// 获取组织机构银行账户列表 (Auth)
export function GetBankList(data: PageRequest) {
return request<DataResult>({
url: Api.GetBankList,
method: 'post',
data: data,
})
}

@ -9,6 +9,7 @@ import {
getClientCountrySelectList, getClientCountrySelectList,
getNotifications, getNotifications,
GetTenantBanks, GetTenantBanks,
GetBankList,
} from './api' } from './api'
import { getOrgList, GetFeeCurrencySelectList, GetUserList, GetAllClientList } from '/@/api/common' import { getOrgList, GetFeeCurrencySelectList, GetUserList, GetAllClientList } from '/@/api/common'
import { import {
@ -20,6 +21,8 @@ import {
GetVouchingClerkList, GetVouchingClerkList,
GetClientSourceSelectList, GetClientSourceSelectList,
} from '/@/views/operation/seaexport/api/BookingLedger' } from '/@/views/operation/seaexport/api/BookingLedger'
import { useUserStore } from '/@/store/modules/user'
const userStore: any = useUserStore()
const sourceDetailId = ref<any>([]) const sourceDetailId = ref<any>([])
// exports {} // exports {}
let ClientFrtList = [] let ClientFrtList = []
@ -63,7 +66,11 @@ if (res13.succeeded) {
}) })
} }
let rmbAccountData: any = [] let rmbAccountData: any = []
const res14: API.DataResult = await GetTenantBanks({ currency: 'RMB' }) const res14: API.DataResult = await GetBankList({
queryCondition: `[{"FieldName":"linkId","FieldValue":"${userStore.getUserInfo.orgId}","ConditionalType":1},{"FieldName":"currency","FieldValue":"RMB","ConditionalType":1}]`,
pageCondition: { pageIndex: 1, pageSize: 9999, sortConditions: [] },
otherQueryCondition: '',
})
if (res14.succeeded) { if (res14.succeeded) {
rmbAccountData = [] rmbAccountData = []
res14.data.forEach((e) => { res14.data.forEach((e) => {
@ -79,7 +86,11 @@ if (res14.succeeded) {
}) })
} }
let usdAccountData: any = [] let usdAccountData: any = []
const res15: API.DataResult = await GetTenantBanks({ currency: 'USD' }) const res15: API.DataResult = await GetBankList({
queryCondition: `[{"FieldName":"linkId","FieldValue":"${userStore.getUserInfo.orgId}","ConditionalType":1},{"FieldName":"currency","FieldValue":"USD","ConditionalType":1}]`,
pageCondition: { pageIndex: 1, pageSize: 9999, sortConditions: [] },
otherQueryCondition: '',
})
if (res15.succeeded) { if (res15.succeeded) {
usdAccountData = [] usdAccountData = []
res15.data.forEach((e) => { res15.data.forEach((e) => {
@ -1355,7 +1366,7 @@ export const formSchema2: FormSchema[] = [
field: 'rmbAccountId', field: 'rmbAccountId',
label: '人民币账户', label: '人民币账户',
component: 'Select', component: 'Select',
colProps: { span: 4 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: (En) => { componentProps: (En) => {
return { return {
@ -1397,7 +1408,7 @@ export const formSchema2: FormSchema[] = [
field: 'usdAccountId', field: 'usdAccountId',
label: '美金账户', label: '美金账户',
component: 'Select', component: 'Select',
colProps: { span: 4 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: (En) => { componentProps: (En) => {
return { return {

Loading…
Cancel
Save