Commit b76280dc authored by Mac's avatar Mac

修改禁止操作方式

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