From a9806bf3414d475ec8941a5f1069a69d2d737ba5 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 27 Aug 2024 16:08:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=20=E5=8F=91=E7=A5=A8=E5=9B=9E=E8=BD=AC=20?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoice/supplierinvoiceRecordMain/index.vue | 9 +++++++++ .../supplierinvoiceRecordMain.data.ts | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue index f5be107db..88bb7e34b 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue @@ -157,6 +157,8 @@ import {getAccessToken} from "@/utils/auth"; import {getJmreportBaseUrl} from "@/utils/systemParam"; import { formatDate } from '@/utils/formatTime' import { usePageLoading } from '@/hooks/web/usePageLoading' +import dayjs from 'dayjs' + const { loadStart, loadDone } = usePageLoading() // 供应商发票记录主 defineOptions({ name: 'SupplierinvoiceRecordMain' }) @@ -267,6 +269,12 @@ const buttonTableClick = async (val, row) => { }else if(val == 'transfer'){ //发票回转 basicFormRef.value.open('create', row) + nextTick(()=>{ + basicFormRef.value.formRef.setValues({ + reversepostingdate:dayjs().valueOf() + }) + }) + } } @@ -280,6 +288,7 @@ const submitForm = async (formType, data) => { await SupplierinvoiceRecordMainApi.reverseSupplierinvoiceRecordMain(data) message.success(t('ts.发票回转成功')) basicFormRef.value.dialogVisible = false + buttonBaseClick('refresh', null) } finally { loadDone() } diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts index 045c96aca..d27adb070 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts @@ -1,7 +1,6 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' import { accountantFormart } from '@/utils/formatter' -import dayjs from 'dayjs' /** * @returns {Array} 供应商发票记录主表 @@ -1667,7 +1666,6 @@ export const SupplierinvoiceRecordMainTransfer = useCrudSchemas(reactive