|
|
@@ -460,13 +460,20 @@ export default {
|
|
|
that.$refs.diffPriceRef.open('bottom')
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
this.removeFromSaveDirect()
|
|
|
- const {data: { id, orderSn,actPrice }} = res;
|
|
|
- if(this.form.hasPay == 0){
|
|
|
- this.$util.pageTo({ url: '/admin/billing/toPay',type:2,query: {orderId:id,orderSn:orderSn,actPrice:actPrice}})
|
|
|
+
|
|
|
+ if(res.data && res.data.id){
|
|
|
+ const {data: { id, orderSn,actPrice }} = res;
|
|
|
+ if(this.form.hasPay == 0){
|
|
|
+ this.$util.pageTo({ url: '/admin/billing/toPay',type:2,query: {orderId:id,orderSn:orderSn,actPrice:actPrice}})
|
|
|
+ }else{
|
|
|
+ this.$util.pageTo({ url: '/admin/billing/result',type:2,query: {orderId:id,orderSn:orderSn,title:'开单成功'}})
|
|
|
+ }
|
|
|
}else{
|
|
|
- this.$util.pageTo({ url: '/admin/billing/result',type:2,query: {orderId:id,orderSn:orderSn,title:'开单成功'}})
|
|
|
+ this.$msg('提交失败')
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|