Commit add10403 authored by 黄奎's avatar 黄奎

新增查询页面

parent dc158894
<style scoped>
/deep/.el-table th.el-table__cell {
background-color: #E6E6E6;
}
</style>
<template>
<div class="page_RecPayQuery">
<div class="query-box">
<el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding:15px 20px 0 0;">
<el-col :span="4">
<el-form-item label="手配费公司:">
<el-select filterable v-model='msg.KingdeeBranchId' :disabled="!isRB_Depart_Id" class="">
<!-- <el-option :value="-1" label="不限"></el-option> -->
<el-option v-for='item in GetHandFeeList' :label='item.BranchName' :value='item.BranchId'
:key='item.BranchId'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="发团日期:">
<el-date-picker class="h34" v-model="missionDate" type="daterange" value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
<ul class="clearfix">
<li class="hight_query">
<button class="hollowFixedBtn" @click="getdatalist()">{{$t('pub.searchBtn')}}</button>
</li>
</ul>
</div>
<div class="_fnDm_content" v-loading='loading'>
<el-table ref="multipleTable" :data="DataList" tooltip-effect="dark" style="width: 100%" row-key="FinanceId">
<el-table-column prop="" label="公司" width="120">
<template slot-scope="scope">{{ scope.row.BranchName }}</template>
</el-table-column>
<el-table-column prop="" label="团队信息" width="180">
<template slot-scope="scope">
<template v-if="scope.row.OtherType==0">
{{ scope.row.TCNUM }}({{scope.row.TCID}})
</template>
<template v-else>
{{scope.row.TCID}}
</template>
</template>
</el-table-column>
<el-table-column prop="" label="类型" width="120">
<template slot-scope="scope">
<template v-for="(subItem,subIndex) in scope.row.CostTypeList">
<span :key="subIndex"> {{subItem.CostTypeName}}
</span>
</template>
</template>
</el-table-column>
<el-table-column prop="" label="数量" width="120">
<template slot-scope="scope">
<template v-for="(subItem,subIndex) in scope.row.CostTypeList">
<span :key="subIndex">
{{subItem.Number}}
</span>
</template>
</template>
</el-table-column>
<el-table-column prop="" label="酒店信息" width="120">
<template slot-scope="scope">
<template v-if="scope.row.OtherType==0 && scope.row.HotelList&&scope.row.HotelList.length>0">
<el-popover width="980" trigger="click" placement="right">
<commonHotelInfo :HotelObj="scope.row.HotelList" :showHotelObj="showHotelObj" :TCID="scope.row.TCID"
:TCNUM="scope.row.TCNUM"></commonHotelInfo>
<div slot="reference" style="cursor:pointer;">
酒店使用情况
</div>
</el-popover>
</template>
</template>
</el-table-column>
<el-table-column prop="" label="总金额" width="120">
<template slot-scope="scope">
{{ scope.row.TotalMoney}}
</template>
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
import commonHotelInfo from "../../commonPage/commonHotelInfo.vue";
export default {
data() {
return {
msg: {
QEndDate: '', //出团起始日期
QStartDate: '',
KingdeeBranchId: 0, //当前登录人的公司
},
missionDate: [], //发团日期
DataList: [],
loading: false,
GetHandFeeList: [], //手配费公司
isRB_Depart_Id: false,
showHotelObj: {
showPrice: true, //是否显示价格
showPay: false, //是否显示支付方式
showZhan: true, //占房时间
showBtnList: false, //是否下载、确认按钮
ShowTaxType: false, //显示税入税别
ShowRebateRatio: false, //显示返佣比列
ShowSupplier: true, //是否显示供应商
showCaozuoTime: true, //操作时间
colspanLength: 5 //跨行
},
}
},
created() {
let sDate = this.FormartDate(new Date(this.getBeforeDate(1)));
let eDate = this.FormartDate(new Date(this.getBeforeDate(0)));
sDate = '2023-07-01';
this.missionDate = [sDate, eDate]
this.msg.QStartDate = sDate;
this.msg.QEndDate = eDate;
let userInfo = this.getLocalStorage();
let ActionMenuCode = userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('F_Query_AllIncomPay') != -1 || ActionMenuCode.indexOf('S_CheckAllOrder') != -1) {
this.isRB_Depart_Id = true
}
this.getHandFeeBranch();
},
components: {
commonHotelInfo,
},
mounted() {
},
methods: {
//获取手配费公司
getHandFeeBranch() {
this.apipost(
"handfee_post_GetHandFeeList", {
BranchId: -1
},
res => {
if (res.data.resultCode == 1) {
this.GetHandFeeList = res.data.data;
this.GetHandFeeList.forEach(x => {
if (x.BranchId == this.msg.KingdeeBranchId) {
this.msg.KingdeeBranchId = x.BranchId
}
})
if (this.msg.KingdeeBranchId <= 0) {
this.msg.KingdeeBranchId = this.GetHandFeeList[0].BranchId
}
this.getdatalist();
}
},
err => {}
);
},
getdatalist() {
console.log("this.missionDate", this.missionDate)
if (this.missionDate) {
this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1];
}
this.loading = true;
this.apipost(
"Financial_post_GetJanpanHandFeeMonthBoard", this.msg,
res => {
this.loading = false;
console.log("res", res.data);
if (res.data.resultCode == 1) {
this.DataList = res.data.data;
}
},
err => {
this.loading = false;
}
);
}
}
}
</script>
......@@ -3991,6 +3991,14 @@ export default {
title: '手配收入查询'
},
},
{ //财务 财务单据 手配收入查询
path: '/HandFeeQuery',
name: 'HandFeeQuery',
component: resolve => require(['@/components/FinancialModule/HandFee/HandFeeQuery'], resolve),
meta: {
title: '手配收入查询'
},
},
{ //财务 财务单据 手配收入查询
path: '/MonthlyCostStatementInquire',
name: 'MonthlyCostStatementInquire',
......
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