From 5b64e3b1608f00d95f489e12c571935c391db429 Mon Sep 17 00:00:00 2001 From: YuanFeng <770153798@qq.com> Date: Wed, 20 Nov 2024 08:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E4=B8=8B=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/oms/order/createorder/index.vue | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue b/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue index f58649f..9a5792b 100644 --- a/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue +++ b/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue @@ -634,35 +634,35 @@ const addNewBill = () => { console.log("stepRef.value.getTableData()", stepRef.value.getTableData()) submitPreHandler().then(res=>{ console.log("formData",formData.value) - // if(formData.value.id){ - // SaleOrderApi.editOrder(formData.value.id,{ - // ...formData.value - // }).then(res => { - // that.pageLoading = ElLoading.service({ - // lock: true, - // text: '修改成功...', - // background: 'rgba(0,0,0,0.5)' - // }) - // setTimeout(()=>{ - // that.pageLoading.close() - // push("/") - // },800) - // }) - // }else { - // SaleOrderApi.placeOrder({ - // ...formData.value - // }).then(res => { - // that.pageLoading = ElLoading.service({ - // lock: true, - // text: '下单成功...', - // background: 'rgba(0,0,0,0.5)' - // }) - // setTimeout(()=>{ - // that.pageLoading.close() - // push("/") - // },800) - // }) - // } + if(formData.value.id){ + SaleOrderApi.editOrder(formData.value.id,{ + ...formData.value + }).then(res => { + that.pageLoading = ElLoading.service({ + lock: true, + text: '修改成功...', + background: 'rgba(0,0,0,0.5)' + }) + setTimeout(()=>{ + that.pageLoading.close() + push("/") + },800) + }) + }else { + SaleOrderApi.placeOrder({ + ...formData.value + }).then(res => { + that.pageLoading = ElLoading.service({ + lock: true, + text: '下单成功...', + background: 'rgba(0,0,0,0.5)' + }) + setTimeout(()=>{ + that.pageLoading.close() + push("/") + },800) + }) + } });