Commit e3670695 authored by zhengke's avatar zhengke

1

parent c9ce4794
......@@ -101,22 +101,20 @@
inception: false,
inceptionData: null,
OrderMsg: {
OrderType:2,
GuestNum:1, //人数
Unit_Price:'', //成交单价
DiscountMoney:0, //优惠金额
PreferPrice:'', //应收
OrderSource:'', //客人来源
HelpEnterId:'', //协助老师
CourseConsultantId:'', //课程顾问
SourceId:1, //传入Id
SaleRemark:'' //备注
OrderType: 2,
GuestNum: 1, //人数
Unit_Price: '', //成交单价
DiscountMoney: 0, //优惠金额
PreferPrice: '', //应收
OrderSource: '', //客人来源
HelpEnterId: '', //协助老师
CourseConsultantId: '', //课程顾问
SourceId: 1, //传入Id
SaleRemark: '' //备注
}
};
},
created() {
console.log(this.saveObj,'saveObj');
console.log(this.select,'select');
if (this.saveObj) {
this.OrderMsg.SourceId = this.saveObj.Id;
this.OrderMsg.Unit_Price = this.saveObj.SellPrice;
......@@ -218,7 +216,35 @@
},
//修改订单
saveOrderInfo() {
setClassOrder(this.OrderMsg)
.then(res => {
this.$emit("cancelloading"); //取消按钮的加载
if (res.Code == 1) {
this.$q.notify({
icon: "iconfont icon-chenggong",
color: "accent",
timeout: 2000,
message: "操作成功!",
position: "top"
});
//调用父页面成功方法
this.$emit("success");
this.IsShowEditOrder = false;
} else {
this.$q.notify({
type: "negative",
position: "top",
message: res.Message
});
}
})
.catch(err => {
this.$emit("cancelloading"); //取消按钮的加载
if (err.Code == 2) {
this.inceptionData = err;
this.inception = true;
}
});
},
goorder() {
this.OpenNewUrl("/sale/myOrder", {
......
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