From 056ce6b993cad69fd07b5ec491bcf97ce4959c99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Mon, 22 Jul 2024 16:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E6=96=99=E8=AE=A1=E5=88=92=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparetoissueplan/preparetoissueMain/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index bdb8faf57..89feccd34 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -489,20 +489,21 @@ const submitForm = async (formType, submitData) => { data.subList = tableData.value // 拼接子表数据参数 try { if (formType === 'create') { - await PreparetoissueMainApi.createPreparetoissueMain(data).then((res) => { + await PreparetoissueMainApi.createPreparetoissueMain(data).then(async (res) => { if (res.status == '6') { // 生成发料申请 - PreparetoissueMainApi.generateIssueRequest(res.number) + await PreparetoissueMainApi.generateIssueRequest(res.number) } + getList() }) message.success(t('common.createSuccess')) } else { await PreparetoissueMainApi.updatePreparetoissueMain(data) message.success(t('common.updateSuccess')) + getList() } formRef.value.dialogVisible = false // 刷新当前列表 - getList() } finally { formRef.value.formLoading = false }