Commit 6b049091 authored by youjie's avatar youjie

对账科目

parent 3f40b7d4
...@@ -8167,6 +8167,8 @@ export const obj = { ...@@ -8167,6 +8167,8 @@ export const obj = {
kaihuzhih: 'Opening Branch', kaihuzhih: 'Opening Branch',
xiaosousjkb: 'Sales Data Dashboard', xiaosousjkb: 'Sales Data Dashboard',
}, },
seeMySelfCompany:' Only view the company information you have filled in. ',
duizhnagkm: 'Reconciliation Accounts',
//#endregion //#endregion
} }
export default obj; export default obj;
...@@ -8167,6 +8167,8 @@ export const obj = { ...@@ -8167,6 +8167,8 @@ export const obj = {
kaihuzhih: '口座開設します', kaihuzhih: '口座開設します',
xiaosousjkb: '販売データ看板', xiaosousjkb: '販売データ看板',
}, },
seeMySelfCompany: '自分が記入した会社の情報だけを見ます',
duizhnagkm: '帳簿科目」です',
//#endregion //#endregion
} }
export default obj; export default obj;
...@@ -8168,6 +8168,7 @@ export const obj = { ...@@ -8168,6 +8168,7 @@ export const obj = {
xiaosousjkb: '销售数据看板', xiaosousjkb: '销售数据看板',
}, },
seeMySelfCompany:'只查看自己填写的公司信息', seeMySelfCompany:'只查看自己填写的公司信息',
duizhnagkm: '对账科目',
//#endregion //#endregion
} }
export default obj; export default obj;
...@@ -8167,6 +8167,8 @@ export const obj = { ...@@ -8167,6 +8167,8 @@ export const obj = {
kaihuzhih: '開戶支行', kaihuzhih: '開戶支行',
xiaosousjkb: '銷售數據看板', xiaosousjkb: '銷售數據看板',
}, },
seeMySelfCompany:'只查看自己填寫的公司信息',
duizhnagkm: '對賬科目',
//#endregion //#endregion
} }
export default obj; export default obj;
<template>
<div>
<el-dialog :title="$t('objFill.duizhnagkm')+$t('ground.liebiao')" width="400px"
:visible.sync="showState" center @close="close">
<el-table :data="SubjectList" style="width: 100%;max-height: 300px;"
v-loading="loading" border>
<el-table-column prop="Name" :label="$t('system.query_airName')" align="center"></el-table-column>
<el-table-column prop="Sort" :label="$t('system.table_rank')" align="center"></el-table-column>
<el-table-column :label="$t('system.table_operation')" align="center">
<template slot-scope="scope">
<el-button style="margin: 3px 0;" :loading="addMsg.Status==0&&scope.row.loading" type="primary" icon="el-icon-edit" size="mini" @click="editData(scope.row,1)" circle ></el-button>
<el-button style="margin: 3px 0;" :loading="addMsg.Status==1&&scope.row.loading" type="danger" icon="el-icon-delete" size="mini" @click="editData(scope.row)" circle ></el-button>
</template>
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="close()">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="addData()">+{{ $t('objFill.duizhnagkm') }}</button>
</div>
</el-dialog>
<addSubject v-if="isShowAdd" :obj="addMsg" @change="getNewData"></addSubject>
</div>
</template>
<script>
import addSubject from './addSubject.vue';
export default {
props: [],
components: {addSubject},
data() {
return {
loading: false,
SubjectList: [],
showState: false,
isShowAdd: false,
addMsg:{
Id: 0,
Status: 0,
Name: '',
Sort: 0,
}
}
},
watch: {
obj: {
handler(newValue,onldValue) {
this.queryObj = newValue
if(this.queryObj.tradeObj){
this.tradeObj = JSON.parse(this.queryObj.tradeObj)
}
if(this.queryObj.orderObj){
this.tradeObj = JSON.parse(this.queryObj.orderObj)
}
},
deep:true,
},
},
mounted() {
this.showState = true
this.getList()
},
methods: {
addData(){
this.isShowAdd=true
this.addMsg ={
Id: 0,
Status: 0,
Name: '',
Sort: 1,
}
},
getNewData(){
this.isShowAdd=false
this.getList()
},
editData(row,type){
this.addMsg = {
...row,
Status: type?0:1
}
if(type){
this.isShowAdd = true
}else{
this.$confirm(this.$t('objFill.shifouscbkhf'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
})
.then(() => {
row.loading = true
this.loading = true
this.apipost("Financial_post_SetBankSubject", this.addMsg, res => {
if (res.data.resultCode === 1) {
row.loading = false
this.loading = false
this.getList()
}else{
row.loading = false
this.loading = false
}
}, null)
})
.catch(() => {});
}
},
close(){
this.showState = false
this.$emit('change',false)
},
getList(){
this.loading = true
this.apipost("Financial_post_GetBankSubjectList", {}, res => {
if (res.data.resultCode === 1) {
let arrList = function(list){
list.forEach(item => {
item.loading = false
})
}
arrList(res.data.data)
this.SubjectList = res.data.data;
console.log(this.SubjectList,'--------')
}
this.loading = false
}, null)
},
}
}
</script>
<style>
.el-dialog__header {
background-color: #E95252 !important;
padding: 20px 40px 10px;
}
.el-dialog__header .el-dialog__title {
color: white;
}
.hollowFixedBtn {
background: #fff;
color: #E95252;
padding: 0 15px;
height: 30px;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
.hollowFixedBtn:hover {
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.hollowFixedBtn:active {
border-color: #CD2929;
}
.normalBtn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
outline: none;
}
.normalBtn:hover {
background: #E95252;
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.normalBtn:active {
background: #CD2929;
}
.leaderPayTable {
width: 100%;
margin: 10px auto;
text-align: center;
font-size: 12px;
color: #333;
border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
}
.leaderPayTable th {
background: #e6e6e6;
padding: 8px 0;
color: #333;
border: 1px solid #d1d1d1;
font-weight: bold;
}
.leaderPayTable tr td {
background-color: #fff;
padding: 8px 0;
height: 32px;
border: 1px solid #d1d1d1;
}
.leaderPayTable2 tr td {
border: 1px solid #ccc;
line-height: 17px;
height: 25px;
font-size: 12px;
background: #fff;
text-align: center;
padding: 0;
;
margin: 0;
}
.LeaderPrintDiv .LeaderTitle {
padding: 10px;
text-align: left;
}
.leaderPayTable .itemName {
text-align: left;
padding: 0 10px;
}
@media print {
.LeaderPrintDiv .btnListDiv {
display: none;
}
}
.comTotal {
text-align: left;
padding-left: 30px !important;
}
.LeaderPrintDiv {
width: 100%;
background: #f8f8f8;
position: absolute;
}
.LeaderPrintDiv .childDiv {
width: 1000px;
margin: 0 auto;
}
.LeaderPrintDiv .childDiv ._Titles {
font-size: 14px;
}
.wLeader2 .el-textarea__inner {
height: 130px;
}
.LeaderPrintDiv .btnListDiv {
margin: 20px auto;
text-align: center;
}
.LeaderPrintDiv .leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
outline:none;
}
.cursorpointer {
cursor: pointer;
}
.text-decoration {
text-decoration: underline;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
.w150 {
width: 150px !important;
}
.Receipt_box {
padding: 15px;
color: #c94052;
width: 614px;
background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1)
}
.Receipt_box.color_blur {
color: #106BAF;
}
.Receipt_box.color_blur .rb_stit span {
display: inline-block;
border-bottom: 2px solid #106BAF;
padding: 0 20px
}
.rb_tit {
font-size: 18px;
text-align: center
}
.rb_stit {
font-size: 14px;
text-align: center
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #C94052;
padding: 0 20px
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row span._r_name {
color: #333333
}
.rb_top_row span._r_bold {
font-weight: bold
}
.rb_top_row ._r_time span {
color: #333333
}
._r_mb5 {
margin-bottom: 5px;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center
}
.Receipt_table .th {
font-weight: 200 !important
}
._r_mt10 {
margin-top: 10px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px
}
._bg_red {
background-color: #E95252;
}
._bg_green {
background-color: #2BB87C
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.PingFangSC {
font-weight: bold
}
.Bill_par {
position: relative;
}
tr._item_list {
border-bottom: 1px solid #E5E5E5;
height: 78px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child {
border-left: 1px solid #e5e5e5;
}
tr._item_list td:last-child {
border-right: 1px solid #e5e5e5;
}
._head_img {
width: 28px;
height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._btn_group {
font-size: 14px;
}
.icon-daiqueren {
color: #4BCA81
}
.icon-yiqueren {
color: #4BCA81
}
.icon-yiquxiao {
color: #959595
}
.icon-shenhebohui {
color: #E95252
}
.icon-icon-zancun {
color: #FF9C01
}
.singeRowTable tr:hover {
background-color: white
}
._TradeWayList {
padding: 5px 10px;
background-color: #EEEEEE;
border-radius: 4px;
margin: 10px 0;
width: 230px
}
._bold {
font-weight: bold
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
cursor: pointer;
}
._bank_type {
background-color: #2AAEF2
}
._bank_type2 {
background-color: #FF9C01
}
.cdForm .el-form-item{
display: inline-block;
}
.leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
outline:none;
}
</style>
<style scoped>
/deep/.cdForm .el-input--small .el-input__inner {
line-height: 28px;
height: 32px;
}
</style>
<template>
<el-dialog :title="title+$t('objFill.duizhnagkm')" width="400px" :visible.sync="showState"
center @close="close" :close-on-click-modal="false">
<el-form class="cdForm" label-width="90px"
:model="msg" :rules="rules" ref="msg">
<el-form-item :label="$t('objFill.duizhnagkm')" prop="Name">
<el-input class="w220"
v-model="msg.Name"></el-input>
</el-form-item>
<el-form-item :label="$t('system.table_rank')" prop="Sort">
<el-input-number class="w220" v-model="msg.Sort" :min="Number(0)" :step="1" size="small"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="close()">{{$t('pub.cancelBtn')}}</button>
<el-button :loading="loading" class="normalBtn" type="primary" @click="editSubmit('msg')">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</template>
<script>
export default {
props: ['obj'],
data() {
return {
loading: false,
SubjectList: [],
showState: false,
msg:{
Id: 0,
Status: 0,
Name: '',
Sort: 0,
},
title: '',
rules: {
Name: [{
required: true,
message: this.$t('system.ph_name'),
trigger: "blur"
}]
}
}
},
watch: {
obj: {
handler(newValue,onldValue) {
this.msg = JSON.parse(JSON.stringify(newValue))
if(this.msg.Id==0){
this.title = this.$t('pub.addBtn')
}else{
this.title = this.$t('pub.edit')
}
},
deep:true,
immediate: true,
},
},
mounted() {
this.showState = true
},
methods: {
editSubmit(formName){
this.$refs[formName].validate((valid) => {
if (valid) {
this.loading = true
this.apipost("Financial_post_SetBankSubject", this.msg, res => {
if (res.data.resultCode === 1) {
this.close()
}
this.loading = false
}, null)
}
})
},
close(){
this.showState = false
this.$emit('change',false)
},
}
}
</script>
<style>
.el-dialog__header {
background-color: #E95252 !important;
padding: 20px 40px 10px;
}
.el-dialog__header .el-dialog__title {
color: white;
}
.hollowFixedBtn {
background: #fff;
color: #E95252;
padding: 0 15px;
height: 30px;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
.hollowFixedBtn:hover {
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.hollowFixedBtn:active {
border-color: #CD2929;
}
.normalBtn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
outline: none;
}
.normalBtn:hover {
background: #E95252;
box-shadow: 2px 0px 4px rgba(144, 6, 6, 0.25)
}
.normalBtn:active {
background: #CD2929;
}
.leaderPayTable {
width: 100%;
margin: 10px auto;
text-align: center;
font-size: 12px;
color: #333;
border-collapse: collapse;
background-color: #fff;
border: 1px solid #d1d1d1;
}
.leaderPayTable th {
background: #e6e6e6;
padding: 8px 0;
color: #333;
border: 1px solid #d1d1d1;
font-weight: bold;
}
.leaderPayTable tr td {
background-color: #fff;
padding: 8px 0;
height: 32px;
border: 1px solid #d1d1d1;
}
.leaderPayTable2 tr td {
border: 1px solid #ccc;
line-height: 17px;
height: 25px;
font-size: 12px;
background: #fff;
text-align: center;
padding: 0;
;
margin: 0;
}
.LeaderPrintDiv .LeaderTitle {
padding: 10px;
text-align: left;
}
.leaderPayTable .itemName {
text-align: left;
padding: 0 10px;
}
@media print {
.LeaderPrintDiv .btnListDiv {
display: none;
}
}
.comTotal {
text-align: left;
padding-left: 30px !important;
}
.LeaderPrintDiv {
width: 100%;
background: #f8f8f8;
position: absolute;
}
.LeaderPrintDiv .childDiv {
width: 1000px;
margin: 0 auto;
}
.LeaderPrintDiv .childDiv ._Titles {
font-size: 14px;
}
.wLeader2 .el-textarea__inner {
height: 130px;
}
.LeaderPrintDiv .btnListDiv {
margin: 20px auto;
text-align: center;
}
.LeaderPrintDiv .leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
outline:none;
}
.cursorpointer {
cursor: pointer;
}
.text-decoration {
text-decoration: underline;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"] {
-moz-appearance: textfield;
}
.w150 {
width: 150px !important;
}
.Receipt_box {
padding: 15px;
color: #c94052;
width: 614px;
background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1)
}
.Receipt_box.color_blur {
color: #106BAF;
}
.Receipt_box.color_blur .rb_stit span {
display: inline-block;
border-bottom: 2px solid #106BAF;
padding: 0 20px
}
.rb_tit {
font-size: 18px;
text-align: center
}
.rb_stit {
font-size: 14px;
text-align: center
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #C94052;
padding: 0 20px
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row span._r_name {
color: #333333
}
.rb_top_row span._r_bold {
font-weight: bold
}
.rb_top_row ._r_time span {
color: #333333
}
._r_mb5 {
margin-bottom: 5px;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center
}
.Receipt_table .th {
font-weight: 200 !important
}
._r_mt10 {
margin-top: 10px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px
}
._bg_red {
background-color: #E95252;
}
._bg_green {
background-color: #2BB87C
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.PingFangSC {
font-weight: bold
}
.Bill_par {
position: relative;
}
tr._item_list {
border-bottom: 1px solid #E5E5E5;
height: 78px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child {
border-left: 1px solid #e5e5e5;
}
tr._item_list td:last-child {
border-right: 1px solid #e5e5e5;
}
._head_img {
width: 28px;
height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._btn_group {
font-size: 14px;
}
.icon-daiqueren {
color: #4BCA81
}
.icon-yiqueren {
color: #4BCA81
}
.icon-yiquxiao {
color: #959595
}
.icon-shenhebohui {
color: #E95252
}
.icon-icon-zancun {
color: #FF9C01
}
.singeRowTable tr:hover {
background-color: white
}
._TradeWayList {
padding: 5px 10px;
background-color: #EEEEEE;
border-radius: 4px;
margin: 10px 0;
width: 230px
}
._bold {
font-weight: bold
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
cursor: pointer;
}
._bank_type {
background-color: #2AAEF2
}
._bank_type2 {
background-color: #FF9C01
}
.cdForm .el-form-item{
display: inline-block;
}
.leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
outline:none;
}
</style>
<style scoped>
.page_CompanyAccDetail .query-box li label{display: inline-block;min-width: 80px;text-align: right;font-style: normal;margin: 0 20px 0 0;}
.page_CompanyAccDetail .query-box{
padding-bottom: 0;
margin-top: 20px;
}
.page_CompanyAccDetail .query-box li:last-child{top: 34px;}
._shoufu_date input.el-input__inner{padding: 0px 0 0 27px;}
.page_CompanyAccDetail .el-date-editor .el-range-separator{width: 9% !important;}
.page_CompanyAccDetail .el-date-editor--daterange.el-input__inner{width: auto !important;}
._bg__{
border-radius: 4px;
cursor: pointer;
text-decoration: underline;
}
._bg__ .CAcc_bg_red:hover{
color: rgb(230, 97, 97);
}
._bg__ .CAcc_bg_green:hover{
color:rgb(66, 182, 132);
}
._bg__ .CAcc_bg_bule:hover{
color:rgb(10, 99, 233);
}
.page_CompanyAccDetail .CAcc_bg_red{color: #E95252;}
.page_CompanyAccDetail .CAcc_bg_green{color: #2BB87C}
.page_CompanyAccDetail .CAcc_bg_bule{color: blue}
._addChuNa_tit{color: gray;margin-bottom: 10px;}
._addChuNa_tit span{ color:#333333}
.page_CompanyAccDetail ._addUpload_box{
display: block;
margin-top: 20px;
width:590px;
}
.page_CompanyAccDetail ._addUpload_box>div{
float: left;
width: 138px;
height: 92px;
border: 1px dashed rgba(210,210,210,1);
border-radius: 2px;
cursor: pointer;
padding: 5px;
margin:0 10px 10px 0;
position: relative;
}
.page_CompanyAccDetail .el-upload-dragger {
width: 126px!important;
height: 80px!important;
}
.page_CompanyAccDetail ._addUpload_box .icon-guanbi1 {
font-size: 12px;
color: white;
display: inline-block;
margin-left: 15px;
position: absolute;
right: -6px;
top: -9px;
background-color: #f56c6c;
border-radius: 50%;
height: 20px;
width: 20px;
text-align: center;
line-height: 20px;
}
.page_CompanyAccDetail ._addUpload_box .icon-guanbi1:hover {
font-size: 12px;
color: #c94052;
}
.headeBox{
display: flex;
flex-direction: column;
height: 100%;
}
.headeBox div{
flex: 1;
width: 100%;
padding: 3px 0;
text-align: center;
border-bottom: 1px solid #EBEEF5;
text-align: center;
}
.headeBox div:last-child{
border-bottom: 0;
}
/deep/.page_CompanyAccDetail .el-table--border .el-table__cell:first-child{
padding: 0 !important;
}
/deep/.page_CompanyAccDetail .el-table--border .el-table__cell:first-child .cell{
padding: 0 !important;
}
/deep/.page_CompanyAccDetail .el-table .el-table__cell {
padding: 0 12px!important;
}
</style>
<template>
<div class='flexOne page_CompanyAccDetail'>
<div class='query-box'>
<el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding: 10px 0 0 0;">
<el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.zhanghuleixing')">
<el-select filterable v-model='msg.BankId'
@change="getList">
<el-option v-for='item in AccList'
:label='item.Name'
:value='item.ID'
:key='item.ID'>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8" :gutter="35">
<el-form-item :label="$t('admin.admin_choDate')">
<el-date-picker class="h34"
@change="timeAdd"
v-model="productionDate"
type="daterange"
value-format="yyyy-MM-dd"
:range-separator="$t('restaurant.res_To')"
:clearable="false">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
<ul>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()"/>
<input type="button" class="normalBtn" :value="$t('objFill.duizhnagkm')" @click="isShow=true"/>
<input type="button" class="hollowFixedBtn" :value="$t('objFill.v101.FinancialModule.xinzengkem')" @click="isShowAdd=true"/>
</li>
</ul>
</div>
<div class="cm_content">
<el-table :data="SubjectList"
style="width: 100%;max-height: 600px;"
v-loading="loadingTable"
:span-method="objectSpanMethod">
<el-table-column prop="Name" label="" width="150" fixed="left" align="center">
<template #header>
<div class="headeBox">
<div>{{titleStart}}{{titleStart!=titleEnd?'-'+titleEnd:''}}</div>
<div>期初余额</div>
<div>用途</div>
</div>
</template>
</el-table-column>
<template v-if="DateList&&DateList.length>0">
<el-table-column v-for="(item,index) in DateList"
:key="index"
:label="String(item.StartDate)" align="center">
<el-table-column :label="String(item.StartBalance)" align="center">
<el-table-column prop="Income" label="银行收入" width="120" align="center">
<template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].Income }}
</template>
<template v-else>
<el-image v-if="scope.row.BalanceList[index].Image"
style="width: 20px; height: 20px;margin-top: 10px;"
:src="scope.row.BalanceList[index].Image"
:preview-src-list="[scope.row.BalanceList[index].Image]"
show-progress
fit="cover"
/>
</template>
</template>
</el-table-column>
<el-table-column prop="FinanceIncome" label="单据收入" width="120" align="center">
<template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].FinanceIncome }}
</template>
</template>
</el-table-column>
<el-table-column prop="Expenses" label="银行支出" width="120" align="center">
<template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].Expenses }}
</template>
</template>
</el-table-column>
<el-table-column prop="FinanceExpenses" label="单据支出" width="120" align="center">
<template slot-scope="scope">
<template v-if="scope.row.SubjectId!=-6">
{{ scope.row.BalanceList[index].FinanceExpenses }}
</template>
</template>
</el-table-column>
</el-table-column>
</el-table-column>
</template>
</el-table>
</div>
<SubjectList v-if="isShow" @change="close"></SubjectList>
<addSubject v-if="isShowAdd" :obj="addMsg" @change="close"></addSubject>
</div>
</template>
<script>
import moment from "moment"
import SubjectList from './comm/SubjectList.vue';
import addSubject from './comm/addSubject.vue';
export default {
components: {SubjectList,addSubject},
data(){
return{
msg:{
BankId:1,
StartDate:'',
EndDate:'',
},
AccList: [
{Name: '和工',ID: 1},
{Name: '中信',ID: 35},
],
loadingTable:false,
DateList: [],
SubjectList: [],
titleStart: 0,
titleEnd: 0,
productionDate: [],
isShow: false,
isShowAdd: false,
addMsg:{
Id: 0,
Status: 0,
Name: '',
Sort: 0,
}
}
},
created(){
// 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 mon1= this.getBeforeDate(11, new Date().Format("yyyy-MM-dd"));
let mon2= this.getBeforeDate(15, 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.titleEnd = mon1.slice(5,7)>9?mon1.slice(5,7):mon1.slice(6,7)
this.productionDate=[mon2,mon1];
this.msg.StartDate=mon2;
this.msg.EndDate=mon1;
this.getList();
},
methods:{
close(){
this.isShow = false
this.isShowAdd = false
},
objectSpanMethod(row) {
if (row.columnIndex !=0) {
if (row.rowIndex==this.SubjectList.length-1) {
return [1,4]
}
}
},
getList(){ //获取列表
this.tableData=[];
this.loadingTable = true
this.apipost('Financial_post_GetBankBalanceList',this.msg,res=>{
this.loadingTable = false
if(res.data.resultCode==1){
let data = res.data.data;
this.SubjectList = data.filter((item,index)=> {return index>1})
this.DateList = []
for(let i=0;i<res.data.data[0].BalanceList.length;i++){
let obj = res.data.data[0].BalanceList[i]
this.DateList.push({
StartDate: obj.StartDate,
StartBalance: obj.StartBalance,
EndBalance: obj.EndBalance,
Image: obj.Image
})
}
}else{
this.Error(res.data.message)
if( this.msg.ClientID == 0 ){
this.msg.ClientID = '';
}
}
},err=>{})
},
timeAdd(){ // 日期格式
if(!this.productionDate){
this.msg.StartDate = '';
this.msg.EndDate = '';
return
}
this.msg.StartDate = this.productionDate[0];
this.msg.EndDate = this.productionDate[1];
this.titleStart = this.msg.StartDate.slice(5,7)>9?this.msg.StartDate.slice(5,7):this.msg.StartDate.slice(6,7)
this.titleEnd = this.msg.EndDate.slice(5,7)>9?this.msg.EndDate.slice(5,7):this.msg.EndDate.slice(6,7)
this.getList()
},
},
mounted(){
}
}
</script>
...@@ -122,7 +122,9 @@ export default { ...@@ -122,7 +122,9 @@ export default {
let locationName = window.location.hostname; let locationName = window.location.hostname;
let isOnline = 0; //0-本地测试,1-线上 let isOnline = 0; //0-本地测试,1-线上
let ocrUrl = "http://192.168.5.46:8888"; let ocrUrl = "http://192.168.5.46:8888";
domainUrl = "http://192.168.5.214"; // domainUrl = "http://192.168.5.214";
domainUrl = "http://192.168.5.39:8083"
// domainUrl = "http://reborn.oytour.com";
let crmLocalFileStreamDownLoadUrl = ""; let crmLocalFileStreamDownLoadUrl = "";
crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com"; crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com";
let javaUrldo = ""; let javaUrldo = "";
......
...@@ -5826,6 +5826,14 @@ export default { ...@@ -5826,6 +5826,14 @@ export default {
title: 'op提成明细' title: 'op提成明细'
} }
}, },
{
path: '/BankStatementReconciliation',
name: 'BankStatementReconciliation',
component: resolve => require(['@/components/FinancialModule/BankStatementReconciliation/index'], resolve),
meta: {
title: '银行流水对账'
}
},
{ {
path: '/CouponList', path: '/CouponList',
name: 'CouponList', name: 'CouponList',
......
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