Commit af3375d1 authored by 吴春's avatar 吴春
parents 6d9eb05c 767eeca0
...@@ -2168,8 +2168,6 @@ ...@@ -2168,8 +2168,6 @@
Id: this.ID, Id: this.ID,
InvoiceVoucherList: this.InvoiceVoucherList InvoiceVoucherList: this.InvoiceVoucherList
}; };
console.log("this.InvoiceVoucherList",this.InvoiceVoucherList);
this.apipost('Financial_post_UpdateInvoiceVoucher', msg, res => { this.apipost('Financial_post_UpdateInvoiceVoucher', msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.$message.success('上传成功'); this.$message.success('上传成功');
......
...@@ -2290,7 +2290,6 @@ ...@@ -2290,7 +2290,6 @@
TempId: tempId, TempId: tempId,
TCIDList: (this.orderObj && this.orderObj.TCIDList) ? this.orderObj.TCIDList : [] TCIDList: (this.orderObj && this.orderObj.TCIDList) ? this.orderObj.TCIDList : []
}, res => { }, res => {
console.log("Financial_post_Get",res.data.data);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
...@@ -2463,8 +2462,6 @@ ...@@ -2463,8 +2462,6 @@
this.saveMsg.push(x); this.saveMsg.push(x);
}) })
} }
console.log("InvoiceVoucherInfo",data.InvoiceVoucherInfo);
if (data.InvoiceVoucherInfo) { if (data.InvoiceVoucherInfo) {
data.InvoiceVoucherInfo.forEach(x => { data.InvoiceVoucherInfo.forEach(x => {
x.Url = x.Content; x.Url = x.Content;
......
...@@ -1754,7 +1754,6 @@ ...@@ -1754,7 +1754,6 @@
}; };
this.TotalNav.planPriceList.forEach(item => { this.TotalNav.planPriceList.forEach(item => {
if (item.CurrencyId == id) { if (item.CurrencyId == id) {
console.log("ceeeeee",item);
obj.money += item.PlanTotalPrice; obj.money += item.PlanTotalPrice;
obj.CurrencyId = item.CurrencyId; obj.CurrencyId = item.CurrencyId;
} }
......
...@@ -79,7 +79,9 @@ ...@@ -79,7 +79,9 @@
<table border="0" cellspacing="1" cellpadding="0" class="ShoppingTable" <table border="0" cellspacing="1" cellpadding="0" class="ShoppingTable"
style="border: 1px solid rgb(230, 230, 230);min-width: 1600px" v-loading="loading"> style="border: 1px solid rgb(230, 230, 230);min-width: 1600px" v-loading="loading">
<tr> <tr>
<th width="60"> <el-checkbox v-model="checkAll" @change="getSelectAll()" >全选</el-checkbox></th> <th width="60">
<el-checkbox v-model="checkAll" @change="getSelectAll()">全选</el-checkbox>
</th>
<th width="115">{{$t('active.ad_xuhao')}}</th> <th width="115">{{$t('active.ad_xuhao')}}</th>
<th width="100">{{$t('sm.chufadi')}}</th> <th width="100">{{$t('sm.chufadi')}}</th>
<th width="110">{{$t('salesModule.CompanyNum')}}</th> <th width="110">{{$t('salesModule.CompanyNum')}}</th>
...@@ -112,7 +114,8 @@ ...@@ -112,7 +114,8 @@
<template v-for="(subItem,subIndex) in item.ShopDetailsList"> <template v-for="(subItem,subIndex) in item.ShopDetailsList">
<tr> <tr>
<td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0"> <td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0">
<el-checkbox @change="changeCheck(outItem)" v-model="outItem.IsCheck" :disabled="outItem.IsCheckDisabled"></el-checkbox> <el-checkbox @change="changeCheck(outItem)" v-model="outItem.IsCheck"
:disabled="outItem.IsCheckDisabled"></el-checkbox>
</td> </td>
<td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0"> <td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0">
{{outItem.NewCombinationNum}} {{outItem.NewCombinationNum}}
...@@ -164,14 +167,14 @@ ...@@ -164,14 +167,14 @@
style="color:red;text-decoration: underline;cursor:pointer;" style="color:red;text-decoration: underline;cursor:pointer;"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.LeaderCommissionFrId)"> @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.LeaderCommissionFrId)">
{{subItem.LeaderCommissionFrId}}</span> --> {{subItem.LeaderCommissionFrId}}</span> -->
<span class="cursor-p" v-if="subItem.LeaderFinanceList" v-for="(item2, index2) in subItem.LeaderFinanceList" :key="index2" <span class="cursor-p" v-if="subItem.LeaderFinanceList"
v-for="(item2, index2) in subItem.LeaderFinanceList" :key="index2"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)"> @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)">
<span v-if="item2.Status === 0||item2.Status === 1" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span> <span v-if="item2.Status === 0||item2.Status === 1"
<span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_green">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_green">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 4" <span v-else-if="item2.Status === 4" class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
</span> </span>
</td> </td>
<td width="80"> <td width="80">
...@@ -180,14 +183,14 @@ ...@@ -180,14 +183,14 @@
style="color:red;text-decoration: underline;cursor:pointer;" style="color:red;text-decoration: underline;cursor:pointer;"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.GuideCommissionFrId)"> @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.GuideCommissionFrId)">
{{subItem.GuideCommissionFrId}}</span> --> {{subItem.GuideCommissionFrId}}</span> -->
<span class="cursor-p" v-if="subItem.GuideFinanceList" v-for="(item2, index2) in subItem.GuideFinanceList" :key="index2" <span class="cursor-p" v-if="subItem.GuideFinanceList"
v-for="(item2, index2) in subItem.GuideFinanceList" :key="index2"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)"> @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)">
<span v-if="item2.Status === 0||item2.Status === 1" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span> <span v-if="item2.Status === 0||item2.Status === 1"
<span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_green">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_green">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 4" <span v-else-if="item2.Status === 4" class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
</span> </span>
</td> </td>
<td width="80"> <td width="80">
...@@ -196,14 +199,13 @@ ...@@ -196,14 +199,13 @@
style="color:red;text-decoration: underline;cursor:pointer;" style="color:red;text-decoration: underline;cursor:pointer;"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.CompanyCommissionFrId)"> @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.CompanyCommissionFrId)">
{{subItem.CompanyCommissionFrId}}</span> --> {{subItem.CompanyCommissionFrId}}</span> -->
<span class="cursor-p" v-if="subItem.PICFinanceList" v-for="(item2, index2) in subItem.PICFinanceList" :key="index2" <span class="cursor-p" v-if="subItem.PICFinanceList" v-for="(item2, index2) in subItem.PICFinanceList"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)"> :key="index2" @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)">
<span v-if="item2.Status === 0||item2.Status === 1" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span> <span v-if="item2.Status === 0||item2.Status === 1"
<span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_green">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_green">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 4" <span v-else-if="item2.Status === 4" class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
</span> </span>
</td> </td>
<td width="80"> <td width="80">
...@@ -212,14 +214,14 @@ ...@@ -212,14 +214,14 @@
style="color:red;text-decoration: underline;cursor:pointer;" style="color:red;text-decoration: underline;cursor:pointer;"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.PICCommissionFrId)"> @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',subItem.PICCommissionFrId)">
{{subItem.PICCommissionFrId}}</span> --> {{subItem.PICCommissionFrId}}</span> -->
<span class="cursor-p" v-if="subItem.CompanyFinanceList" v-for="(item2, index2) in subItem.CompanyFinanceList" :key="index2" <span class="cursor-p" v-if="subItem.CompanyFinanceList"
v-for="(item2, index2) in subItem.CompanyFinanceList" :key="index2"
@click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)"> @click="goUrlFinancial('财务单据','FinancialDocumentsDetail',item2.FrID)">
<span v-if="item2.Status === 0||item2.Status === 1" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span> <span v-if="item2.Status === 0||item2.Status === 1"
<span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_blue">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_green">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 2" class="groupTourOrder_tickets_green">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span> <span v-else-if="item2.Status === 3" class="groupTourOrder_tickets_red">{{ item2.FrID }}</span>
<span v-else-if="item2.Status === 4" <span v-else-if="item2.Status === 4" class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
class="groupTourOrder_tickets_black">{{ item2.FrID }}</span>
</span> </span>
</td> </td>
...@@ -263,7 +265,8 @@ ...@@ -263,7 +265,8 @@
</div> </div>
</td> --> </td> -->
<td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0"> <td :rowspan="outItem.rowspanCount" v-if="index==0&&subIndex==0">
<p style="cursor: pointer;color:blue;" @click="GenerateDocuments(outItem,subItem.LeaderId,subItem.GuideId)"> <p style="cursor: pointer;color:blue;"
@click="GenerateDocuments(outItem,subItem.LeaderId,subItem.GuideId)">
{{$t('ground.scdanju')}} {{$t('ground.scdanju')}}
</p> </p>
<p style="cursor: pointer;color:blue;margin-top:5px;" <p style="cursor: pointer;color:blue;margin-top:5px;"
...@@ -309,13 +312,9 @@ ...@@ -309,13 +312,9 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<el-pagination background @current-change="handleCurrentChange" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage"
:current-page.sync="msg.currentPage" layout="total, sizes, prev, pager, next, jumper" :page-size="msg.pageSize" :page-sizes="[10, 20, 30, 40,50]"
layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" :total="msg.total">
:page-size="msg.pageSize"
:page-sizes="[10, 20, 30, 40,50]"
@size-change="handleSizeChange"
:total="msg.total">
</el-pagination> </el-pagination>
</div> </div>
<a id='blankLink1' target="_blank" style="display:none">1</a> <a id='blankLink1' target="_blank" style="display:none">1</a>
...@@ -345,27 +344,20 @@ ...@@ -345,27 +344,20 @@
</el-form-item> </el-form-item>
<el-form-item label="佣金类型"> <el-form-item label="佣金类型">
<el-select multiple v-model="FinanceTypes"> <el-select multiple v-model="FinanceTypes">
<el-option <el-option v-for="(item,index) in FinanceTypeList" :label="item.Name" :value="item.Id" :key="item.Id"
v-for="(item,index) in FinanceTypeList" :disabled="getFinanceType(item)"></el-option>
:label="item.Name" :value="item.Id" :key="item.Id"
:disabled="getFinanceType(item)"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="领队账户" v-if="LeaderAccountList && LeaderAccountList.length>0"> <el-form-item label="领队账户" v-if="LeaderAccountList && LeaderAccountList.length>0">
<el-select v-model="LeaderAccountId"> <el-select v-model="LeaderAccountId">
<el-option <el-option v-for="(item,index) in LeaderAccountList" :label="item.Name" :value="item.ID" :key="item.ID">
v-for="(item,index) in LeaderAccountList" </el-option>
:label="item.Name" :value="item.ID" :key="item.ID"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="导游账户" v-if="GuideAccountList && GuideAccountList.length>0"> <el-form-item label="导游账户" v-if="GuideAccountList && GuideAccountList.length>0">
<el-select v-model="GuideAccountId"> <el-select v-model="GuideAccountId">
<el-option <el-option v-for="(item,index) in GuideAccountList" :label="item.Name" :value="item.ID" :key="item.ID">
v-for="(item,index) in GuideAccountList" </el-option>
:label="item.Name" :value="item.ID" :key="item.ID"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="生成550手续费"> <el-form-item label="生成550手续费">
...@@ -378,29 +370,32 @@ ...@@ -378,29 +370,32 @@
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" <button class="hollowFixedBtn"
@click="isShowFinaceDailog=false,CurrentOutItem={}">{{$t('pub.cancelBtn')}}</button> @click="isShowFinaceDailog=false,CurrentOutItem={}">{{$t('pub.cancelBtn')}}</button>
<el-button class="normalBtn" type="primary" @click="CreateBill()" <el-button class="normalBtn" type="primary" @click="CreateBill()" :disabled="FinanceTypes.length==0">
:disabled="FinanceTypes.length==0">{{$t('pub.sureBtn')}}</el-button> {{$t('pub.sureBtn')}}</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<el-dialog title="生成财务单据" :visible.sync="BOSSDialogText" class="Shopping_bossdialog" > <el-dialog title="生成财务单据" :visible.sync="BOSSDialogText" class="Shopping_bossdialog">
<template v-if="!BOSSDialog"> <template v-if="!BOSSDialog">
<el-form label-width="110px"> <el-form label-width="110px">
<el-row> <el-row>
<el-col :span="12" :gutter="35"> <el-col :span="12" :gutter="35">
<el-form-item label="上传凭证"> <el-form-item label="上传凭证">
<div class="_addUpload_box clearfix" > <div class="_addUpload_box clearfix">
<template v-for="(file,fIndex) in saveMsg"> <template v-for="(file,fIndex) in saveMsg">
<div v-if="file.Type==3"> <div v-if="file.Type==3">
<div style="width:100%;height:100%;overflow: hidden;"> <div style="width:100%;height:100%;overflow: hidden;">
<img style="width:100%;height:100%;" :src="file.Url?file.Url:file.Content" @click="showUpLoadFile(file)"> <img style="width:100%;height:100%;" :src="file.Url?file.Url:file.Content"
@click="showUpLoadFile(file)">
</div> </div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span> <span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
</div> </div>
<div v-if="file.Type==1"> <div v-if="file.Type==1">
<div class="iconfont " :class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'" @click="showUpLoadFile(file)"> <div class="iconfont "
:class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@click="showUpLoadFile(file)">
</div> </div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span> <span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
...@@ -413,10 +408,7 @@ ...@@ -413,10 +408,7 @@
</div> </div>
</template> </template>
<div class="_pic_upload"> <div class="_pic_upload">
<el-upload <el-upload drag :http-request="uploadFileBtn" :multiple="true" :show-file-list="false" action="">
drag
:http-request="uploadFileBtn"
:multiple="true" :show-file-list="false" action="">
<i class="el-icon-plus avatar-uploader-icon"></i> <i class="el-icon-plus avatar-uploader-icon"></i>
<div class="el-upload__text">{{$t('active.ld_djscwj')}}</div> <div class="el-upload__text">{{$t('active.ld_djscwj')}}</div>
</el-upload> </el-upload>
...@@ -427,12 +419,14 @@ ...@@ -427,12 +419,14 @@
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="bossLen = 1, MoreSureCreateBill()">{{$t('pub.saveBtn')}}</button> <button class="normalBtn" type="primary"
@click="bossLen = 1, MoreSureCreateBill()">{{$t('pub.saveBtn')}}</button>
<button class="hollowFixedBtn" @click="BOSSDialogText=false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="BOSSDialogText=false">{{$t('pub.cancelBtn')}}</button>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<p class="boss_btn">{{$t('ios.gongji')}} {{selectedRowKeys.length}} {{$t('ios.tdqdi')}} <span>{{(bossLen>selectedRowKeys.length)?selectedRowKeys.length:bossLen}}</span> <p class="boss_btn">{{$t('ios.gongji')}} {{selectedRowKeys.length}} {{$t('ios.tdqdi')}}
<span>{{(bossLen>selectedRowKeys.length)?selectedRowKeys.length:bossLen}}</span>
{{$t('ios.tiao')}}</p> {{$t('ios.tiao')}}</p>
<p class="boss_btn_tips">批量制单中请不要进行其他操作。</p> <p class="boss_btn_tips">批量制单中请不要进行其他操作。</p>
</template> </template>
...@@ -444,24 +438,38 @@ ...@@ -444,24 +438,38 @@
export default { export default {
data() { data() {
return { return {
FinanceTypeList:[ FinanceTypeList: [{
{Name:'全部',Id:0}, Name: '全部',
{Name:'领队佣金',Id:1}, Id: 0
{Name:'导游佣金',Id:2}, },
{Name:'公司佣金',Id:3}, {
{Name:'PIC部分',Id:4}, Name: '领队佣金',
Id: 1
},
{
Name: '导游佣金',
Id: 2
},
{
Name: '公司佣金',
Id: 3
},
{
Name: 'PIC部分',
Id: 4
},
], ],
checkAll:false, //全选状态 checkAll: false, //全选状态
selectedRowKeys: [], //选中的key selectedRowKeys: [], //选中的key
FinanceTypes: [0],//佣金类型 FinanceTypes: [0], //佣金类型
loading: false, loading: false,
PayType: 1, //付款方式 PayType: 1, //付款方式
LeaderAccountId : 0, LeaderAccountId: 0,
GuideAccountId : 0, GuideAccountId: 0,
LeaderAccountList : [], LeaderAccountList: [],
GuideAccountList : [], GuideAccountList: [],
IsFee : 1, IsFee: 1,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 8, pageSize: 8,
...@@ -475,7 +483,7 @@ ...@@ -475,7 +483,7 @@
total: 0, total: 0,
CombinationNum: "", //合团号 CombinationNum: "", //合团号
TCNUM: "", //团号 TCNUM: "", //团号
IsQCommission:false IsQCommission: false
}, },
LineList: [], LineList: [],
LineTeamList: [], LineTeamList: [],
...@@ -490,36 +498,36 @@ ...@@ -490,36 +498,36 @@
BOSSDialog: false, BOSSDialog: false,
BOSSDialogText: false, BOSSDialogText: false,
//上传数组 //上传数组
saveMsg:[], saveMsg: [],
userMenuCode: false, userMenuCode: false,
HandShow: false, HandShow: false,
nMsg : { nMsg: {
TCIDs: "", TCIDs: "",
PayType: 1, PayType: 1,
uid: 0, uid: 0,
FinanceType: "3,4", FinanceType: "3,4",
LeaderAccountId :0, LeaderAccountId: 0,
GuideAccountId : 0, GuideAccountId: 0,
IsFee : 1, IsFee: 1,
VoucherList:[], VoucherList: [],
IsBatch:1 IsBatch: 1
}, },
} }
}, },
methods: { methods: {
GenerateDocuments(outItem,LeaderId,GuideId){ GenerateDocuments(outItem, LeaderId, GuideId) {
this.isShowFinaceDailog = true this.isShowFinaceDailog = true
this.CurrentOutItem = outItem this.CurrentOutItem = outItem
// 处理账户 // 处理账户
this.LeaderAccountList = []; this.LeaderAccountList = [];
this.LeaderAccountId=0; this.LeaderAccountId = 0;
this.GuideAccountList = []; this.GuideAccountList = [];
this.GuideAccountId=0; this.GuideAccountId = 0;
if(LeaderId && LeaderId>0){ if (LeaderId && LeaderId > 0) {
this.financeinfo_post_GetClientAccountList(LeaderId,1); this.financeinfo_post_GetClientAccountList(LeaderId, 1);
} }
if(GuideId && GuideId>0){ if (GuideId && GuideId > 0) {
this.financeinfo_post_GetClientAccountList(GuideId,2); this.financeinfo_post_GetClientAccountList(GuideId, 2);
} }
}, },
goCreateHandBill: function () { goCreateHandBill: function () {
...@@ -628,8 +636,15 @@ ...@@ -628,8 +636,15 @@
}); });
}, },
goUrlFinancial: function (name, path, id ) { goUrlFinancial: function (name, path, id) {
this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name} }); this.$router.push({
name: path,
query: {
id: id,
blank: 'y',
tab: name
}
});
}, },
goUrl(path, obj, title) { goUrl(path, obj, title) {
this.$router.push({ this.$router.push({
...@@ -652,7 +667,7 @@ ...@@ -652,7 +667,7 @@
handleSizeChange(val) { handleSizeChange(val) {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.msg.pageSize=val; this.msg.pageSize = val;
this.getList(); this.getList();
}, },
resetPageIndex() { resetPageIndex() {
...@@ -671,34 +686,34 @@ ...@@ -671,34 +686,34 @@
} }
}, err => {}) }, err => {})
}, },
getFinanceType(item){ getFinanceType(item) {
if(this.FinanceTypes&&this.FinanceTypes.length==0) return false if (this.FinanceTypes && this.FinanceTypes.length == 0) return false
else if(this.FinanceTypes.length>0&&this.FinanceTypes.indexOf(0)!=-1){ else if (this.FinanceTypes.length > 0 && this.FinanceTypes.indexOf(0) != -1) {
if(item.Id!=0){ if (item.Id != 0) {
return true return true
}else return false } else return false
}else if(this.FinanceTypes.length>0&&this.FinanceTypes.indexOf(0)==-1){ } else if (this.FinanceTypes.length > 0 && this.FinanceTypes.indexOf(0) == -1) {
if(item.Id==0){ if (item.Id == 0) {
return true return true
}else { } else {
return false return false
} }
} }
}, },
//全选 //全选
getSelectAll(){ getSelectAll() {
if (this.checkAll) { if (this.checkAll) {
this.selectedRowKeys = [] // 判断是否已全部选中,是则清空已选列表 this.selectedRowKeys = [] // 判断是否已全部选中,是则清空已选列表
this.checkAll = false; this.checkAll = false;
this.shopDataList.forEach((item) => { this.shopDataList.forEach((item) => {
if(item.IsCheck) if (item.IsCheck)
item.IsCheck=false; item.IsCheck = false;
}) })
this.$forceUpdate(); this.$forceUpdate();
} else { } else {
this.shopDataList.forEach((item) => { this.shopDataList.forEach((item) => {
if (!this.selectedRowKeys.includes(item.TCIDs)&&item.IsCheckDisabled==false) { if (!this.selectedRowKeys.includes(item.TCIDs) && item.IsCheckDisabled == false) {
item.IsCheck=true; item.IsCheck = true;
this.selectedRowKeys.push(item.TCIDs) // 否则将未选中的全部加入已选列表中 this.selectedRowKeys.push(item.TCIDs) // 否则将未选中的全部加入已选列表中
} }
}) })
...@@ -706,26 +721,26 @@ ...@@ -706,26 +721,26 @@
this.$forceUpdate(); this.$forceUpdate();
} }
}, },
changeCheck(row){ changeCheck(row) {
if (!this.selectedRowKeys.includes(row.TCIDs)) { if (!this.selectedRowKeys.includes(row.TCIDs)) {
row.IsCheck=true; row.IsCheck = true;
this.selectedRowKeys.push(row.TCIDs); this.selectedRowKeys.push(row.TCIDs);
} else { } else {
row.IsCheck=false; row.IsCheck = false;
let index = this.selectedRowKeys.indexOf(row.TCIDs); let index = this.selectedRowKeys.indexOf(row.TCIDs);
this.selectedRowKeys.splice(index, 1); this.selectedRowKeys.splice(index, 1);
} }
if (this.selectedRowKeys.length == this.shopDataList.length) { if (this.selectedRowKeys.length == this.shopDataList.length) {
this.checkAll = true ; this.checkAll = true;
}else{ } else {
this.checkAll = false ; this.checkAll = false;
} }
this.$forceUpdate(); this.$forceUpdate();
}, },
//生成单据 //生成单据
CreateBill() { CreateBill() {
var that = this; var that = this;
if(this.FinanceTypes&&this.FinanceTypes.length==0){ if (this.FinanceTypes && this.FinanceTypes.length == 0) {
that.Error("请选择至少一个佣金类型!"); that.Error("请选择至少一个佣金类型!");
return return
} }
...@@ -739,9 +754,9 @@ ...@@ -739,9 +754,9 @@
PayType: that.PayType, PayType: that.PayType,
uid: that.getLocalStorage().EmployeeId, uid: that.getLocalStorage().EmployeeId,
FinanceType: this.FinanceTypes.join(','), FinanceType: this.FinanceTypes.join(','),
LeaderAccountId : that.LeaderAccountId, LeaderAccountId: that.LeaderAccountId,
GuideAccountId : that.GuideAccountId, GuideAccountId: that.GuideAccountId,
IsFee : that.IsFee IsFee: that.IsFee
}; };
that.loading = true; that.loading = true;
that.apipost("dmcstatistics_post_CheckShopDetailsDMCRate", nMsg, res => { that.apipost("dmcstatistics_post_CheckShopDetailsDMCRate", nMsg, res => {
...@@ -764,16 +779,11 @@ ...@@ -764,16 +779,11 @@
} }
}); });
}).catch(() => {}) }).catch(() => {})
// this.Confirm('是否生成财务单据?', function () {
// });
}, },
//生成单据 //生成单据
increment() { increment() {
console.log("bossLen",this.bossLen);
if (this.bossLen && this.bossLen <= this.selectedRowKeys.length) { if (this.bossLen && this.bossLen <= this.selectedRowKeys.length) {
this.nMsg.uid=this.getLocalStorage().EmployeeId; this.nMsg.uid = this.getLocalStorage().EmployeeId;
this.nMsg.TCIDs = this.selectedRowKeys[this.bossLen - 1]; this.nMsg.TCIDs = this.selectedRowKeys[this.bossLen - 1];
this.apipost( this.apipost(
"dmcstatistics_post_CheckShopDetailsDMCRate", "dmcstatistics_post_CheckShopDetailsDMCRate",
...@@ -781,12 +791,11 @@ ...@@ -781,12 +791,11 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (res.data.data.result == 0) { if (res.data.data.result == 0) {
console.log("我进来了错误信息",res.data.data.errorMessage);
this.$message.error(res.data.data.errorMessage); this.$message.error(res.data.data.errorMessage);
this.loading = false; this.loading = false;
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.getList(); this.getList();
this.saveMsg=[]; this.saveMsg = [];
this.BOSSDialog = false; this.BOSSDialog = false;
this.BOSSDialogText = false; this.BOSSDialogText = false;
return; return;
...@@ -794,26 +803,25 @@ ...@@ -794,26 +803,25 @@
this.apipost("dmcstatistics_post_BatchShopCreateBill", this.nMsg, this.apipost("dmcstatistics_post_BatchShopCreateBill", this.nMsg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.bossLen+=1; this.bossLen += 1;
this.increment(); this.increment();
}else{ } else {
this.$message.error("单据生成失败,请稍后重试"); this.$message.error("单据生成失败,请稍后重试");
this.loading = false; this.loading = false;
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.getList(); this.getList();
this.saveMsg=[]; this.saveMsg = [];
this.BOSSDialog = false; this.BOSSDialog = false;
this.BOSSDialogText = false; this.BOSSDialogText = false;
} }
}); });
} }
} } else {
else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
this.loading = false; this.loading = false;
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.getList(); this.getList();
this.saveMsg=[]; this.saveMsg = [];
this.BOSSDialog = false; this.BOSSDialog = false;
this.BOSSDialogText = false; this.BOSSDialogText = false;
} }
...@@ -823,24 +831,24 @@ ...@@ -823,24 +831,24 @@
} else { } else {
this.BOSSDialog = false; this.BOSSDialog = false;
this.BOSSDialogText = false; this.BOSSDialogText = false;
this.saveMsg=[]; this.saveMsg = [];
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.$message.success("批量制单成功!"); this.$message.success("批量制单成功!");
this.loading = false; this.loading = false;
this.checkAll=false; this.checkAll = false;
this.getList(); this.getList();
} }
}, },
MoreCreateBill(){ MoreCreateBill() {
if(this.selectedRowKeys&&this.selectedRowKeys.length==0){ if (this.selectedRowKeys && this.selectedRowKeys.length == 0) {
this.$message.error("请至少选择一个团!"); this.$message.error("请至少选择一个团!");
return; return;
} }
this.saveMsg=[]; this.saveMsg = [];
this.BOSSDialog=false; this.BOSSDialog = false;
this.BOSSDialogText=true; this.BOSSDialogText = true;
}, },
MoreSureCreateBill() { MoreSureCreateBill() {
...@@ -849,47 +857,51 @@ ...@@ -849,47 +857,51 @@
cancelButtonText: `取消`, cancelButtonText: `取消`,
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.bossLen=1; this.bossLen = 1;
this.BOSSDialog = true; this.BOSSDialog = true;
this.increment(); this.increment();
}).catch(() => {}); }).catch(() => {});
}, },
showUpLoadFile(i){ // 预览上传文件 showUpLoadFile(i) { // 预览上传文件
if(i.Type==3){ if (i.Type == 3) {
this.picObj.push(i.Url); this.picObj.push(i.Url);
this.imgList.push(i.Url); this.imgList.push(i.Url);
this.picIsShow= false; this.picIsShow = false;
// this.hideFlashMan = true; // this.hideFlashMan = true;
}else{ } else {
if(i.Content.substring(i.Content.lastIndexOf('.')+1,i.Content.length).toUpperCase()=='PDF'){ if (i.Content.substring(i.Content.lastIndexOf('.') + 1, i.Content.length).toUpperCase() == 'PDF') {
this.previewPDF(i.Url) this.previewPDF(i.Url)
}else{ } else {
window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Url) window.open("https://view.officeapps.live.com/op/view.aspx?src=" + i.Url)
} }
} }
}, },
deleteUploadFile(i){ // 删除上传文件 deleteUploadFile(i) { // 删除上传文件
this.saveMsg.splice(i,1); this.saveMsg.splice(i, 1);
this.nMsg.VoucherList = this.saveMsg; this.nMsg.VoucherList = this.saveMsg;
}, },
uploadFileBtn(file) { //上传 uploadFileBtn(file) { //上传
if(file.file.size > 1024 * 1024 * 10) { if (file.file.size > 1024 * 1024 * 10) {
this.Error('文件大小不能超过10M!') this.Error('文件大小不能超过10M!')
return return
} }
// 1 文档 2 数据 3 图片 // 1 文档 2 数据 3 图片
let typeArr=[ let typeArr = [{
{stringArr:'GIF|JPG|JPEG|PNG|BMP',type:3}, stringArr: 'GIF|JPG|JPEG|PNG|BMP',
{stringArr:'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF',type:1}, type: 3
},
{
stringArr: 'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF',
type: 1
},
] ]
let ft=file.file.name.substring(file.file.name.lastIndexOf('.')+1,file.file.name.length).toUpperCase(); let ft = file.file.name.substring(file.file.name.lastIndexOf('.') + 1, file.file.name.length).toUpperCase();
let fileTypeNumber = 2; let fileTypeNumber = 2;
let typeOk = false; let typeOk = false;
typeArr.forEach(x=>{ typeArr.forEach(x => {
if(x.stringArr.indexOf(ft)!='-1') if (x.stringArr.indexOf(ft) != '-1') {
{ fileTypeNumber = x.type
fileTypeNumber=x.type
typeOk = true; typeOk = true;
} }
}) })
...@@ -899,20 +911,17 @@ ...@@ -899,20 +911,17 @@
let path = "/Upload/Temporary/" let path = "/Upload/Temporary/"
this.$message.info('上传中...') this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({ this.saveMsg.push({
Content: x.data.FilePath, Content: x.data.FilePath,
ID:0, ID: 0,
Type:fileTypeNumber, Type: fileTypeNumber,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath, Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
}) })
console.log("x",x,"saveMsg",this.saveMsg);
this.nMsg.VoucherList = this.saveMsg; this.nMsg.VoucherList = this.saveMsg;
this.Success('上传成功'); this.Success('上传成功');
}); });
}, },
financeinfo_post_GetClientAccountList(ObjID,type) { //获取付款 对象类型 新增用 financeinfo_post_GetClientAccountList(ObjID, type) { //获取付款 对象类型 新增用
let msg = { let msg = {
ID: 0, ID: 0,
Type: 7, Type: 7,
...@@ -926,18 +935,18 @@ ...@@ -926,18 +935,18 @@
data.forEach(x => { data.forEach(x => {
let obj = { let obj = {
ID: x.ID, ID: x.ID,
Name: x.AccountHolder + x.CardNum +`(${x.AccountAlias})`, Name: x.AccountHolder + x.CardNum + `(${x.AccountAlias})`,
} }
ClientAccountList.push(obj) ClientAccountList.push(obj)
}) })
if(type==1){ if (type == 1) {
this.LeaderAccountList = ClientAccountList; this.LeaderAccountList = ClientAccountList;
if(ClientAccountList && ClientAccountList.length>0){ if (ClientAccountList && ClientAccountList.length > 0) {
this.LeaderAccountId = ClientAccountList[0].ID; this.LeaderAccountId = ClientAccountList[0].ID;
} }
}else{ } else {
this.GuideAccountList = ClientAccountList; this.GuideAccountList = ClientAccountList;
if(ClientAccountList && ClientAccountList.length>0){ if (ClientAccountList && ClientAccountList.length > 0) {
this.GuideAccountId = ClientAccountList[0].ID; this.GuideAccountId = ClientAccountList[0].ID;
} }
} }
...@@ -1004,12 +1013,13 @@ ...@@ -1004,12 +1013,13 @@
} }
.Shopping_bossdialog ._addUpload_box{ .Shopping_bossdialog ._addUpload_box {
display: initial; display: initial;
margin-top: 20px; margin-top: 20px;
width:138px !important; width: 138px !important;
} }
.Shopping_bossdialog ._addUpload_box>div{
.Shopping_bossdialog ._addUpload_box>div {
float: left; float: left;
width: 138px; width: 138px;
height: 92px; height: 92px;
...@@ -1017,9 +1027,10 @@ ...@@ -1017,9 +1027,10 @@
border-radius: 2px; border-radius: 2px;
cursor: pointer; cursor: pointer;
padding: 5px; padding: 5px;
margin:0 10px 10px 0; margin: 0 10px 10px 0;
position: relative; position: relative;
} }
.Shopping_bossdialog ._addUpload_box .icon-guanbi1 { .Shopping_bossdialog ._addUpload_box .icon-guanbi1 {
font-size: 12px; font-size: 12px;
color: white; color: white;
...@@ -1035,12 +1046,15 @@ ...@@ -1035,12 +1046,15 @@
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
} }
.Shopping_bossdialog ._addUpload_box .icon-guanbi1:hover { .Shopping_bossdialog ._addUpload_box .icon-guanbi1:hover {
font-size: 12px; font-size: 12px;
color: #c94052; color: #c94052;
} }
/deep/.Shopping_bossdialog ._pic_upload .el-upload-dragger{
width: 126px!important; /deep/.Shopping_bossdialog ._pic_upload .el-upload-dragger {
height: 80px!important; width: 126px !important;
height: 80px !important;
} }
</style> </style>
...@@ -547,14 +547,12 @@ ...@@ -547,14 +547,12 @@
}) })
fileName = fileName + TempfileName fileName = fileName + TempfileName
fileName = fileName + this.$route.query.alcode fileName = fileName + this.$route.query.alcode
console.log("QueryMsg",this.QueryMsg);
//厦航的用csv //厦航的用csv
if (this.QueryMsg.TempCode == "MF") { if (this.QueryMsg.TempCode == "MF") {
fileName = fileName + ".csv"; fileName = fileName + ".csv";
} else { } else {
fileName = fileName + ".xls"; fileName = fileName + ".xls";
} }
// fileName = fileName + ".xls";
this.GetLocalFile("travel_get_GetAirTicketGuestExport", msg, fileName); this.GetLocalFile("travel_get_GetAirTicketGuestExport", msg, fileName);
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
......
...@@ -103,7 +103,6 @@ ...@@ -103,7 +103,6 @@
this.msg, this.msg,
res => { res => {
this.loading = false; this.loading = false;
console.log("coupon_post_GetCouponAllotPage", res.data);
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
this.DataList = res.data.data.pageData; this.DataList = res.data.data.pageData;
......
...@@ -700,7 +700,7 @@ ...@@ -700,7 +700,7 @@
CouponPlatformEnumList: [], CouponPlatformEnumList: [],
companyList: [], companyList: [],
customerList: [], customerList: [],
checkedCustomerList: [],//选择的人员信息 checkedCustomerList: [], //选择的人员信息
layerDepartMentList: [], layerDepartMentList: [],
departMentList: [], departMentList: [],
PostList: [], PostList: [],
...@@ -808,14 +808,16 @@ ...@@ -808,14 +808,16 @@
//发放优惠券 //发放优惠券
AutoGrantCounItem(item) { AutoGrantCounItem(item) {
this.grantCouponMsg = Object.assign({}, item); this.grantCouponMsg = Object.assign({}, item);
this.customerList=[]; this.customerList = [];
this.checkedCustomerList=[]; this.checkedCustomerList = [];
console.log("grantCouponMsg", this.grantCouponMsg);
}, },
//发放优惠券确认 //发放优惠券确认
AdminGrantCoupon() { AdminGrantCoupon() {
this.apipost("coupon_post_AdminGrantCoupon", {Id:this.grantCouponMsg.id,CustomerList:this.checkedCustomerList}, res => { this.apipost("coupon_post_AdminGrantCoupon", {
Id: this.grantCouponMsg.id,
CustomerList: this.checkedCustomerList
}, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.autoCouponDialog = false; this.autoCouponDialog = false;
...@@ -853,8 +855,9 @@ AdminGrantCoupon() { ...@@ -853,8 +855,9 @@ AdminGrantCoupon() {
}, },
//删除客户标签 //删除客户标签
deleteTag(item) { deleteTag(item) {
let result = this.customerList.find(temp => temp.customerId ===item.customerId); let result = this.customerList.find(temp => temp.customerId === item.customerId);
if(result){ result.ischecked=false; if (result) {
result.ischecked = false;
} }
let index = this.checkedCustomerList.indexOf(item); let index = this.checkedCustomerList.indexOf(item);
if (index !== -1) { if (index !== -1) {
...@@ -862,9 +865,9 @@ AdminGrantCoupon() { ...@@ -862,9 +865,9 @@ AdminGrantCoupon() {
} }
}, },
getSelect(item) { getSelect(item) {
if(item.ischecked){ if (item.ischecked) {
this.checkedCustomerList.push(item); this.checkedCustomerList.push(item);
}else{ } else {
let index = this.checkedCustomerList.indexOf(item.customerId); let index = this.checkedCustomerList.indexOf(item.customerId);
this.checkedCustomerList.splice(index, 1); this.checkedCustomerList.splice(index, 1);
} }
...@@ -873,10 +876,9 @@ AdminGrantCoupon() { ...@@ -873,10 +876,9 @@ AdminGrantCoupon() {
getCustomerBrandByKeyWord() { getCustomerBrandByKeyWord() {
this.xuanzeCustomerLoading = true; this.xuanzeCustomerLoading = true;
this.customerList = []; this.customerList = [];
console.log("this.grantCouponMsg.customerType",this.grantCouponMsg.customerType); let cmdStr = "app_post_GetCustomerBrandByKeyWord";
let cmdStr="app_post_GetCustomerBrandByKeyWord"; if (this.grantCouponMsg.customerType == 1) {
if(this.grantCouponMsg.customerType==1){ cmdStr = "Sell_Post_GetDirectCustomerListByKey";
cmdStr="Sell_Post_GetDirectCustomerListByKey";
} }
this.apipost( this.apipost(
cmdStr, cmdStr,
...@@ -887,10 +889,10 @@ AdminGrantCoupon() { ...@@ -887,10 +889,10 @@ AdminGrantCoupon() {
var tempData = res.data.data; var tempData = res.data.data;
if (tempData && tempData.length > 0) { if (tempData && tempData.length > 0) {
tempData.forEach(item => { tempData.forEach(item => {
let result = this.checkedCustomerList.find(temp => temp.customerId ===item.customerId); let result = this.checkedCustomerList.find(temp => temp.customerId === item.customerId);
if(result){ item.ischecked=true; if (result) {
} item.ischecked = true;
else{ } else {
item.ischecked = false; item.ischecked = false;
} }
}) })
......
...@@ -554,7 +554,6 @@ ...@@ -554,7 +554,6 @@
} else { } else {
title += this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游'; title += this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游';
} }
console.log("title", title);
var fileName = title + ".pdf"; var fileName = title + ".pdf";
that.pdfDownLoad(fileName, msg); that.pdfDownLoad(fileName, msg);
// if (this.orderId && this.orderId > 0) { // if (this.orderId && this.orderId > 0) {
...@@ -569,7 +568,6 @@ ...@@ -569,7 +568,6 @@
// objFileKey += "/" + msg.configId + "_" + msg.tcid; // objFileKey += "/" + msg.configId + "_" + msg.tcid;
// objFileKey += "/" + msg.configId + "_" + msg.tcid + ".pdf"; // objFileKey += "/" + msg.configId + "_" + msg.tcid + ".pdf";
// that.downloadChengDuFileRename(objFileKey, fileName, res => { // that.downloadChengDuFileRename(objFileKey, fileName, res => {
// console.log("ali_doanload", res)
// if (res.resultCode == 0) { // if (res.resultCode == 0) {
// } else { // } else {
......
...@@ -302,18 +302,35 @@ ...@@ -302,18 +302,35 @@
console.log(event.data,'-----------event.data') console.log(event.data,'-----------event.data')
if(event.data&&event.data.data&&!event.data.data) return if(event.data&&event.data.data&&!event.data.data) return
if(this.isPostMessage) return if(this.isPostMessage) return
if(event.data&&event.data=='行程数据保存成功'){ // if(event.data&&event.data=='行程数据保存成功'){
// this.dialogPptistVisible = false // // this.dialogPptistVisible = false
// this.$emit('ConfigInfo')
// if(document.all.myIframe){
// document.all.myIframe.src = this.myIframeUrl
// }
// }else if(event.data&&event.data.indexOf('行程特色高')!=-1){
// this.PostMessageText = ''
// let datas = event.data.split('-')
// this.myIframeHeigth = datas[1]
// }else if(event.data&&event.data=='暂无行程数据'){
// this.PostMessageText = event.data
// }
if (event && event.data) {
if (event.data == '行程数据保存成功') {
this.$emit('ConfigInfo') this.$emit('ConfigInfo')
if(document.all.myIframe){ if (document.all.myIframe) {
document.all.myIframe.src = this.myIframeUrl document.all.myIframe.src = this.myIframeUrl
} }
}else if(event.data&&event.data.indexOf('行程特色高')!=-1){ } else if (event.data == '暂无行程数据') {
this.PostMessageText = ''
let datas = event.data.split('-')
this.myIframeHeigth = datas[1]
}else if(event.data&&event.data=='暂无行程数据'){
this.PostMessageText = event.data this.PostMessageText = event.data
} else {
//行程特色高
this.PostMessageText = '';
if (event.data && typeof(event.data)=='string') {
let datas = event.data.split('-')
this.myIframeHeigth = datas[1];
}
}
} }
this.isPostMessage = true this.isPostMessage = true
this.iframeLoading = false this.iframeLoading = false
......
...@@ -72,7 +72,25 @@ ...@@ -72,7 +72,25 @@
data() { data() {
return { return {
canEdit: true, canEdit: true,
pageList: [{ pageList: [],
homeBg3: "https://imgfile.oytour.com/Static/NewTripFeature/homeBg3.jpg",
homeBg1: "https://imgfile.oytour.com/Static/NewTripFeature/homeBg1.jpg",
homeBgOz1: "https://imgfile.oytour.com/Static/NewTripFeature/homebgoz.jpg", //欧洲线默认图
homeBgNy: "https://imgfile.oytour.com/Static/NewTripFeature/homebgny.jpg", //南亚线默认图
homeBgGn: "https://imgfile.oytour.com/Static/NewTripFeature/homebggn.jpg", //国内线
homeBghg: "https://imgfile.oytour.com/Static/NewTripFeature/homebghg.jpg", //韩国
homeBg2: "http://imgfile.oytour.com/Static/NewTripFeature/homeBg2.jpg",
dinner1: "http://imgfile.oytour.com/Static/NewTripFeature/dinner1.jpg",
dinner2: "http://imgfile.oytour.com/Static/NewTripFeature/dinner2.jpg",
dinner3: "http://imgfile.oytour.com/Static/NewTripFeature/dinner3.jpg",
dinner4: "https://imgfile.oytour.com/Static/NewTripFeature/dinner4.jpg",
RenderingOk: false,
DataArray: [], //房、餐、景点数组
};
},
methods: {
getConfigData() {
var configArray = [{
pageTitle: '介绍', pageTitle: '介绍',
pageType: 1, pageType: 1,
pageTemplate: 0, pageTemplate: 0,
...@@ -121,26 +139,12 @@ ...@@ -121,26 +139,12 @@
pageTemplate: 3, pageTemplate: 3,
dataObj: {}, dataObj: {},
}, },
], ]
homeBg3: "https://imgfile.oytour.com/Static/NewTripFeature/homeBg3.jpg", return configArray;
homeBg1: "https://imgfile.oytour.com/Static/NewTripFeature/homeBg1.jpg",
homeBgOz1: "https://imgfile.oytour.com/Static/NewTripFeature/homebgoz.jpg", //欧洲线默认图
homeBgNy: "https://imgfile.oytour.com/Static/NewTripFeature/homebgny.jpg", //南亚线默认图
homeBgGn: "https://imgfile.oytour.com/Static/NewTripFeature/homebggn.jpg", //国内线
homeBghg: "https://imgfile.oytour.com/Static/NewTripFeature/homebghg.jpg", //韩国
homeBg2: "http://imgfile.oytour.com/Static/NewTripFeature/homeBg2.jpg",
dinner1: "http://imgfile.oytour.com/Static/NewTripFeature/dinner1.jpg",
dinner2: "http://imgfile.oytour.com/Static/NewTripFeature/dinner2.jpg",
dinner3: "http://imgfile.oytour.com/Static/NewTripFeature/dinner3.jpg",
dinner4: "https://imgfile.oytour.com/Static/NewTripFeature/dinner4.jpg",
RenderingOk: false,
DataArray: [], //房、餐、景点数组
};
}, },
methods: {
UploadImg(pageType, index, url) { UploadImg(pageType, index, url) {
if (pageType == 1) { if (pageType == 1) {
this.pageList[index].dataObj.ImgList[0].url = url this.pageList[index].dataObj.ImgList[0].url = url;
} }
}, },
getPageObj() { getPageObj() {
...@@ -195,8 +199,9 @@ ...@@ -195,8 +199,9 @@
//首页2 //首页2
else if (featureDataObj.pageType == 7) { else if (featureDataObj.pageType == 7) {
pageData.pageTitle = "首页2"; pageData.pageTitle = "首页2";
if(pageData.dataObj&&pageData.dataObj.ImgList&&pageData.dataObj.ImgList.length>0) pageData.dataObj.ImgList[0].x = 0 if (pageData.dataObj && pageData.dataObj.ImgList && pageData.dataObj.ImgList.length > 0) pageData.dataObj
this.getHomeData(tripObj, newObj,1); .ImgList[0].x = 0
this.getHomeData(tripObj, newObj, 1);
} }
pageData.dataObj = newObj; pageData.dataObj = newObj;
this.pageList.splice(index, 0, pageData); this.pageList.splice(index, 0, pageData);
...@@ -220,7 +225,6 @@ ...@@ -220,7 +225,6 @@
this.$set(this.pageList, index, downItem); this.$set(this.pageList, index, downItem);
} }
} }
}, },
//删除页面 //删除页面
DeletePages(index) { DeletePages(index) {
...@@ -267,6 +271,7 @@ ...@@ -267,6 +271,7 @@
this.pageList = oldJson; this.pageList = oldJson;
this.RenderingOk = true; this.RenderingOk = true;
} else { } else {
this.pageList=this.getConfigData();
this.pageList.forEach(pItem => { this.pageList.forEach(pItem => {
var newObj = this.getDetailsObj(); var newObj = this.getDetailsObj();
newObj.LineName = this.FeatureData.LineName; newObj.LineName = this.FeatureData.LineName;
...@@ -298,7 +303,7 @@ ...@@ -298,7 +303,7 @@
} }
//首页2 //首页2
else if (pItem.pageType == 7) { else if (pItem.pageType == 7) {
this.getHomeData(tripObj, newObj); this.getHomeData(tripObj, newObj, 1);
} }
pItem.dataObj = newObj; pItem.dataObj = newObj;
}); });
...@@ -306,7 +311,7 @@ ...@@ -306,7 +311,7 @@
} }
}, },
//首页数据渲染 //首页数据渲染
getHomeData(tripObj, newObj,type) { getHomeData(tripObj, newObj, type) {
if (tripObj.cityStr && tripObj.cityStr != '') { if (tripObj.cityStr && tripObj.cityStr != '') {
newObj.MainName = tripObj.cityStr; //地区1 newObj.MainName = tripObj.cityStr; //地区1
} else { } else {
...@@ -343,23 +348,24 @@ ...@@ -343,23 +348,24 @@
newObj.MainDesc = "景点描述"; newObj.MainDesc = "景点描述";
} }
// 新版首页2023/11/20 // 新版首页2023/11/20
if(type){ if (type) {
if(!newObj.SceneDesc){ if (!newObj.SceneDesc) {
newObj.maskPosition = false newObj.maskPosition = false
newObj.Meal = '餐食' newObj.Meal = '餐食'
newObj.MealName = tripObj.dinnerArray.length>0?tripObj.dinnerArray[0].MainName:'餐食名称' newObj.MealName = tripObj.dinnerArray.length > 0 ? tripObj.dinnerArray[0].MainName : '餐食名称'
newObj.MealName2 = tripObj.dinnerArray.length>1?tripObj.dinnerArray[1].MainName:'餐食名称' newObj.MealName2 = tripObj.dinnerArray.length > 1 ? tripObj.dinnerArray[1].MainName : '餐食名称'
newObj.Host = '住宿' newObj.Host = '住宿'
newObj.HostName = tripObj.hotelArray.length>0?tripObj.hotelArray[0].MainName:'酒店名称' newObj.HostName = tripObj.hotelArray.length > 0 ? tripObj.hotelArray[0].MainName : '酒店名称'
newObj.HostName2 = tripObj.hotelArray.length>1?tripObj.hotelArray[1].MainName:'酒店名称' newObj.HostName2 = tripObj.hotelArray.length > 1 ? tripObj.hotelArray[1].MainName : '酒店名称'
newObj.Scene = '风景' newObj.Scene = '风景'
newObj.SceneDesc = tripObj.scenicArray.length>0?tripObj.scenicArray[0].MainName+':'+tripObj.scenicArray[0].MainDesc:'景点描述信息' newObj.SceneDesc = tripObj.scenicArray.length > 0 ? tripObj.scenicArray[0].MainName + ':' + tripObj
newObj.SceneTitle2 = tripObj.scenicArray.length>1?tripObj.scenicArray[1].MainName:'景点名称' .scenicArray[0].MainDesc : '景点描述信息'
newObj.SceneDesc2 = tripObj.scenicArray.length>1?tripObj.scenicArray[1].MainDesc:'景点描述信息' newObj.SceneTitle2 = tripObj.scenicArray.length > 1 ? tripObj.scenicArray[1].MainName : '景点名称'
newObj.HostTitle = tripObj.hotelArray.length>1?tripObj.hotelArray[1].MainName:'酒店名称' newObj.SceneDesc2 = tripObj.scenicArray.length > 1 ? tripObj.scenicArray[1].MainDesc : '景点描述信息'
newObj.HostDesc = tripObj.hotelArray.length>1?tripObj.hotelArray[1].MainDesc:'酒店描述信息' newObj.HostTitle = tripObj.hotelArray.length > 1 ? tripObj.hotelArray[1].MainName : '酒店名称'
newObj.SceneTitle3 = tripObj.scenicArray.length>2?tripObj.scenicArray[2].MainName:'景点名称' newObj.HostDesc = tripObj.hotelArray.length > 1 ? tripObj.hotelArray[1].MainDesc : '酒店描述信息'
newObj.SceneDesc3 = tripObj.scenicArray.length>2?tripObj.scenicArray[2].MainDesc:'景点描述信息' newObj.SceneTitle3 = tripObj.scenicArray.length > 2 ? tripObj.scenicArray[2].MainName : '景点名称'
newObj.SceneDesc3 = tripObj.scenicArray.length > 2 ? tripObj.scenicArray[2].MainDesc : '景点描述信息'
} }
} }
}, },
...@@ -817,8 +823,7 @@ ...@@ -817,8 +823,7 @@
}, },
watch: { watch: {
FeatureData: { FeatureData: {
handler(val, oldVal) { handler(val, oldVal) {},
},
deep: true, deep: true,
immediate: true immediate: true
}, },
......
...@@ -1162,7 +1162,6 @@ export default { ...@@ -1162,7 +1162,6 @@ export default {
if (xhr.status === 200) { if (xhr.status === 200) {
resolve(xhr.response); resolve(xhr.response);
} else if (xhr.status === 404) { } else if (xhr.status === 404) {
console.log("downloadChengDuFileRename_404", objectKey);
if (callBack) { if (callBack) {
callBack(resultJson) callBack(resultJson)
} }
...@@ -1195,7 +1194,6 @@ export default { ...@@ -1195,7 +1194,6 @@ export default {
}); });
} catch (err) { } catch (err) {
resultJson.resultCode = 0; resultJson.resultCode = 0;
console.log("downloadChengDuFileRename", err);
if (callBack) { if (callBack) {
callBack(resultJson) callBack(resultJson)
} }
......
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