Commit 137781c1 authored by 黄奎's avatar 黄奎

页面修改

parent c571d5f0
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="getList(),resetPageIndex()" /> @click="getList(),resetPageIndex()" />
<input type="button" class="normalBtn" <input type="button" class="normalBtn" v-if="IsEditDmcSource==1"
@click="resetId(),outerVisible = true,dialogTitle=$t('ground.tianjiataocan')" :value="$t('pub.addBtn')" /> @click="resetId(),outerVisible = true,dialogTitle=$t('ground.tianjiataocan')" :value="$t('pub.addBtn')" />
</li> </li>
</ul> </ul>
...@@ -153,17 +153,20 @@ ...@@ -153,17 +153,20 @@
</td> </td>
<td> <td>
<el-button-group> <el-button-group>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start"> <template v-if="IsEditDmcSource==1">
<el-button type="primary" icon="iconfont icon-Edit" <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
@click="outerVisible = true,dialogTitle=$t('ground.xiugaitaocan'),updateResturant(item.Id)"></el-button> <el-button type="primary" icon="iconfont icon-Edit"
</el-tooltip> @click="outerVisible = true,dialogTitle=$t('ground.xiugaitaocan'),updateResturant(item.Id)">
<el-tooltip class="item" effect="dark" :content="$t('restaurant.res_bidManage')" placement="top-start"> </el-button>
<el-button type="primary" icon="iconfont icon-ico_shezhi" @click="goUrl('RestaurantPrice',item.Id)"> </el-tooltip>
</el-button> <el-tooltip class="item" effect="dark" :content="$t('restaurant.res_bidManage')" placement="top-start">
</el-tooltip> <el-button type="primary" icon="iconfont icon-ico_shezhi" @click="goUrl('RestaurantPrice',item.Id)">
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start"> </el-button>
<el-button type="danger" icon="el-icon-delete" @click="isDelete(item.Id)"></el-button> </el-tooltip>
</el-tooltip> <el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button type="danger" icon="el-icon-delete" @click="isDelete(item.Id)"></el-button>
</el-tooltip>
</template>
</el-button-group> </el-button-group>
</td> </td>
</tr> </tr>
...@@ -186,7 +189,7 @@ ...@@ -186,7 +189,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('hotel.hotel_produceDes')" prop="MealDesc"> <el-form-item :label="$t('hotel.hotel_produceDes')" prop="MealDesc">
<el-input class="w300" type="textarea" v-model="addMsg.MealDesc" maxlength="200"></el-input> <el-input class="w300" type="textarea" v-model="addMsg.MealDesc" maxlength="200"></el-input>
</el-form-item> </el-form-item>
...@@ -241,10 +244,25 @@ ...@@ -241,10 +244,25 @@
required: true, required: true,
message: this.$t('ground.qingxztc') message: this.$t('ground.qingxztc')
}] }]
} },
IsEditDmcSource: 0, //是否可修改套餐
}; };
}, },
methods: { methods: {
//获取酒店修改与报价添加修改权限
GetHotelPirceStockAuth() {
let editDmcSource = "F_EditDmcSource";
this.apipost('userauth_get_CheckUserAuthNewService', '', res => {
if (res.data.resultCode == 1) {
var tempData = res.data.data;
if (tempData && tempData.length > 0) {
if (tempData.includes(editDmcSource)) { //查看列表权限
this.IsEditDmcSource = 1;
}
}
}
});
},
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost( this.apipost(
...@@ -335,38 +353,36 @@ ...@@ -335,38 +353,36 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getList(); this.getList();
} } else if (res.data.resultCode == 2) { //该套餐下面存在报价信息不能删除
else if (res.data.resultCode == 2) {//该套餐下面存在报价信息不能删除 this.$confirm("该套餐下面存在报价信息" + this.$t('restaurant.res_confirm') + this.$t('system.table_delete'),
this.$confirm("该套餐下面存在报价信息"+this.$t('restaurant.res_confirm')+ this.$t('system.table_delete'), this.$t('tips.tips'), { this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'), confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning" type: "warning"
}) })
.then(() => { .then(() => {
let msg = { let msg = {
ID: ID, ID: ID,
IsDel:1, IsDel: 1,
}; };
this.apipost( this.apipost(
"meal_post_Remove", "meal_post_Remove",
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getList(); this.getList();
} } else {
else { this.Error(res.data.message);
this.Error(res.data.message); }
} },
}, null
null );
); })
}) .catch(() => {
.catch(() => { this.Info(this.$t('ground.yiquxsc'));
this.Info(this.$t('ground.yiquxsc')); });
}); } else {
}
else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
...@@ -433,6 +449,7 @@ ...@@ -433,6 +449,7 @@
} }
}, },
mounted() { mounted() {
this.GetHotelPirceStockAuth();
this.initResrestaurant(); this.initResrestaurant();
this.addMsg.DiningId = parseInt(this.$route.query.id); this.addMsg.DiningId = parseInt(this.$route.query.id);
this.msg.DiningId = this.$route.query.id; this.msg.DiningId = this.$route.query.id;
......
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
<button v-if="IsEditDmcSource==1" @click="goSubInfo('restaurantInfoManage',item.ID)" <button v-if="IsEditDmcSource==1" @click="goSubInfo('restaurantInfoManage',item.ID)"
class="hotelBtn">{{$t('pub.updateMsg')}}</button> class="hotelBtn">{{$t('pub.updateMsg')}}</button>
<button v-if="IsHotelPriceStock==1&&IsEditDmcSource==1" @click="goUrl('RestaurantPackage',item.ID)" <button @click="goUrl('RestaurantPackage',item.ID)"
class="hotelBtn">{{$t('restaurant.res_package')}}</button> class="hotelBtn">{{$t('restaurant.res_package')}}</button>
<button @click="goSubInfo('restaurantInfoDetail',item.ID)" class="hotelBtn">{{$t('fnc.xiangqing')}}</button> <button @click="goSubInfo('restaurantInfoDetail',item.ID)" class="hotelBtn">{{$t('fnc.xiangqing')}}</button>
......
<style>
.priceCodeDiv {
width: 280px;
height: 210px;
display: flex;
justify-content: center;
align-items: center;
}
</style>
<template>
<div class="priceCodeDiv">
<img :src="'data:image/png;base64,'+TCQrCode" />
</div>
</template>
<script>
export default {
props: ["priceInfo", "showSurveyType"],
data() {
return {
loading: false,
TCQrCode: ""
};
},
components: {
},
methods: {
//生成车行意见调查表二维码
createPriceImg() {
let urlObj = this.domainManager();
let msg = {
TCID: this.priceInfo.TCID,
pUrl: "",
};
if (this.showSurveyType == 1) {
msg.pUrl = "/html/ImpressionOpinionSurvey/guestlogin.html"
} else {
msg.pUrl = "/html/ImpressionOpinionSurvey/busSign.html"
}
console.log("createPriceImg", msg)
this.$http({
headers: {
'Content-Type': 'application/json'
},
method: 'post',
url: urlObj.DomainUrl + '/api/file/GetSurveyQrCode?',
data: {
"msg": msg
}
}).then(res => {
if (res.data.resultCode === 1) {
this.TCQrCode = res.data.data;
}
}).catch(err => {})
},
closeCode() {
}
},
mounted() {
this.createPriceImg();
}
};
</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