Commit cc2584a8 authored by 黄奎's avatar 黄奎

报价修改

parent c637a214
...@@ -106,43 +106,93 @@ ...@@ -106,43 +106,93 @@
</el-tag> </el-tag>
</div> </div>
<div class="baseform"> <div class="baseform">
<el-form-item label="" prop="CostPrice" title="成本价人民币"> <table class="quotationTable">
<span class="label">契約料金 人民元</span> <tr>
<el-input @keyup.native="checkPrice(addMsg,'CostPrice')" size="mini" v-model="addMsg.CostPrice" <td title="房费" class="tdRight">
placeholder="契約料金 人民元" maxlength="7"></el-input> 宿泊費
</el-form-item> </td>
<el-form-item label="" prop="Money" title="内部卖价人民币"> <td>
<span class="label">社内料金 人民元</span> <el-input @keyup.native="checkPrice(addMsg,'RoomPrice'),changePrice()" v-model="addMsg.RoomPrice"
<el-input @keyup.native="checkPrice(addMsg,'Money')" size="mini" v-model="addMsg.Money" placeholder="宿泊費" maxlength="7" class="input"></el-input>
placeholder="社内料金 人民元" maxlength="7"></el-input> </td>
</el-form-item> <td title="消费税" class="tdRight">
<el-form-item label="" prop="B2BPrice" title="同行卖价人民币"> 消費税
<span class="label">同業料金 人民元</span> </td>
<el-input @keyup.native="checkPrice(addMsg,'B2BPrice')" size="mini" v-model="addMsg.B2BPrice" <td>
placeholder="同業料金 人民元" maxlength="7"></el-input> <el-input @keyup.native="checkPrice(addMsg,'XiaoFeiTax'),changePrice()" v-model="addMsg.XiaoFeiTax"
</el-form-item> placeholder="消費税" maxlength="7" class="input"></el-input>
<el-form-item label="" prop="B2CPrice" title="直客价格人民币"> </td>
<span class="label">販売料金 人民元</span> <td title="宿泊税" class="tdRight">
<el-input @keyup.native="checkPrice(addMsg,'B2CPrice')" size="mini" v-model="addMsg.B2CPrice" 宿泊税
placeholder="販売料金 人民元" maxlength="7"></el-input> </td>
</el-form-item> <td>
<el-form-item label="" title="是否含税"> <el-input @keyup.native="checkPrice(addMsg,'SuBoTax'),changePrice()" v-model="addMsg.SuBoTax"
<span class="label">税込みかどうか</span> placeholder="宿泊税" maxlength="7" class="input"></el-input>
<el-select size="small" v-model="addMsg.IsContainsTax" placeholder="税込みかどうか"> </td>
<el-option label="税抜き" :value='0'></el-option> <td title="入汤税" class="tdRight">
<el-option label="税込み" :value='1'></el-option> 入湯税
</el-select> </td>
</el-form-item> <td>
<el-form-item label="" prop="TaxPrice" title="税金" v-if="addMsg.IsContainsTax==0"> <el-input @keyup.native="checkPrice(addMsg,'RuTangTax'),changePrice()" v-model="addMsg.RuTangTax"
<span class="label">税金</span> placeholder="入湯税" maxlength="7" class="input"></el-input>
<el-input @keyup.native="checkPrice(addMsg,'TaxPrice')" size="mini" v-model="addMsg.TaxPrice" </td>
placeholder="税金" maxlength="7"></el-input> <td title="成本价" class="tdRight">
</el-form-item> 契約料金
<el-form-item label="" prop="Inventory" title="库存数量"> </td>
<span class="label">在庫数量</span> <td>
<el-input @keyup.native="checkInteger(addMsg,'Inventory')" size="mini" v-model="addMsg.Inventory" <el-input @keyup.native="checkPrice(addMsg,'CostPrice')" v-model="addMsg.CostPrice"
placeholder="在庫数量" maxlength="4"></el-input> placeholder="契約料金" maxlength="7" class="input"></el-input>
</el-form-item> </td>
</tr>
<tr>
<td title="内部卖价" class="tdRight">
社内料金
</td>
<td>
<el-input @keyup.native="checkPrice(addMsg,'Money')" class="input" v-model="addMsg.Money"
placeholder="社内料金" maxlength="7"></el-input>
</td>
<td title="同行卖价" class="tdRight">
同業料金
</td>
<td>
<el-input @keyup.native="checkPrice(addMsg,'B2BPrice')" class="input" v-model="addMsg.B2BPrice"
placeholder="同業料金" maxlength="7"></el-input>
</td>
<td title="直客价格" class="tdRight">
販売料金
</td>
<td>
<el-input @keyup.native="checkPrice(addMsg,'B2CPrice')" class="input" v-model="addMsg.B2CPrice"
placeholder="販売料金" maxlength="7"></el-input>
</td>
<td title="直客价格" class="tdRight">
在庫数量
</td>
<td colspan="3">
<el-input @keyup.native="checkInteger(addMsg,'Inventory')" class="input" v-model="addMsg.Inventory"
placeholder="在庫数量" maxlength="4"></el-input>
</td>
</tr>
<tr>
<td title="是否含税" class="tdRight">
税込みかどうか
</td>
<td>
<el-select size="small" v-model="addMsg.IsContainsTax" placeholder="税込みかどうか">
<el-option label="税抜き" :value='0'></el-option>
<el-option label="税込み" :value='1'></el-option>
</el-select>
</td>
<td title="税金" v-if="addMsg.IsContainsTax==0" class="tdRight">
税金
</td>
<td v-if="addMsg.IsContainsTax==0">
<el-input @keyup.native="checkPrice(addMsg,'TaxPrice')" class="input" v-model="addMsg.TaxPrice"
placeholder="税金" maxlength="7"></el-input>
</td>
</tr>
</table>
</div> </div>
</div> </div>
<div class="btnformItem"> <div class="btnformItem">
...@@ -173,6 +223,10 @@ ...@@ -173,6 +223,10 @@
Inventory: 0, Inventory: 0,
IsContainsTax: 1, //是否含税(1-含税,0-不含税) IsContainsTax: 1, //是否含税(1-含税,0-不含税)
TaxPrice: 0, //税金 TaxPrice: 0, //税金
RoomPrice: 0, //房费
XiaoFeiTax: 0, //消费税
SuBoTax: 0, //宿泊税
RuTangTax: 0, //入汤税
}, },
dateList: [], //日历数据 dateList: [], //日历数据
loading: false, loading: false,
...@@ -233,6 +287,12 @@ ...@@ -233,6 +287,12 @@
this.getMonths(); this.getMonths();
}, },
methods: { methods: {
//价格改变
changePrice() {
this.addMsg.CostPrice = Number(this.addMsg.RoomPrice) + Number(this.addMsg.XiaoFeiTax) + Number(this.addMsg
.SuBoTax) + Number(this.addMsg.RuTangTax);
this.addMsg.Money = (Number(this.addMsg.CostPrice) * Number(1.1)).toFixed(0);
},
goUrlRoom() { goUrlRoom() {
this.$router.push({ this.$router.push({
path: 'RoomList', path: 'RoomList',
...@@ -303,6 +363,7 @@ ...@@ -303,6 +363,7 @@
this.hotelInfo.IsContainsTax = json.IsContainsTax; this.hotelInfo.IsContainsTax = json.IsContainsTax;
this.hotelInfo.IsContainsTaxStr = json.IsContainsTaxStr; this.hotelInfo.IsContainsTaxStr = json.IsContainsTaxStr;
this.hotelInfo.TaxPrice = json.TaxPrice; this.hotelInfo.TaxPrice = json.TaxPrice;
for (let i = 0; i < this.dayList[key].days.length; i++) { for (let i = 0; i < this.dayList[key].days.length; i++) {
for (let j = 0; j < json.length; j++) { for (let j = 0; j < json.length; j++) {
if (this.dayList[key].days[i].day === json[j].DayStr) { if (this.dayList[key].days[i].day === json[j].DayStr) {
...@@ -384,6 +445,11 @@ ...@@ -384,6 +445,11 @@
this.addMsg.B2CPrice = 0; this.addMsg.B2CPrice = 0;
this.addMsg.IsContainsTax = 1; this.addMsg.IsContainsTax = 1;
this.addMsg.TaxPrice = 0; this.addMsg.TaxPrice = 0;
this.addMsg.RoomPrice = 0;
this.addMsg.XiaoFeiTax = 0;
this.addMsg.SuBoTax = 0;
this.addMsg.RuTangTax = 0;
}, },
//获取房型报价 //获取房型报价
GetRoomPrice(item) { GetRoomPrice(item) {
...@@ -401,6 +467,10 @@ ...@@ -401,6 +467,10 @@
this.addMsg.B2CPrice = tempData.B2CPrice; this.addMsg.B2CPrice = tempData.B2CPrice;
this.addMsg.IsContainsTax = tempData.IsContainsTax; this.addMsg.IsContainsTax = tempData.IsContainsTax;
this.addMsg.TaxPrice = tempData.TaxPrice; this.addMsg.TaxPrice = tempData.TaxPrice;
this.addMsg.RoomPrice = tempData.RoomPrice;
this.addMsg.XiaoFeiTax = tempData.XiaoFeiTax;
this.addMsg.SuBoTax = tempData.SuBoTax;
this.addMsg.RuTangTax = tempData.RuTangTax;
} }
}); });
}, },
...@@ -448,6 +518,23 @@ ...@@ -448,6 +518,23 @@
</script> </script>
<style> <style>
.Quotation .quotationTable tr td {
line-height: 40px;
}
.Quotation .quotationTable .tdRight {
width: 100px;
font-size: 12px;
color: #888888;
padding-right: 10px;
font-family: "Microsoft YaHei";
text-align: right;
}
.Quotation .quotationTable .input {
width: 100px;
}
.Quotation .el-checkbox__input.is-checked+.el-checkbox__label { .Quotation .el-checkbox__input.is-checked+.el-checkbox__label {
color: rgb(8, 155, 171); color: rgb(8, 155, 171);
} }
......
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