From 0530b41fccd2ee2723320221582d2a609cc2fcef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 9 Jan 2024 15:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=AE=A1=E5=88=92=20?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BD=BF=E7=94=A8=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionManage/productionplan/productionMain/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/wms/productionManage/productionplan/productionMain/index.vue b/src/views/wms/productionManage/productionplan/productionMain/index.vue index 896207135..5aa9a9950 100644 --- a/src/views/wms/productionManage/productionplan/productionMain/index.vue +++ b/src/views/wms/productionManage/productionplan/productionMain/index.vue @@ -230,6 +230,7 @@ const buttonTableClick = async (val, row) => { console.log(err) }) } else if (val == 'mainPlanSub') { // 提交审批 + if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') await message.confirm('确认要提交审批吗?') ProductionMainApi.submit(row.id).then(() => { message.success(t('common.updateSuccess')) @@ -246,6 +247,7 @@ const buttonTableClick = async (val, row) => { console.log(err) }) } else if (val == 'mainPlanApp') { // 审批通过 + if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') await message.confirm('确认要审批通过吗?') ProductionMainApi.agree(row.id).then(() => { message.success(t('common.updateSuccess')) @@ -254,6 +256,7 @@ const buttonTableClick = async (val, row) => { console.log(err) }) } else if (val == 'mainPlanPub') { // 发布 + if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') await message.confirm('确认要发布吗?') ProductionMainApi.publish(row.id).then(() => { message.success(t('common.updateSuccess'))