Commit 13147ce3 authored by 黄奎's avatar 黄奎

页面修改

parent 3cb2d466
......@@ -410,7 +410,7 @@ export default {
}, err => {})
},
addCheckbox(item){
console.log('11111:'+item.check)
},
GenerateDocuments() {
if(this.DataList.filter(citem => citem.check).length == 0) {
......
......@@ -159,10 +159,7 @@
<th width="80">{{$t('ground.jinexiaoji')}}</th>
<th width="80">{{$t('ground.fanyongleixing')}}</th>
<th width="80">{{$t('hotel.hotel_commission')}}</th>
<th width="80">{{$t('ground.fanyongyjin')}}</th>
<th width="80">{{$t('ground.rutangshui')}}</th>
<th width="80">{{$t('ground.chengshishui')}}</th>
<th width="80">{{$t('ground.tingchefei')}}</th>
<th width="80">{{$t('ground.fanyongyjin')}}</th>
<th width="100">{{$t('ground.jinezongji')}}</th>
<th width="250">{{$t('ground.fukuanbzdth')}}</th>
<th width="80">{{$t('system.table_operation')}}</th>
......@@ -420,19 +417,7 @@
{{(childItem.UnitPrice * (childItem.BookNum - childItem.HotelDiscount) * (1)*( childItem.RebateRatio / 100)).toFixed(2)}}
</template>
</template>
</td>
<!-- 入汤税 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6">
{{subItem.InTangTax}}
</td>
<!-- 城市税 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6">
{{subItem.CityTax}}
</td>
<!-- 停车费 -->
<td style="white-space:nowrap;" v-if="childIndex==0" :rowspan="6">
{{subItem.ParkFee}}
</td>
</td>
<!-- 金额总计 -->
<td v-if="childIndex==0" :rowspan="6" style="white-space:nowrap;">
{{subItem.TotalPrice}}
......@@ -511,7 +496,7 @@
<el-option :label="$t('ground.lingduidydf')" :value='10'></el-option>
<el-option :label="$t('ground.shuaka')" :value='11'></el-option>
<el-option :label="$t('objFill.zhuanzhang')" :value='14'></el-option>
 <el-option :label="$t('ground.enterpriseAlipay')"  :value='15'></el-option>
<el-option :label="$t('ground.enterpriseAlipay')" :value='15'></el-option>
</el-select>
</td>
</tr>
......@@ -581,7 +566,6 @@
<td>
<el-select class='w135 sel' v-model='subItem.IsPay' :placeholder="$t('pub.pleaseSel')"
:disabled="IsEditHotel==0?true:false">
<!-- <el-option :label="$t('pub.pleaseSel')" :value='0'></el-option> -->
<el-option :label="$t('pub.no')" :value='0'></el-option>
<el-option :label="$t('pub.yes')" :value='1'></el-option>
</el-select>
......@@ -649,7 +633,6 @@
<p>{{$t('active.ld_noData')}}</p>
</div>
</div>
</div>
</template>
<script>
......@@ -811,7 +794,6 @@
var useTime = oldData.CheckInDateStr;
var hotelId = ckedObj.ID;
var TCID = oldData.TCID;
console.log("checkHotel", ckedObj);
this.apipost('travel_get_GetHotelUsePriceListService_V2', {
HotelId: hotelId,
UseTime: useTime,
......@@ -1103,7 +1085,6 @@
return item.ID === obj.CurrencyId; //筛选出匹配数据
});
}
//日元
let jpaObj = this.allCurrencyList.find(item => {
return item.ID === 3; //筛选出匹配数据
......@@ -1255,10 +1236,6 @@
}
});
})
let mag = {
TotalList: this.list,
SingleItem: item
};
this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
......
......@@ -22,26 +22,27 @@
{{$t('salesModule.CompanyNum')}}
</th>
<th colspan="17" style="text-align:left;">
<p class="link" @click="goUrlT('productQuery',TCNUM,'产品查询')">{{TCNUM}}</p>
<p class="link" @click="goUrlT('productQuery',TCNUM,'产品查询')"
style="text-decoration:underline;cursor:pointer;">{{TCNUM}}</p>
</th>
</tr>
<tr>
<th width="100">{{$t('restaurant.res_etTime')}}</th>
<th width="200">{{$t('restaurant.res_resName')}}</th>
<th width="150">{{$t('ground.xiugaict')}}</th>
<th width="200">{{$t('ground.xiugaict')}}</th>
<th width="80">{{$t('ground.leibie')}}</th>
<th width="70">{{$t('ground.zongrenshu')}}</th>
<th width="70">{{$t('ground.yongcanren')}}<br />{{$t('advmanager.v_type')}}</th>
<th width="70">{{$t('commonPickUp.Pick_Ding')}}<br />{{$t('admin.admin_personNumber')}}</th>
<th width="120">{{$t('Operation.Op_price')}}</th>
<th width="90">{{$t('ground.mianrenshu')}}</th>
<th width="80">{{$t('ground.jinexiaoji')}}</th>
<th width="90">{{$t('hotel.hotel_commission')}}</th>
<th width="80">{{$t('ground.jinexiaoji')}}</th>
<th width="100">{{$t('fnc.a_zongjine')}}</th>
<th width="210">{{$t('ground.fkfsdcfsdth')}}</th>
<th width="170">{{$t('pub.pubRemark')}}</th>
</tr>
<template v-for="(item,index) in list">
<template v-for="(item,index) in dinnerList">
<template v-for="(subItem,subIndex) in item.DiningSummaryList">
<tr v-for="(childItem,childIndex) in subItem.DiningPriceList" :key="`d_`+index+subIndex+childIndex">
<td v-if="childIndex==0" :rowspan="3">
......@@ -52,7 +53,7 @@
<tr>
<td colspan="2">
<span style="padding-left:5px;" class="link"
@click="goUrlR('restaurantList',subItem.DiningID,'餐厅列表')">{{subItem.DiningName}}
@click="goUrlT('restaurantList',subItem.DiningID,'餐厅列表')">{{subItem.DiningName}}
<br />
{{$t('ground.zhenshimingcheng')}}: {{subItem.DiningRealName}}
</span>
......@@ -133,7 +134,7 @@
</td>
<td>
<template v-if="EditBtn||LineId==90">
<el-input class='w50' v-model='childItem.UsePeopleNum' @input='calculationPrice(subItem)'
<el-input class='w50' v-model='childItem.UsePeopleNum' @input='calculationPrice()'
@keyup.native="checkInteger(childItem,'UsePeopleNum')" type="text"></el-input>
</template>
<template v-else>
......@@ -142,30 +143,30 @@
</td>
<td>
<template v-if="EditBtn||LineId==90">
<el-input class='w110' v-model='childItem.PeoplePrice' @input='calculationPrice(subItem)'
<el-input class='w100' v-model='childItem.PeoplePrice' @input='calculationPrice()'
@keyup.native="checkPrice(childItem,'PeoplePrice')" type="text"></el-input>
</template>
<template v-else>
<span class="spanlink" v-if='childItem.PeoplePrice==0'
@click="goUrl('RestaurantPackage',subItem,'套餐查询')">{{$t('leader.leader_Set')}}</span>
<template v-else>
<el-input class='w110 tcenter' @input='calculationPrice(subItem)' v-model='childItem.PeoplePrice'
<el-input class='w100 tcenter' @input='calculationPrice()' v-model='childItem.PeoplePrice'
@keyup.native="checkPrice(childItem,'PeoplePrice')"></el-input>
</template>
</template>
</td>
<td>
<el-input class='w110 tcenter' @input='calculationPrice(subItem)' maxlength='2'
v-model='childItem.Discount' @keyup.native="checkPrice(childItem,'Discount')"></el-input>
</td>
<td>
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
<el-input class='w50 tcenter' @input='calculationPrice()' maxlength='2' v-model='childItem.Discount'
@keyup.native="checkPrice(childItem,'Discount')"></el-input>
</td>
<td>
<!--返佣-->
<el-input class='w50 tcenter' @input='calculationPrice(subItem)' v-model='childItem.DiscountPrice'
<el-input class='w50 tcenter' @input='calculationPrice()' v-model='childItem.DiscountPrice'
@keyup.native="checkInteger(childItem,'DiscountPrice')"></el-input>%
</td>
<td>
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
</td>
<td v-if="childIndex==0" :rowspan="3">
{{subItem.TotalPrice}}
<template v-if="subItem.NewTotalPrice">
......@@ -178,7 +179,7 @@
<td width="70" style="text-align:right;">{{$t('hotel.hotel_Currency')}}:</td>
<td>
<el-select v-model="subItem.CurrencyId" :placeholder="$t('pub.pleaseSel')" class='w135 sel'
@change="calculationPrice(subItem)">
@change="calculationPrice()">
<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">
......@@ -193,23 +194,15 @@
<td style="text-align:left;">
<el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.pleaseSel')" :value='0'></el-option>
<!--v-if="subItem.PayStyleExt==1||LineId==90||LineId==168"-->
<el-option :label='$t("ground.xianfu")' :value='1'>
</el-option>
<!--v-if="subItem.PayStyleExt==2||LineId==90||LineId==168"-->
<el-option :label='$t("ground.qiandan")' :value='2'>
</el-option>
<!--v-if="subItem.PayStyleExt==3"-->
<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>
<!--v-if="subItem.PayStyleExt==4"-->
<el-option :label='$t("ground.yufu")' :value='4'></el-option>
<!--v-if="subItem.PayStyleExt==5"-->
<el-option :label='$t("ground.yufukuandk")' :value='5'>
</el-option>
<el-option :label='$t("ground.yufukuandk")' :value='5'></el-option>
<el-option :label='$t("ground.lingduidydf")' :value='10'></el-option>
<el-option :label='$t("ground.gongsihetzf")' :value='6'></el-option>
<el-option :label='$t("ground.shuaka")' :value='11'></el-option>
 <el-option :label="$t('ground.enterpriseAlipay')"  :value='15'></el-option>
<el-option :label="$t('ground.enterpriseAlipay')" :value='15'></el-option>
</el-select>
</td>
</tr>
......@@ -231,7 +224,8 @@
{{$t('objFill.v101.Rest.dincanztai')}}:
</td>
<td style="text-align:left;">
<el-select v-model='subItem.OrderState' class='w135 sel' :placeholder="$t('pub.pleaseSel')">
<el-select v-model='subItem.OrderState' class='w135 sel' :placeholder="$t('pub.pleaseSel')"
@change="changeState(subItem)">
<el-option :label="$t('pub.pleaseSel')" :value='-1'></el-option>
<el-option :label='$t("pub.sureBtn")' :value='1'></el-option>
<el-option :label='$t("visa.v_zanding")' :value='2'></el-option>
......@@ -297,7 +291,7 @@
<el-input type='textarea' rows="6" class='w120' v-model='subItem.Remarks'></el-input>
</td>
</tr>
<tr>
<tr style="display:none;">
<td width="80" style="text-align:right;">
{{$t('ground.canpeibz')}}:
</td>
......@@ -310,6 +304,40 @@
</tr>
</template>
</template>
<tfoot>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td colspan="2">
合计
</td>
<td>
<font style="color:red;font-weight:bold;">
{{sTotalPrice}}
</font>
</td>
<td>
</td>
<td>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
......@@ -322,7 +350,7 @@
EditBtn: false, //房餐景点修改权限
IsEditDinner: 0, //1有权限操作餐配
defaultSelectValue: 0,
list: [],
dinnerList: [],
roomList: [],
TCNUM: "",
flightTotal: 0,
......@@ -334,13 +362,22 @@
findex: 0,
childIndex: 0,
LineId: 0,
currentUserInfo: {}
currentUserInfo: {},
sTotalPrice: 0, //合计
};
},
components: {
comCheckDinner,
},
methods: {
//订餐状态切换
changeState(subItem) {
if (subItem.OrderState == 1) {
subItem.SureTime = this.$commonUtils.getCurrentDate();
} else {
subItem.SureTime = "";
}
},
getChildDinner(index, subIndex, subItem) {
this.findex = index;
this.childIndex = subIndex;
......@@ -350,7 +387,7 @@
},
//选中赋值
childDinnerList(obj) {
var oldData = this.list[this.findex].DiningSummaryList[this.childIndex];
var oldData = this.dinnerList[this.findex].DiningSummaryList[this.childIndex];
oldData.Address = obj.Address;
oldData.Tel = obj.Tel;
oldData.PayStyle = obj.PayStyle;
......@@ -358,23 +395,12 @@
oldData.NewDiningID = obj.ID;
oldData.NewDiningName = obj.Name;
oldData.NewDiningRealName = obj.RealName;
this.list.forEach(x => {
this.dinnerList.forEach(x => {
x.DiningSummaryList.forEach(y => {
y.IsShowPop = false;
})
});
},
//页面跳转[大写]
goUrlR(path, obj, title) {
this.$router.push({
name: path,
query: {
ID: obj,
blank: 'y',
tab: title
}
});
},
//页面跳转[小写]
goUrlT(path, obj, title) {
this.$router.push({
......@@ -419,7 +445,6 @@
item.DinnerList = [];
item.DiningSummaryList.forEach(x => {
x.DiningReserveType = x.DiningReserveType.toString();
this.calculationPrice(x);
var str = x.NewDiningName;
if (x.RealName) {
str = x.RealName;
......@@ -428,7 +453,6 @@
RealName: str,
ID: x.NewDiningID
})
if (x.ReserveNo == '' || x.ReserveNo == null) {
x.ReserveNo = this.$route.query.NewCombinationNum;;
}
......@@ -439,10 +463,10 @@
x.SureTime = x.SureTime.replace("T", " ");
}
}
})
});
this.list = resultArray;
this.dinnerList = resultArray;
this.calculationPrice();
} else {
this.Error(res.data.message);
}
......@@ -450,54 +474,32 @@
err => {}
);
},
calculationPrice(obj) {
let totalPrice = 0;
//获取当前选中的对象
let currentObj = {};
if (obj.CurrencyId != 0) {
currentObj = this.allCurrencyList.find(item => {
return item.ID === obj.CurrencyId; //筛选出匹配数据
});
}
//日元
let jpaObj = this.allCurrencyList.find(item => {
return item.ID === 3; //筛选出匹配数据
});
obj.DiningPriceList.forEach((item, index) => {
var tempPrice = 0;
var coefficient = 1;
totalPrice += item.PeoplePrice * (item.UsePeopleNum - item.Discount) * (coefficient - item.DiscountPrice /
100);
totalPrice += tempPrice;
})
obj.TotalPrice = totalPrice.toFixed(2);
if (this.LineId == 14) {
if (currentObj && currentObj.ID > 0) {
//人民币
if (currentObj.ID == 1) {
obj.NewTotalPrice = currentObj.Name + ":" + (totalPrice * jpaObj.PayRate).toFixed(2);
}
//日元
else if (currentObj.ID == 3) {
obj.NewTotalPrice = "";
} else {
if (currentObj.CurrentRate > 1) {
obj.NewTotalPrice = currentObj.Name + ":" + ((totalPrice * jpaObj.PayRate) / currentObj.CurrentRate)
.toFixed(2);
} else {
obj.NewTotalPrice = currentObj.Name + ":" + ((totalPrice * jpaObj.PayRate) * currentObj.CurrentRate)
.toFixed(2);
}
calculationPrice() {
var coefficient = 1;
var totalPrice = 0;
if (this.dinnerList && this.dinnerList.length > 0) {
this.dinnerList.forEach(rItem => {
if (rItem.DiningSummaryList && rItem.DiningSummaryList.length > 0) {
rItem.DiningSummaryList.forEach(dItem => {
let subPrice = 0;
if (dItem.DiningPriceList && dItem.DiningPriceList.length > 0) {
dItem.DiningPriceList.forEach(pItem => {
subPrice += pItem.PeoplePrice * (pItem.UsePeopleNum - pItem.Discount) * (coefficient -
pItem.DiscountPrice /
100);
})
}
dItem.TotalPrice = subPrice.toFixed(2);
totalPrice += subPrice;
})
}
} else {
obj.NewTotalPrice = "";
}
});
}
this.$forceUpdate();
this.sTotalPrice = totalPrice.toFixed(2);
},
saveList() {
this.saveLogding = true;
this.list.forEach(item => {
this.dinnerList.forEach(item => {
item.DiningSummaryList.forEach(insideItem => {
if (insideItem.DiningPriceList) {
insideItem.DiningPriceList.forEach(subItem => {
......@@ -511,7 +513,7 @@
}
})
})
this.apipost('dmcstatistics_get_SetDiningOrder', this.list, res => {
this.apipost('dmcstatistics_get_SetDiningOrder', this.dinnerList, res => {
this.saveLogding = false;
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
......@@ -581,6 +583,7 @@
}, err => {});
}
};
</script>
<style>
......
......@@ -659,8 +659,6 @@
watch: {
'$route': {
handler(val, oldVal) {
// console.log(this.$route.query, '-------')
// this.getList();
},
deep: true,
......@@ -1260,7 +1258,6 @@
);
},
changeDepart(node, id) {
console.log(node, "changeDepart")
this.msg.CreateBy = "";
this.msg.DepartmentId = node.DepartmentID;
this.employeeMsg.departmentId = node.DepartmentID;
......
......@@ -1178,7 +1178,6 @@
this.getCompanyMsg,
(res) => {
if (res.data.resultCode == 1) {
console.log("admin_get_BranchGetList",res.data);
this.companyList = res.data.data;
} else {}
},
......
......@@ -4895,11 +4895,9 @@
},
//点击修改单男单女
getOrderGender(item) {
console.log("我进来了",item);
this.subGenderInfo.TipMoney = item.oneSex;
this.subGenderInfo.OrderId = item.orderId;
this.showChangeGender = true;
console.log("我进来了",this.subGenderInfo);
},
//关闭修改单男单女
closeGenderDiv() {
......
......@@ -1221,23 +1221,6 @@ getCompanyList() {
updateTFimg(index) {
this.updateChoseIndex = index;
},
//图片左移右移
// ExchangeImg(index, IsMove) {
// var imgItem = this.addMsg.CoverImageList[index];
// //左移
// if (IsMove == 0) {
// var upItem = this.addMsg.CoverImageList[index - 1];
// this.$set(this.addMsg.CoverImageList, index - 1, imgItem);
// this.$set(this.addMsg.CoverImageList, index, upItem);
// } else {
// //右移动
// var downItem = this.addMsg.CoverImageList[index + 1];
// this.$set(this.addMsg.CoverImageList, index + 1, imgItem);
// this.$set(this.addMsg.CoverImageList, index, downItem);
// }
// },
// 签证国家Id改变
VisaCountry(val) {
this.GetProductLabel(val);
......@@ -1247,27 +1230,7 @@ getCompanyList() {
this.productlabel.TagType = num
this.productlabel.Id = tag.Id;
this.CountryTagList = this.CountryTagList.filter(x=>x.Id!=tag.Id);
console.log(list,tag.Id)
return
this.$confirm(this.$t('objFill.shifouscbkhf'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
})
.then(() => {
this.apipost('', {
Id: this.productlabel.Id
}, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message)
} else {
this.Error(res.data.message)
}
})
})
.catch(() => {});
},
// 双击编辑标签
EditTag(tag, num) {
......
......@@ -2442,7 +2442,6 @@
//获取TCID
clickAirticket(item) {
this.updateAirticketObj.TCID = item.TCID;
console.log(" this.updateAirticketObj", item.TCID, this.updateAirticketObj)
},
//开启散客机票
openAirticket() {
......
......@@ -1541,7 +1541,6 @@
//获取TCID
clickAirticket(item) {
this.updateAirticketObj.TCID = item.TCID;
console.log(" this.updateAirticketObj", item.TCID, this.updateAirticketObj)
},
//开启散客机票
openAirticket() {
......
......@@ -834,7 +834,6 @@
}
}
this.addMsg = Object.assign({}, item);
console.log("item",item.customerType);
if (item.couponPriceLists || item.lineId || item.lineteamId || item.effectDate || item.expirationDate) {
if(item.lineId>0){
this.getLineTeamList(item.lineId);
......
......@@ -1072,6 +1072,7 @@
this.AirPickUp = tempData.AirPickUp;
this.AirSend = tempData.AirSend;
this.PostConfig.PDFAlias = tempData.PDFAlias;
this.ScrollMethod();
} else {
this.Error(res.data.message);
}
......
<template>
<el-date-picker
class="h34"
@change="timeAdd(1)"
v-model="productionDate"
type="daterange"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions"
:range-separator="$t('OrderList.zhi')"
:clearable="((clearable==false||clearable)&&!isQueryHistoryData)?clearable:true"
></el-date-picker>
<el-date-picker class="h34" @change="timeAdd(1)" v-model="productionDate" type="daterange" value-format="yyyy-MM-dd"
:picker-options="pickerOptions" :range-separator="$t('OrderList.zhi')"
:clearable="((clearable==false||clearable)&&!isQueryHistoryData)?clearable:true"></el-date-picker>
</template>
<script>
export default {
props:['dateTime','clearable'],
props: ['dateTime', 'clearable'],
data() {
return {
productionDate: [],
pickerOptions: {
onPick: ({ maxDate, minDate }) => {
onPick: ({
maxDate,
minDate
}) => {
this.choiceDate = minDate.getTime();
if (maxDate) {
this.choiceDate = "";
......@@ -50,18 +46,20 @@
this.GetSupperOrderEditAuth()
},
watch: {
dateTime:{
handler(n,o){
dateTime: {
handler(n, o) {
this.productionDate = this.dateTime
},
deep:false,
deep: false,
immediate: true,
},
clearable:{
handler(n,o){
if(n)console.log(n,'--------')
clearable: {
handler(n, o) {
if (n) {
//console.log(n,'--------')
}
},
deep:false,
deep: false,
immediate: true,
}
},
......@@ -72,13 +70,12 @@
if (!this.productionDate) {
this.startDate = "";
this.endDate = "";
this.$emit('change',this.startDate,this.endDate)
this.$emit('change', this.startDate, this.endDate)
return;
}
this.startDate = this.productionDate[0];
this.endDate = this.productionDate[1];
this.$emit('change',this.startDate,this.endDate)
this.$emit('change', this.startDate, this.endDate)
}
},
GetSupperOrderEditAuth() {
......@@ -91,4 +88,5 @@
},
}
}
</script>
......@@ -29,7 +29,6 @@ export default {
watch: {
chartData: function (old, val) {
if (this.chartData) {
console.log(this.chartData);
this.pieData = this.chartData.pieData;
this.name = this.chartData.name;
}
......
......@@ -191,7 +191,6 @@
setOpacity(seriesName) {
const option = this.chart.getOption();
option.series.forEach((series) => {
console.log(series.name, seriesName + '----')
if (seriesName == '') {
if (series.itemStyle) series.itemStyle.opacity = 1;
if (series.lineStyle) series.lineStyle.opacity = 1;
......
......@@ -496,8 +496,6 @@
// 年终奖
this.AnnualBonus.AvgLureNum = this.CommissionInfor.BonusNum?this.CommissionInfor.BonusNum:0
this.AnnualBonus.AvfOrderNum = this.CommissionInfor.BonusNum?this.CommissionInfor.BonusNum:0
console.log(this.JapaneseProfit);
}else {
this.Error(res.data.message);
}
......
......@@ -22,12 +22,13 @@
{{$t('salesModule.CompanyNum')}}
</th>
<th colspan="15" style="text-align:left; padding-left:8px;">
<p class="link" @click="goUrlT('productQuery',TCNUM,'产品查询')">{{TCNUM}}</p>
<p class="link" @click="goUrlT('productQuery',TCNUM,'产品查询')"
style="text-decoration:underline;cursor:pointer;">{{TCNUM}}</p>
</th>
</tr>
<tr>
<th width="115">{{$t('ground.youlanshijian')}}</th>
<th width="200">{{$t('visaT.jdname')}}</th>
<th width="250">{{$t('visaT.jdname')}}</th>
<th width="70">{{$t('objFill.zongrenshu')}}</th>
<th width="70">{{$t('objFill.youke')}}<br />{{$t('advmanager.v_type')}}</th>
<th width="70">{{$t('objFill.youke')}}<br />{{$t('admin.admin_personNumber')}}</th>
......@@ -35,7 +36,7 @@
<th width="70">{{$t('ground.mianrenshu')}}</th>
<th width="120">{{$t('fnc.danjia')}}</th>
<th width="90">{{$t('objFill.jingexj')}}</th>
<th width="120">{{$t('hotel.hotel_commission')}})</th>
<th width="120">{{$t('hotel.hotel_commission')}}</th>
<th width="100">{{$t('fnc.a_zongjine')}}</th>
<th width="210">{{$t('ground.fkfsdth')}}</th>
<th width="200">{{$t('pub.pubRemark')}}</th>
......@@ -102,17 +103,17 @@
{{childItem.PeopleNum}}
</td>
<td>
<el-input class='w50 tcenter' v-model='childItem.UsePeopleNum' type="number"
@input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'UsePeopleNum')"></el-input>
<el-input class='w50 tcenter' v-model='childItem.UsePeopleNum' type="number" @input='calculationPrice()'
@keyup.native="checkInteger(childItem,'UsePeopleNum')"></el-input>
</td>
<td>
<el-input class='w50 tcenter' maxlength='2' v-model='childItem.Discount' type="number"
@input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'Discount')"></el-input>
@input='calculationPrice()' @keyup.native="checkInteger(childItem,'Discount')"></el-input>
</td>
<td>
<template v-if="EditBtn||LineId==90">
<el-input class='w100' v-model='childItem.PeoplePrice'
@keyup.native="checkPrice(childItem,'PeoplePrice')" @input='calculationPrice(subItem)' type="text">
@keyup.native="checkPrice(childItem,'PeoplePrice')" @input='calculationPrice()' type="text">
</el-input>
</template>
<template v-else>
......@@ -128,9 +129,9 @@
</td>
<td>
<template v-if="EditBtn||LineId==90">
<el-input class='w100' v-model='childItem.DiscountPrice'
@keyup.native="checkPrice(childItem,'DiscountPrice')" @input='calculationPrice(subItem)'
type="text"></el-input>
<el-input class='w50 tcenter' v-model='childItem.DiscountPrice'
@keyup.native="checkPrice(childItem,'DiscountPrice')" @input='calculationPrice()' type="text">
</el-input>
</template>
<template v-else>
<span class="spanlink" v-if='childItem.DiscountPrice==0'
......@@ -160,13 +161,13 @@
</td>
<td style="text-align:left;">
<el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('objFill.qingxuanzhe')" value='0'></el-option>
<el-option :label="$t('objFill.xianfu')" value='1'></el-option>
<el-option :label="$t('objFill.qiandan')" value='2'></el-option>
<el-option :label="$t('objFill.shiweidikou')" value='5'></el-option>
<el-option :label="$t('objFill.yufu')" value='4'></el-option>
<el-option :label="$t('objFill.wangding')" value='12'></el-option>
 <el-option :label="$t('ground.enterpriseAlipay')"  :value='15'></el-option>
<el-option :label="$t('objFill.qingxuanzhe')" :value='0'></el-option>
<el-option :label="$t('objFill.xianfu')" :value='1'></el-option>
<el-option :label="$t('objFill.qiandan')" :value='2'></el-option>
<el-option :label="$t('objFill.shiweidikou')" :value='5'></el-option>
<el-option :label="$t('objFill.yufu')" :value='4'></el-option>
<el-option :label="$t('objFill.wangding')" :value='12'></el-option>
<el-option :label="$t('ground.enterpriseAlipay')" :value='15'></el-option>
</el-select>
</td>
</tr>
......@@ -186,6 +187,38 @@
</tr>
</template>
</template>
<tfoot>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
<td colspan="2">
合计
</td>
<td>
<font style="color:red;font-weight:bold;">
{{sTotalPrice}}
</font>
</td>
<td>
</td>
<td>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
......@@ -206,7 +239,8 @@
IsOperation: '',
saveLoading: false,
LineId: 0, //线路编号
currentUserInfo: {}
currentUserInfo: {},
sTotalPrice: 0, //合计
}
},
methods: {
......@@ -218,6 +252,17 @@
if (str == 3)
return this.$t('objFill.xiaoren')
},
//页面跳转[小写]
goUrlT(path, obj, title) {
this.$router.push({
name: path,
query: {
id: obj,
blank: 'y',
tab: title
}
});
},
goUrl(path, obj, name) {
this.$router.push({
path: path,
......@@ -228,12 +273,26 @@
}
});
},
calculationPrice(obj) {
let totalPrice = 0;
obj.TicketPriceList.forEach(item => {
totalPrice += item.PeoplePrice * (item.UsePeopleNum - item.Discount) * (1 - item.DiscountPrice / 100);
})
obj.TotalPrice = totalPrice.toFixed(2);
calculationPrice() {
var tempPrice = 0;
if (this.DataList && this.DataList.length > 0) {
this.DataList.forEach(rItem => {
if (rItem.ScenicStatisticsList && rItem.ScenicStatisticsList.length > 0) {
rItem.ScenicStatisticsList.forEach(sItem => {
var totalPrice = 0;
if (sItem.TicketPriceList && sItem.TicketPriceList.length > 0) {
sItem.TicketPriceList.forEach(tItem => {
totalPrice += tItem.PeoplePrice * (tItem.UsePeopleNum - tItem.Discount) * (1 - tItem
.DiscountPrice / 100);
});
}
sItem.TotalPrice = totalPrice.toFixed(2);
tempPrice += Number(totalPrice);
});
}
});
}
this.sTotalPrice = tempPrice;
},
getCurrencyList: function () {
this.apipost("financeinfo_post_GetList", {
......@@ -254,15 +313,7 @@
if (res.data.resultCode == 1) {
this.DataList = res.data.data.ScenicList;
this.IsOperation = res.data.data.IsOperation;
this.DataList.forEach(item => {
item.ScenicStatisticsList.forEach(x => {
x.PayStyle = x.PayStyle.toString();
this.calculationPrice(x);
if (x.CombinationNum == '' || x.CombinationNum == null) {
x.CombinationNum = this.$route.query.NewCombinationNum;
}
})
})
this.calculationPrice();
} else {
this.$message.error(res.data.message);
}
......@@ -332,6 +383,7 @@
this.getCurrencyList();
},
}
</script>
<style>
.admissionStatisticsDetailsTalbe {
......@@ -378,4 +430,5 @@
.admissionStatisticsDetailsTalbe .scenicTable tr td {
border: none;
}
</style>
\ No newline at end of file
</style>
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