From 7d237e0c44926486dbe418bfd2abb83320aa47f0 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Fri, 27 Sep 2024 19:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CostEntry/components/applyModify.tsx | 6 ++-- .../CostEntry/components/applyModify.vue | 19 ++++++------ src/components/CostEntry/feeTable.vue | 2 +- .../approve/paid/components/calcTable.vue | 3 +- .../paymentSettlement/detail/columns.tsx | 3 +- .../detail/components/applyInfo.vue | 28 +++++++----------- .../detail/components/businessTable.vue | 29 +++++++++++++++---- .../paymentSettlement/detail/index.vue | 22 ++++++++++---- .../invoiceIssue/detail/invoiceFile.vue | 8 ++--- .../operation/paidApply/detail/columns.tsx | 2 +- .../paidApply/detail/components/applyInfo.vue | 26 +++++------------ .../operation/paidApply/detail/index.vue | 1 - 12 files changed, 81 insertions(+), 68 deletions(-) diff --git a/src/components/CostEntry/components/applyModify.tsx b/src/components/CostEntry/components/applyModify.tsx index 4c9bdc16..842f814a 100644 --- a/src/components/CostEntry/components/applyModify.tsx +++ b/src/components/CostEntry/components/applyModify.tsx @@ -91,7 +91,7 @@ export const formSchema: FormSchema[] = [ const { data } = res data.forEach(item => { item['label'] = item.shortName - item['value'] = item.codeName + item['value'] = item.id }) companyDict.value = data }) @@ -100,9 +100,9 @@ export const formSchema: FormSchema[] = [ } }, { - field: 'costomerCode', + field: 'customerId', label: '结算对象', - defaultValue: '', + defaultValue: null, component: 'Select', colProps: { span: 5 }, componentProps: ({ formModel }) => { diff --git a/src/components/CostEntry/components/applyModify.vue b/src/components/CostEntry/components/applyModify.vue index 63b30fbc..6b458d6e 100644 --- a/src/components/CostEntry/components/applyModify.vue +++ b/src/components/CostEntry/components/applyModify.vue @@ -57,7 +57,7 @@ const emits = defineEmits(['refresh', 'register']) const list = [ { label: '费用名称', field: 'feeName', span: 5 }, - { label: '费用对象', field: 'customerName', span: 5 }, + { label: '结算对象', field: 'customerName', span: 5 }, // { label: '核算单位', field: 'customerNo', span: 4, value: '1' }, { label: '单位标准', field: 'unitText', span: 5 }, { label: '不含税单价', field: 'noTaxPrice', span: 5 }, @@ -80,6 +80,7 @@ }) const [registerModal, { setModalProps, closeModal, updateFormField }] = useModalInner(async (data) => { detailData.value = JSON.parse(JSON.stringify(data.record)) + console.log(data.record) setFieldsValue({ ...data.record, beforeValue: JSON.parse(JSON.stringify(beforeValue.value)), @@ -96,14 +97,14 @@ formData.feeRecordId = values.id formData.id = 0 formData.BusinessType = 1 - const res: API.DataResult = await ApplyModification([formData]) - setModalProps({ confirmLoading: false, loading: false }) - if (res.succeeded) { - createMessage.success(res.message) - emits('refresh') - } else { - createMessage.error(res.message) - } + ApplyModification([formData]).then(res => { + if (res.succeeded) { + createMessage.success(res.message) + emits('refresh') + } + }).catch(() => { + setModalProps({ confirmLoading: false, loading: false }) + }) closeModal() } onMounted(() => { diff --git a/src/components/CostEntry/feeTable.vue b/src/components/CostEntry/feeTable.vue index 43c820dd..43bb8942 100644 --- a/src/components/CostEntry/feeTable.vue +++ b/src/components/CostEntry/feeTable.vue @@ -246,7 +246,7 @@ source: async (query, process) => { if (unitDict.value && unitDict.value.length) { const dict = unitDict.value.map((item) => { - return item.value + '-' + item.name + return item.name + '-' + item.value }) process(dict) } diff --git a/src/views/approve/paid/components/calcTable.vue b/src/views/approve/paid/components/calcTable.vue index 62911ec6..dbafc18b 100644 --- a/src/views/approve/paid/components/calcTable.vue +++ b/src/views/approve/paid/components/calcTable.vue @@ -63,8 +63,7 @@ showTableSetting: false, bordered: false, showIndexColumn: true, - canResize: true, - resizeHeightOffset: 1, + canResize: false, // rowSelection: { type: 'checkbox' }, immediate: false }) diff --git a/src/views/finance/paymentSettlement/detail/columns.tsx b/src/views/finance/paymentSettlement/detail/columns.tsx index 16806d38..aeb8058a 100644 --- a/src/views/finance/paymentSettlement/detail/columns.tsx +++ b/src/views/finance/paymentSettlement/detail/columns.tsx @@ -302,7 +302,8 @@ export const formSchema: FormSchema[] = [ dynamicDisabled: false, colProps: { span: 4 }, componentProps: { - allowClear: true + allowClear: true, + valueFormat: 'YYYY-MM-DD' } }, { diff --git a/src/views/finance/paymentSettlement/detail/components/applyInfo.vue b/src/views/finance/paymentSettlement/detail/components/applyInfo.vue index c6f7ea1c..e98d52ae 100644 --- a/src/views/finance/paymentSettlement/detail/components/applyInfo.vue +++ b/src/views/finance/paymentSettlement/detail/components/applyInfo.vue @@ -28,10 +28,10 @@ 删除 - + 附件 + @@ -46,21 +46,7 @@ - +