From 9bf71b4e50a2a35ceb188a5c3255836a37e115b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Fri, 5 Jul 2024 09:18:35 +0800 Subject: [PATCH] 07/05 --- .../autoduizang/TenantAuditStepModal.vue | 65 +++++++++++-------- src/views/operation/autoduizang/columns.tsx | 14 ++-- 2 files changed, 45 insertions(+), 34 deletions(-) diff --git a/src/views/operation/autoduizang/TenantAuditStepModal.vue b/src/views/operation/autoduizang/TenantAuditStepModal.vue index 76928e47..816572aa 100644 --- a/src/views/operation/autoduizang/TenantAuditStepModal.vue +++ b/src/views/operation/autoduizang/TenantAuditStepModal.vue @@ -26,13 +26,15 @@
- - + + + +
@@ -99,24 +101,7 @@ setFieldsValue({ ...res.data, }) - let ApiData = { - queryCondition: JSON.stringify({ - FieldName: 'checkId', - FieldValue: rowId.value, - ConditionalType: 1, - }), - pageCondition: { - pageIndex: 1, - pageSize: 9999, - sortConditions: [], - }, - } - const e: API.DataResult = await ApiBasicsList(ApiData) - if (e.succeeded) { - list.value.push(...e.data) - } else { - setModalProps({ confirmLoading: false }) - } + await GetTableData() } setModalProps({ confirmLoading: false }) } else { @@ -134,6 +119,32 @@ list.value.push(...res.data) } } + const TableSpinning = ref(false) + async function GetTableData() { + TableSpinning.value = true + let ApiData = { + queryCondition: JSON.stringify([ + { + FieldName: 'checkId', + FieldValue: rowId.value, + ConditionalType: 1, + }, + ]), + pageCondition: { + pageIndex: 1, + pageSize: 9999, + sortConditions: [], + }, + } + const res: API.DataResult = await ApiBasicsList(ApiData) + if (res.succeeded) { + list.value.splice(0) + list.value.push(...res.data) + } else { + setModalProps({ confirmLoading: false }) + } + TableSpinning.value = false + } // 保存 async function handleSave(exit) { try { @@ -497,9 +508,9 @@ ApiImport({ data: formData, // parameter: { LinkId: Did, TypeCode: 'other', TypeName: '其他' }, - }).then((res) => { + }).then(async (res) => { if (res.succeeded) { - list.value.push(...res.data) + await GetTableData() } else { notification.error({ message: res.message, duration: 3 }) } diff --git a/src/views/operation/autoduizang/columns.tsx b/src/views/operation/autoduizang/columns.tsx index ad552f98..2a7350ea 100644 --- a/src/views/operation/autoduizang/columns.tsx +++ b/src/views/operation/autoduizang/columns.tsx @@ -87,17 +87,17 @@ export const searchFormSchema: FormSchema[] = [ }, ] let businessTypeData = [ - { label: '全部', value: '0' }, - { label: '海运出口', value: '1' }, + { label: '全部', value: 0 }, + { label: '海运出口', value: 1 }, ] let checkTypeData = [ - { label: 'Excel导入', value: '1' }, - { label: '区间统计', value: '2' }, + { label: 'Excel导入', value: 1 }, + { label: '区间统计', value: 2 }, ] let billTypeData = [ - { label: '全部', value: '0' }, - { label: '应收', value: '1' }, - { label: '应付', value: '2' }, + { label: '全部', value: 0 }, + { label: '应收', value: 1 }, + { label: '应付', value: 2 }, ] export const formSchema: FormSchema[] = [ {