From 45a9f11ac509b27c7b1193c59d3cfe716d61ab9c Mon Sep 17 00:00:00 2001 From: yujinlong Date: Wed, 27 Nov 2024 16:42:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=B4=A2=E7=A8=8E-=E6=8A=A5?= =?UTF-8?q?=E9=94=80=E5=8D=95=20=E8=8E=B7=E5=8F=96=E8=B4=A6=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=20=E4=BC=A0=E5=8F=82=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/financialTax/expenseAccount/detail/columns.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/financialTax/expenseAccount/detail/columns.tsx b/src/views/financialTax/expenseAccount/detail/columns.tsx index d6ecaaea..1786f457 100644 --- a/src/views/financialTax/expenseAccount/detail/columns.tsx +++ b/src/views/financialTax/expenseAccount/detail/columns.tsx @@ -3,8 +3,10 @@ import moment from 'moment' import { numberThousandFormat, digitUppercase } from '/@/utils/commonUtil' import { BillItem } from '../columns' import { GetClientBankList } from '../api' -import { h, nextTick } from 'vue' +import { h, nextTick, computed } from 'vue' import { getDictDropDown } from '/@/api/common' +import { useUserStore } from '/@/store/modules/user' +const userInfo = computed(() => useUserStore().getUserInfo) export type PageType = '' | 'ADD' | 'EDIT' | 'VIEW' | 'AUDIT' @@ -186,8 +188,7 @@ export const getDetailForm = (type: PageType): FormSchema[] => { return new Promise((resolve) => { GetClientBankList({ pageCondition: { sortConditions: [] }, - queryCondition: - '[{"FieldName":"clientId","FieldValue":"1844556123181551616","ConditionalType":1}]', + queryCondition: `[{"FieldName":"clientId","FieldValue":${userInfo.value.userId},"ConditionalType":1}]`, }).then((res) => { const dataResult = res?.data || [] const defaultData = dataResult.find((item) => item.isInvoiceDefault)