Commit b76280dc authored by Mac's avatar Mac

修改禁止操作方式

parent 534a1941
......@@ -56,11 +56,9 @@
<table class="hotelTable">
<tr>
<td colspan="2">
<p v-if="IsOperation !=1" 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}"
@click="goUrlR('HotelManagement',subItem.HotelId,'酒店管理')">{{subItem.HotelName}}</p>
<p v-else class="link" style="word-break: normal;text-align:left;"
:class="{'Hotel_red':subItem.HotelChangeState==3}">{{subItem.HotelName}}</p>
</td>
</tr>
<tr>
......@@ -119,7 +117,7 @@
<div class="w150">
<!--:disabled="subItem.OPState==1"-->
<el-select :disabled='IsOperation !=1? false :true' 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')"
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable :placeholder="$t('pub.pleaseSel')"
......@@ -134,7 +132,7 @@
<p style="padding-top: 5px;">
<a v-if="subItem.ContractUrl" target="_blank" :href="subItem.ContractUrl">手配书</a>
</p>
<el-upload v-if="IsOperation !=1" :http-request="uploadFileBtnS" :multiple="false" :show-file-list="false" action=''>
<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>
......@@ -143,20 +141,13 @@
<!-- 房间数 -->
<td>
<el-input v-if="IsOperation !=1" 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'></el-input>
<span v-else>{{childItem.HouseTypeCount}}</span>
</td>
<!-- 预定人数 -->
<td>
<el-input v-if="IsOperation !=1" class='w40 tcenter' maxlength="2" @keyup.native="checkInteger(childItem,'BookNum')"
@input="calculationPrice(subItem)" v-model='childItem.BookNum'></el-input>
<span v-else>{{childItem.BookNum}}</span>
<el-input class='w40 tcenter' maxlength="2" @keyup.native="checkPrice(childItem,'HouseTypeCount')"
v-model='childItem.HouseTypeCount' :disabled="childIndex<4?true:false"></el-input>
</td>
<!-- &lt;!&ndash; 预定人数 &ndash;&gt;-->
<!-- <td>-->
<!-- <el-input class='w40 tcenter' maxlength="2" @keyup.native="checkInteger(childItem,'BookNum')"-->
<!-- @input="calculationPrice(subItem)" v-model='childItem.BookNum'></el-input>-->
<!-- 预定人数 -->
<td>
<el-input class='w40 tcenter' maxlength="2" @keyup.native="checkInteger(childItem,'BookNum')"
......@@ -173,17 +164,15 @@
</td>
<!-- 单价/每人 -->
<td>
<el-input v-if="IsOperation !=1" @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'>
</el-input>
<span v-else>{{childItem.UnitPrice}}</span>
</td>
<!-- 免减人数 -->
<td>
<el-input v-if="IsOperation !=1" 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)">
</el-input>
<span v-else>{{childItem.HotelDiscount}}</span>
</td>
<!-- 金额小计 -->
<td style="white-space:nowrap;">
......@@ -192,7 +181,7 @@
<!--返佣-->
<td>
<p class="pHouseStyle link" @input="calculationPrice(subItem)">
<span class="spanlink" v-if='childItem.IsRebateRatio==0 && IsOperation !=1'
<span class="spanlink" v-if='childItem.IsRebateRatio==0 '
@click="goUrl('HotelInfo',childItem,'酒店管理')">设置</span>
<span v-if='childItem.IsRebateRatio!=0'>{{childItem.RebateRatio}}</span>
</p>
......@@ -207,7 +196,7 @@
<tr>
<td width="70" style="text-align:right;">订房状态:</td>
<td>
<el-select :disabled='IsOperation !=1? false :true' 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='1'></el-option>
<el-option label='暂定' :value='2'></el-option>
......@@ -220,7 +209,7 @@
<tr>
<td width="70" style="text-align:right;">付款方式:</td>
<td>
<el-select :disabled='IsOperation !=1? false :true' class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option label='请选择' :value='0'></el-option>
<el-option label='现付' :value='1' v-if="subItem.PayStyleExt==1"></el-option>
<el-option label='签单' :value='2' v-if="subItem.PayStyleExt==2"></el-option>
......@@ -246,8 +235,8 @@
<tr>
<td width="70" style="text-align:right;">订团号:</td>
<td>
<el-input v-if="IsOperation !=1" class='w135' v-model='subItem.ReserveNo'></el-input>
<span v-else>{{subItem.ReserveNo}}</span>
<el-input class='w135' v-model='subItem.ReserveNo'></el-input>
</td>
</tr>
<tr>
......@@ -256,14 +245,13 @@
<tr>
<td width="70" style="text-align:right;">备注:</td>
<td>
<el-input v-if="IsOperation !=1" type='textarea' class='w135' v-model='subItem.Remarks'></el-input>
<span v-else>{{subItem.Remarks}}</span>
<el-input type='textarea' class='w135' v-model='subItem.Remarks'></el-input>
</td>
</tr>
</table>
</td>
<!-- 操作 -->
<td v-if="childIndex==0 && IsOperation !=1" :rowspan="5">
<td v-if="childIndex==0" :rowspan="5">
<!--v-if="subItem.OPState!=1"-->
<template v-if="subItem.OPState!=1">
<span class="Hotel_red">OP选房确认</span>
......
......@@ -45,9 +45,8 @@
<table class="dinnerTable">
<tr>
<td colspan="2">
<span style="padding-left:5px;" class="link" v-if="IsOperation != 1"
<span style="padding-left:5px;" class="link"
@click="goUrlR('restaurantList',subItem.DiningID,'餐厅列表')">{{subItem.DiningName}}</span>
<span style="padding-left:5px;" class="link" v-else>{{subItem.DiningName}}</span>
</td>
</tr>
......@@ -70,7 +69,7 @@
</table>
</td>
<td v-if="childIndex==0" :rowspan="3">
<el-select :disabled='IsOperation !=1? false :true' class='w160 sel' v-model='subItem.NewDiningID' filterable :placeholder="$t('pub.pleaseSel')"
<el-select class='w160 sel' v-model='subItem.NewDiningID' filterable :placeholder="$t('pub.pleaseSel')"
@visible-change='getDingList(item)' @change='sendValue(subItem,item)'>
<el-option v-for='itemHotel in item.DinnerList' :label='itemHotel.RealName' :value='itemHotel.ID'
:key='itemHotel.ID'></el-option>
......@@ -93,22 +92,19 @@
{{childItem.PeopleNum}}
</td>
<td>
<span class="spanlink" v-if='childItem.PeoplePrice==0 && IsOperation != 1'
<span class="spanlink" v-if='childItem.PeoplePrice==0'
@click="goUrl('RestaurantPackage',subItem,'套餐查询')">设置</span>
<span v-if='childItem.PeoplePrice!=0'>{{childItem.PeoplePrice}}</span>
</td>
<td>
<el-input v-if="IsOperation !=1" class='w50 tcenter' @input='calculationPrice(subItem)' maxlength='2'
<el-input class='w50 tcenter' @input='calculationPrice(subItem)' maxlength='2'
v-model='childItem.Discount' @keyup.native="checkInteger(childItem,'Discount')"></el-input>
<span v-else>{{childItem.Discount}}</span>
</td>
<td>
{{(childItem.PeopleNum-childItem.Discount)*childItem.PeoplePrice}}
</td>
<td>
<el-input v-if="IsOperation !=1" class='w50 tcenter' @input='calculationPrice(subItem)' v-model='childItem.DiscountPrice'
@keyup.native="checkInteger(childItem,'DiscountPrice')"></el-input><span v-else>{{childItem.DiscountPrice}}</span>%
<el-input class='w50 tcenter' @input='calculationPrice(subItem)' v-model='childItem.DiscountPrice'
@keyup.native="checkInteger(childItem,'DiscountPrice')"></el-input>%
</td>
<td v-if="childIndex==0" :rowspan="3">
{{subItem.TotalPrice}}
......@@ -121,7 +117,7 @@
</td>
<td style="text-align:left;">
<el-select :disabled='IsOperation !=1? false :true' class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option label='请选择' :value='0'></el-option>
<el-option label='现付' :value='1' v-if="subItem.PayStyleExt==1"></el-option>
<el-option label='签单' :value='2' v-if="subItem.PayStyleExt==2"></el-option>
......@@ -138,7 +134,7 @@
订餐方式:
</td>
<td style="text-align:left;">
<el-select :disabled='IsOperation !=1? false :true' v-model='subItem.DiningReserveType' class='w135 sel'
<el-select v-model='subItem.DiningReserveType' class='w135 sel'
:placeholder="$t('pub.pleaseSel')">
<el-option label='请选择' value='0'></el-option>
<el-option label='公司预订' value='1'></el-option>
......@@ -159,15 +155,13 @@
订团号:
</td>
<td style="text-align:left;">
<el-input v-if="IsOperation !=1" class='w135 tcenter' v-model='subItem.ReserveNo'></el-input>
<span v-else>{{subItem.ReserveNo}}</span>
<el-input class='w135 tcenter' v-model='subItem.ReserveNo'></el-input>
</td>
</tr>
</table>
</td>
<td v-if="childIndex==0" :rowspan="3">
<el-input v-if="IsOperation !=1" type='textarea' rows="4" class='w120' v-model='subItem.Remarks'></el-input>
<span v-else>{{subItem.Remarks}}</span>
<el-input type='textarea' rows="4" class='w120' v-model='subItem.Remarks'></el-input>
</td>
</tr>
</template>
......
......@@ -74,25 +74,22 @@
{{childItem.PeopleNum}}
</td>
<td>
<el-input v-if="IsOperation !=1" class='w50 tcenter' v-model='childItem.UsePeopleNum' type="number"
<el-input class='w50 tcenter' v-model='childItem.UsePeopleNum' type="number"
@input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'UsePeopleNum')"></el-input>
<span v-else>{{childItem.UsePeopleNum}}</span>
</td>
<td>
<el-input v-if="IsOperation !=1" class='w50 tcenter' maxlength='2' v-model='childItem.Discount' type="number"
<el-input class='w50 tcenter' maxlength='2' v-model='childItem.Discount' type="number"
@input='calculationPrice(subItem)' @keyup.native="checkInteger(childItem,'Discount')"></el-input>
<span v-else>{{childItem.Discount}}</span>
</td>
<td>
<span class="spanlink" v-if='childItem.PeoplePrice==0 && IsOperation !=1'
<span class="spanlink" v-if='childItem.PeoplePrice==0'
@click="goUrl('ticketManagement',subItem,'门票管理')">设置</span>
<span v-if='childItem.PeoplePrice!=0'>{{childItem.PeoplePrice}}</span>
</td>
<td>
{{(childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice}}
</td>
<td>
<span class="spanlink" v-if='childItem.DiscountPrice==0 && IsOperation !=1'
<span class="spanlink" v-if='childItem.DiscountPrice==0'
@click="goUrl('scenicSpotInfoManage',subItem,'景区列表')">设置</span>
<span v-if='childItem.DiscountPrice!=0'>{{childItem.DiscountPrice}}%</span>
</td>
......@@ -106,7 +103,7 @@
付款方式:
</td>
<td style="text-align:left;">
<el-select :disabled='IsOperation !=1? false :true' class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-select class='w135 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option label='请选择' value='0'></el-option>
<el-option label='现付' value='1'></el-option>
<el-option label='签单' value='2'></el-option>
......@@ -121,15 +118,13 @@
订团号:
</td>
<td style="text-align:left;">
<el-input v-if="IsOperation !=1" class='w135' v-model='subItem.CombinationNum' type="text"></el-input>
<span v-else>{{subItem.CombinationNum}}</span>
<el-input class='w135' v-model='subItem.CombinationNum' type="text"></el-input>
</td>
</tr>
</table>
</td>
<td v-if="childIndex==0" :rowspan="3" >
<el-input v-if="IsOperation !=1" type='textarea' rows="4" class='w170' v-model='subItem.Remarks'></el-input>
<span v-else>{{subItem.Remarks}}</span>
<el-input type='textarea' rows="4" class='w170' v-model='subItem.Remarks'></el-input>
</td>
</tr>
</template>
......
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