Commit 120be057 authored by huangyuanyuan's avatar huangyuanyuan

修改公司管理权限,签证产品可查看

parent 54e61d7d
......@@ -699,7 +699,7 @@
<i class="iconfont icon-huidaodingbu"></i>
</div>
<!-- @click="submitForm(1)" -->
<div class="DTSaveBtn" @click="SaveVisaProduct('addMsg')">保存</div>
<div v-show="saveBtn" class="DTSaveBtn" @click="SaveVisaProduct('addMsg')">保存</div>
<!-- <div class="DTSaveBtn">提交</div> -->
<!-- <div v-if="ConfigId>0" class="DTSaveBtn" :class="{'disClick':!isSubmit}" @click="goB2B()">预览</div> -->
</div>
......@@ -733,6 +733,7 @@ export default {
},
data() {
return {
saveBtn:true,
fileList:[],
checkList:[],
......@@ -837,7 +838,9 @@ export default {
};
},
mounted() {
if(this.$route.query.save){
this.saveBtn=false;
}
if(this.$route.query.Id){
this.Pid=this.$route.query.Id;
this.GetVisaProductDetails(this.Pid);
......
......@@ -300,10 +300,10 @@
<table class="VisaProductTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th width="10%">产品名称</th>
<th width="8%">签证类型</th>
<th width="8%">价格有效日期</th>
<th width="5%">签证类型</th>
<th width="12%">价格有效日期</th>
<th width="8%">成本价</th>
<th width="8%">同业价</th>
<th width="7%">同业价</th>
<th width="8%">直客价</th>
<th width="6%">状态</th>
<th width="6%">订单数</th>
......@@ -320,7 +320,14 @@
<span v-else class="tuanqian">团签</span>
</td>
<td>
<span class="fbold">{{item.SendVisaDate}}</span>
<p>
结束日期:<span class="fbold">{{item.SendVisaDate}}</span>
</p>
<p>
开始日期:<span class="fbold">{{item.EffectiveStartDate}}</span>
</p>
</td>
<td>
<span class="totalPrice fbold" style="color: #47BF8C;">{{moneyFormat(item.CostPrice)}}</span>
......@@ -409,6 +416,7 @@
@click="getDetail(item)"
></el-button>
</el-tooltip> -->
<div style="display:inline-block">
<el-tooltip
class="item"
effect="dark"
......@@ -423,6 +431,21 @@
@click="EditVisaProduct(item)"
></el-button>
</el-tooltip>
<el-tooltip
class="item"
effect="dark"
content="查看详情"
placement="top-start"
v-else
>
<el-button
style="background:#E95252; border-color:#E95252;color:#fff"
icon="iconfont icon-chakan"
@click="ChaKan(item)"
></el-button>
</el-tooltip>
</div>
<el-tooltip effect="dark" content="查看" placement="top-start" v-if="msg.isFinacial==1">
<el-button
type="primary"
......@@ -677,6 +700,18 @@ export default {
},
methods: {
// 只能查看,不能修改
ChaKan(item){
this.$router.push({
name: "ModifyVisaProduct",
query: {
Id:item.Id,
blank: "y",
save:false,
tab: "配置签证产品"
}
});
},
// 修改签证产品
EditVisaProduct(item){
this.$router.push({
......
......@@ -53,6 +53,7 @@
<th>{{$t('restaurant.res_ContactNumber')}}</th>
<th>{{$t('admin.admin_status')}}</th>
<th>{{$t('admin.admin_isshow')}}</th>
<th>B2B是否显示</th>
<th>公司类型</th>
<th width="200">{{$t('admin.admin_operate')}}</th>
</tr>
......@@ -65,6 +66,7 @@
<td>{{item.MobilePhone}}</td>
<td>{{item.Status==0? $t('pub.openSel'): $t('pub.closeSel')}}</td>
<td>{{item.is_show==0?'显示':'不显示'}}</td>
<td>{{item.B2BShow==0?'显示':'不显示'}}</td>
<td>{{item.IsParentCompany=='1'?'总公司':'分公司'}}</td>
<td>
<el-row>
......@@ -152,6 +154,9 @@
</el-form-item>
<el-form-item class='w400' :label='$t("admin.admin_isshow")' prop="is_show">
<el-switch v-model="addMsg.is_show" active-value="0" inactive-value="1"></el-switch>
</el-form-item>
<el-form-item class='w400' label='B2B是否显示' prop="B2BShow">
<el-switch v-model="addMsg.B2BShow" active-value="0" inactive-value="1"></el-switch>
</el-form-item>
<el-form-item class='w400' label='是否为总公司' prop="IsParentCompany">
<el-switch v-model="addMsg.IsParentCompany" active-value="1" inactive-value="2"></el-switch>
......@@ -305,6 +310,7 @@
AirportServicePerson: '',
AirportServicePhone: '',
is_show: '0',
B2BShow:'0',
BranchManager: '',
IsParentCompany:'1',
BeginTier:'',
......@@ -411,6 +417,7 @@
this.getCityList(this.addMsg.Province,2);
this.addMsg.Status=this.addMsg.Status.toString();
this.addMsg.is_show=this.addMsg.is_show.toString();
this.addMsg.B2BShow=this.addMsg.B2BShow.toString();
this.addMsg.IsParentCompany=this.addMsg.IsParentCompany.toString();
this.imageUrl = this.addMsg.ConfirmationSignet;
this.imageUrlLogo=this.addMsg.TravelLogo;
......
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