Commit 4ddc801b authored by huangyuanyuan's avatar huangyuanyuan
parents c507a6e4 ad25c8fc
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<th width="100">房间类型</th> <th width="100">房间类型</th>
<th width="70">房间数</th> <th width="70">房间数</th>
<th width="70">房间<br />人数</th> <th width="70">房间<br />人数</th>
<th width="110">修改酒店</th> <th width="170">修改酒店/供应商</th>
<th width="80">房间<br />预定数</th> <th width="80">房间<br />预定数</th>
<th width="80">预定人数</th> <th width="80">预定人数</th>
<th width="80">尚差<br />房间数</th> <th width="80">尚差<br />房间数</th>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<table class="hotelTable"> <table class="hotelTable">
<tr> <tr>
<td colspan="2"> <td colspan="2">
<p class="link" style="word-break: normal;text-align:left;" <p class="link" style="word-break: normal;text-align:left;"
:class="{'Hotel_red':subItem.HotelChangeState==3}" :class="{'Hotel_red':subItem.HotelChangeState==3}"
@click="goUrlR('HotelManagement',subItem.HotelId,'酒店管理')">{{subItem.HotelName}}</p> @click="goUrlR('HotelManagement',subItem.HotelId,'酒店管理')">{{subItem.HotelName}}</p>
</td> </td>
...@@ -114,36 +114,60 @@ ...@@ -114,36 +114,60 @@
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}} {{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}}
</td> </td>
<td v-if="childIndex==0" :rowspan="5"> <td v-if="childIndex==0" :rowspan="5">
<div class="w150"> <table class="hotelTable">
<!--:disabled="subItem.OPState==1"--> <tr>
<td width="70" style="text-align:right;">酒店</td>
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable :placeholder="$t('pub.pleaseSel')" <td>
<!--:disabled="subItem.OPState==1"-->
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable :placeholder="$t('pub.pleaseSel')" <el-select class='w120 sel' v-model='subItem.NewHotelId' filterable
:placeholder="$t('pub.pleaseSel')" @visible-change='getHotelList(subItem)'
@visible-change='getHotelList(subItem)' @change='sendValue(subItem)'> @change='sendValue(subItem)'>
<el-option v-for='itemHotel in subItem.hotelList' :label='itemHotel.Name' :value='itemHotel.ID' <el-option v-for='itemHotel in subItem.hotelList' :label='itemHotel.Name' :value='itemHotel.ID'
:key='itemHotel.ID'> :key='itemHotel.ID'>
<span style="float: left">{{itemHotel.Name}}</span> <span style="float: left">{{itemHotel.Name}}</span>
<span style="float: right; color:red; font-size: 13px">{{itemHotel.Inventory }}</span> <span style="float: right; color:red; font-size: 13px">{{itemHotel.Inventory }}</span>
</el-option> </el-option>
</el-select> </el-select>
</td>
<p style="padding-top: 5px;"> </tr>
<a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a> <tr>
</p> <td colspan="2" style="height:5px;"></td>
<el-upload :http-request="uploadFileBtnS" :multiple="false" :show-file-list="false" action=''> </tr>
<el-button size="small" type="danger" @click='getItem(index, subIndex)'> <tr>
{{!subItem.ContractUrl ? '上传手配书' : '重新上传手配书'}}</el-button> <td width="70" style="text-align:right;">
</el-upload> 供应商
</div> </td>
<td>
<el-select class='w120 sel' v-model='subItem.SupplierId' filterable placeholder="请选择供应商">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="(SupplierItem,Supplierindex) in SupplierList" :key="Supplierindex"
:label="SupplierItem.Name" :value="SupplierItem.ID">
</el-option>
</el-select>
</td>
</tr>
<tr>
<td colspan="2" style="height:5px;"></td>
</tr>
<tr>
<td colspan="2">
<p style="padding-top: 5px;">
<a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a>
</p>
<el-upload :http-request="uploadFileBtnS" :multiple="false" :show-file-list="false" action=''>
<el-button size="small" type="danger" @click='getItem(index, subIndex)'>
{{!subItem.ContractUrl ? '上传手配书' : '重新上传手配书'}}</el-button>
</el-upload>
</td>
</tr>
</table>
</td> </td>
<!-- 房间数 --> <!-- 房间数 -->
<td> <td>
<el-input class='w40 tcenter' maxlength="2" @keyup.native="checkPrice(childItem,'HouseTypeCount')" <el-input class='w40 tcenter' maxlength="2" @keyup.native="checkPrice(childItem,'HouseTypeCount')"
v-model='childItem.HouseTypeCount' :disabled="childIndex<4?true:false"></el-input> v-model='childItem.HouseTypeCount' :disabled="childIndex<4?true:false"></el-input>
</td> </td>
<td> <td>
<el-input class='w40 tcenter' maxlength="2" @keyup.native="checkInteger(childItem,'BookNum')" <el-input class='w40 tcenter' maxlength="2" @keyup.native="checkInteger(childItem,'BookNum')"
@input="calculationPrice(subItem)" v-model='childItem.BookNum' :disabled="childIndex<4?true:false"> @input="calculationPrice(subItem)" v-model='childItem.BookNum' :disabled="childIndex<4?true:false">
...@@ -159,13 +183,13 @@ ...@@ -159,13 +183,13 @@
</td> </td>
<!-- 单价/每人 --> <!-- 单价/每人 -->
<td> <td>
<el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter' <el-input @keyup.native="checkInteger(childItem,'UnitPrice')" class='w60 tcenter'
@input="calculationPrice(subItem)" v-model='childItem.UnitPrice'> @input="calculationPrice(subItem)" v-model='childItem.UnitPrice'>
</el-input> </el-input>
</td> </td>
<!-- 免减人数 --> <!-- 免减人数 -->
<td> <td>
<el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'HotelDiscount')" <el-input class='w40' maxlength="2" @keyup.native="checkInteger(childItem,'HotelDiscount')"
v-model='childItem.HotelDiscount' @input="calculationPrice(subItem)"> v-model='childItem.HotelDiscount' @input="calculationPrice(subItem)">
</el-input> </el-input>
</td> </td>
...@@ -191,7 +215,7 @@ ...@@ -191,7 +215,7 @@
<tr> <tr>
<td width="70" style="text-align:right;">订房状态:</td> <td width="70" style="text-align:right;">订房状态:</td>
<td> <td>
<el-select class='w135 sel' v-model='subItem.DMCState' :placeholder="$t('pub.pleaseSel')"> <el-select class='w135 sel' v-model='subItem.DMCState' :placeholder="$t('pub.pleaseSel')">
<el-option label='请选择' :value='0'></el-option> <el-option label='请选择' :value='0'></el-option>
<el-option label='确定' :value='1'></el-option> <el-option label='确定' :value='1'></el-option>
<el-option label='暂定' :value='2'></el-option> <el-option label='暂定' :value='2'></el-option>
...@@ -230,7 +254,7 @@ ...@@ -230,7 +254,7 @@
<tr> <tr>
<td width="70" style="text-align:right;">订团号:</td> <td width="70" style="text-align:right;">订团号:</td>
<td> <td>
<el-input class='w135' v-model='subItem.ReserveNo'></el-input> <el-input class='w135' v-model='subItem.ReserveNo'></el-input>
</td> </td>
</tr> </tr>
...@@ -240,7 +264,7 @@ ...@@ -240,7 +264,7 @@
<tr> <tr>
<td width="70" style="text-align:right;">备注:</td> <td width="70" style="text-align:right;">备注:</td>
<td> <td>
<el-input type='textarea' class='w135' v-model='subItem.Remarks'></el-input> <el-input type='textarea' class='w135' v-model='subItem.Remarks'></el-input>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -248,8 +272,8 @@ ...@@ -248,8 +272,8 @@
<!-- 操作 --> <!-- 操作 -->
<td v-if="childIndex==0" :rowspan="5"> <td v-if="childIndex==0" :rowspan="5">
<!--v-if="subItem.OPState!=1"--> <!--v-if="subItem.OPState!=1"-->
<template v-if="subItem.OPState!=1"> <template v-if="subItem.OPState==1">
<span class="Hotel_red">OP选房确认</span> <span class="Hotel_red">OP选房确认</span>
</template> </template>
<template v-if="IsOperation!=1"> <template v-if="IsOperation!=1">
<el-tooltip class="item" effect="dark" content="保存" placement="top-start"> <el-tooltip class="item" effect="dark" content="保存" placement="top-start">
...@@ -300,7 +324,9 @@ ...@@ -300,7 +324,9 @@
checkedsubIndex: '', checkedsubIndex: '',
loading: false, loading: false,
boxHeight: 0, boxHeight: 0,
IsOperation:'', IsOperation: '',
//供应商列表
SupplierList: [],
} }
}, },
methods: { methods: {
...@@ -480,7 +506,7 @@ ...@@ -480,7 +506,7 @@
obj.Tel = ckedObj.Tel; obj.Tel = ckedObj.Tel;
obj.NewHotelName = ckedObj.Name; obj.NewHotelName = ckedObj.Name;
obj.PayStyle = ckedObj.PayStyle; obj.PayStyle = ckedObj.PayStyle;
obj.PayStyleExt=ckedObj.PayStyle; obj.PayStyleExt = ckedObj.PayStyle;
} else { } else {
obj.Address = ''; obj.Address = '';
obj.Tel = ''; obj.Tel = '';
...@@ -584,7 +610,17 @@ ...@@ -584,7 +610,17 @@
}) })
this.ClickItem.ContractUrl = str != "" ? str.substring(0, str.length - 1) : str; this.ClickItem.ContractUrl = str != "" ? str.substring(0, str.length - 1) : str;
}); });
},
// 获取供应商
initSupplier() {
this.apipost("supplier_post_GetAllList", {
Type: 1,
Country: 651
}, res => {
if (res.data.resultCode === 1) {
this.SupplierList = res.data.data;
}
}, err => {});
}, },
}, },
mounted() { mounted() {
...@@ -595,6 +631,7 @@ ...@@ -595,6 +631,7 @@
let height = window.innerHeight - 65 - 55; let height = window.innerHeight - 65 - 55;
this.boxHeight = height; this.boxHeight = height;
this.offsetwidth = width; this.offsetwidth = width;
this.initSupplier();
this.getList(); this.getList();
} }
} }
......
<style> <style>
@import "../../assets/css/DMC.css"; @import "../../assets/css/DMC.css";
.title{width: 100%;display: -webkit-box;margin-top: 20px }
.tu_img{width: 100%;display: -webkit-box;padding: 20px 50px}
</style> </style>
<template> <template>
<div class="flexOne changInfo"> <div class="flexOne changInfo">
<div class="resource-content clearfix" :style="{height:(orderHight-90) + 'px'}"> <div class="resource-content clearfix" :style="{height:(orderHight-90) + 'px'}">
<el-form :model="addMsg" :rules="rules" ref="addMsg"> <el-form :model="addMsg" :rules="rules" ref="addMsg">
<div class="resource-baseinfo"> <div class="resource-baseinfo">
<span class="resource-lititle">{{$t('hotel.hotel_baseinfo')}}</span> <span class="resource-lititle">{{$t('hotel.hotel_baseinfo')}}</span>
<el-form-item :label="$t('hotel.hotel_name')" prop="Name"> <el-form-item :label="$t('hotel.hotel_name')" prop="Name">
<el-input type="text" v-model="addMsg.Name" maxlength="100" class="w300"></el-input> <el-input type="text" v-model="addMsg.Name" maxlength="100" class="w300"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="酒店真实名称"> <el-form-item label="酒店真实名称">
<el-input type="text" v-model="addMsg.HotelRealName" maxlength="100" class="w300"></el-input> <el-input type="text" v-model="addMsg.HotelRealName" maxlength="100" class="w300"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_describle')" prop="Descriptions"> <el-form-item :label="$t('hotel.hotel_describle')" prop="Descriptions">
<el-input type="textarea" v-model="addMsg.Descriptions" class="w300"></el-input> <el-input type="textarea" v-model="addMsg.Descriptions" class="w300"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_openplatform')"> <el-form-item :label="$t('hotel.hotel_openplatform')">
<el-select v-model="openplatString" class='multiple_input w300' multiple :placeholder="$t('pub.pleaseSel')"> <el-select v-model="openplatString" class='multiple_input w300' multiple :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in openplatform" :key="item.ID" :label="item.Name" :value="item.ID"> <el-option v-for="item in openplatform" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_brand')">
<el-input type="text" v-model="addMsg.ChainBrand" maxlength="50" class="w300"></el-input>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_starlevel')">
<el-select class="w300" :placeholder="$t('pub.unlimitedSel')" v-model="addMsg.Star">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in starslevel" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_website')">
<el-input class="w300" v-model="addMsg.URL" maxlength="50">
<template slot="prepend">https://</template>
</el-input>
</el-form-item>
<el-form-item label="是否预约">
<el-switch v-model="addMsg.AppointmentStyle" :active-value="inActive" :inactive-value="notInActive">
</el-switch>
</el-form-item>
<el-form-item label="支付方式">
<el-select v-model="addMsg.PayStyle" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')" :disabled="IsHaveAuth==1?false:true">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in PayList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="酒店类型">
<el-select v-model="addMsg.HotelType" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in HotelTypeList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="价格">
<el-select v-model="addMsg.HotelPriceType" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in HotelPirceTypeList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</el-form-item>
<span class="resource-lititle sheshi">{{$t('hotel.hotel_services')}}</span>
<div class="res-span" v-for="item in serviceList" :key="item.subCode">
<span class="common-lefttit">{{item.Content}}</span>
<span>
<el-select multiple :placeholder="$t('pub.pleaseSel')" class='multiple_input w300' v-model="item.checked">
<el-option v-for="subitem in item.list" :key="subitem.ID" :label="subitem.Content" :value="subitem.ID">
</el-option> </el-option>
</el-select> </el-select>
</span>
</div>
<!-- <span class="resource-lititle sheshi">酒店优惠 <el-button icon="el-icon-plus" circle @click="addAir"></el-button>-->
<!-- </span>-->
<div class="jiudianyouhuiDiv">
<el-row v-for="(list,index) in addMsg.DiscountList" :key="index">
<el-col :span="6" :gutter="35">
<el-form-item label="开始数量">
<el-input class='w80' type="text" v-model="list.StartNum"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" :gutter="35">
<el-form-item label="结束数量">
<el-input class='w80' type="text" v-model="list.EndNum"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" :gutter="35">
<el-form-item label="返还数量">
<el-input class='w80' type="text" v-model="list.DisCountNum"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" :gutter="35" v-if="index==0">
</el-col>
<el-col :span="6" :gutter="35">
<el-button icon="el-icon-minus" circle @click="deleteAir(index)"> </el-button>
</el-col>
</el-row>
<!-- <el-row :gutter="0">
<el-col :span="6">
<el-form-item label="开始数量" >
<el-input class='w80' type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="结束数量" >
<el-input class='w80'type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="返还数量">
<el-input class='w80' type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" style='padding-top: 5px;'>
</el-col>
</el-row> -->
</div>
<!--<div v-for="(item) in GetPolicy" :key="item.subCode">
<div class="common-lefttit">{{item.Content}}</div>
<span class="resource-net">
<el-input v-model="item.checked" maxlength="50" class="w300"></el-input>
</span>
</div>-->
</div>
<div class="resource-imginfo">
<div class="resourcerightTop">
<div class="toolOne">
<span class="fanbili">{{$t('restaurant.res_commissionColumn')}}</span>
<div class="RabateDiv clearfix">
<div class="RebateCount reOne">
<div class="leftPnum">{{$t('admin.admin_personNumber')}}></div>
<input type="text" class="toolInput inpuOne" v-model="addMsg.RebateCount"
onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="20">
</div>
<div class="RebateCount reTwo">
<div class="fanNum">{{$t('restaurant.res_return')}}</div>
<input type="text" class="toolInput inpuTwo" v-model="addMsg.RebateRatio"
onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="20">
<div class="percentCon">%</div>
</div>
</div>
</div>
<el-form-item :label="$t('hotel.hotel_landline')">
<el-input type="text" v-model="addMsg.Tel" maxlength="20" :placeholder="$t('hotel.hotel_landline')"
class="w300"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="国家"> <el-form-item :label="$t('hotel.hotel_brand')">
<el-select placeholder="请选择国家" filterable v-model="addMsg.Country" class='multiple_input w300' <el-input type="text" v-model="addMsg.ChainBrand" maxlength="50" class="w300"></el-input>
@change="GetSubAreaList(addMsg.Country,1)"> </el-form-item>
<el-form-item :label="$t('hotel.hotel_starlevel')">
<el-select class="w300" :placeholder="$t('pub.unlimitedSel')" v-model="addMsg.Star">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in CountryList" :key="childItem.ID" :label="childItem.Name" <el-option v-for="item in starslevel" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
:value="childItem.ID">
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="省"> <el-form-item :label="$t('hotel.hotel_website')">
<el-select placeholder="请选择省" filterable class='multiple_input w300' v-model="addMsg.Province" <el-input class="w300" v-model="addMsg.URL" maxlength="50">
@change="GetSubAreaList(addMsg.Province,2)"> <template slot="prepend">https://</template>
</el-input>
</el-form-item>
<el-form-item label="是否预约">
<el-switch v-model="addMsg.AppointmentStyle" :active-value="inActive" :inactive-value="notInActive">
</el-switch>
</el-form-item>
<el-form-item label="支付方式">
<el-select v-model="addMsg.PayStyle" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')" :disabled="IsHaveAuth==1?false:true">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in ProvinceList" :key="childItem.ID" :label="childItem.Name" <el-option v-for="item in PayList" :key="item.Id" :label="item.Name" :value="item.Id">
:value="childItem.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label=""> <el-form-item label="酒店类型">
<el-select placeholder="请选择市" filterable class='multiple_input w300' v-model="addMsg.City"> <el-select v-model="addMsg.HotelType" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in CityList" :key="childItem.ID" :label="childItem.Name" <el-option v-for="item in HotelTypeList" :key="item.ID" :label="item.Name" :value="item.ID">
:value="childItem.ID">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_detailinfo')" prop="Address"> <el-form-item label="价格">
<el-input placeholder="请输入内容" class="w300 addAddress" v-model="addMsg.Address"> <el-select v-model="addMsg.HotelPriceType" class='multiple_input w300' :placeholder="$t('pub.pleaseSel')">
<el-button slot="append" @click="selectAddress = true" icon="iconfont icon-img_dw"></el-button> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
</el-input> <el-option v-for="item in HotelPirceTypeList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-form-item>
<el-form-item :label="$t('hotel.hotel_fax')">
<el-input type="text" v-model="addMsg.Fax" maxlength="20" class="w300"></el-input>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_deadday')" prop="DieLine">
<el-input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="50" v-model="addMsg.DieLine"
class="w300"></el-input><span class="hotelDay">{{$t('hotel.hotel_day')}}</span>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_remark')">
<el-input type="textarea" v-model="addMsg.Remark" class="w300"></el-input>
</el-form-item>
<el-form-item label="温馨提示">
<el-input type="textarea" v-model="addMsg.WarmTip" class="w300"></el-input>
</el-form-item>
<el-form-item>
<el-switch v-model="isBook" active-color="#13ce66" inactive-color="#ff4949" active-text="供应商"
inactive-text="自订"></el-switch>
</el-form-item>
<el-form-item>
<el-switch v-model="isDinner" active-color="#13ce66" @change="getDinnerList" inactive-color="#ff4949"
active-text="用餐" inactive-text="不用餐"></el-switch>
</el-form-item>
<el-form-item label="用餐类型" v-show="isDinner">
<el-select v-model="UseDinnerString" class='multiple_input w300' multiple
:placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in dinerList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="停车场"> <span class="resource-lititle sheshi">{{$t('hotel.hotel_services')}}</span>
<el-switch v-model="addMsg.IsHavearking" :active-value="1" :inactive-value="0"></el-switch> <div class="res-span" v-for="item in serviceList" :key="item.subCode">
</el-form-item> <span class="common-lefttit">{{item.Content}}</span>
<span>
<el-select multiple :placeholder="$t('pub.pleaseSel')" class='multiple_input w300' v-model="item.checked">
<el-option v-for="subitem in item.list" :key="subitem.ID" :label="subitem.Content" :value="subitem.ID">
</el-option>
</el-select>
</span>
</div>
<!-- <span class="resource-lititle sheshi">酒店优惠 <el-button icon="el-icon-plus" circle @click="addAir"></el-button>-->
<!-- </span>-->
<div class="jiudianyouhuiDiv">
<el-row v-for="(list,index) in addMsg.DiscountList" :key="index">
<el-col :span="6" :gutter="35">
<el-form-item label="开始数量">
<el-input class='w80' type="text" v-model="list.StartNum"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" :gutter="35">
<el-form-item label="结束数量">
<el-input class='w80' type="text" v-model="list.EndNum"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" :gutter="35">
<el-form-item label="返还数量">
<el-input class='w80' type="text" v-model="list.DisCountNum"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" :gutter="35" v-if="index==0">
</el-col>
<el-col :span="6" :gutter="35">
<el-button icon="el-icon-minus" circle @click="deleteAir(index)"> </el-button>
</el-col>
</el-row>
<!-- <el-row :gutter="0">
<el-col :span="6">
<el-form-item label="开始数量" >
<el-input class='w80' type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="结束数量" >
<el-input class='w80'type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="返还数量">
<el-input class='w80' type="text" :placeholder="$t('pub.pleaseImport')"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" style='padding-top: 5px;'>
</el-col>
</el-row> -->
</div>
<!--<div v-for="(item) in GetPolicy" :key="item.subCode">
<div class="common-lefttit">{{item.Content}}</div>
<span class="resource-net">
<el-input v-model="item.checked" maxlength="50" class="w300"></el-input>
</span>
</div>-->
</div>
<div class="resource-imginfo">
<div class="resourcerightTop">
<div class="toolOne">
<span class="fanbili">{{$t('restaurant.res_commissionColumn')}}</span>
<div class="RabateDiv clearfix">
<div class="RebateCount reOne">
<div class="leftPnum">{{$t('admin.admin_personNumber')}}></div>
<input type="text" class="toolInput inpuOne" v-model="addMsg.RebateCount"
onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="20">
</div>
<div class="RebateCount reTwo">
<div class="fanNum">{{$t('restaurant.res_return')}}</div>
<input type="text" class="toolInput inpuTwo" v-model="addMsg.RebateRatio"
onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="20">
<div class="percentCon">%</div>
</div>
</div>
</div>
<el-form-item :label="$t('hotel.hotel_landline')">
<el-input type="text" v-model="addMsg.Tel" maxlength="20" :placeholder="$t('hotel.hotel_landline')"
class="w300"></el-input>
</el-form-item>
<el-form-item label="国家">
<el-select placeholder="请选择国家" filterable v-model="addMsg.Country" class='multiple_input w300'
@change="GetSubAreaList(addMsg.Country,1)">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in CountryList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="省">
<el-select placeholder="请选择省" filterable class='multiple_input w300' v-model="addMsg.Province"
@change="GetSubAreaList(addMsg.Province,2)">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in ProvinceList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="市">
<el-select placeholder="请选择市" filterable class='multiple_input w300' v-model="addMsg.City">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="childItem in CityList" :key="childItem.ID" :label="childItem.Name"
:value="childItem.ID">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_detailinfo')" prop="Address">
<el-input placeholder="请输入内容" class="w300 addAddress" v-model="addMsg.Address">
<el-button slot="append" @click="selectAddress = true" icon="iconfont icon-img_dw"></el-button>
</el-input>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_fax')">
<el-input type="text" v-model="addMsg.Fax" maxlength="20" class="w300"></el-input>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_deadday')" prop="DieLine">
<el-input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" maxlength="50" v-model="addMsg.DieLine"
class="w300"></el-input><span class="hotelDay">{{$t('hotel.hotel_day')}}</span>
</el-form-item>
<el-form-item :label="$t('hotel.hotel_remark')">
<el-input type="textarea" v-model="addMsg.Remark" class="w300"></el-input>
</el-form-item>
<el-form-item label="温馨提示">
<el-input type="textarea" v-model="addMsg.WarmTip" class="w300"></el-input>
</el-form-item>
<el-form-item>
<el-switch v-model="isBook" active-color="#13ce66" inactive-color="#ff4949" active-text="供应商"
inactive-text="自订"></el-switch>
</el-form-item>
<el-form-item>
<el-switch v-model="isDinner" active-color="#13ce66" @change="getDinnerList" inactive-color="#ff4949"
active-text="用餐" inactive-text="不用餐"></el-switch>
</el-form-item>
<el-form-item label="用餐类型" v-show="isDinner">
<el-select v-model="UseDinnerString" class='multiple_input w300' multiple
:placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in dinerList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="停车场">
<el-switch v-model="addMsg.IsHavearking" :active-value="1" :inactive-value="0"></el-switch>
</el-form-item>
</div>
</div> </div>
</div> <div style="width: 100%;display: -webkit-box;margin-top: 20px ">
<div class="title">
<span class="resource-lititle" style="margin-left: 30px">{{$t('hotel.hotel_imgintroduce')}}</span> <span class="resource-lititle" style="margin-left: 30px">{{$t('hotel.hotel_imgintroduce')}}</span>
</div> </div>
<div class="tu_img"> <div style="width: 100%;display: -webkit-box;padding: 20px 50px">
<div class="resource-list"> <div class="resource-list">
<div class="resource-imglist clearfix"> <div class="resource-imglist clearfix">
<div class="re-img" v-for="(item,index) in HotelImageArray" :key="item.subCode"> <div class="re-img" v-for="(item,index) in HotelImageArray" :key="item.subCode">
......
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="hotelResource clearfix" v-loading="loading"> <div class="hotelResource clearfix" v-loading="loading" style="padding:0 20px;">
<div class="resourceList" v-for="(item,index) in tableData" :key="index"> <div class="resourceList" v-for="(item,index) in tableData" :key="index">
<div class="reTopInfo" :class="{'comCursorUrl':item.URL}" @click="OpenNewUrl(item.URL)"> <div class="reTopInfo" :class="{'comCursorUrl':item.URL}" @click="OpenNewUrl(item.URL)">
<img v-if="!item.PicPath" src="../../assets/img/bg_c3@3x.png"> <img v-if="!item.PicPath" src="../../assets/img/bg_c3@3x.png">
......
...@@ -76,10 +76,10 @@ ...@@ -76,10 +76,10 @@
</ul> </ul>
</div> </div>
<div style="width: 100%;min-height:200px; overflow-x: auto;padding-bottom: 10px; " class="HotelQueryList" <div style="width: 100%;min-height:200px; overflow-x: auto;padding:0 20px; " class="HotelQueryList"
v-loading="loading"> v-loading="loading">
<div class="hotelProductManage2_tableBox" style="margin-bottom:20px;"> <div class="hotelProductManage2_tableBox" style="margin-bottom:20px;">
<span style="color:#000000;background-color: #ff3737;padding:2px 4px;border-radius:5px">红日</span> <span style="color:#fff;background-color: #ff3737;padding:2px 4px;border-radius:5px">红日</span>
<span style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">旺季</span> <span style="color:#000000;background-color: #ff99cc;padding:2px 4px;border-radius:5px">旺季</span>
<span style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">平季</span> <span style="color:#000000;background-color: #bcd6ee;padding:2px 4px;border-radius:5px">平季</span>
<span style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">淡季</span> <span style="color:#000000;background-color: #DDDDDD;padding:2px 4px;border-radius:5px">淡季</span>
...@@ -581,6 +581,7 @@ ...@@ -581,6 +581,7 @@
.classHong { .classHong {
background-color: rgb(255, 55, 55); background-color: rgb(255, 55, 55);
color:#fff;
} }
.classWang { .classWang {
......
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
</style> </style>
<template> <template>
<div class="flexOne hotelSalesBoard"> <div class="flexOne hotelSalesBoard" style="padding:0 20px;">
<div class="query-box Plan_Query"> <div class="query-box Plan_Query">
<ul> <ul>
<li> <li>
......
...@@ -29,12 +29,13 @@ ...@@ -29,12 +29,13 @@
<el-input v-model='msg.TCNUM'></el-input> <el-input v-model='msg.TCNUM'></el-input>
</span> </span>
</li> </li>
<li><span><em>日期</em> <li>
<el-date-picker v-model='msg.StartDate' class='w135' value-format="yyyy-MM-dd" type="date" <span>
:picker-options="pickerBeginDateBefore"></el-date-picker> <em>酒店</em>
- <el-select v-model="msg.HotelId" :placeholder="$t('pub.pleaseSel')" filterable>
<el-date-picker v-model='msg.EndDate' class='w135' value-format="yyyy-MM-dd" type="date" <el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
:picker-options="pickerBeginDateAfter"></el-date-picker> <el-option v-for="item in HotelList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</span> </span>
</li> </li>
<li><span> <li><span>
...@@ -86,11 +87,12 @@ ...@@ -86,11 +87,12 @@
</li> </li>
<li> <li>
<span> <span>
<em>酒店</em> <em>日期</em>
<el-select v-model="msg.HotelId" :placeholder="$t('pub.pleaseSel')" filterable> <el-date-picker v-model='msg.StartDate' class='w135' value-format="yyyy-MM-dd" type="date"
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option> :picker-options="pickerBeginDateBefore"></el-date-picker>
<el-option v-for="item in HotelList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option> -
</el-select> <el-date-picker v-model='msg.EndDate' class='w135' value-format="yyyy-MM-dd" type="date"
:picker-options="pickerBeginDateAfter"></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
...@@ -100,7 +102,7 @@ ...@@ -100,7 +102,7 @@
</ul> </ul>
</div> </div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle">
<div style="font-size:12px;padding:2px 4px 3px 4px; color:red">注意事项:每次导出数据最好不要超过一个月。</div> <div style="font-size:12px;padding:2px 4px 3px 20px; color:red">注意事项:每次导出数据最好不要超过一个月。</div>
<table border="0" cellspacing="1" cellpadding="0" class="roomQuery_SupplierTable" v-loading='loading'> <table border="0" cellspacing="1" cellpadding="0" class="roomQuery_SupplierTable" v-loading='loading'>
<tr> <tr>
<th width="100">序号</th> <th width="100">序号</th>
...@@ -119,7 +121,7 @@ ...@@ -119,7 +121,7 @@
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<template v-for="(subItem,subIndex) in item.subList"> <template v-for="(subItem,subIndex) in item.subList">
<tr v-for="(childItem,childIndex) in subItem.hotelList" :class="{roomQuerySplitTrCss:index%2!=0}"> <tr v-for="(childItem,childIndex) in subItem.hotelList" :class="{roomQuerySplitTrCss:index%2!=0}">
<td v-if="childIndex==0&&subIndex==0" :rowspan="subItem.hotelList.length*item.subList.length"> <td v-if="childIndex==0&&subIndex==0" :rowspan="item.RowSpan">
{{item.NewCombinationNum}} {{item.NewCombinationNum}}
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.hotelList.length"> <td v-if="childIndex==0" :rowspan="subItem.hotelList.length">
...@@ -142,9 +144,14 @@ ...@@ -142,9 +144,14 @@
</td> </td>
<td> <td>
<span style="color:red;"> <span style="color:red;">
<template v-if="childItem.SupplierId==UserInfo.SupplierId">
<template v-if="childItem.OPState==1">[OP选房-OK]</template> <template v-if="childItem.OPState==1">[OP选房-OK]</template>
<template v-else>{{childItem.DMCState==1?"[地接-OK]":(childItem.DMCState==0?"[未操作]":"[暂定]")}} <template v-else>{{childItem.DMCState==1?"[地接-OK]":(childItem.DMCState==0?"[未操作]":"[暂定]")}}
</template> </template>
</template>
<template v-else>
[组团社自理]
</template>
</span> </span>
</td> </td>
<td v-if="childIndex==0" :rowspan="subItem.hotelList.length"> <td v-if="childIndex==0" :rowspan="subItem.hotelList.length">
...@@ -194,6 +201,7 @@ ...@@ -194,6 +201,7 @@
PriceStatus: 0, PriceStatus: 0,
CombinationNum: '' CombinationNum: ''
}, },
UserInfo:{},
//分公司类表 //分公司类表
companyList: [], companyList: [],
//酒店列表 //酒店列表
...@@ -334,6 +342,7 @@ ...@@ -334,6 +342,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
console.log("dataList",this.dataList);
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
...@@ -449,6 +458,7 @@ ...@@ -449,6 +458,7 @@
}, },
}, },
mounted() { mounted() {
this.UserInfo=this.getLocalStorageSupplier();
let myDate = new Date(); let myDate = new Date();
let nowDate = let nowDate =
myDate.getFullYear() + myDate.getFullYear() +
...@@ -482,8 +492,14 @@ ...@@ -482,8 +492,14 @@
background: #eee !important; background: #eee !important;
} }
.roomQuery_SupplierTable { .roomQuery_SupplierTable{
background: #ccc; width: 98%;
font-size: 12px;
color: #333;
margin: auto;
border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
} }
.roomQuery_SupplierTable tr th { .roomQuery_SupplierTable tr th {
...@@ -493,17 +509,11 @@ ...@@ -493,17 +509,11 @@
color: #333; color: #333;
} }
.roomQuery_SupplierTable tr {
background: #fff;
text-align: center;
}
.roomQuery_SupplierTable tr td { .roomQuery_SupplierTable tr td {
font-size: 12px; border: 1px solid #d1d1d1;
line-height: 22px; text-align: center;
height: 22px; padding: 10px 0;
; }
}
.roomQuery_SupplierTable .tdLeft { .roomQuery_SupplierTable .tdLeft {
text-align: left; text-align: left;
......
<style scoped> <style scoped>
.currentManage .addCompany {width: 440px;} .currentManage .addCompany {width: 440px;}
/* 币种管理 */ /* 币种管理 */
.cm_content{padding:0;overflow-x: auto;} .cm_content{padding:0;overflow-x: auto;}
.cmc_item{float: left;width:212px;height: 195px;background:rgba(255,255,255,1);border-radius:4px;overflow: hidden;margin-right: 12px;margin-bottom: 15px;border: 1px solid #ebebeb} .cmc_item{float: left;width:212px;height: 195px;background:rgba(255,255,255,1);border-radius:4px;overflow: hidden;margin-right: 12px;margin-bottom: 15px;border: 1px solid #ebebeb}
.cmci_top{background-color: #3AD892;padding: 14px 20px;font-size: 14px;color: #009251} .cmci_top{background-color: #3AD892;padding: 14px 20px;font-size: 14px;color: #009251}
.cmci_top p span:nth-child(2){display: inline-block;padding: 2px 5px;font-size: 12px;color: #FFFFFF;background-color: #02AE62;border-radius:4px;margin-left: 5px;vertical-align:top;} .cmci_top p span:nth-child(2){display: inline-block;padding: 2px 5px;font-size: 12px;color: #FFFFFF;background-color: #02AE62;border-radius:4px;margin-left: 5px;vertical-align:top;}
.cmci_cen{padding: 14px 20px;color: #666666;font-size: 12px} .cmci_cen{padding: 14px 20px;color: #666666;font-size: 12px}
.cmci_cen p{padding: 4px 0;} .cmci_cen p{padding: 4px 0;}
.cmci_cen p .fr{font-weight: bold;font-family: "PingFangSC-fine";color: #333333} .cmci_cen p .fr{font-weight: bold;font-family: "PingFangSC-fine";color: #333333}
.cmci_cen p .icon-shuaxin{background-color: #E7E7E7;color: #999999;display: inline-block;margin-left: 5px;border-radius: 50%;font-size: 12px;transform: rotate(60deg);cursor: pointer;transition: all linear 0.2s;width: 12px;height: 12px;line-height: 12px;} .cmci_cen p .icon-shuaxin{background-color: #E7E7E7;color: #999999;display: inline-block;margin-left: 5px;border-radius: 50%;font-size: 12px;transform: rotate(60deg);cursor: pointer;transition: all linear 0.2s;width: 12px;height: 12px;line-height: 12px;}
.cmci_cen p .icon-shuaxin:hover{background-color: #E95252;color: white;} .cmci_cen p .icon-shuaxin:hover{background-color: #E95252;color: white;}
.fc_green{color: #47BF8C !important} .fc_green{color: #47BF8C !important}
.fc_red{color: #E95252 !important} .fc_red{color: #E95252 !important}
.cmci_bot{padding:0 20px 20px 20px;font-size: 12px !important;text-align: center} .cmci_bot{padding:0 20px 20px 20px;font-size: 12px !important;text-align: center}
.cmci_bot .el-button-group .el-button{padding: 4px;} .cmci_bot .el-button-group .el-button{padding: 4px;}
.cmci_bot .el-button{font-size: 12px !important} .cmci_bot .el-button{font-size: 12px !important}
.cmc_item:hover{box-shadow:0px 0px 20px rgba(191,191,191,1);transition: all linear 0.5s;} .cmc_item:hover{box-shadow:0px 0px 20px rgba(191,191,191,1);transition: all linear 0.5s;}
._benwei{background-color: #2AAEF2!important;color: #0877B0!important} ._benwei{background-color: #2AAEF2!important;color: #0877B0!important}
._benweiA{background-color: #0F80BA!important} ._benweiA{background-color: #0F80BA!important}
._underline{text-decoration: underline;cursor: pointer;} ._underline{text-decoration: underline;cursor: pointer;}
.currentManage ._vMG_edit{overflow: auto;display: none;position:absolute;font-family: 'PingFangSc-Fine';bottom:0;left: 0;border-top:1px solid #d1d1d1;background-color:#FFFFFF;padding: 10px;width: 100%;} .currentManage ._vMG_edit{overflow: auto;display: none;position:absolute;font-family: 'PingFangSc-Fine';bottom:0;left: 0;border-top:1px solid #d1d1d1;background-color:#FFFFFF;padding: 10px;width: 100%;}
.currentManage ._vMG_edit ._tit{padding-left: 10px;border-left: 3px solid #E95252; font-size: 16px;color: #000000} .currentManage ._vMG_edit ._tit{padding-left: 10px;border-left: 3px solid #E95252; font-size: 16px;color: #000000}
.currentManage ._vMG_edit ._tit span{color: #666666;font-size: 14px;} .currentManage ._vMG_edit ._tit span{color: #666666;font-size: 14px;}
._edHeight{height:400px;} ._edHeight{height:400px;}
.edHeight{display: block !important;height: 230px;} .edHeight{display: block !important;height: 230px;}
._scrollbar::-webkit-scrollbar{width: 4px;height: 8px;} ._scrollbar::-webkit-scrollbar{width: 4px;height: 8px;}
._scrollbar::-webkit-scrollbar-thumb{border-radius: 4px;box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);background: #c9c9c9;} ._scrollbar::-webkit-scrollbar-thumb{border-radius: 4px;box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);background: #c9c9c9;}
._scrollbar::-webkit-scrollbar-track{box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);border-radius: 4px;background: #EDEDED;} ._scrollbar::-webkit-scrollbar-track{box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);border-radius: 4px;background: #EDEDED;}
.currentManage ._info_box ul{margin-top: 15px} .currentManage ._info_box ul{margin-top: 15px}
.currentManage ._info_box ul li{float: left; width: 250px;} .currentManage ._info_box ul li{float: left; width: 250px;}
._max_width{max-width: 100px; overflow:hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;vertical-align:top;} ._max_width{max-width: 100px; overflow:hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;vertical-align:top;}
._yingkui{height: 40px;line-height: 40px;font-size: 12px;color: #666666} ._yingkui{height: 40px;line-height: 40px;font-size: 12px;color: #666666}
._tips{font-size: 12px;color: #666666;padding: 15px 0} ._tips{font-size: 12px;color: #666666;padding: 15px 0}
.currentManage .po_content{ .currentManage .po_content{
border-collapse: collapse; border-collapse: collapse;
} }
.currentManage .po_content{ .currentManage .po_content{
width: 100%; width: 100%;
} }
.currentManage .po_content tr:first-child{ .currentManage .po_content tr:first-child{
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
background-color: #DCDCDC; background-color: #DCDCDC;
} }
.currentManage .po_content tr th,.currentManage .po_content tr td{ .currentManage .po_content tr th,.currentManage .po_content tr td{
padding: 10px 20px; padding: 10px 20px;
text-align: left; text-align: left;
} }
.currentManage .po_content tr td{ .currentManage .po_content tr td{
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
border:1px solid #E6E6E6; border:1px solid #E6E6E6;
} }
.currentManage .po_content tr td .iconfont{ .currentManage .po_content tr td .iconfont{
font-size: 14px; font-size: 14px;
padding: 4px; padding: 4px;
} }
.query-box .iconfont{ .query-box .iconfont{
cursor: pointer; cursor: pointer;
background-color: #E95252; background-color: #E95252;
color: white; color: white;
width: 30px; width: 30px;
height: 30px; height: 30px;
display: inline-block; display: inline-block;
text-align: center; text-align: center;
line-height: 30px; line-height: 30px;
border-radius: 50%; border-radius: 50%;
margin-left: 10px; margin-left: 10px;
} }
.currentManage ._yuan{ .currentManage ._yuan{
width:12px; width:12px;
height:12px; height:12px;
background:rgba(233,82,82,1); background:rgba(233,82,82,1);
border-radius:50%; border-radius:50%;
display: inline-block; display: inline-block;
} }
.currentManage ._yuan._yuan_red{ .currentManage ._yuan._yuan_red{
background:#47BF8C; background:#47BF8C;
} }
._flex_rete{ ._flex_rete{
cursor: pointer; cursor: pointer;
} }
.display_none{ .display_none{
opacity: 0; opacity: 0;
} }
._flex_rete .icon-qiehuan{ ._flex_rete .icon-qiehuan{
background-color: #E5E5E5; background-color: #E5E5E5;
color: white; color: white;
height: 20px; height: 20px;
width: 20px; width: 20px;
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
font-size: 12px; font-size: 12px;
padding: 0 !important; padding: 0 !important;
line-height: 20px; line-height: 20px;
float: right; float: right;
} }
._flex_rete .icon-qiehuan:hover{ ._flex_rete .icon-qiehuan:hover{
background-color: rgba(233,82,82,1); background-color: rgba(233,82,82,1);
color: white; color: white;
} }
</style> </style>
<template> <template>
<div class="flexOne currentManage"> <div class="flexOne currentManage">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span>
<em>币种</em> <em>币种</em>
<el-select filterable v-model='msg.CurrencyId' > <el-select filterable v-model='msg.CurrencyId' >
<el-option key="0" :value="0" label="不限"></el-option> <el-option key="0" :value="0" label="不限"></el-option>
<el-option v-for="item in currencyTypeList" :key="item.ID" :value="item.ID" :label="item.Name"></el-option> <el-option v-for="item in currencyTypeList" :key="item.ID" :value="item.ID" :label="item.Name"></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>日期</em> <em>日期</em>
<el-date-picker class="h34" <el-date-picker class="h34"
@change="timeAdd" @change="timeAdd"
v-model="productionDate" v-model="productionDate"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:range-separator="$t('restaurant.res_To')"> :range-separator="$t('restaurant.res_To')">
</el-date-picker> </el-date-picker>
</span> </span>
</li> </li>
<li> <li>
<button class="hollowFixedBtn" @click="getList">{{$t('pub.searchBtn')}}</button> <button class="hollowFixedBtn" @click="getList">{{$t('pub.searchBtn')}}</button>
</li> </li>
</ul> </ul>
</div> </div>
<div class="cm_content _scrollbar"> <div class="cm_content _scrollbar">
<table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="po_content singeRowTable" style="border:1px solid #E6E6E6;" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>名称</th> <th>名称</th>
<th>现钞卖出</th> <th>现钞卖出</th>
<th>现钞买入</th> <th>现钞买入</th>
<th>时间</th> <th>时间</th>
</tr> </tr>
<tr v-for="(item,index) in DataList" :key="index"> <tr v-for="(item,index) in DataList" :key="index">
<td>{{item.CurrencyId}}</td> <td>{{item.CurrencyId}}</td>
<td>{{item.CurrencyName}}</td> <td>{{item.CurrencyName}}</td>
<td>{{item.CurrentRate}}</td> <td>{{item.CurrentRate}}</td>
<td>{{item.OutCashRate}}</td> <td>{{item.OutCashRate}}</td>
<td>{{item.UpdateTime}}</td> <td>{{item.UpdateTime}}</td>
<!-- <td> <!-- <td>
<el-button-group size='mini'> <el-button-group size='mini'>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button type="primary" class="iconfont icon-bianji-smal" @click="editCurency(item.ID),text=$t('system.table_edit')"></el-button> <el-button type="primary" class="iconfont icon-bianji-smal" @click="editCurency(item.ID),text=$t('system.table_edit')"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button type="danger" class="iconfont icon-img_delete_small" @click="financeinfoRemove(item.ID,item.Name)"></el-button> <el-button type="danger" class="iconfont icon-img_delete_small" @click="financeinfoRemove(item.ID,item.Name)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('fnc.szbweibi')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('fnc.szbweibi')" placement="top-start">
<el-button type="warning" class="iconfont" v-if="item.IsStandardCurrency!=1" @click="setStandardTips(item.ID,item.Name)">{{$t('Airticket.Air_ben')}}</el-button> <el-button type="warning" class="iconfont" v-if="item.IsStandardCurrency!=1" @click="setStandardTips(item.ID,item.Name)">{{$t('Airticket.Air_ben')}}</el-button>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
</td> --> </td> -->
</tr> </tr>
</table> </table>
<div class="noData" v-if="DataList.length==0"> <div class="noData" v-if="DataList.length==0">
{{$t('system.content_noData')}} {{$t('system.content_noData')}}
</div> </div>
<div> <div>
<el-pagination <el-pagination
background background
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="currentPage" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" layout="total,prev, pager, next, jumper"
:page-size=msg.pageSize :page-size=msg.pageSize
:total=total> :total=total>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
msg:{ msg:{
pageIndex:1, pageIndex:1,
pageSize:14, pageSize:14,
CurrencyId:0, CurrencyId:0,
StartTime:"", StartTime:"",
EndTime:"", EndTime:"",
}, },
productionDate:[], productionDate:[],
DataList:[], DataList:[],
loading:false, loading:false,
currentPage:1, currentPage:1,
total:0, total:0,
currencyTypeList:[], currencyTypeList:[],
} }
},created(){ },created(){
if(this.$route.query.CurrencyId){ if(this.$route.query.CurrencyId){
this.msg.CurrencyId=Number(this.$route.query.CurrencyId); this.msg.CurrencyId=Number(this.$route.query.CurrencyId);
} }
}, },
mounted(){ mounted(){
this.financeinfo_post_GetList(); this.financeinfo_post_GetList();
this.getList(); this.getList();
}, },
methods: { methods: {
resetPageIndex(){ // 重置页码 resetPageIndex(){ // 重置页码
this.msg.pageIndex=1; this.msg.pageIndex=1;
this.currentPage = 1; this.currentPage = 1;
}, },
handleCurrentChange(val) { //翻页 handleCurrentChange(val) { //翻页
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
getList(){ getList(){
this.loading=true; this.loading=true;
this.apipost('financeinfo_post_GetHistoryCurrencyRatePageList', this.msg, res => { this.apipost('financeinfo_post_GetHistoryCurrencyRatePageList', this.msg, res => {
this.loading=false; this.loading=false;
console.log("res",res) console.log("res",res)
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.DataList = res.data.data.pageData; this.DataList = res.data.data.pageData;
this.total=res.data.data.count; this.total=res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, err => {}) }, err => {})
}, },
timeAdd(){ timeAdd(){
if(!this.productionDate){ if(!this.productionDate){
this.msg.sDate = ''; this.msg.sDate = '';
this.msg.eDate = ''; this.msg.eDate = '';
return return
} }
this.msg.sDate = this.productionDate[0]; this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1]; this.msg.eDate = this.productionDate[1];
}, },
financeinfo_post_GetList(){ // 币种类型 financeinfo_post_GetList(){ // 币种类型
this.apipost('financeinfo_post_GetList',{Name:''},res=>{ this.apipost('financeinfo_post_GetList',{Name:''},res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.currencyTypeList = res.data.data; this.currencyTypeList = res.data.data;
}else{ }else{
} }
},err=>{}) },err=>{})
}, },
}, },
} }
</script> </script>
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