From a593dfae54de741b8ca84d375357c5ca130faccb Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周一, 19 5月 2025 16:59:00 +0800 Subject: [PATCH] 11 --- 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