Commit fbcd9094 authored by zhengyi's avatar zhengyi

复制订单逻辑修改

parent c298c59d
...@@ -1154,6 +1154,7 @@ export default { ...@@ -1154,6 +1154,7 @@ export default {
link:'', link:'',
conIndex:-1, conIndex:-1,
orderId:0, orderId:0,
copy:false,
unitType:[], unitType:[],
currencyType:[], currencyType:[],
lineMethod: false, lineMethod: false,
...@@ -1206,6 +1207,7 @@ export default { ...@@ -1206,6 +1207,7 @@ export default {
await this.$nextTick() await this.$nextTick()
this.orderId = op.id this.orderId = op.id
if (op.copy && op.copy == 1){ if (op.copy && op.copy == 1){
this.copy = true
this.getOrderData(op.id, true) this.getOrderData(op.id, true)
}else { }else {
this.getOrderData(op.id, false) this.getOrderData(op.id, false)
...@@ -3220,7 +3222,8 @@ export default { ...@@ -3220,7 +3222,8 @@ export default {
}, },
createOrder(){ createOrder(){
this.closePayNotice() this.closePayNotice()
if(this.orderId>0){ if(this.orderId > 0 && !this.copy){
// 订单id大于0,且不是复制订单,则调用编辑订单业务
this.updateOrder() this.updateOrder()
}else{ }else{
this.creatOrder() this.creatOrder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment