|
|
|
@ -8,6 +8,7 @@ import {
|
|
|
|
|
getNotifications,
|
|
|
|
|
getClientSourceSelectList,
|
|
|
|
|
GetTenantBanks,
|
|
|
|
|
GetBankList,
|
|
|
|
|
} from './api'
|
|
|
|
|
import { GetUserList, GetAllClientList } from '/@/api/common'
|
|
|
|
|
import {
|
|
|
|
@ -18,6 +19,8 @@ import {
|
|
|
|
|
GetClientSourceSelectList,
|
|
|
|
|
GetClientSourceDetailSelectList,
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { useUserStore } from '/@/store/modules/user'
|
|
|
|
|
const userStore: any = useUserStore()
|
|
|
|
|
const sourceDetailId = ref<any>([])
|
|
|
|
|
let ClientSourceList = []
|
|
|
|
|
const res3: API.DataResult = await getClientSourceSelectList()
|
|
|
|
@ -60,19 +63,41 @@ if (res13.succeeded) {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
let rmbAccountData: any = []
|
|
|
|
|
const res14: API.DataResult = await GetTenantBanks({ currency: 'CNY' })
|
|
|
|
|
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) {
|
|
|
|
|
rmbAccountData = []
|
|
|
|
|
res14.data.forEach((e) => {
|
|
|
|
|
rmbAccountData.push({ label: `${e.bankName}-${e.bankAccountNo}`, value: e.id, ...e })
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
|
|
if (e.accountName && e.id) {
|
|
|
|
|
rmbAccountData.push({
|
|
|
|
|
label: `${e.bankName}-${e.accountName}-${e.bankAccountNo}`,
|
|
|
|
|
value: e.id,
|
|
|
|
|
...e,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
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) {
|
|
|
|
|
usdAccountData = []
|
|
|
|
|
res15.data.forEach((e) => {
|
|
|
|
|
usdAccountData.push({ label: `${e.bankName}-${e.bankAccountNo}`, value: e.id, ...e })
|
|
|
|
|
if (e.accountName && e.id) {
|
|
|
|
|
usdAccountData.push({
|
|
|
|
|
label: `${e.bankName}-${e.accountName}-${e.bankAccountNo}`,
|
|
|
|
|
value: e.id,
|
|
|
|
|
...e,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const EditformSchema: FormSchema[] = [
|
|
|
|
@ -884,7 +909,7 @@ export const EditformSchema2: FormSchema[] = [
|
|
|
|
|
field: 'rmbAccountId',
|
|
|
|
|
label: '人民币账户',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
colProps: { span: 8 },
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
componentProps: (En) => {
|
|
|
|
|
return {
|
|
|
|
@ -928,7 +953,7 @@ export const EditformSchema2: FormSchema[] = [
|
|
|
|
|
field: 'usdAccountId',
|
|
|
|
|
label: '美金账户',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
colProps: { span: 8 },
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
componentProps: (En) => {
|
|
|
|
|
return {
|
|
|
|
|