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

11

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