From a3a2b238a2626ef8744e7a135f9ca2e2fbb5184c Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 21 5月 2025 10:17:36 +0800 Subject: [PATCH] 优化 --- PipeLineLems/pipelinelems_web/src/widgets/CallMaterialOrder/Controllers/CallMaterialOrder.ts | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/PipeLineLems/pipelinelems_web/src/widgets/CallMaterialOrder/Controllers/CallMaterialOrder.ts b/PipeLineLems/pipelinelems_web/src/widgets/CallMaterialOrder/Controllers/CallMaterialOrder.ts index 6d31ed6..062cb6c 100644 --- a/PipeLineLems/pipelinelems_web/src/widgets/CallMaterialOrder/Controllers/CallMaterialOrder.ts +++ b/PipeLineLems/pipelinelems_web/src/widgets/CallMaterialOrder/Controllers/CallMaterialOrder.ts @@ -160,11 +160,15 @@ `鏄惁瑕佸彨鏂�${names.length ? names.join(',') : ''}` ).then(async () => { const ids = selection.value.map((item: { id: string }) => item.id) - await callMaterialOrder.callMaterialByDataIdentifier({ + var ret= await callMaterialOrder.callMaterialByDataIdentifier({ id:ids[0] }) - ElMessage.success('鍙枡鎴愬姛') - tableRef.value.getList() + if(ret.code=="200"){ + ElMessage.success('鍙枡鎴愬姛') + tableRef.value.getList() + }else{ + ElMessage.error('鍙枡澶辫触:'+ret.message) + } }) } -- Gitblit v1.9.3