Commit 8957864a authored by 黄奎's avatar 黄奎

页面修改

parent c5321730
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
<el-input class="w120 LowNum" v-model="postConfig.DayNum" <el-input class="w120 LowNum" v-model="postConfig.DayNum"
@keyup.native="checkInteger(postConfig,'DayNum');createDayTripPrice()"> @keyup.native="checkInteger(postConfig,'DayNum');createDayTripPrice()" maxlength="2">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
<el-input class="w120 LowNum" v-model="postConfig.NightNum" <el-input class="w120 LowNum" v-model="postConfig.NightNum"
@keyup.native="checkInteger(postConfig,'NightNum')"> @keyup.native="checkInteger(postConfig,'NightNum')" maxlength="2">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -187,48 +187,47 @@ ...@@ -187,48 +187,47 @@
<th width="90"></th> <th width="90"></th>
<th width="90"></th> <th width="90"></th>
</tr> </tr>
<!-- <tr v-for="subItem in OfferCostPriceObj.CostLocalList" :key="subItem.subCode"> <tr v-for="subItem in dayCostPrice" :key="subItem.subCode">
<td align="center">{{subItem.DayNum}}</td> <td align="center">{{subItem.DayNum}}</td>
<td> <td>
<el-input type="textarea" resize="none"></el-input> <el-input type="textarea" resize="none" v-model="subItem.Title"></el-input>
</td> </td>
<td> <td>
<el-form-item> <el-form-item>
<el-select v-model='subItem.CurrencyId'> <el-select v-model='subItem.CurrencyId'>
<el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option>
<el-option v-for="items in OfferCostPriceObj.CostCurrencyList" :label='items.CurrencyName' <el-option v-for="items in OtherPrice.CostCurrencyList" :label='items.CurrencyName'
:value='items.CurrencyId' :key='items.CurrencyId'> :value='items.CurrencyId' :key='items.CurrencyId'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</td> </td>
<td> <td>
<el-input v-if="!showHotel" type='text' v-model="subItem.HotelMoney" <el-input type='text' v-model="subItem.HotelCostPrice"
@keyup.native="checkPrice(subItem,'HotelMoney')"></el-input> @keyup.native="checkPrice(subItem,'HotelCostPrice')"></el-input>
</td> </td>
<td> <td>
<span v-if="showCar">{{subItem.CarName}}</span> <el-input type='text' v-model="subItem.BusCostPrice" @keyup.native="checkPrice(subItem,'BusCostPrice')">
<el-input type='text' v-model="subItem.CarMoney" @keyup.native="checkPrice(subItem,'CarMoney')" </el-input>
v-if="!showCar"></el-input>
</td> </td>
<td> <td>
<span v-if="showTicket" class="QD_DetailName">{{subItem.TicketName}}</span> <el-input type='text' v-model="subItem.ScenicCostPrice"
<el-input type='text' v-model="subItem.TicketMoney" @keyup.native="checkPrice(subItem,'TicketMoney')" @keyup.native="checkPrice(subItem,'ScenicCostPrice')"></el-input>
v-if="!showTicket"></el-input>
</td> </td>
<td> <td>
<el-input type="text" :disabled='disabMoney' v-model='subItem.FoodItem[0].money' <el-input type="text" v-model='subItem.BreakfastCostPrice'
@keyup.native="checkPrice(subItem.FoodItem[0],'money')"></el-input> @keyup.native="checkPrice(subItem,'BreakfastCostPrice')">
</el-input>
</td> </td>
<td> <td>
<el-input type="text" :disabled='disabMoney' v-model='subItem.FoodItem[1].money' <el-input type="text" v-model='subItem.LunchCostPrice'
@keyup.native="checkPrice(subItem.FoodItem[1],'money')"></el-input> @keyup.native="checkPrice(subItem,'LunchCostPrice')"></el-input>
</td> </td>
<td> <td>
<el-input type="text" :disabled='disabMoney' v-model='subItem.FoodItem[2].money' <el-input type="text" v-model='subItem.DinnerCostPrice'
@keyup.native="checkPrice(subItem.FoodItem[2],'money')"></el-input> @keyup.native="checkPrice(subItem,'DinnerCostPrice')"></el-input>
</td> </td>
</tr> --> </tr>
</table> </table>
<div class="CP_ComTitle">内陆段交通部分</div> <div class="CP_ComTitle">内陆段交通部分</div>
<table class="CostPriceTable"> <table class="CostPriceTable">
...@@ -491,6 +490,7 @@ ...@@ -491,6 +490,7 @@
</tr> </tr>
</table> </table>
</el-form> </el-form>
</div> </div>
</div> </div>
</template> </template>
...@@ -499,6 +499,8 @@ ...@@ -499,6 +499,8 @@
props: ["postConfig", "OtherPrice", "dayCostPrice", "LineList"], props: ["postConfig", "OtherPrice", "dayCostPrice", "LineList"],
data() { data() {
return { return {
//下拉框默认值
defaultSelect:0,
queryMsg: { queryMsg: {
//汇率输入 //汇率输入
RateInput: "", RateInput: "",
...@@ -536,7 +538,33 @@ ...@@ -536,7 +538,33 @@
//生成行程报价 //生成行程报价
createDayTripPrice() { createDayTripPrice() {
if (this.postConfig.DayNum > this.dayCostPrice.length) {
for (var i = this.dayCostPrice.length; i < this.postConfig.DayNum; i++) {
//去掉以前默认的交通
var dayItem = {
Id: 0, //主键编号
OfferId: 0, //报价单编号
ConfigId: 0, //配置编号
Title: "", //行程大点
DayNum: i + 1, //行程天数
CurrencyId: 0, //币种
HotelCostPrice: 0, //酒店报价
BusCostPrice: 0, //车辆报价
ScenicCostPrice: 0, //景点报价
BreakfastCostPrice: 0, //早餐报价
LunchCostPrice: 0, //午餐报价
DinnerCostPrice: 0, //晚餐报价
};
this.dayCostPrice.push(dayItem);
}
} else {
//删除多余的项
for (var i = this.postConfig.DayNum; i < this.dayCostPrice.length; i++) {
this.dayCostPrice.splice(i, 1);
}
this.dayCostPrice.length = this.postConfig.DayNum;
}
console.log(" this.dayCostPrice", this.dayCostPrice);
}, },
//添加人数费用 //添加人数费用
addPeoNunber() { addPeoNunber() {
...@@ -602,7 +630,6 @@ ...@@ -602,7 +630,6 @@
}, },
mounted() { mounted() {
this.getAllCurrency(); this.getAllCurrency();
console.log("line", this.LineList);
}, },
watch: { watch: {
......
...@@ -470,7 +470,6 @@ ...@@ -470,7 +470,6 @@
} }
}, },
mounted() { mounted() {
console.log("获取值",this.postConfig);
var dateObj = this.$calendarUtils.getCurrentDate(); var dateObj = this.$calendarUtils.getCurrentDate();
this.yearInput = dateObj.CurrentYear; this.yearInput = dateObj.CurrentYear;
this.monthInput = dateObj.CurrentMonth; this.monthInput = dateObj.CurrentMonth;
......
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