Commit 3ebcfff5 authored by zhengke's avatar zhengke

修改

parents 16cd652e 62a270f5
......@@ -616,6 +616,7 @@ tr._item_list td:last-child {
:footer="footer"
:footer-row-height="33"
:multiple-sort="multipleSort"
:row-click="rowClick"
>
<!-- 多个排序 -->
</v-table>
......@@ -1795,6 +1796,20 @@ export default {
this.getPageList();
},
methods: {
rowClick(rowIndex,rowData,column){
let path='RegistrationList';
if(this.msg.DataType==1 || this.msg.DataType=='1'){
if(column.title=="待收金额" || column.title=="溢收金额"){
this.$router.push({
name: path,
query: {
id: rowData.TCID,
blank: "y",
}
});
}
}
},
//获取目的地列表
getLinePlaceList(lineId) {
let msg = {
......
......@@ -124,10 +124,11 @@
</ul>
</div>
<div style=" padding-bottom: 10px;">
<div style="padding-bottom: 10px;">
<span>应收总额:{{moneyFormat(PreferPrice)}}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>实收:{{moneyFormat(IncomePrice)}}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>待收:<span :class="{color_red:(PreferPrice-IncomePrice)!==0}">{{moneyFormat(PreferPrice-IncomePrice)}}</span></span>
<span>优惠:{{moneyFormat(DiscountMoneyAll)}}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span>待收:<span :class="{color_red:(PreferPrice-IncomePrice-DiscountMoneyAll)!==0}">{{moneyFormat(PreferPrice-IncomePrice-DiscountMoneyAll)}}</span></span>
</div>
<table class="VisaProductTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'>
<tr>
......@@ -321,6 +322,7 @@ export default {
isShow:0,
PreferPrice:0,
IncomePrice:0,
DiscountMoneyAll:0,
EmployeeId:0,
EditVisible:false,
EditMsg:{
......@@ -402,6 +404,7 @@ export default {
this.apipost('dmc_get_visa_GetVisaOrderList',this.msg,res=>{
this.PreferPrice=0;
this.IncomePrice=0;
this.DiscountMoneyAll=0;
if(res.data.resultCode==0){
this.loading = false;
this.dataList=[]
......@@ -412,8 +415,11 @@ export default {
this.dataList.forEach(x=>{
if(x.VisaOrderStatus!=2){
this.PreferPrice+=x.TotalPrice;
}
this.DiscountMoneyAll+=x.DiscountMoney;
this.IncomePrice+=(x.Income+x.PlatformTax-x.RefundMoney);
}
})
}
},err=>{})
......
......@@ -219,9 +219,11 @@
.scenicRecommentList .comCursorUrl {
cursor: pointer;
}
.scenicRecommentList .ql-container{
.scenicRecommentList .ql-container {
min-height: 150px;
}
.scenicRecommentList .el-upload-dragger {
font-size: 28px;
color: #8c939d;
......@@ -230,9 +232,11 @@
line-height: 41px;
text-align: center;
}
.scenicRecommentList .ql-editor{
.scenicRecommentList .ql-editor {
min-height: 150px;
}
/* 景区推荐列表 */
</style>
......@@ -242,7 +246,7 @@
<ul>
<li>
<span class="hotel_name">
<em>名称</em>
<em>攻略名称</em>
<el-input maxlength="50" @keyup.native.enter="resetPageIndex(),getList()" v-model="msg.Name">
</el-input>
</span>
......@@ -259,22 +263,22 @@
<div class="hotelResource clearfix" v-loading="loading">
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th>
<th width="80">
编号
</th>
<th width="300">
<th width="150">
名称
</th>
<th width="300">
<th width="150">
封面
</th>
<th>
<th width="100">
操作人
</th>
<th>
<th width="120">
操作时间
</th>
<th>
<th width="120">
操作
</th>
</tr>
......@@ -286,7 +290,7 @@
{{item.Name}}
</td>
<td>
<img :src="item.ImgCover" style="width:180px;"/>
<img :src="item.ImgCover" style="width:50px;height:30px"/>
</td>
<td>
{{item.UpdateName}}
......@@ -296,69 +300,47 @@
</td>
<td>
<el-tooltip class="item" effect="dark" content="修改" placement="top">
<el-button
type="primary"
icon="el-icon-edit"
circle
@click="UpdateScenic(item.Id)"
></el-button>
<el-button type="primary" icon="el-icon-edit" circle @click="GetScenic(item.Id)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top">
<el-button
type="danger"
icon="iconfont icon-img_delete_small"
circle
@click="removeScenicRecomment(item.Id)"
></el-button>
<el-button type="danger" icon="iconfont icon-img_delete_small" circle
@click="removeScenicRecomment(item.Id)"></el-button>
</el-tooltip>
</td>
</tr>
<tr v-if="!(DataList && DataList.length>0)">
<td colspan="6">
暂无数据...
</td>
</tr>
</table>
</div>
<el-dialog
custom-class="w800"
title="新增"
:visible.sync="outerVisible"
center
:before-close="closeChangeMachie"
>
<el-dialog custom-class="w800" title="新增" :visible.sync="outerVisible" center :before-close="closeChangeMachie">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="80px">
<el-form-item label="名称" prop="Name">
<el-input v-model="addMsg.Name" class="w217"/>
<el-form-item label="攻略名称" prop="Name">
<el-input v-model="addMsg.Name" class="w217" />
</el-form-item>
<el-form-item label="封面图">
<div class="_addUpload_box">
<div class="_pic_upload">
<template v-if="addMsg.ImgCover!==''">
<div>
<div
style="width:125px;height:80px;overflow: hidden;display: flex;align-items: center;"
>
<div style="width:125px;height:80px;overflow: hidden;display: flex;align-items: center;">
<img :src="addMsg.ImgCover">
</div>
<div
style="font-size:12px; color:#666666;cursor: pointer;line-height: 20px;"
@click="addMsg.ImgCover=''"
>重新上传</div>
<div style="font-size:12px; color:#666666;cursor: pointer;line-height: 20px;"
@click="addMsg.ImgCover=''">重新上传</div>
</div>
</template>
<el-upload
v-else
drag
:http-request="uploadFileBtn"
:multiple="false"
:show-file-list="false"
action
>
<el-upload v-else drag :http-request="uploadFileBtn" :multiple="false" :show-file-list="false" action>
<i class="el-icon-plus avatar-uploader-icon"></i>
<div class="el-upload__text">{{$t("active.ld_djscwj")}}</div>
</el-upload>
</div>
</div>
</el-form-item>
<el-form-item label="内容" prop="lotteryRules">
<el-form-item label="攻略内容" prop="lotteryRules">
<quill-editor class="w595" :options="editorOption" v-model="addMsg.Content"></quill-editor>
</el-form-item>
</el-form>
......@@ -384,7 +366,7 @@
DataList: "",
noData: false,
loading: true,
outerVisible:false,
outerVisible: false,
defaultImg: 'this.src="' + require("../../assets/img/bg_z1@2x.png") + '"',
msg: {
pageIndex: 1,
......@@ -397,22 +379,26 @@
currentPage: 1,
Id: 0
},
addMsg:{
Id:0,
Name:'',
ImgCover:'',
Content:''
addMsg: {
Id: 0,
Name: '',
ImgCover: '',
Content: ''
},
editorOption:{
modules:{
toolbar:[
editorOption: {
modules: {
toolbar: [
['bold', 'italic', 'underline', 'strike'], // toggled buttons
['blockquote', 'code-block','align']
['blockquote', 'code-block', 'align']
]
}
},
rules:{
Name: [{ required: true, message: '请输入名称', trigger: "change" }],
rules: {
Name: [{
required: true,
message: '请输入名称',
trigger: "change"
}],
},
};
......@@ -462,15 +448,17 @@
null
);
},
uploadFileBtn(file){
uploadFileBtn(file) {
//上传
if (file.file.size > 1024 * 1024 * 10) {
this.$message.warning(this.$t("tips.wjdxbncgsz"));
return;
}
// 1 文档 2 数据 3 图片
let typeArr = [{ stringArr: "GIF|JPG|JPEG|PNG|BMP", type: 3 }];
let typeArr = [{
stringArr: "GIF|JPG|JPEG|PNG|BMP",
type: 3
}];
let ft = file.file.name
.substring(file.file.name.lastIndexOf(".") + 1, file.file.name.length)
.toUpperCase();
......@@ -489,9 +477,9 @@
this.Success(this.$t("tips.shangchuanzhong"));
this.UploadSelfFileT(path, newArr, x => {
let fileSize =
file.file.size < 1024
? file.file.size
: (file.file.size / 1024).toFixed(0);
file.file.size < 1024 ?
file.file.size :
(file.file.size / 1024).toFixed(0);
this.addMsg.ImgCover = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.Success(this.$t("tips.scchenggong"));
this.$forceUpdate();
......@@ -522,7 +510,7 @@
});
},
//新增
addScenic(){
addScenic() {
this.apipost(
"ScenicRecomment_Post_SetScenicRecommentService",
this.addMsg,
......@@ -530,7 +518,12 @@
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList();
}else{
this.outerVisible = false;
this.addMsg.Id = 0;
this.addMsg.Name = "";
this.addMsg.ImgCover = "";
this.addMsg.Content = "";
} else {
this.Error(res.data.message);
}
},
......@@ -538,43 +531,23 @@
);
},
//修改
UpdateScenic(id){
GetScenic(id) {
this.apipost(
"ScenicRecomment_Get_GetScenicRecommentService",{Id:id},
"ScenicRecomment_Get_GetScenicRecommentService", {
Id: id
},
res => {
if (res.data.resultCode == 1) {
this.outerVisible=true;
this.addMsg=res.data.data;
}else{
this.Error(res.data.message);
this.addMsg.Id = res.data.data.Id;
this.addMsg.Name = res.data.data.Name;
this.addMsg.ImgCover = res.data.data.ImgCover;
this.addMsg.Content = res.data.data.Content;
this.outerVisible = true;
}
},
null
);
},
goUrl(path, id) {
this.$store.commit("pageConditionUpdate", this.msg);
this.$router.push({
path: path,
query: {
id: id,
blank: 'y',
tab: '修改景区信息'
}
});
},
goUrlT(path, id) {
this.$router.push({
path: path,
query: {
id: id,
blank: 'y',
tab: '门票管理'
}
});
}
},
mounted() {
//this.getCountryList();
......
......@@ -57,7 +57,8 @@
<p v-if="d.w">{{d.w.CreateName}} 提交于 {{item.CreateDate}}</p>
<div class="cont">{{item.Content}}</div>
<div class="attach">
<a href="http://baidu.com" target="_blank">附件:baidu.jpg</a>
附件:无
<!--<a href="http://baidu.com" target="_blank"></a>-->
</div>
</el-card>
</div>
......
......@@ -357,6 +357,15 @@ export default {
err => {}
);
},
query(id){
this.$router.push({
name: "workDetails",
query: {
"id": id,
blank: 'y'
}
})
},
query2(id){
this.$router.push({
name: "workDetails",
......
......@@ -118,7 +118,7 @@ export default {
javaUrldo=locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000";
if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://127.0.0.1:8082";
domainUrl = "http://testapi.oytour.com";
}
else if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com";
......
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