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

11

parent ea46f992
...@@ -844,22 +844,20 @@ ...@@ -844,22 +844,20 @@
}, 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 != "") {
this.Info(tipStr);
} }
//库存充足或没有酒店库存的情况
else if (objData.isOverStock == 1 || objData.isOverStock == -1) {
var tempOrderObj = this.dataList[this.findex].HotelOrderList[this.childIndex]; var tempOrderObj = this.dataList[this.findex].HotelOrderList[this.childIndex];
if (tempOrderObj) { if (tempOrderObj) {
tempOrderObj.Address = ckedObj.Address; tempOrderObj.Address = ckedObj.Address;
...@@ -889,7 +887,6 @@ ...@@ -889,7 +887,6 @@
//关闭组件 //关闭组件
this.$refs[str][0].doClose(); 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