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) + }) + } });