Commit fd5a35a7 by 陈超

A

parent 477f48be
......@@ -166,6 +166,7 @@
// 取消订单
cancelOrder(row){
this.orderForm.id=row.id
this.orderForm.mark=''
this.cancelOrderDialog=true
},
// 取消订单-取消
......@@ -174,13 +175,15 @@
},
// 取消订单-确认
cancelOrder_submit(){
this.cancelOrderDialog=false
if(this.orderForm.mark.length<=0){
this.orderForm.mark='未填写备注'
this.warn('请填写取消原因')
this.orderForm.mark=''
return
}else {
this.orderForm.reason = this.orderForm.mark
cancelOrderApi(this.orderForm).then(r => {
this.$message.success('发货成功')
this.$message.success('取消成功!')
this.cancelOrderDialog=false
this.getList(this.page)
}).catch(e =>{
this.$error(e)
......
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