Commit 96f92e07 authored by 黄奎's avatar 黄奎

11

parent ea46f992
......@@ -844,52 +844,49 @@
}, res => {
if (res.data.resultCode == 1) {
var objData = res.data.data;
var tipStr = "";
//库存不够
if (objData.isOverStock == 0) {
if (objData.list && objData.list.length > 0) {
var str = "";
objData.list.forEach((cItem, cIndex) => {
str += (cIndex == 0 ? "" : ",") + cItem.TCNUM + this.$t('objFill.shiyongle') + cItem
tipStr += (cIndex == 0 ? "" : ",") + cItem.TCNUM + this.$t('objFill.shiyongle') + cItem
.LastUseNum + this.$t(
'hotel.hotel_room');
});
if (str != "") {
this.Info(str);
}
}
}
//库存充足或没有酒店库存的情况
else if (objData.isOverStock == 1 || objData.isOverStock == -1) {
var tempOrderObj = this.dataList[this.findex].HotelOrderList[this.childIndex];
if (tempOrderObj) {
tempOrderObj.Address = ckedObj.Address;
tempOrderObj.NewHotelName = ckedObj.Name;
tempOrderObj.Tel = ckedObj.Tel;
tempOrderObj.NewHotelId = ckedObj.ID;
tempOrderObj.PayStyle = ckedObj.PayStyle;
tempOrderObj.PayStyleExt = ckedObj.PayStyle;
tempOrderObj.IsHaveHotelStock = 0;
if (ckedObj && ckedObj.Inventory > 0) {
tempOrderObj.IsHaveHotelStock = 1;
}
//判断供应商编号是否大于0
if (ckedObj.Supplier > 0) {
tempOrderObj.SupplierId = ckedObj.Supplier;
}
tempOrderObj.OrderDetailsList.forEach((subItem,
subIndex) => {
//判断是否有库存价格
if (subItem.HouseType == 2) {
subItem.UnitPrice = ckedObj.CostPrice;
}
});
if (tipStr != "") {
this.Info(tipStr);
}
var tempOrderObj = this.dataList[this.findex].HotelOrderList[this.childIndex];
if (tempOrderObj) {
tempOrderObj.Address = ckedObj.Address;
tempOrderObj.NewHotelName = ckedObj.Name;
tempOrderObj.Tel = ckedObj.Tel;
tempOrderObj.NewHotelId = ckedObj.ID;
tempOrderObj.PayStyle = ckedObj.PayStyle;
tempOrderObj.PayStyleExt = ckedObj.PayStyle;
tempOrderObj.IsHaveHotelStock = 0;
if (ckedObj && ckedObj.Inventory > 0) {
tempOrderObj.IsHaveHotelStock = 1;
}
this.calcPrice();
let str = `elPopoverHotel${this.findex}${this.childIndex}`
//关闭组件
this.$refs[str][0].doClose();
//判断供应商编号是否大于0
if (ckedObj.Supplier > 0) {
tempOrderObj.SupplierId = ckedObj.Supplier;
}
tempOrderObj.OrderDetailsList.forEach((subItem,
subIndex) => {
//判断是否有库存价格
if (subItem.HouseType == 2) {
subItem.UnitPrice = ckedObj.CostPrice;
}
});
}
}
this.calcPrice();
let str = `elPopoverHotel${this.findex}${this.childIndex}`
//关闭组件
this.$refs[str][0].doClose();
}
}, err => {})
},
//酒店报价
......
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