From e8ae17c0fbe5dc0a5424905c738004b143d9ce2c Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 22 八月 2024 15:04:14 +0800
Subject: [PATCH] 二维码打印排版

---
 src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue b/src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue
index 42daf42..d90e308 100644
--- a/src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue
+++ b/src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue
@@ -117,10 +117,10 @@
 const openDialog = async (type, value) => {
   await getRawBasicList("")
   await getWareHouseList("")
-  state.form.batchNo = moment(new Date()).format("YYYY-MM-DD")
+  state.form.batchNo = moment(new Date()).format("YYYYMMDD")
   title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑':'' ;
   if(type === 'edit' ) {
-    state.form = value;
+    state.form = JSON.parse(JSON.stringify(value));
     state.form.basicName = value.hazmatBasic.name
     state.form.warehouseName = value.warehouse.name;
     choosePro.value = value.hazmatBasic

--
Gitblit v1.9.2