Commit 8d75d3d5 authored by liudong1993's avatar liudong1993
parents 89ce3a4a e9e2182f
...@@ -8176,6 +8176,11 @@ export const obj = { ...@@ -8176,6 +8176,11 @@ export const obj = {
yinhangshouru: '银行收入', yinhangshouru: '银行收入',
yinhangzhichu: '银行支出', yinhangzhichu: '银行支出',
liushui: '流水', liushui: '流水',
liushukemu: '流水科目',
qingxuanzlskm: '请选择流水科目',
yongtu: '用途',
danjusr: '单据收入',
danjuzc: '单据支出',
} }
//#endregion //#endregion
} }
......
...@@ -91,6 +91,13 @@ ...@@ -91,6 +91,13 @@
/deep/.page_CompanyAccDetail .el-table .el-table__cell { /deep/.page_CompanyAccDetail .el-table .el-table__cell {
padding: 0 12px!important; padding: 0 12px!important;
} }
.BalanceBox{
}
.BalanceBox.active{
color: #33B3FF;
cursor: pointer;
}
</style> </style>
<template> <template>
...@@ -131,20 +138,21 @@ ...@@ -131,20 +138,21 @@
<input v-if="SubjectTypeList&&SubjectTypeList.length>0" type="button" class="normalBtn" :value="$t('objFill.v103.xinzenliushuiu')" @click="addBankStatement"/> <input v-if="SubjectTypeList&&SubjectTypeList.length>0" type="button" class="normalBtn" :value="$t('objFill.v103.xinzenliushuiu')" @click="addBankStatement"/>
<input type="button" class="hollowFixedBtn" :value="$t('objFill.v101.FinancialModule.xinzengkem')" @click="isShowAdd=true"/> <input type="button" class="hollowFixedBtn" :value="$t('objFill.v101.FinancialModule.xinzengkem')" @click="isShowAdd=true"/>
<input type="button" class="normalBtn" :value="$t('objFill.duizhnagkm')+$t('ground.liebiao')" @click="isShow=true"/> <input type="button" class="normalBtn" :value="$t('objFill.duizhnagkm')+$t('ground.liebiao')" @click="isShow=true"/>
<input type="button" class="hollowFixedBtn" :value="$t('visa.v_daochu')" @click="Export()"/>
</li> </li>
</ul> </ul>
</div> </div>
<div class="cm_content"> <div class="cm_content">
<el-table :data="SubjectList" <el-table :data="SubjectList"
style="width: 100%;max-height: 600px;" style="width: 100%;" height="600"
v-loading="loadingTable" v-loading="loadingTable"
:span-method="objectSpanMethod"> :span-method="objectSpanMethod">
<el-table-column prop="Name" label="" width="150" fixed="left" align="center"> <el-table-column prop="Name" label="" width="150" fixed="left" align="center">
<template #header> <template #header>
<div class="headeBox"> <div class="headeBox">
<div>{{titleStart}}{{titleStart!=titleEnd?'-'+titleEnd:''}}</div> <div>{{titleStart}}{{titleStart!=titleEnd?'-'+titleEnd:''}}{{ $t('ground.yuefen') }}</div>
<div>期初余额</div> <div>{{ $t('objFill.v103.qichuyue') }}</div>
<div>用途</div> <div>{{ $t('objFill.v103.yongtu') }}</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -156,14 +164,14 @@ ...@@ -156,14 +164,14 @@
<div style="cursor: pointer;" @click="getTimeObj(item)">{{ String(item.StartDate) }} <i style="color: #33B3FF" class="el-icon-edit"></i> </div> <div style="cursor: pointer;" @click="getTimeObj(item)">{{ String(item.StartDate) }} <i style="color: #33B3FF" class="el-icon-edit"></i> </div>
</template> </template>
<el-table-column :label="String(item.StartBalance)" align="center"> <el-table-column :label="String(item.StartBalance)" align="center">
<el-table-column prop="Income" label="银行收入" width="120" align="center"> <el-table-column prop="Income" :label="$t('objFill.v103.yinhangshouru')" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6"> <div v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].Income }} {{ scope.row.BalanceList[index].Income }}
</template> </div>
<template v-else> <template v-else>
<el-image v-if="scope.row.BalanceList[index].Image" <el-image v-if="scope.row.BalanceList[index].Image"
style="width: 20px; height: 20px;margin-top: 10px;" style="width: 20px; height: 20px;"
:src="scope.row.BalanceList[index].Image" :src="scope.row.BalanceList[index].Image"
:preview-src-list="[scope.row.BalanceList[index].Image]" :preview-src-list="[scope.row.BalanceList[index].Image]"
show-progress show-progress
...@@ -172,25 +180,29 @@ ...@@ -172,25 +180,29 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="FinanceIncome" label="单据收入" width="120" align="center"> <el-table-column prop="FinanceIncome" :label="$t('objFill.v103.danjusr')" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6"> <div v-if="scope.row.SubjectId!=-6" @click="goUrl(scope.row,scope.row.BalanceList[index],1)"
class="BalanceBox"
:class="[scope.row.BalanceList[index].FinanceIncome?'active':'']">
{{ scope.row.BalanceList[index].FinanceIncome }} {{ scope.row.BalanceList[index].FinanceIncome }}
</template> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="Expenses" label="银行支出" width="120" align="center"> <el-table-column prop="Expenses" :label="$t('objFill.v103.yinhangzhichu')" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6"> <div v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].Expenses }} {{ scope.row.BalanceList[index].Expenses }}
</template> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="FinanceExpenses" label="单据支出" width="120" align="center"> <el-table-column prop="FinanceExpenses" :label="$t('objFill.v103.danjuzc')" width="120" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6"> <div v-if="scope.row.SubjectId!=-6" @click="goUrl(scope.row,scope.row.BalanceList[index],2)"
class="BalanceBox"
:class="[scope.row.BalanceList[index].FinanceExpenses?'active':'']">
{{ scope.row.BalanceList[index].FinanceExpenses }} {{ scope.row.BalanceList[index].FinanceExpenses }}
</template> </div>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
...@@ -250,14 +262,14 @@ export default { ...@@ -250,14 +262,14 @@ export default {
Income:0,// 银行收入 Income:0,// 银行收入
Expenses:0,//银行支出 Expenses:0,//银行支出
}, },
SubjectTypeList:[] SubjectTypeList:[],
} }
}, },
created(){ created(){
// let mon1= this.getBeforeDate(1, new Date().Format("yyyy-MM-dd")); let mon1= this.getBeforeDate(1, new Date().Format("yyyy-MM-dd"));
// let mon2= this.getBeforeDate(7, this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))) let mon2= this.getBeforeDate(7, this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))
let mon1= this.getBeforeDate(12, new Date().Format("yyyy-MM-dd")); // let mon1= this.getBeforeDate(12, new Date().Format("yyyy-MM-dd"));
let mon2= this.getBeforeDate(16, this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))) // let mon2= this.getBeforeDate(16, this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))
this.titleStart = mon2.slice(5,7)>9?mon2.slice(5,7):mon2.slice(6,7) this.titleStart = mon2.slice(5,7)>9?mon2.slice(5,7):mon2.slice(6,7)
this.titleEnd = mon1.slice(5,7)>9?mon1.slice(5,7):mon1.slice(6,7) this.titleEnd = mon1.slice(5,7)>9?mon1.slice(5,7):mon1.slice(6,7)
this.productionDate=[mon2,mon1]; this.productionDate=[mon2,mon1];
...@@ -267,6 +279,24 @@ export default { ...@@ -267,6 +279,24 @@ export default {
this.getList(); this.getList();
}, },
methods:{ methods:{
goUrl(row,item){
this.$router.push({
name: "AccountStatementDetail",
query: {
ID: this.msg.BankId,
TypeId: 3,
sTradeDate: item.StartDate,
eTradeDate: item.StartDate,
SubjectId: row.StartBalance,
blank: 'y'
}
})
},
Export(){
let msg=this.msg;
var fileName = this.$t('objFill.duizhnagkm') + ".xls";
this.GetLocalFile("Financial_post_DownLoadBankBalance", msg, fileName);
},
changeDataBan(){ changeDataBan(){
this.isShowBankSta = false this.isShowBankSta = false
this.getList(); this.getList();
......
...@@ -551,7 +551,7 @@ ...@@ -551,7 +551,7 @@
</tr> </tr>
<tr v-if="BillType===2"> <tr v-if="BillType===2">
<td>{{$t('fnc.jiaoyiriqi')}}</td> <td>{{$t('fnc.jiaoyiriqi')}}</td>
<td colspan="6"> <td colspan="2">
<el-date-picker <el-date-picker
class="width100b" class="width100b"
v-model="addMsg.TradeDate" v-model="addMsg.TradeDate"
...@@ -560,14 +560,27 @@ ...@@ -560,14 +560,27 @@
:placeholder="$t('admin.admin_choDate')"> :placeholder="$t('admin.admin_choDate')">
</el-date-picker> </el-date-picker>
</td> </td>
<td>{{$t('objFill.v103.liushukemu')}}</td>
<td colspan="3">
<el-select class="width100b" v-model="addMsg.BankSubjectId"
filterable
:placeholder="$t('objFill.v103.qingxuanzlskm')">
<el-option
v-for="item in SubjectTypeList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
/>
</el-select>
</td>
</tr> </tr>
<tr v-if="BillType===1"> <tr v-if="BillType===1">
<td>{{$t('fnc.huikuanren')}}</td> <td>{{$t('fnc.huikuanren')}}</td>
<td colspan="2"> <td colspan="1">
<el-input v-model="addMsg.RemitterName" type="text" class=" _border_b_1"></el-input> <el-input v-model="addMsg.RemitterName" type="text" class=" _border_b_1"></el-input>
</td> </td>
<td>{{$t('fnc.jiaoyiriqi')}}</td> <td>{{$t('fnc.jiaoyiriqi')}}</td>
<td colspan="3"> <td colspan="1">
<el-date-picker <el-date-picker
class="width100b" class="width100b"
v-model="addMsg.TradeDate" v-model="addMsg.TradeDate"
...@@ -576,6 +589,19 @@ ...@@ -576,6 +589,19 @@
:placeholder="$t('admin.admin_choDate')"> :placeholder="$t('admin.admin_choDate')">
</el-date-picker> </el-date-picker>
</td> </td>
<td>{{$t('objFill.v103.liushukemu')}}</td>
<td colspan="2">
<el-select class="width100b" v-model="addMsg.BankSubjectId"
filterable
:placeholder="$t('objFill.v103.qingxuanzlskm')">
<el-option
v-for="item in SubjectTypeList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
/>
</el-select>
</td>
</tr> </tr>
</table> </table>
<el-form label-width="110px"> <el-form label-width="110px">
...@@ -703,7 +729,8 @@ ...@@ -703,7 +729,8 @@
RemitterName:'', RemitterName:'',
TradeDate:'', TradeDate:'',
BankList:[], BankList:[],
vorcherInos:[] vorcherInos:[],
BankSubjectId: '',
}, },
AccListT:[], AccListT:[],
accountListT:[], accountListT:[],
...@@ -724,6 +751,7 @@ ...@@ -724,6 +751,7 @@
saveMsg:[], saveMsg:[],
TradeDate:'', TradeDate:'',
initialIndex: 0, initialIndex: 0,
SubjectTypeList: [],
} }
}, },
created(){ created(){
...@@ -743,7 +771,7 @@ ...@@ -743,7 +771,7 @@
} }
}, },
mounted(){ mounted(){
this.getSubjectList()
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
...@@ -754,6 +782,13 @@ ...@@ -754,6 +782,13 @@
this.AccountType_post_GetList(); this.AccountType_post_GetList();
}, },
methods:{ methods:{
getSubjectList(){
this.apipost("Financial_post_GetBankSubjectList", {}, res => {
if (res.data.resultCode === 1) {
this.SubjectTypeList = res.data.data;
}
}, null)
},
showUpLoadFile(i) { // 预览上传文件 showUpLoadFile(i) { // 预览上传文件
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.Content) this.previewPDF(i.Content)
...@@ -1046,6 +1081,7 @@ ...@@ -1046,6 +1081,7 @@
RemitterName:'', RemitterName:'',
TradeDate:'', TradeDate:'',
BankList:[], BankList:[],
BankSubjectId: '',
} }
}, },
clearAccBank(){ // 选择账户类型清空数据 clearAccBank(){ // 选择账户类型清空数据
......
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
</tr> </tr>
<tr v-if="BillType===2"> <tr v-if="BillType===2">
<td>{{$t('fnc.jiaoyiriqi')}}</td> <td>{{$t('fnc.jiaoyiriqi')}}</td>
<td colspan="4"> <td colspan="1">
<el-date-picker <el-date-picker
class="width100b" class="width100b"
v-model="addMsg.TradeDate" v-model="addMsg.TradeDate"
...@@ -395,17 +395,30 @@ ...@@ -395,17 +395,30 @@
:placeholder="$t('admin.admin_choDate')"> :placeholder="$t('admin.admin_choDate')">
</el-date-picker> </el-date-picker>
</td> </td>
<td colspan="3"> <td>{{$t('objFill.v103.liushukemu')}}</td>
<td colspan="2">
<el-select class="width100b" v-model="addMsg.BankSubjectId"
filterable
:placeholder="$t('objFill.v103.qingxuanzlskm')">
<el-option
v-for="item in SubjectTypeList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
/>
</el-select>
</td>
<td colspan="2">
<el-checkbox v-model="addMsg.IsAdvanceFinance" true-label="1" false-label="0">包含预付</el-checkbox> <el-checkbox v-model="addMsg.IsAdvanceFinance" true-label="1" false-label="0">包含预付</el-checkbox>
</td> </td>
</tr> </tr>
<tr v-if="BillType===1"> <tr v-if="BillType===1">
<td>{{$t('fnc.huikuanren')}}</td> <td>{{$t('fnc.huikuanren')}}</td>
<td colspan="2"> <td colspan="1">
<el-input v-model="addMsg.RemitterName" type="text" class=" _border_b_1"></el-input> <el-input v-model="addMsg.RemitterName" type="text" class=" _border_b_1"></el-input>
</td> </td>
<td>{{$t('fnc.jiaoyiriqi')}}</td> <td>{{$t('fnc.jiaoyiriqi')}}</td>
<td colspan="3"> <td colspan="1">
<el-date-picker <el-date-picker
class="width100b" class="width100b"
v-model="addMsg.TradeDate" v-model="addMsg.TradeDate"
...@@ -414,6 +427,19 @@ ...@@ -414,6 +427,19 @@
:placeholder="$t('admin.admin_choDate')"> :placeholder="$t('admin.admin_choDate')">
</el-date-picker> </el-date-picker>
</td> </td>
<td>{{$t('objFill.v103.liushukemu')}}</td>
<td colspan="2">
<el-select class="width100b" v-model="addMsg.BankSubjectId"
filterable
:placeholder="$t('objFill.v103.qingxuanzlskm')">
<el-option
v-for="item in SubjectTypeList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
/>
</el-select>
</td>
</tr> </tr>
</table> </table>
<el-form label-width="110px"> <el-form label-width="110px">
...@@ -552,7 +578,8 @@ export default { ...@@ -552,7 +578,8 @@ export default {
TradeDate:'', TradeDate:'',
BankList:[], BankList:[],
vorcherInos:[], vorcherInos:[],
IsAdvanceFinance:'0' IsAdvanceFinance:'0',
BankSubjectId: '',
}, },
AccListT:[], AccListT:[],
accountListT:[], accountListT:[],
...@@ -573,6 +600,7 @@ export default { ...@@ -573,6 +600,7 @@ export default {
saveMsg:[], saveMsg:[],
TradeDate:'', TradeDate:'',
initialIndex: 0, initialIndex: 0,
SubjectTypeList: [],
} }
}, },
created(){ created(){
...@@ -581,6 +609,7 @@ export default { ...@@ -581,6 +609,7 @@ export default {
// this.productionDateByTC = [StartDate, EndDate] // this.productionDateByTC = [StartDate, EndDate]
// this.msg.QStartDate = this.productionDateByTC[0]; // this.msg.QStartDate = this.productionDateByTC[0];
// this.msg.QEndDate = this.productionDateByTC[1]; // this.msg.QEndDate = this.productionDateByTC[1];
this.getSubjectList()
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){ if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){
...@@ -611,10 +640,18 @@ export default { ...@@ -611,10 +640,18 @@ export default {
}) })
this.bankaccount_post_GetList(); this.bankaccount_post_GetList();
this.getList(); this.getList();
} }
}, },
methods:{ methods:{
getSubjectList(){
this.apipost("Financial_post_GetBankSubjectList", {}, res => {
if (res.data.resultCode === 1) {
this.SubjectTypeList = res.data.data;
}
}, null)
},
//选择付款对象出现全选框 //选择付款对象出现全选框
getClientId(id){ getClientId(id){
if(id>0||this.AccountId>0){ if(id>0||this.AccountId>0){
...@@ -827,7 +864,8 @@ export default { ...@@ -827,7 +864,8 @@ export default {
TradeDate:'', TradeDate:'',
BankList:[], BankList:[],
vorcherInos:[], vorcherInos:[],
IsAdvanceFinance:'0' IsAdvanceFinance:'0',
BankSubjectId: '',
} }
}, },
Calculation(i,index){ // 计算价格 Calculation(i,index){ // 计算价格
......
...@@ -33,14 +33,45 @@ ...@@ -33,14 +33,45 @@
</ul> </ul>
</div> </div>
<div style="width: 100%; overflow: auto;"> <div style="width: 100%; overflow: auto;">
<el-table :data="tableData" style="width: 100%;" height="650" border v-loading="loading"> <el-table :data="tableData" style="width: 100%;" max-height="650" border v-loading="loading"
header-cell-class-name="tempStatic-header-center" cell-class-name="tempStatic-cell-center">
<el-table-column prop="CreateByName" label="上传人" width="200"> <el-table-column prop="CreateByName" label="上传人" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="CreateTime" label="上传时间"> <el-table-column prop="CreateTime" label="上传时间">
</el-table-column> </el-table-column>
<el-table-column prop="TripCount" label="行程模版数量"> <el-table-column prop="TripCount" label="行程模版数量">
<template slot-scope="scope">
<template v-if="scope.row.TripCount>0">
<el-popover placement="top-start" title="详情" width="200" trigger="hover">
<template v-if="scope.row.TripList&&scope.row.TripList.length>0">
<template v-for="(subItem,subIndex) in scope.row.TripList">
{{subItem.LineName}}({{subItem.LineTemplateCount}})
</template>
</template>
<div slot="reference" style="color:blue;cursor:pointer;"> {{scope.row.TripCount}}</div>
</el-popover>
</template>
<template v-else>
{{scope.row.TripCount}}
</template>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="AdCount" label="广告模版数量"> <el-table-column prop="AdCount" label="广告模版数量">
<template slot-scope="scope">
<template v-if="scope.row.AdCount>0">
<el-popover placement="top-start" title="详情" width="200" trigger="hover">
<template v-if="scope.row.AdList&&scope.row.AdList.length>0">
<template v-for="(subItem,subIndex) in scope.row.AdList">
{{subItem.LineName}}({{subItem.LineTemplateCount}})
</template>
</template>
<div slot="reference" style="color:green;cursor:pointer;"> {{scope.row.AdCount}}</div>
</el-popover>
</template>
<template v-else>
{{scope.row.AdCount}}
</template>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="TotalCount" label="上传总数量"> <el-table-column prop="TotalCount" label="上传总数量">
</el-table-column> </el-table-column>
...@@ -72,6 +103,7 @@ ...@@ -72,6 +103,7 @@
QCreateBy: '', QCreateBy: '',
QStartDate: '', QStartDate: '',
QEndDate: '', QEndDate: '',
QLineId: "",
}, },
getCompanyMsg: { getCompanyMsg: {
RB_Group_Id: '0', RB_Group_Id: '0',
...@@ -90,7 +122,7 @@ ...@@ -90,7 +122,7 @@
//Excel下载 //Excel下载
downLoadTemplateStatic() { downLoadTemplateStatic() {
this.loading = true; this.loading = true;
let fileName = "模板统计下载"+ this.$commonUtils.getCurrentDate() + ".xls"; let fileName = "模板统计下载" + this.$commonUtils.getCurrentDate() + ".xls";
this.GetLocalFile("template_post_GetDownloadTemplateStatic", this.msg, fileName, this.GetLocalFile("template_post_GetDownloadTemplateStatic", this.msg, fileName,
res => { res => {
this.loading = false; this.loading = false;
...@@ -129,7 +161,7 @@ ...@@ -129,7 +161,7 @@
let _date = myDate.getDate() > 9 ? myDate.getDate() : '0' + myDate.getDate(); let _date = myDate.getDate() > 9 ? myDate.getDate() : '0' + myDate.getDate();
this.msg.QStartDate = _year + '-' + _month + '-' + '01'; this.msg.QStartDate = _year + '-' + _month + '-' + '01';
this.msg.QEndDate = _year + '-' + _month + '-' + _date; this.msg.QEndDate = _year + '-' + _month + '-' + _date;
//this.msg.QStartDate = "2025-06-01"; this.msg.QStartDate = "2025-05-01";
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
...@@ -141,3 +173,13 @@ ...@@ -141,3 +173,13 @@
} }
</script> </script>
<style lang="less" scoped>
.tempStatic-header-center {
text-align: center;
}
.tempStatic-cell-center {
text-align: center;
}
</style>
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