From b0704ac893c4e96b535de03dba22868619f242a3 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期五, 13 九月 2024 10:29:23 +0800 Subject: [PATCH] 零头修改 --- src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue b/src/views/hazardousChemicals/warehouseManage/components/addRawDialog.vue index 42daf42..3688e00 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 @@ -142,7 +142,14 @@ } const res = await getBasicList(param) if(res.code == 200){ - state.rawList = res.data.list + state.rawList = res.data.list.map(item => { + return{ + ...item, + name: item.name + '—' + item.productSn + '(' + item.metering +item.unit+')' + + } + }) + console.log('111',state.rawList) }else{ ElMessage.warning(res.message) } -- Gitblit v1.9.2