From f5e79248b3aa014e78189e1b6a5a4c98c43e3bd1 Mon Sep 17 00:00:00 2001 From: liangbin <15536829364@163.com> Date: Fri, 6 Feb 2026 10:39:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=AE=B0=E5=BD=95ID=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Tenement/BallheadCamera/components/DialogC.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/Tenement/BallheadCamera/components/DialogC.vue b/src/views/Tenement/BallheadCamera/components/DialogC.vue index e4dde0c..3f30ddf 100644 --- a/src/views/Tenement/BallheadCamera/components/DialogC.vue +++ b/src/views/Tenement/BallheadCamera/components/DialogC.vue @@ -78,7 +78,7 @@ import { ref, watch } from 'vue' import { formatDate } from '@/utils' import { approveInventoryAudit } from '@/api/tenement/inventoryAudit' -import { ElMessage } from 'element-plus' +import { dayjs, ElMessage } from 'element-plus' const props = defineProps({ show: { @@ -204,14 +204,15 @@ const handleSubmit = async () => { // 构建提交数据 const submitData = { - id: props.rowData?.id || props.rowData?.returnId, // 记录ID + allocId: props.rowData?.allocId, // 记录ID cameraId: props.rowData?.cameraId || props.rowData?.id, // 球机ID cameraNo: form.value.cameraNo, // 球机编号 warehouse: form.value.warehouse, // 入库仓库 - inboundTime: form.value.inboundTime, // 入库时间,如果没有选择则使用当前时间 + inboundTime: form.value.inboundTime ? dayjs(form.value.inboundTime).format('YYYY-MM-DD') : dayjs().format('YYYY-MM-DD'), // 入库时间,如果没有选择则使用当前时间 keeper: form.value.keeper || '', // 入库管理员 returnIds: props.rowData?.returnId ? [props.rowData.returnId] : [] // 从表格中的returnId获取 } + console.log("传递参数", submitData) submitting.value = true try {