Commit 397a3144 authored by 黄奎's avatar 黄奎

页面修改

parent 4e28d303
...@@ -374,10 +374,11 @@ ...@@ -374,10 +374,11 @@
L5: items.ID == 5, L5: items.ID == 5,
}">{{ items.Name }}</span> }">{{ items.Name }}</span>
</div> </div>
<template v-if="msg.IsRecommend==0" > <template v-if="msg.IsRecommend==0">
<div class="delScien" @click.stop="isdelete(item.ID)"> <div class="delScien" @click.stop="isdelete(item.ID)">
<i class="iconfont icon-xingzhuang"></i> <i class="iconfont icon-xingzhuang"></i>
</div></template> </div>
</template>
<div class="starSu"> <div class="starSu">
<div class="star" v-if="item.Star < 8"> <div class="star" v-if="item.Star < 8">
...@@ -436,36 +437,36 @@ ...@@ -436,36 +437,36 @@
</el-tooltip> </el-tooltip>
<div class="btnList"> <div class="btnList">
<template v-if="userInfo.RB_Group_id==2"> <template v-if="userInfo.RB_Group_id==2">
<template v-if="msg.IsRecommend==0"> <!-- <template v-if="msg.IsRecommend==0"> -->
<button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan"> <button @click="goSubInfo('HotelInfo', item.ID)" class="hotelBtnMan">
{{ $t("pub.updateMsg") }} {{ $t("pub.updateMsg") }}
</button> </button>
</template> <!-- </template> -->
<button @click="goSubInfo('HotelInfoDetails', item.ID)" class="hotelBtnMan"> <button @click="goSubInfo('HotelInfoDetails', item.ID)" class="hotelBtnMan">
详情 详情
</button> </button>
<template v-if="msg.IsRecommend==0"> <!-- <template v-if="msg.IsRecommend==0"> -->
<button @click="CopyHotel(item.ID)" class="hotelBtnMan" v-if="userInfo.RB_Group_id == QjGroupId()"> <button @click="CopyHotel(item.ID)" class="hotelBtnMan" v-if="userInfo.RB_Group_id == QjGroupId()">
{{$t('objFill.copy')}} {{$t('objFill.copy')}}
</button> </button>
</template> <!-- </template> -->
<template v-if="msg.IsRecommend==0"> <!-- <template v-if="msg.IsRecommend==0"> -->
<button @click="goproduct('HotelProductManage', item)" class="hotelBtnMan" <button @click="goproduct('HotelProductManage', item)" class="hotelBtnMan"
v-if="userInfo.RB_Group_id != QjGroupId()"> v-if="userInfo.RB_Group_id != QjGroupId()">
{{$t('hotel.hotel_roomType')}} {{$t('hotel.hotel_roomType')}}
</button> </button>
</template> <!-- </template> -->
<br /> <br />
<button v-if="(IsHotelPriceStock==1||userInfo.RB_Group_id!=2)&&msg.IsRecommend==0" style="width: 80px; margin-top: 10px" <button v-if="(IsHotelPriceStock==1||userInfo.RB_Group_id!=2)" style="width: 80px; margin-top: 10px"
@click="goUrl('HotelProductManage2', item)" class="hotelBtnMan"> @click="goUrl('HotelProductManage2', item)" class="hotelBtnMan">
{{ $t("ground.baojiayukucun") }} {{ $t("ground.baojiayukucun") }}
</button> </button>
<button v-if="IsHotelPriceStock==1&&msg.IsRecommend==0" style="width: 80px; margin-top: 10px" @click="downloadFile(item)" <button v-if="IsHotelPriceStock==1 " style="width: 80px; margin-top: 10px" @click="downloadFile(item)"
class="hotelBtnMan"> class="hotelBtnMan">
{{$t('objFill.shangchuanbj')}} {{$t('objFill.shangchuanbj')}}
</button> </button>
<template v-if="item.MaxFileDate&&item.MaxFileDate!=''&&msg.IsRecommend==0"> <template v-if="item.MaxFileDate&&item.MaxFileDate!=''">
<span style="color:red">{{$t('objFill.zuijinscsij')}}:{{item.MaxFileDate}}</span> <span style="color:red">{{$t('objFill.zuijinscsij')}}:{{item.MaxFileDate}}</span>
</template> </template>
</template> </template>
...@@ -588,7 +589,7 @@ ...@@ -588,7 +589,7 @@
QFileStartDate: "", //报价上传开始日期 QFileStartDate: "", //报价上传开始日期
QFileEndDate: "", //报价上传结束日期 QFileEndDate: "", //报价上传结束日期
IsUpFile: 0, //是否上传报价(1-已上传,2-未上传) IsUpFile: 0, //是否上传报价(1-已上传,2-未上传)
IsRecommend:0, IsRecommend: 0,
}, },
isDisableCountry: false, //是否禁用国家查询 isDisableCountry: false, //是否禁用国家查询
}; };
...@@ -902,16 +903,14 @@ ...@@ -902,16 +903,14 @@
if (tempData.includes(isStock)) { if (tempData.includes(isStock)) {
this.IsHotelPriceStock = 1; this.IsHotelPriceStock = 1;
} }
if (tempData.includes(editDmcSource)) {//查看列表权限 if (tempData.includes(editDmcSource)) { //查看列表权限
this.IsEditDmcSource = 1; this.IsEditDmcSource = 1;
} } else {
else{ this.msg.IsRecommend = 1;
this.msg.IsRecommend=1;
}
} }
} }
else{ } else {
this.msg.IsRecommend=1; this.msg.IsRecommend = 1;
} }
this.selectResource(); this.selectResource();
}); });
......
...@@ -71,29 +71,24 @@ ...@@ -71,29 +71,24 @@
<template> <template>
<table style="margin-left:3px;padding-top:2px;min-width:530px;"> <table style="margin-left:3px;padding-top:2px;min-width:530px;">
<tr> <tr>
<th width="40" style="text-align:center">{{$t('ground.pici')}}</th> <th width="75" style="text-align:center">{{$t('Operation.Op_price')}}</th>
<th width="100" style="text-align:center">{{$t('Operation.Op_price')}}</th> <th width="60" style="text-align:center">{{$t('ground.sankejia')}}</th>
<th width="40" style="text-align:center">{{$t('ground.sankejia')}}</th>
<th width="40" style="text-align:center">{{$t('objFill.shuijin')}}</th> <th width="40" style="text-align:center">{{$t('objFill.shuijin')}}</th>
<th width="40" style="text-align:center">{{$t('OrderList.rooms.sing')}}</th> <th width="80" style="text-align:center">{{$t('OrderList.rooms.sing')}}</th>
<th width="40" style="text-align:center">{{$t('op.NoneedBed')}}</th> <th width="60" style="text-align:center">{{$t('op.NoneedBed')}}</th>
<th width="40" style="text-align:center">{{$t('OrderList.rooms.three')}}</th> <th width="60" style="text-align:center">{{$t('OrderList.rooms.three')}}</th>
<th width="40" style="text-align:center">{{$t('objFill.dachuang')}}</th> <th width="40" style="text-align:center">{{$t('objFill.dachuang')}}</th>
<th width="40" style="text-align:center">{{$t('objFill.shidao')}}</th> <th width="40" style="text-align:center">{{$t('objFill.shidao')}}</th>
<th width="40" style="text-align:center">{{$t('objFill.rutangshui')}}</th> <th width="60" style="text-align:center">{{$t('objFill.rutangshui')}}</th>
<th width="40" style="text-align:center">{{$t('objFill.zaocan')}}</th> <th width="40" style="text-align:center">{{$t('objFill.zaocan')}}</th>
<th width="40" style="text-align:center">{{$t('objFill.wancan')}}</th> <th width="40" style="text-align:center">{{$t('objFill.wancan')}}</th>
<th width="50" style="text-align:center">{{$t('hotel.hotel_Inventory')}}</th> <th width="50" style="text-align:center">{{$t('hotel.hotel_Inventory')}}</th>
<th width="80" style="text-align:center">{{$t('ground.shengyukucun')}}</th> <th width="80" style="text-align:center">{{$t('ground.shengyukucun')}}</th>
<th width="140" style="text-align:center">{{$t('hotel.hotel_Supplier')}}</th> <th width="80" style="text-align:center">{{$t('objFill.shifouyanfang')}}</th>
<th width="140" style="text-align:center">{{$t('objFill.shifouyanfang')}}</th>
<th width="60" style="text-align:center">{{$t('hotel.table_operat')}}</th> <th width="60" style="text-align:center">{{$t('hotel.table_operat')}}</th>
<th width="60" style="text-align:center">{{$t('fnc.rizhi')}}</th> <th width="60" style="text-align:center">{{$t('fnc.rizhi')}}</th>
</tr> </tr>
<tr v-for="(childItem,childIndex) in subItem.data.SubList"> <tr v-for="(childItem,childIndex) in subItem.data.SubList" :key="`h_d_`+index2+childIndex">
<td style="text-align:center">
{{childItem.BatchNumber}}
</td>
<td style="text-align:center;white-space:nowrap; "> <td style="text-align:center;white-space:nowrap; ">
{{childItem.CostPrice}} {{childItem.PriceTaxTypeStr}} {{childItem.CostPrice}} {{childItem.PriceTaxTypeStr}}
</td> </td>
...@@ -133,9 +128,6 @@ ...@@ -133,9 +128,6 @@
<td style="text-align:center;white-space:nowrap; "> <td style="text-align:center;white-space:nowrap; ">
{{childItem.RemainingInventory}} {{childItem.RemainingInventory}}
</td> </td>
<td style="text-align:center">
{{childItem.SupplierName}}
</td>
<td style="text-align:center"> <td style="text-align:center">
<span <span
:style="childItem.IsMortgage ? 'color:red' :'color:green'">{{childItem.IsMortgage ?$t('fnc.yes'):$t('fnc.fou')}}</span> :style="childItem.IsMortgage ? 'color:red' :'color:green'">{{childItem.IsMortgage ?$t('fnc.yes'):$t('fnc.fou')}}</span>
...@@ -176,246 +168,15 @@ ...@@ -176,246 +168,15 @@
class="hollowbtn" /> class="hollowbtn" />
<input type="button" :value="$t('ground.piliangshanchu')" @click="delete2Reset()" class="hollowbtn" /> <input type="button" :value="$t('ground.piliangshanchu')" @click="delete2Reset()" class="hollowbtn" />
<input type="button" :value="$t('ground.chongzhi')" @click="edit2Reset()" class="hollowFixedBtn" /> <input type="button" :value="$t('ground.chongzhi')" @click="edit2Reset()" class="hollowFixedBtn" />
<input type="button" :value="$t('pub.saveBtn')" @click="edit2Save()" class="normalBtn" /> <el-button type="primary" size="small" class="normalBtn" :loading="saveLoading" @click="edit2Save()">
</div> {{$t('pub.saveBtn')}}</el-button>
</div>
<el-form :model="msg2" :rules="rules2" :inline="true" label-width="130px" ref="hotelProductForm2"
class="hotelProductManage2_edit2_form">
<el-row>
<el-col :span="24" class="HotelProductEdit_date">
<el-form-item :label="$t('ground.yixuanriqi')" prop="DateList">
<el-tag v-for="(item, key) in msg2.DateList" :key="key" type="info" style="margin: 0 5px 0 0;" closable
@close="calendarDayOff(item)">{{item}}</el-tag>
</el-form-item>
</el-col>
</el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;">
<el-col :span="6">
<el-form-item :label="$t('ground.kucunleixing')" prop="InventoryType">
<el-select v-model="msg2.InventoryType" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('ground.hongri')" value="1"></el-option>
<el-option :label="$t('ground.wangji')" value="2"></el-option>
<el-option :label="$t('ground.pingji')" value="3"></el-option>
<el-option :label="$t('ground.danji')" value="4"></el-option>
<el-option :label="$t('ground.tebiejia')" value="5"></el-option>
<el-option :label="$t('objFill.xingqianri')" value="6"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('hotel.hotel_Inventory')" prop="Inventory">
<el-input-number v-model="msg2.Inventory" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.pici')">
<el-select v-model="msg2.BatchNumber" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('ground.diyipi')" :value="1"></el-option>
<el-option :label="$t('ground.dierpi')" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.tiqianhuanfangts')">
<el-input-number v-model="msg2.BeforeDay" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.mianjianshu')">
<el-input-number v-model="msg2.FreeRoomNum" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.biaozhunjiancb')">
<el-input-number v-model="msg2.CostPrice" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.sankejia')">
<el-input-number v-model="msg2.SanKePrice" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.shuijin')">
<el-input-number v-model="msg2.TaxesPrice" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.dachuanjcb')" prop="BidroomPrice">
<el-input-number v-model="msg2.BidroomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.ziranjcb')" prop="SingleroomPrice">
<el-input-number v-model="msg2.SingleroomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.buzhanccb')" prop="ChildNotBedPrice">
<el-input-number v-model="msg2.ChildNotBedPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.sanrenjcb')" prop="AddBedPrice">
<el-input-number v-model="msg2.AddBedPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" style="display:none;">
<el-form-item :label="$t('ground.sijijcb')" prop="DriverRoomPrice">
<el-input-number v-model="msg2.DriverRoomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.sidaojcb')" prop="GuideRoomPrice">
<el-input-number v-model="msg2.GuideRoomPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.rutangshui')">
<el-input-number v-model="msg2.PriceInTangTax" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.zaocan')">
<el-checkbox v-model="msg2.PriceIsBreakfast" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
<el-form-item :label="$t('objFill.wancan')">
<el-checkbox v-model="msg2.PriceIsDinner" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item class="fontbold" :label="$t('objFill.shifouyanfang')">
<el-checkbox v-model="msg2.IsMortgage" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item :label="$t('ground.chengbenbz')" prop="CurrencyId">
<el-select v-model="msg2.CurrencyId" :placeholder="$t('pub.pleaseSel')" style="width:100px;"
@change="currency2Change">
<el-option :label="$t('pub.unlimitedSel')" value='0'></el-option>
<el-option v-for="(item,index) in allCurrencyList" :key="index" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('hotel.hotel_CurrentRate')" prop="CurrentRate">
<el-input v-model="msg2.CurrentRate" :placeholder="$t('hotel.hotel_CurrentRate')" style="width:80px;">
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('fnc.fkfangshi')">
<el-select class='w135 sel' v-model='msg2.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option :label='$t("pub.unlimitedSel")' :value='0'></el-option>
<el-option :label='$t("ground.xianfu")' :value='1'></el-option>
<el-option :label='$t("ground.qiandan")' :value='2'></el-option>
<el-option :label='$t("ground.shiwudk")' :value='3'></el-option>
<el-option :label='$t("ground.yufu")' :value='4'></el-option>
<el-option :label='$t("ground.yufukuandk")' :value='5'></el-option>
<el-option :label='$t("ground.gongsihetzf")' :value='6'></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-col :span="6">
<el-form-item :label="$t('ground.zhoumojiajia')" prop="WeekendAddPrice">
<el-input-number v-model="msg2.WeekendAddPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.neibujiajia')" prop="InteriorAddPrice">
<el-input-number v-model="msg2.InteriorAddPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.b2bjiajia')" prop="B2BPrice">
<el-input-number v-model="msg2.B2BPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('ground.b2cjiajia')" prop="B2CPrice">
<el-input-number v-model="msg2.B2CPrice" :precision="2" :min="0"></el-input-number>
</el-form-item>
</el-col>
</el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;">
<el-col :span="6">
<el-form-item :label="$t('hotel.hotel_Supplier')" prop="Supplier">
<el-select v-model="msg2.Supplier" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" value='0'></el-option>
<el-option v-for="(item,index) in SupplierList" :key="index" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.shurushubie')">
<el-select v-model="msg2.PriceTaxType" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option :key="1" :label="$t('ground.shuiruR0')" :value="1"></el-option>
<el-option :key="2" :label="$t('ground.shuiruR10')" :value="2"></el-option>
<el-option :key="3" :label="$t('ground.shuibieR0')" :value="3"></el-option>
<el-option :key="4" :label="$t('ground.shuibieR10')" :value="4"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('objFill.jiekuanfs')" prop="CustomerPayType">
<el-select v-model="msg2.CustomerPayType" :placeholder="$t('objFill.jiekuanfs')">
<el-option :key="1" :label="$t('objFill.zifu')" :value="1"></el-option>
<el-option :key="2" :label="$t('objFill.chufaqianjeikuan')" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="msg2.CustomerPayType==1?$t('objFill.ruzhuqjtcmd'):$t('objFill.ruzhuqjtjdj')"
prop="PayLimitFirstDay">
<el-input-number v-model="msg2.PayLimitFirstDay" :min="1"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="msg2.CustomerPayType==2&&userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.ruzhuqjtfwk')" prop="PayLimitEndDay">
<el-input-number v-model="msg2.PayLimitEndDay" :min="1"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="18">
<el-form-item :label="$t('pub.pubRemark')" prop="Remark">
<el-input type="textarea" v-model="msg2.Remark" :rows="1" :placeholder="$t('ground.qingshurbznr')"
style="width: 600px;">
</el-input>
</el-form-item>
</el-col>
<el-col :span="18">
<el-form-item :label="$t('hotel.hotel_attention')">
<el-input type="textarea" v-model="msg2.TipContent" :rows="1" :placeholder="$t('ground.qingshurbznr')"
style="width: 600px;">
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div> </div>
<!-- 弹出编辑 -->
<div class="hotelProductManage2_edit" v-show="editShow">
<div class="hotelProductManage2_edit_header">
<div>{{$t('restaurant.res_bidManage')}}</div>
<div>
<div @click="editCanel()">{{$t('pub.cancelBtn')}}</div>
<div @click="editSave()">{{$t('pub.saveBtn')}}</div>
</div> </div>
</div> <el-form :model="msg2" :inline="true" label-width="130px" class="hotelProductManage2_edit2_form">
<el-form :model="msg" :rules="rules" :inline="true" label-width="130px" ref="hotelProductForm"
class="hotelProductManage2_edit_form">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.riqixuanzfs')">
<el-form-item :label="$t('ground.riqixuanzfs')" prop="DayType"> <el-select v-model="msg2.DayType" :placeholder="$t('pub.pleaseSel')" @change="dayTypeChange">
<el-select v-model="msg.DayType" :placeholder="$t('pub.pleaseSel')" @change="dayTypeChange">
<el-option :label="$t('ground.annian')" value="1"></el-option> <el-option :label="$t('ground.annian')" value="1"></el-option>
<el-option :label="$t('ground.anyue')" value="2"></el-option> <el-option :label="$t('ground.anyue')" value="2"></el-option>
<el-option :label="$t('ground.anzhou')" value="3"></el-option> <el-option :label="$t('ground.anzhou')" value="3"></el-option>
...@@ -423,23 +184,34 @@ ...@@ -423,23 +184,34 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="HotelProductEdit_date"> <!--按年-->
<div v-show="msg.DayType==='1'||msg.DayType==='3'"> <template v-if="msg2.DayType=='1'">
<el-form-item :label="$t('pub.year')" prop="Year"> <el-col :span="18">
<el-date-picker v-model="msg.Year" type="year" value-format="yyyy" :placeholder="$t('pub.pleaseSel')"> <el-form-item :label="$t('pub.year')">
<el-date-picker v-model="msg2.Year" type="year" value-format="yyyy" :placeholder="$t('pub.pleaseSel')">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</div> </el-col>
<div v-show="msg.DayType==='2'"> </template>
<el-form-item :label="$t('pub.month')" prop="Month"> <template v-else-if="msg2.DayType=='2'">
<el-date-picker v-model="msg.Month" type="month" value-format="yyyy-MM" <el-col :span="18">
<el-form-item :label="$t('pub.month')">
<el-date-picker v-model="msg2.Month" type="month" value-format="yyyy-MM"
:placeholder="$t('pub.pleaseSel')"> :placeholder="$t('pub.pleaseSel')">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</div> </el-col>
<div v-show="msg.DayType==='3'"> </template>
<el-form-item :label="$t('pub.month')" label-width="30px" prop="Month"> <template v-else-if="msg2.DayType=='3'">
<el-select v-model="msg.Month" :placeholder="$t('pub.pleaseSel')"> <el-col :span="6">
<el-form-item :label="$t('pub.year')">
<el-date-picker v-model="msg2.Year" type="year" value-format="yyyy" :placeholder="$t('pub.pleaseSel')">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item :label="$t('pub.month')">
<el-select v-model="msg2.Month" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('ground.yuefen2[0]')" value="01"></el-option> <el-option :label="$t('ground.yuefen2[0]')" value="01"></el-option>
<el-option :label="$t('ground.yuefen2[1]')" value="02"></el-option> <el-option :label="$t('ground.yuefen2[1]')" value="02"></el-option>
<el-option :label="$t('ground.yuefen2[2]')" value="03"></el-option> <el-option :label="$t('ground.yuefen2[2]')" value="03"></el-option>
...@@ -454,10 +226,10 @@ ...@@ -454,10 +226,10 @@
<el-option :label="$t('ground.yuefen2[11]')" value="12"></el-option> <el-option :label="$t('ground.yuefen2[11]')" value="12"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </el-col>
<div v-show="msg.DayType==='3'"> <el-col :span="6">
<el-form-item :label="$t('ground.zhou')" label-width="30px" prop="Week"> <el-form-item :label="$t('ground.zhou')">
<el-select v-model="msg.Week" :placeholder="$t('pub.pleaseSel')"> <el-select v-model="msg2.Week" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('ground.xingqiji[0]')" value="0"></el-option> <el-option :label="$t('ground.xingqiji[0]')" value="0"></el-option>
<el-option :label="$t('ground.xingqiji[1]')" value="1"></el-option> <el-option :label="$t('ground.xingqiji[1]')" value="1"></el-option>
<el-option :label="$t('ground.xingqiji[2]')" value="2"></el-option> <el-option :label="$t('ground.xingqiji[2]')" value="2"></el-option>
...@@ -467,24 +239,34 @@ ...@@ -467,24 +239,34 @@
<el-option :label="$t('ground.xingqiji[6]')" value="6"></el-option> <el-option :label="$t('ground.xingqiji[6]')" value="6"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </el-col>
<div v-show="msg.DayType==='4'"> </template>
<el-form-item :label="$t('ground.zidingyi')" prop="StartDate"> <template v-else>
<el-date-picker v-model="msg.StartDate" type="date" :placeholder="$t('ground.qingxuanzekssj')" <el-col :span="18">
<el-form-item :label="$t('ground.zidingyi')">
<el-date-picker v-model="msg2.StartDate" type="date" :placeholder="$t('ground.qingxuanzekssj')"
format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker> format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item> </el-form-item>
<em>-</em> <em>-</em>
<el-form-item label="" prop="EndDate"> <el-form-item label="">
<el-date-picker v-model="msg.EndDate" type="date" :placeholder="$t('ground.qingxuanzejssj')" <el-date-picker v-model="msg2.EndDate" type="date" :placeholder="$t('ground.qingxuanzejssj')"
format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker> format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item> </el-form-item>
</div> </el-col>
</template>
</el-row>
<el-row v-if="msg2.DateList&&msg2.DateList.length>0">
<el-col :span="24" class="HotelProductEdit_date">
<el-form-item :label="$t('ground.yixuanriqi')">
<el-tag v-for="(item, key) in msg2.DateList" :key="key" type="info" style="margin: 0 5px 0 0;" closable
@close="calendarDayOff(item)">{{item}}</el-tag>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;"> <el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;">
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.kucunleixing')" prop="InventoryType"> <el-form-item :label="$t('ground.kucunleixing')">
<el-select v-model="msg.InventoryType" :placeholder="$t('pub.pleaseSel')"> <el-select v-model="msg2.InventoryType" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('ground.hongri')" value="1"></el-option> <el-option :label="$t('ground.hongri')" value="1"></el-option>
<el-option :label="$t('ground.wangji')" value="2"></el-option> <el-option :label="$t('ground.wangji')" value="2"></el-option>
<el-option :label="$t('ground.pingji')" value="3"></el-option> <el-option :label="$t('ground.pingji')" value="3"></el-option>
...@@ -495,98 +277,83 @@ ...@@ -495,98 +277,83 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('hotel.hotel_Inventory')" prop="Inventory"> <el-form-item :label="$t('hotel.hotel_Inventory')">
<el-input-number v-model="msg.Inventory" :min="0"></el-input-number> <el-input v-model="msg2.Inventory" @keyup.native="checkPrice(msg2,'Inventory')" maxlength="8"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.pici')">
<el-select v-model="msg.BatchNumber" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('ground.diyipi')" :value="1"></el-option>
<el-option :label="$t('ground.dierpi')" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.tiqianhuanfangts')">
<el-input-number v-model="msg.BeforeDay" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.mianjianshu')">
<el-input-number v-model="msg.FreeRoomNum" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.biaozhunjiancb')"> <el-form-item :label="$t('ground.biaozhunjiancb')">
<el-input-number v-model="msg.CostPrice" :precision="2" :min="0" maxlength="10"></el-input-number> <el-input v-model="msg2.CostPrice" @keyup.native="checkPrice(msg2,'CostPrice')" maxlength="10"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2"> <el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.sankejia')"> <el-form-item :label="$t('ground.sankejia')">
<el-input-number v-model="msg.SanKePrice" :precision="2" :min="0" maxlength="10"></el-input-number> <el-input v-model="msg2.SanKePrice" @keyup.native="checkPrice(msg2,'SanKePrice')" maxlength="10">
</el-form-item> </el-input>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.shuijin')">
<el-input-number v-model="msg.TaxesPrice" :precision="2" :min="0" maxlength="10"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.dachuanjcb')" prop="BidroomPrice"> <el-form-item :label="$t('ground.dachuanjcb')">
<el-input-number v-model="msg.BidroomPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.BidroomPrice" @keyup.native="checkPrice(msg2,'BidroomPrice')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.ziranjcb')" prop="SingleroomPrice"> <el-form-item :label="$t('ground.ziranjcb')">
<el-input-number v-model="msg.SingleroomPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.SingleroomPrice" @keyup.native="checkPrice(msg2,'SingleroomPrice')"
maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2"> <el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.buzhanccb')" prop="ChildNotBedPrice"> <el-form-item :label="$t('ground.buzhanccb')">
<el-input-number v-model="msg.ChildNotBedPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.ChildNotBedPrice" @keyup.native="checkPrice(msg2,'ChildNotBedPrice')"
maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.sanrenjcb')" prop="AddBedPrice"> <el-form-item :label="$t('ground.sanrenjcb')">
<el-input-number v-model="msg.AddBedPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.AddBedPrice" @keyup.native="checkPrice(msg2,'AddBedPrice')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" style="display:none;"> <el-col :span="6" style="display:none;">
<el-form-item :label="$t('ground.sijijcb')" prop="DriverRoomPrice"> <el-form-item :label="$t('ground.sijijcb')">
<el-input-number v-model="msg.DriverRoomPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.DriverRoomPrice" @keyup.native="checkPrice(msg2,'DriverRoomPrice')"
maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.sidaojcb')" prop="GuideRoomPrice"> <el-form-item :label="$t('ground.sidaojcb')">
<el-input-number v-model="msg.GuideRoomPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.GuideRoomPrice" @keyup.native="checkPrice(msg2,'GuideRoomPrice')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2"> <el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.rutangshui')"> <el-form-item :label="$t('ground.shuijin')">
<el-input-number v-model="msg.PriceInTangTax" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.TaxesPrice" @keyup.native="checkPrice(msg2,'TaxesPrice')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2"> <el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.zaocan')"> <el-form-item :label="$t('objFill.rutangshui')">
<el-checkbox v-model="msg.PriceIsBreakfast" :true-label="1" :false-label="0"></el-checkbox> <el-input v-model="msg2.PriceInTangTax" @keyup.native="checkPrice(msg2,'PriceInTangTax')" maxlength="10">
</el-form-item> </el-input>
<el-form-item :label="$t('objFill.wancan')">
<el-checkbox v-model="msg.PriceIsDinner" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2"> <el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item class="fontbold" :label="$t('objFill.shifouyanfang')"> <el-form-item :label="$t('ground.mianjianshu')">
<el-checkbox v-model="msg.IsMortgage" :true-label="1" :false-label="0"></el-checkbox> <el-input v-model="msg2.FreeRoomNum" @keyup.native="checkPrice(msg2,'FreeRoomNum')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.chengbenbz')" prop="CurrencyId"> <el-form-item :label="$t('ground.chengbenbz')">
<el-select v-model="msg.CurrencyId" :placeholder="$t('pub.pleaseSel')" style="width:100px;" <el-select v-model="msg2.CurrencyId" :placeholder="$t('pub.pleaseSel')" style="width:100px;"
@change="currencyChange"> @change="currency2Change">
<el-option :label="$t('pub.unlimitedSel')" value='0'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='0'></el-option>
<el-option v-for="(item,index) in allCurrencyList" :key="index" :label="item.Name" :value="item.ID"> <el-option v-for="(item,index) in allCurrencyList" :key="index" :label="item.Name" :value="item.ID">
</el-option> </el-option>
...@@ -594,14 +361,38 @@ ...@@ -594,14 +361,38 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('hotel.hotel_CurrentRate')" prop="CurrentRate"> <el-form-item :label="$t('hotel.hotel_CurrentRate')">
<el-input v-model="msg.CurrentRate" :placeholder="$t('hotel.hotel_CurrentRate')" style="width:80px;"> <el-input v-model="msg2.CurrentRate" :placeholder="$t('hotel.hotel_CurrentRate')" style="width:80px;">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.zaocan')">
<el-checkbox v-model="msg2.PriceIsBreakfast" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
<el-form-item :label="$t('objFill.wancan')">
<el-checkbox v-model="msg2.PriceIsDinner" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item class="fontbold" :label="$t('objFill.shifouyanfang')">
<el-checkbox v-model="msg2.IsMortgage" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.shurushubie')">
<el-select v-model="msg2.PriceTaxType" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option :key="1" :label="$t('ground.shuiruR0')" :value="1"></el-option>
<el-option :key="2" :label="$t('ground.shuiruR10')" :value="2"></el-option>
<el-option :key="3" :label="$t('ground.shuibieR0')" :value="3"></el-option>
<el-option :key="4" :label="$t('ground.shuibieR10')" :value="4"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('fnc.fkfangshi')"> <el-form-item :label="$t('fnc.fkfangshi')">
<el-select class='w135 sel' v-model='msg.PayStyle' :placeholder="$t('pub.pleaseSel')"> <el-select class='w135 sel' v-model='msg2.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option :label='$t("pub.unlimitedSel")' :value='0'></el-option> <el-option :label='$t("pub.unlimitedSel")' :value='0'></el-option>
<el-option :label='$t("ground.xianfu")' :value='1'></el-option> <el-option :label='$t("ground.xianfu")' :value='1'></el-option>
<el-option :label='$t("ground.qiandan")' :value='2'></el-option> <el-option :label='$t("ground.qiandan")' :value='2'></el-option>
...@@ -612,80 +403,91 @@ ...@@ -612,80 +403,91 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.pici')">
<el-select v-model="msg2.BatchNumber" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('ground.diyipi')" :value="1"></el-option>
<el-option :label="$t('ground.dierpi')" :value="2"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.tiqianhuanfangts')">
<el-input v-model="msg2.BeforeDay" @keyup.native="checkPrice(msg2,'BeforeDay')" maxlength="10"></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;" v-if="userInfo&&userInfo.RB_Group_id==2"> <el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.zhoumojiajia')" prop="WeekendAddPrice"> <el-form-item :label="$t('ground.zhoumojiajia')">
<el-input-number v-model="msg.WeekendAddPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.WeekendAddPrice" @keyup.native="checkPrice(msg2,'WeekendAddPrice')"
maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.neibujiajia')" prop="InteriorAddPrice"> <el-form-item :label="$t('ground.neibujiajia')">
<el-input-number v-model="msg.InteriorAddPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.InteriorAddPrice" @keyup.native="checkPrice(msg2,'InteriorAddPrice')"
maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.b2bjiajia')" prop="B2BPrice"> <el-form-item :label="$t('ground.b2bjiajia')">
<el-input-number v-model="msg.B2BPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.B2BPrice" @keyup.native="checkPrice(msg2,'B2BPrice')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('ground.b2cjiajia')" prop="B2CPrice"> <el-form-item :label="$t('ground.b2cjiajia')">
<el-input-number v-model="msg.B2CPrice" :precision="2" :min="0"></el-input-number> <el-input v-model="msg2.B2CPrice" @keyup.native="checkPrice(msg2,'B2CPrice')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;"> <el-row style="padding: 20px 0 0 0;border-top: 1px dashed #ccc;">
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('hotel.hotel_Supplier')" prop="Supplier"> <el-form-item :label="$t('hotel.hotel_Supplier')">
<el-select v-model="msg.Supplier" :placeholder="$t('pub.pleaseSel')"> <el-select v-model="msg2.Supplier" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" value='0'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="(item,index) in SupplierList" :key="index" :label="item.Name" :value="item.ID"> <el-option v-for="(item,index) in SupplierList" :key="index" :label="item.Name" :value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('ground.shurushubie')">
<el-select v-model="msg.PriceTaxType" :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option :key="1" :label="$t('ground.shuiruR0')" :value="1"></el-option>
<el-option :key="2" :label="$t('ground.shuiruR10')" :value="2"></el-option>
<el-option :key="3" :label="$t('ground.shuibieR0')" :value="3"></el-option>
<el-option :key="4" :label="$t('ground.shuibieR10')" :value="4"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('objFill.jiekuanfs')" prop="CustomerPayType"> <el-form-item :label="$t('objFill.jiekuanfs')">
<el-select v-model="msg.CustomerPayType" :placeholder="$t('objFill.jiekuanfs')"> <el-select v-model="msg2.CustomerPayType" :placeholder="$t('objFill.jiekuanfs')">
<el-option :key="1" :label="$t('objFill.zifu')" :value="1"></el-option> <el-option :key="1" :label="$t('objFill.zifu')" :value="1"></el-option>
<el-option :key="2" :label="$t('objFill.chufaqianjeikuan')" :value="2"></el-option> <el-option :key="2" :label="$t('objFill.chufaqianjeikuan')" :value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2"> <el-col :span="6" v-if="userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="msg.CustomerPayType==1?$t('objFill.ruzhuqjtcmd'):$t('objFill.ruzhuqjtjdj')" <el-form-item :label="msg2.CustomerPayType==1?$t('objFill.ruzhuqjtcmd'):$t('objFill.ruzhuqjtjdj')">
prop="PayLimitFirstDay"> <el-input v-model="msg2.PayLimitFirstDay" @keyup.native="checkPrice(msg2,'PayLimitFirstDay')"
<el-input-number v-model="msg.PayLimitFirstDay" :min="1"></el-input-number> maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="msg.CustomerPayType==2 && userInfo&&userInfo.RB_Group_id==2"> <el-col :span="6" v-if="msg2.CustomerPayType==2&&userInfo&&userInfo.RB_Group_id==2">
<el-form-item :label="$t('objFill.ruzhuqjtfwk')" prop="PayLimitEndDay"> <el-form-item :label="$t('objFill.ruzhuqjtfwk')">
<el-input-number v-model="msg.PayLimitEndDay" :min="1"></el-input-number> <el-input v-model="msg2.PayLimitEndDay" @keyup.native="checkPrice(msg2,'PayLimitEndDay')" maxlength="10">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="12">
<el-form-item :label="$t('pub.pubRemark')" prop="Remark"> <el-form-item :label="$t('pub.pubRemark')">
<el-input type="textarea" v-model="msg.Remark" :rows="1" :placeholder="$t('ground.qingshurbznr')" <el-input type="textarea" v-model="msg2.Remark" :rows="1" :placeholder="$t('ground.qingshurbznr')"
style="width: 600px;"> style="width: 605px;">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="18"> <el-col :span="12">
<el-form-item :label="$t('hotel.hotel_attention')"> <el-form-item :label="$t('hotel.hotel_attention')">
<el-input type="textarea" v-model="msg.TipContent" :rows="1" :placeholder="$t('ground.qingshurbznr')" <el-input type="textarea" v-model="msg2.TipContent" :rows="1" :placeholder="$t('ground.qingshurbznr')"
style="width: 600px;"> style="width: 605px;">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -723,41 +525,41 @@ ...@@ -723,41 +525,41 @@
} }
} }
var dateJudge = (rule, value, callback) => { var dateJudge = (rule, value, callback) => {
if (this.msg.Year === null) { if (this.msg2.Year === null) {
this.msg.Year = '' this.msg2.Year = ''
} }
if (this.msg.Month === null) { if (this.msg2.Month === null) {
this.msg.Month = '' this.msg2.Month = ''
} }
if (this.msg.DayType === '1') { if (this.msg2.DayType === '1') {
if (this.msg.Year.toString().trim() === '' && rule.field === 'Year') { if (this.msg2.Year.toString().trim() === '' && rule.field === 'Year') {
this.$message.error(this.$t('ground.qingxuanzn')) this.$message.error(this.$t('ground.qingxuanzn'))
callback(new Error()) callback(new Error())
} else { } else {
callback() callback()
} }
} else if (this.msg.DayType === '2') { } else if (this.msg2.DayType === '2') {
if (this.msg.Month.toString().trim() === '' && rule.field === 'Month') { if (this.msg2.Month.toString().trim() === '' && rule.field === 'Month') {
this.$message.error(this.$t('ground.qingxuanzy')) this.$message.error(this.$t('ground.qingxuanzy'))
callback(new Error()) callback(new Error())
} else { } else {
callback() callback()
} }
} else if (this.msg.DayType === '3') { } else if (this.msg2.DayType === '3') {
if (this.msg.Year.toString().trim() === '' && rule.field === 'Year') { if (this.msg2.Year.toString().trim() === '' && rule.field === 'Year') {
this.$message.error(this.$t('ground.qingxuanzn')) this.$message.error(this.$t('ground.qingxuanzn'))
callback(new Error()) callback(new Error())
} else if (this.msg.Week.toString().trim() === '' && rule.field === 'Week') { } else if (this.msg2.Week.toString().trim() === '' && rule.field === 'Week') {
this.$message.error(this.$t('ground.qingxuanzz')) this.$message.error(this.$t('ground.qingxuanzz'))
callback(new Error()) callback(new Error())
} else { } else {
callback() callback()
} }
} else if (this.msg.DayType === '4') { } else if (this.msg2.DayType === '4') {
if (this.msg.StartDate.toString().trim() === '' && rule.field === 'StartDate') { if (this.msg2.StartDate.toString().trim() === '' && rule.field === 'StartDate') {
this.$message.error(this.$t('ground.qingxuanzekssj')) this.$message.error(this.$t('ground.qingxuanzekssj'))
callback(new Error()) callback(new Error())
} else if (this.msg.EndDate.toString().trim() === '' && rule.field === 'EndDate') { } else if (this.msg2.EndDate.toString().trim() === '' && rule.field === 'EndDate') {
this.$message.error(this.$t('ground.qingxuanzejssj')) this.$message.error(this.$t('ground.qingxuanzejssj'))
callback(new Error()) callback(new Error())
} else { } else {
...@@ -781,75 +583,32 @@ ...@@ -781,75 +583,32 @@
show: false, show: false,
data: {} data: {}
}, },
editShow: false,
msg: {
Hotel: '0',
Supplier: 0,
Inventory: '0',
B2BPrice: '0',
B2CPrice: '0',
Remark: '',
CostPrice: '0',
CurrencyId: '',
CurrentRate: '',
StartDate: '',
EndDate: '',
InventoryType: '',
BidroomPrice: '0',
SingleroomPrice: '0',
ChildNotBedPrice: '0',
AddBedPrice: '0',
DriverRoomPrice: '0',
WeekendAddPrice: '0',
InteriorAddPrice: '0',
GuideRoomPrice: '0',
DayType: '4',
Year: '',
Month: '',
Week: '',
DateList: [],
SanKePrice: 0, //散客价
BatchNumber: 1, //批次号
TaxesPrice: 0, //税金
BeforeDay: 0, //提前还房天数
FreeRoomNum: 0, //免间数
PayStyle: 0, //付款方式
PriceTaxType: 0, //税入税别
PriceInTangTax: 0, //入汤税
PriceIsBreakfast: 1, //是否含早餐(1-含,0-不含)
PriceIsDinner: 0, //是否含晚餐(1-含,0-不含)
IsMortgage: 0,
TipContent: "", //注意事项
CustomerPayType: 2, //结款方式
PayLimitFirstDay: 1, //入住前几天上传名单
PayLimitEndDay: 1, //入住前几天交尾款
},
msg2: { msg2: {
Hotel: '0', DayType: '4', //添加类型
Supplier: 0, Year: '', //年
Inventory: '0', Month: '', //月
B2BPrice: '0', Week: '', //周
B2CPrice: '0', DateList: [], //选择的日期数组
Remark: '', StartDate: '', //开始日期
CostPrice: '0', EndDate: '', //结束结束
CurrencyId: '', Hotel: '0', //酒店
CurrentRate: '', Supplier: 0, //供应商
StartDate: '', Inventory: '0', //库存
EndDate: '', B2BPrice: '0', //B2B价格(同业价)
InventoryType: '', B2CPrice: '0', //B2C价格(直客价)
BidroomPrice: '0', Remark: '', //备注
SingleroomPrice: '0', CostPrice: '0', //成本价格(标准间)
ChildNotBedPrice: '0', CurrencyId: '', //币种
AddBedPrice: '0', CurrentRate: '', //汇率
DriverRoomPrice: '0', InventoryType: '', //库存类型 1红日 2 旺季 3平季 4淡季,5-特别价,6-行前日
WeekendAddPrice: '0', BidroomPrice: 0, //大床房成本价
InteriorAddPrice: '0', SingleroomPrice: 0, //单人间成本价
GuideRoomPrice: '0', ChildNotBedPrice: 0, //小孩不占床成本价
DayType: '5', AddBedPrice: 0, //加床成本价
Year: '', DriverRoomPrice: 0, //司机房成本价
Month: '', WeekendAddPrice: 0, //周末加价
Week: '', InteriorAddPrice: 0, //内部加价
DateList: [], GuideRoomPrice: 0, //导游房成本价
SanKePrice: 0, //散客价 SanKePrice: 0, //散客价
BatchNumber: 1, //批次号 BatchNumber: 1, //批次号
TaxesPrice: 0, //税金 TaxesPrice: 0, //税金
...@@ -860,205 +619,17 @@ ...@@ -860,205 +619,17 @@
PriceInTangTax: 0, //入汤税 PriceInTangTax: 0, //入汤税
PriceIsBreakfast: 1, //是否含早餐(1-含,0-不含) PriceIsBreakfast: 1, //是否含早餐(1-含,0-不含)
PriceIsDinner: 0, //是否含晚餐(1-含,0-不含) PriceIsDinner: 0, //是否含晚餐(1-含,0-不含)
IsMortgage: 0, IsMortgage: 0, //是否压房(1-是)
TipContent: "", //注意事项 TipContent: "", //注意事项
CustomerPayType: 2, //结款方式 CustomerPayType: 2, //结款方式
PayLimitFirstDay: 1, //入住前几天上传名单 PayLimitFirstDay: 1, //入住前几天上传名单
PayLimitEndDay: 1, //入住前几天交尾款 PayLimitEndDay: 1, //入住前几天交尾款
}, },
rules: {
InventoryType: {
validator: emptyJudge,
message: this.$t("ground.fromrule[0]"),
trigger: 'change'
},
DayType: {
validator: emptyJudge,
message: this.$t("ground.fromrule[1]"),
trigger: 'blur'
},
Year: {
validator: dateJudge,
message: this.$t("ground.fromrule[2]"),
trigger: 'blur'
},
Month: {
validator: dateJudge,
message: this.$t("ground.fromrule[3]"),
trigger: 'blur'
},
Week: {
validator: dateJudge,
message: this.$t("ground.fromrule[4]"),
trigger: 'blur'
},
StartDate: {
validator: dateJudge,
message: this.$t("ground.fromrule[5]"),
trigger: 'blur'
},
EndDate: {
validator: dateJudge,
message: this.$t("ground.fromrule[6]"),
trigger: 'blur'
},
Inventory: {
validator: emptyJudge,
message: this.$t("ground.fromrule[7]"),
trigger: 'blur'
},
CostPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[8]"),
trigger: 'blur'
},
BidroomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[9]"),
trigger: 'blur'
},
SingleroomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[10]"),
trigger: 'blur'
},
ChildNotBedPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[11]"),
trigger: 'blur'
},
AddBedPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[12]"),
trigger: 'blur'
},
DriverRoomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[13]"),
trigger: 'blur'
},
GuideRoomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[14]"),
trigger: 'blur'
},
CurrencyId: {
validator: emptyJudge,
message: this.$t("ground.fromrule[15]"),
trigger: 'change'
},
CurrentRate: {
validator: emptyJudge,
message: this.$t("ground.fromrule[16]"),
trigger: 'blur'
},
WeekendAddPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[17]"),
trigger: 'blur'
},
InteriorAddPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[18]"),
trigger: 'blur'
},
B2BPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[19]"),
trigger: 'blur'
},
B2CPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule[20]"),
trigger: 'blur'
},
},
rules2: {
InventoryType: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[0]"),
trigger: 'blur'
},
DateList: {
validator: arrJudge,
message: this.$t("ground.fromrule2[1]"),
trigger: 'blur'
},
Inventory: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[2]"),
trigger: 'blur'
},
CostPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[3]"),
trigger: 'blur'
},
BidroomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[4]"),
trigger: 'blur'
},
SingleroomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[5]"),
trigger: 'blur'
},
ChildNotBedPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[6]"),
trigger: 'blur'
},
AddBedPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[7]"),
trigger: 'blur'
},
DriverRoomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[8]"),
trigger: 'blur'
},
GuideRoomPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[9]"),
trigger: 'blur'
},
CurrencyId: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[10]"),
trigger: 'blur'
},
CurrentRate: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[11]"),
trigger: 'blur'
},
WeekendAddPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[12]"),
trigger: 'blur'
},
InteriorAddPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[13]"),
trigger: 'blur'
},
B2BPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[14]"),
trigger: 'blur'
},
B2CPrice: {
validator: emptyJudge,
message: this.$t("ground.fromrule2[15]"),
trigger: 'blur'
},
},
allCurrencyList: [], allCurrencyList: [],
//供应商数组 //供应商数组
SupplierList: [], SupplierList: [],
userInfo: {}, userInfo: {},
saveLoading: false,
} }
}, },
methods: { methods: {
...@@ -1176,56 +747,56 @@ ...@@ -1176,56 +747,56 @@
// 获取详情 // 获取详情
getDetail: function (date, BatchNumber) { getDetail: function (date, BatchNumber) {
this.apipost('dict_post_HotelOffer_GetHotelPriceInfo', { this.apipost('dict_post_HotelOffer_GetHotelPriceInfo', {
HotelId: this.msg.Hotel, HotelId: this.msg2.Hotel,
Time: date, Time: date,
BatchNumber: BatchNumber BatchNumber: BatchNumber
}, res => { }, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let data = res.data.data; let data = res.data.data;
this.msg.Supplier = data.Supplier === 0 ? 30 : data.Supplier this.msg2.Supplier = data.Supplier;
this.msg.Inventory = data.Inventory this.msg2.Inventory = data.Inventory;
this.msg.B2BPrice = data.B2BPrice this.msg2.B2BPrice = data.B2BPrice;
this.msg.B2CPrice = data.B2CPrice this.msg2.B2CPrice = data.B2CPrice;
this.msg.Remark = data.Remark this.msg2.Remark = data.Remark;
this.msg.CostPrice = data.CostPrice this.msg2.CostPrice = data.CostPrice;
this.msg.CurrencyId = data.CurrencyId this.msg2.CurrencyId = data.CurrencyId;
this.msg.CurrentRate = data.CurrentRate this.msg2.CurrentRate = data.CurrentRate;
this.msg.StartDate = data.Date this.msg2.StartDate = data.Date;
this.msg.EndDate = data.Date this.msg2.EndDate = data.Date;
this.msg.InventoryType = data.InventoryType.toString() this.msg2.InventoryType = data.InventoryType.toString();
this.msg.BidroomPrice = data.BidroomPrice this.msg2.BidroomPrice = data.BidroomPrice;
this.msg.SingleroomPrice = data.SingleroomPrice this.msg2.SingleroomPrice = data.SingleroomPrice;
this.msg.ChildNotBedPrice = data.ChildNotBedPrice this.msg2.ChildNotBedPrice = data.ChildNotBedPrice;
this.msg.AddBedPrice = data.AddBedPrice this.msg2.AddBedPrice = data.AddBedPrice;
this.msg.DriverRoomPrice = data.DriverRoomPrice this.msg2.DriverRoomPrice = data.DriverRoomPrice;
this.msg.WeekendAddPrice = data.WeekendAddPrice this.msg2.WeekendAddPrice = data.WeekendAddPrice;
this.msg.InteriorAddPrice = data.InteriorAddPrice this.msg2.InteriorAddPrice = data.InteriorAddPrice;
this.msg.GuideRoomPrice = data.GuideRoomPrice; this.msg2.GuideRoomPrice = data.GuideRoomPrice;
this.msg.SanKePrice = data.SanKePrice; this.msg2.SanKePrice = data.SanKePrice;
this.msg.BatchNumber = data.BatchNumber; this.msg2.BatchNumber = data.BatchNumber;
this.msg.TaxesPrice = data.TaxesPrice; this.msg2.TaxesPrice = data.TaxesPrice;
this.msg.BeforeDay = data.BeforeDay; this.msg2.BeforeDay = data.BeforeDay;
this.msg.FreeRoomNum = data.FreeRoomNum; this.msg2.FreeRoomNum = data.FreeRoomNum;
this.msg.PayStyle = data.PayStyle; this.msg2.PayStyle = data.PayStyle;
this.msg.PriceTaxType = data.PriceTaxType; this.msg2.PriceTaxType = data.PriceTaxType;
this.msg.PriceInTangTax = data.PriceInTangTax; this.msg2.PriceInTangTax = data.PriceInTangTax;
this.msg.PriceIsBreakfast = data.PriceIsBreakfast; this.msg2.PriceIsBreakfast = data.PriceIsBreakfast;
this.msg.PriceIsDinner = data.PriceIsDinner; this.msg2.PriceIsDinner = data.PriceIsDinner;
this.msg.IsMortgage = data.IsMortgage; this.msg2.IsMortgage = data.IsMortgage;
this.msg.TipContent = data.TipContent; this.msg2.TipContent = data.TipContent;
this.msg.CustomerPayType = data.CustomerPayType ? data.CustomerPayType : 2; this.msg2.CustomerPayType = data.CustomerPayType ? data.CustomerPayType : 2;
this.msg.PayLimitFirstDay = data.PayLimitFirstDay ? data.PayLimitFirstDay : 1; this.msg2.PayLimitFirstDay = data.PayLimitFirstDay ? data.PayLimitFirstDay : 1;
this.msg.PayLimitEndDay = data.PayLimitEndDay ? data.PayLimitEndDay : 1; this.msg2.PayLimitEndDay = data.PayLimitEndDay ? data.PayLimitEndDay : 1;
} }
}) })
}, },
// 日期类型切换 // 日期类型切换
dayTypeChange: function (val) { dayTypeChange: function (val) {
this.msg.Year = '' this.msg2.Year = ''
this.msg.Month = '' this.msg2.Month = ''
this.msg.Week = '' this.msg2.Week = ''
this.msg.StartDate = '' this.msg2.StartDate = ''
this.msg.EndDate = '' this.msg2.EndDate = ''
}, },
//获取所有币种 //获取所有币种
getAllCurrency() { getAllCurrency() {
...@@ -1233,20 +804,11 @@ ...@@ -1233,20 +804,11 @@
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.allCurrencyList = res.data.data; this.allCurrencyList = res.data.data;
} }
}, err => {}); });
},
// 币种切换
currencyChange: function (val) {
this.msg.CurrentRate = 0
for (let i = 0; i < this.allCurrencyList.length; i++) {
if (val === this.allCurrencyList[i].ID) {
this.msg.CurrentRate = this.allCurrencyList[i].CurrentRate;
}
}
}, },
// 币种切换 // 币种切换
currency2Change: function (val) { currency2Change: function (val) {
this.msg2.CurrentRate = 0 this.msg2.CurrentRate = 0;
for (let i = 0; i < this.allCurrencyList.length; i++) { for (let i = 0; i < this.allCurrencyList.length; i++) {
if (val === this.allCurrencyList[i].ID) { if (val === this.allCurrencyList[i].ID) {
this.msg2.CurrentRate = this.allCurrencyList[i].CurrentRate; this.msg2.CurrentRate = this.allCurrencyList[i].CurrentRate;
...@@ -1259,7 +821,7 @@ ...@@ -1259,7 +821,7 @@
Type: 1, Type: 1,
Country: 0 Country: 0
} }
if (this.userInfo && this.userInfo.RB_Group_id==2) { if (this.userInfo && this.userInfo.RB_Group_id == 2) {
postMsg.Country = 651; postMsg.Country = 651;
} }
this.apipost("supplier_post_GetAllList", postMsg, res => { this.apipost("supplier_post_GetAllList", postMsg, res => {
...@@ -1271,59 +833,38 @@ ...@@ -1271,59 +833,38 @@
// 打开编辑窗口 // 打开编辑窗口
goEdit: function (type, date, BatchNumber) { goEdit: function (type, date, BatchNumber) {
let nowDate = new Date().Format('yyyy-MM-dd'); let nowDate = new Date().Format('yyyy-MM-dd');
this.msg.StartDate = date === undefined ? nowDate : date; this.msg2.StartDate = date === undefined ? nowDate : date;
this.msg.EndDate = date === undefined ? nowDate : date; this.msg2.EndDate = date === undefined ? nowDate : date;
if (type === '2' && date) { if (type === '2' && date) {
this.getDetail(date, BatchNumber); this.getDetail(date, BatchNumber);
} }
this.editShow = true;
},
// 取消按钮
editCanel: function () {
this.editShow = false;
this.$refs['hotelProductForm'].resetFields();
this.msg.CostPrice = 0;
this.msg.SanKePrice = 0;
},
// 保存按钮
editSave: function () {
this.$refs['hotelProductForm'].validate((valid) => {
if (valid) {
this.apipost('dict_post_HotelOffer_SetNewHotelPrice', this.msg, res => {
if (res.data.resultCode === 1) {
this.Success(this.$t('ground.bianjichenggong'))
this.getMonths()
this.editShow = false
this.$refs['hotelProductForm'].resetFields();
this.msg.CostPrice = 0;
this.msg.SanKePrice = 0;
this.msg.BatchNumber = 1;
this.msg.TaxesPrice = 0;
this.msg.BeforeDay = 0;
this.msg.FreeRoomNum = 0;
this.msg.PayStyle = 0;
this.msg.PriceTaxType = 0;
this.msg.PriceInTangTax = 0;
this.msg.PriceIsBreakfast = 1;
this.msg.PriceIsDinner = 0;
this.msg.IsMortgage = 0;
this.msg.TipContent = "";
this.msg.CustomerPayType = 2;
this.msg.PayLimitFirstDay = 1;
this.msg.PayLimitEndDay = 1;
} else {
this.Error(res.data.message)
}
})
} else {
return false;
}
});
}, },
// 页面编辑重置 // 页面编辑重置
edit2Reset: function () { edit2Reset: function () {
this.$refs['hotelProductForm2'].resetFields(); this.msg2.DayType = '4';
this.msg2.Year = '';
this.msg2.Month = '';
this.msg2.Week = '';
this.msg2.DateList = [];
this.msg2.StartDate = '';
this.msg2.EndDate = '';
this.msg2.Supplier = 0;
this.msg2.Inventory = 0;
this.msg2.B2BPrice = 0;
this.msg2.B2CPrice = 0;
this.msg2.Remark = '';
this.msg2.CostPrice = 0; this.msg2.CostPrice = 0;
this.msg2.CurrencyId = 0;
this.msg2.CurrentRate = 0;
this.msg2.InventoryType = '';
this.msg2.BidroomPrice = 0;
this.msg2.SingleroomPrice = 0;
this.msg2.ChildNotBedPrice = 0;
this.msg2.AddBedPrice = 0;
this.msg2.DriverRoomPrice = 0;
this.msg2.WeekendAddPrice = 0;
this.msg2.InteriorAddPrice = 0;
this.msg2.GuideRoomPrice = 0;
this.msg2.SanKePrice = 0; this.msg2.SanKePrice = 0;
this.msg2.BatchNumber = 1; this.msg2.BatchNumber = 1;
this.msg2.TaxesPrice = 0; this.msg2.TaxesPrice = 0;
...@@ -1331,12 +872,14 @@ ...@@ -1331,12 +872,14 @@
this.msg2.FreeRoomNum = 0; this.msg2.FreeRoomNum = 0;
this.msg2.PayStyle = 0; this.msg2.PayStyle = 0;
this.msg2.PriceTaxType = 0; this.msg2.PriceTaxType = 0;
this.msg2.PriceTaxType = 0;
this.msg2.PriceInTangTax = 0; this.msg2.PriceInTangTax = 0;
this.msg2.PriceIsBreakfast = 1; this.msg2.PriceIsBreakfast = 1;
this.msg2.PriceIsDinner = 0; this.msg2.PriceIsDinner = 0;
this.msg2.IsMortgage = 0; this.msg2.IsMortgage = 0;
this.msg2.TipContent = ""; this.msg2.TipContent = '';
this.msg2.CustomerPayType = 2;
this.msg2.PayLimitFirstDay = 1;
this.msg2.PayLimitEndDay = 1;
}, },
//批量删除 //批量删除
delete2Reset: function () { delete2Reset: function () {
...@@ -1346,54 +889,26 @@ ...@@ -1346,54 +889,26 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
that.Success(res.data.message) that.Success(res.data.message)
that.getMonths(); that.getMonths();
that.$refs['hotelProductForm2'].resetFields(); that.edit2Reset();
that.msg2.CostPrice = 0;
that.msg2.SanKePrice = 0;
that.msg2.BatchNumber = 1;
that.msg2.TaxesPrice = 0;
that.msg2.BeforeDay = 0;
that.msg2.FreeRoomNum = 0;
that.msg2.PayStyle = 0;
that.msg2.PriceTaxType = 0;
that.msg2.PriceInTangTax = 0;
that.msg2.PriceIsBreakfast = 1;
that.msg2.PriceIsDinner = 0;
that.msg2.IsMortgage = 0;
that.msg2.TipContent = "";
} else { } else {
that.Error(res.data.message) that.Error(res.data.message)
} }
}, err => {}) })
}); });
}, },
// 页面编辑保存 //页面编辑保存
edit2Save: function () { edit2Save: function () {
this.$refs['hotelProductForm2'].validate((valid) => { this.saveLoading = true;
if (valid) {
this.apipost('dict_post_HotelOffer_SetNewHotelPrice', this.msg2, res => { this.apipost('dict_post_HotelOffer_SetNewHotelPrice', this.msg2, res => {
this.saveLoading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(this.$t('ground.bianjichenggong')) this.Success(this.$t('ground.bianjichenggong'))
this.getMonths(); this.getMonths();
this.$refs['hotelProductForm2'].resetFields(); this.edit2Reset()
this.msg2.CostPrice = 0;
this.msg2.SanKePrice = 0;
this.msg2.BatchNumber = 1;
this.msg2.TaxesPrice = 0;
this.msg2.BeforeDay = 0;
this.msg2.FreeRoomNum = 0;
this.msg2.PayStyle = 0;
this.msg2.PriceTaxType = 0;
this.msg2.CustomerPayType = 2;
this.msg2.PayLimitFirstDay = 1;
this.msg2.PayLimitEndDay = 1;
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
}) })
} else {
return false;
}
});
}, },
//增加全选 //增加全选
changeHotelStatus(item, index) { changeHotelStatus(item, index) {
...@@ -1419,13 +934,12 @@ ...@@ -1419,13 +934,12 @@
created: function () { created: function () {
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
this.hotelId = this.$route.query.id === undefined ? '0' : this.$route.query.id; this.hotelId = this.$route.query.id === undefined ? '0' : this.$route.query.id;
this.msg.Hotel = this.$route.query.id === undefined ? '0' : this.$route.query.id;
this.msg2.Hotel = this.$route.query.id === undefined ? '0' : this.$route.query.id; this.msg2.Hotel = this.$route.query.id === undefined ? '0' : this.$route.query.id;
this.condition.month = new Date().Format('yyyy-MM'); this.condition.month = new Date().Format('yyyy-MM');
let nowDate = new Date().Format('yyyy-MM-dd'); let nowDate = new Date().Format('yyyy-MM-dd');
this.msg.DayType = '4'; this.msg2.DayType = '4';
this.msg.StartDate = nowDate; this.msg2.StartDate = nowDate;
this.msg.EndDate = nowDate; this.msg2.EndDate = nowDate;
}, },
mounted: function () { mounted: function () {
this.getMonths(); this.getMonths();
...@@ -1448,7 +962,6 @@ ...@@ -1448,7 +962,6 @@
} }
.hotelproductCkbox { .hotelproductCkbox {
/* width: 10%; */
height: 30px; height: 30px;
float: right; float: right;
margin: 5px 20px 0 0; margin: 5px 20px 0 0;
...@@ -1550,7 +1063,6 @@ ...@@ -1550,7 +1063,6 @@
display: inline-block; display: inline-block;
margin: 5px; margin: 5px;
width: 24%; width: 24%;
/* width:438px; */
background-color: #fff; background-color: #fff;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
border-radius: 4px; border-radius: 4px;
...@@ -1566,7 +1078,6 @@ ...@@ -1566,7 +1078,6 @@
width: 100%; width: 100%;
height: 30px; height: 30px;
float: left; float: left;
/* margin-left: 110px; */
line-height: 30px; line-height: 30px;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
......
...@@ -321,8 +321,8 @@ ...@@ -321,8 +321,8 @@
<li> <li>
<button class="hollowFixedBtn" type="button" <button class="hollowFixedBtn" type="button"
@click="resetPageIndex(),selectResource()">{{$t('pub.searchBtn')}}</button> @click="resetPageIndex(),selectResource()">{{$t('pub.searchBtn')}}</button>
<!--v-if="IsEditDmcSource==1"-->
<button class="normalBtn" type="button" <button v-if="IsEditDmcSource==1" class="normalBtn" type="button"
@click="$router.push('restaurantInfoManage')">{{$t('pub.addBtn')}}</button> @click="$router.push('restaurantInfoManage')">{{$t('pub.addBtn')}}</button>
</li> </li>
</ul> </ul>
...@@ -373,9 +373,9 @@ ...@@ -373,9 +373,9 @@
{{item.UpdateTimeStr}} {{item.UpdateTimeStr}}
</div> </div>
<div class="btnList" :style="msg.IsRecommend==1?'text-align:left;':''"> <div class="btnList" :style="msg.IsRecommend==1?'text-align:left;':''">
<button v-if="msg.IsRecommend==0" @click="goSubInfo('restaurantInfoManage',item.ID)" class="hotelBtn">{{$t('pub.updateMsg')}}</button> <button v-if="IsEditDmcSource==1" @click="goSubInfo('restaurantInfoManage',item.ID)" class="hotelBtn">{{$t('pub.updateMsg')}}</button>
<button :style="msg.IsRecommend==1?'margin-left:19px;':''" @click="goSubInfo('restaurantInfoDetail',item.ID)" class="hotelBtn">{{$t('fnc.xiangqing')}}</button> <button :style="msg.IsRecommend==1?'margin-left:19px;':''" @click="goSubInfo('restaurantInfoDetail',item.ID)" class="hotelBtn">{{$t('fnc.xiangqing')}}</button>
<button v-if="IsHotelPriceStock==1&&msg.IsRecommend==0" @click="goUrl('RestaurantPackage',item.ID)" <button v-if="IsHotelPriceStock==1&&IsEditDmcSource==1" @click="goUrl('RestaurantPackage',item.ID)"
class="hotelBtn">{{$t('restaurant.res_package')}}</button> class="hotelBtn">{{$t('restaurant.res_package')}}</button>
</div> </div>
</div> </div>
......
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