Commit 66f9f6f5 authored by liudong1993's avatar liudong1993

1 PIC资金预算

parent 12094259
<style scoped>
/deep/.el-table th.el-table__cell {
background-color: #E6E6E6;
}
</style>
<template>
<div class="page_fnDm page_RecPayQuery" @keyup.enter="getPageList()">
<div class="query-box" style="margin-bottom: 0px;">
<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.Periods' class="">
<el-option v-for='item in PeriodsList' :label='item' :value='item' :key='item'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<p style="cursor: pointer; margin-top:20px; margin-left:200px; font-size:12px" @click="CreateNext()">创建下一期预算</p>
</el-col>
</el-row>
</el-form>
<ul class="clearfix">
<li class="hight_query">
<button class="hollowFixedBtn" @click="getPageList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="method5()">{{$t('visa.v_daochu')}}</button>
<el-button v-if="EditState" class="normalBtn" type="primary" @click="savePICData">保存</el-button>
</li>
</ul>
<div style="float: right; margin-top: -40px; width: 100px;">
<el-checkbox v-model="EditState">修改</el-checkbox> &nbsp;&nbsp;&nbsp;
</div>
</div>
<div class="_fnDm_content" v-loading='loading'>
<el-table ref="multipleTable" :data="DataList" tooltip-effect="dark" style="width: 100%" row-key="FrID">
<el-table-column prop="UseDate" label="日期" width="100">
<template slot-scope="scope">
{{scope.row.UseDate}}
</template>
</el-table-column>
<el-table-column prop="HotelMoney" label="酒店" width="100">
<template slot-scope="scope">
{{scope.row.HotelMoney}}
</template>
</el-table-column>
<el-table-column prop="HotelChangeMoney" label="调整金额" width="100">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.HotelChangeMoney" type="number" placeholder="酒店变更金额"></el-input>
<template v-else>{{scope.row.HotelChangeMoney}}</template>
</template>
</el-table-column>
<el-table-column prop="HotelRemark" label="调整备注" show-overflow-tooltip width="100">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.HotelRemark" placeholder="酒店变更原因"></el-input>
<template v-else>{{scope.row.HotelRemark}}</template>
</template>
</el-table-column>
<el-table-column prop="DiJieMoney" label="地接费" width="100">
<template slot-scope="scope">
{{scope.row.DiJieMoney}}
</template>
</el-table-column>
<el-table-column prop="DiJieChangeMoney" label="调整金额" width="100">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.DiJieChangeMoney" type="number" placeholder="地接费变更金额"></el-input>
<template v-else>{{scope.row.DiJieChangeMoney}}</template>
</template>
</el-table-column>
<el-table-column prop="DiJieRemark" label="调整备注" show-overflow-tooltip width="100">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.DiJieRemark" placeholder="地接费变更原因"></el-input>
<template v-else>{{scope.row.DiJieRemark}}</template>
</template>
</el-table-column>
<el-table-column prop="CarMoney" label="车资" width="100">
<template slot-scope="scope">
{{scope.row.CarMoney}}
</template>
</el-table-column>
<el-table-column prop="GuideCommission" label="导游佣金" width="100">
<template slot-scope="scope">
{{scope.row.GuideCommission}}
</template>
</el-table-column>
<el-table-column prop="OtherMoney" label="其它">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.OtherMoney" type="number" placeholder="其他金额"></el-input>
<template v-else>{{scope.row.OtherMoney}}</template>
</template>
</el-table-column>
<el-table-column prop="DebtMoney" label="欠款">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.DebtMoney" type="number" placeholder="欠款"></el-input>
<template v-else>{{scope.row.DebtMoney}}</template>
</template>
</el-table-column>
<el-table-column prop="EstimateMoney" label="预计汇款" >
<template slot-scope="scope">
<span v-if="EditState">-</span>
<span v-else>{{scope.row.EstimateMoney}}</span>
</template>
</el-table-column>
<el-table-column prop="BankBalance1" label="0078实时余额">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.BankBalance1" type="number" placeholder=""></el-input>
<template v-else>{{scope.row.BankBalance1}}</template>
</template>
</el-table-column>
<el-table-column prop="BankBalance2" label="0078余额">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.BankBalance2" type="number" placeholder=""></el-input>
<template v-else>{{scope.row.BankBalance2}}</template>
</template>
</el-table-column>
<el-table-column prop="YNRemittance" label="印尼汇款">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.YNRemittance" type="number" placeholder=""></el-input>
<template v-else>{{scope.row.YNRemittance}}</template>
</template>
</el-table-column>
<el-table-column prop="CommuneRemittance" label="公社汇款">
<template slot-scope="scope">
<el-input v-if="EditState" v-model="scope.row.CommuneRemittance" type="number" placeholder=""></el-input>
<template v-else>{{scope.row.CommuneRemittance}}</template>
</template>
</el-table-column>
<el-table-column prop="FinalMoney" label="需国内汇款" width="100">
<template slot-scope="scope">
<span v-if="EditState">-</span>
<span v-else>{{scope.row.FinalMoney}}</span>
</template>
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
import Vue from 'vue'
export default {
data() {
return {
msg: {
Periods: '',
EmployeeId:0
},
DataList: [],
PeriodsList:[],
EditState: false,
loading: false,
}
},
created() {
let userInfo = this.getLocalStorage();
this.msg.EmployeeId = userInfo.EmployeeId;
},
mounted() {
this.getPageList();
this.getPICPeriodsList();
},
methods: {
// 单据详情
openDetails(FrID) {
let query = {
id: FrID,
blank: "y",
};
this.$router.push({
path: "/FinancialDocumentsDetail",
query
});
},
getPageList() { // 获取列表数据
this.loading = true;
this.apipost('financestatistics_post_GetPICCapitalBudgetList', this.msg, res => {
if (res.data.resultCode == 1) {
this.DataList = res.data.data;
this.loading = false;
} else {
this.loading = false;
this.$message.error(res.data.message);
}
}, err => {})
},
method5: function () {
let time = this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))
var fileName = `PIC资金预算${time}.xls`;
this.GetLocalFile("financestatistics_post_GetPICCapitalBudgetStatToExcel", this.msg, fileName);
},
getPICPeriodsList(){
this.apipost('financestatistics_post_GetPICCapitalBudgetPeriods', '', res => {
if (res.data.resultCode == 1) {
this.PeriodsList = res.data.data;
if(this.PeriodsList && this.PeriodsList.length>0){
this.msg.Periods = this.PeriodsList[0]
}
}
}, err => {})
},
savePICData(){
this.loading = true;
this.apipost('financestatistics_post_SetPICCapitalBudget', this.DataList, res => {
if (res.data.resultCode == 1) {
this.getPageList();
this.EditState =false;
this.loading = false;
}
else {
this.loading = false;
this.$message.error(res.data.message);
}
}, err => {})
},
CreateNext(){
this.$confirm("确认要创建下一期的预算?", this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.loading = true;
this.apipost('financestatistics_post_CreatePICCapitalBudgetData', '', res => {
if (res.data.resultCode == 1) {
this.msg.Periods='';
this.getPageList();
this.getPICPeriodsList();
this.EditState =false;
this.loading = false;
}
else {
this.loading = false;
this.$message.error(res.data.message);
}
}, err => {})
}).catch(() => {
});
}
}
}
</script>
...@@ -4369,6 +4369,14 @@ export default { ...@@ -4369,6 +4369,14 @@ export default {
title: '凭证编号查询' title: '凭证编号查询'
}, },
}, },
{ //财务 PIC资金预算
path: '/PICCapitalBudget',
name: 'PICCapitalBudget',
component: resolve => require(['@/components/FinancialModule/MonthlyCostStatement/piccapitalbudget'], resolve),
meta: {
title: 'PIC资金预算'
},
},
{ //财务 团队发票/行程单维护 { //财务 团队发票/行程单维护
path: '/TravelItinerary', path: '/TravelItinerary',
name: 'TravelItinerary', name: 'TravelItinerary',
......
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