|
|
|
@@ -26,71 +26,55 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!--内容--> |
|
|
|
<div style="width: 100vw;overflow-y: scroll;padding: 11px 0 0 11px;"> |
|
|
|
<div class="center_box"> |
|
|
|
<div class="vocher_name"> |
|
|
|
<van-row class="head_m"> |
|
|
|
<van-col :span="14" class="year_m"> |
|
|
|
<div class="year_text">{{queryParams.startDate.substr(0,4)}}</div> |
|
|
|
<div class="unit_m"> |
|
|
|
<div class="ubs">月</div> |
|
|
|
<div class="ubs">日</div> |
|
|
|
</div> |
|
|
|
</van-col> |
|
|
|
<van-col :span="10" class="credential_m">凭证字</van-col> |
|
|
|
</van-row> |
|
|
|
<van-row class="head_m_s"> |
|
|
|
<van-col :span="9">摘要</van-col> |
|
|
|
<van-col :span="4">借方</van-col> |
|
|
|
<van-col :span="4">贷方</van-col> |
|
|
|
<van-col :span="3">方向</van-col> |
|
|
|
<van-col :span="4">余额</van-col> |
|
|
|
</van-row> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="vocher_content"> |
|
|
|
<div class="vocher_cmain"> |
|
|
|
|
|
|
|
<div style="width: 20%;"> |
|
|
|
<van-row class="vocher_mTitle" v-for="(item,index) in tableList" :key="index"> |
|
|
|
<van-col :span="7">{{item.month}}</van-col> |
|
|
|
<van-col :span="7">{{item.day}}</van-col> |
|
|
|
<van-col :span="10"> |
|
|
|
<div class="pz_tx" @click="subjectNameFun(item.voucherWordNum,item.voucherId)">{{item.voucherWordNum}}</div> |
|
|
|
</van-col> |
|
|
|
</van-row> |
|
|
|
</div> |
|
|
|
<div class="content_m"> |
|
|
|
<van-row class="content_m_b" v-for="(item,index) in tableList" :key="index"> |
|
|
|
<van-col :span="9" class="zy"> |
|
|
|
<span>{{item.voucherSummary}}</span> |
|
|
|
</van-col> |
|
|
|
<van-col :span="4" class="je">{{item.jieAmount}}</van-col> |
|
|
|
<van-col :span="4" class="je">{{item.daiAmount}}</van-col> |
|
|
|
<van-col :span="3" class="km">{{item.balanceDirection}}</van-col> |
|
|
|
<van-col :span="4" class="je">{{item.balance}}</van-col> |
|
|
|
</van-row> |
|
|
|
<!-- <van-row > |
|
|
|
<van-col :span="9" class="zy">摘要</van-col> |
|
|
|
<van-col :span="4" class="je">200.00</van-col> |
|
|
|
<van-col :span="4" class="je">20000.00</van-col> |
|
|
|
<van-col :span="3" class="km">借</van-col> |
|
|
|
<van-col :span="4" class="je">200.00</van-col> |
|
|
|
</van-row> --> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="balance-main"> |
|
|
|
<!-- <div class="main-title">--> |
|
|
|
<!-- <div class="company">单位:{{ this.$store.getters.bookName }}</div>--> |
|
|
|
<!-- <div class="nper">{{ accountingYear }}年{{ accountingMonth }}期</div>--> |
|
|
|
<!-- <div class="amountOf">金额:元</div>--> |
|
|
|
<!-- </div>--> |
|
|
|
<div class="main-center"> |
|
|
|
<div class="datagrid"> |
|
|
|
<div class="header"> |
|
|
|
<div class="xmmc">{{queryParams.startDate.substr(0,4)}}</div> |
|
|
|
<div class="qj">凭证字</div> |
|
|
|
<div class="zy">摘要</div> |
|
|
|
<div class="dfje">借方</div> |
|
|
|
<div class="qj">贷方</div> |
|
|
|
<div class="zy">方向</div> |
|
|
|
<div class="dfje">余额</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="header header_sec">--> |
|
|
|
<!-- <div class="xmmc">编码</div>--> |
|
|
|
<!-- <div class="qj">名称</div>--> |
|
|
|
<!-- <div class="zy">本期发生</div>--> |
|
|
|
<!-- <div class="dfje">期末余额</div>--> |
|
|
|
<!-- <div class="xmmc">科目</div>--> |
|
|
|
<!-- <div class="qj">期初余额</div>--> |
|
|
|
<!-- <div class="zy">本期发生</div>--> |
|
|
|
<!-- <div class="dfje">期末余额</div>--> |
|
|
|
<!-- </div>--> |
|
|
|
<div class="mok_list"> |
|
|
|
<ul class="list"> |
|
|
|
<li class="header_sec" v-for="(item, index) in tableList" :key="index"> |
|
|
|
<div class="xmmc" style="display: flex;justify-content: space-evenly;"><span>月:{{item.month}}</span><span>日:{{item.day==null?'无':item.day}}</span></div> |
|
|
|
<div class="qj pz_tx" @click="subjectNameFun(item.voucherWordNum,item.voucherId)">{{item.voucherWordNum}}</div> |
|
|
|
<div class="zy">{{item.voucherSummary}}</div> |
|
|
|
<div class="dfje">{{item.jieAmount}}</div> |
|
|
|
<div class="qj">{{item.daiAmount}}</div> |
|
|
|
<div class="zy">{{item.balanceDirection}}</div> |
|
|
|
<div class="dfje">{{item.balance}}</div> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!--开始日期--> |
|
|
|
<van-action-sheet v-model="dateObj.startVisbile" duration="0.2" > |
|
|
|
<van-datetime-picker |
|
|
|
v-model="dateObj.startDate" |
|
|
|
title="选择日期" |
|
|
|
:min-date="dateObj.minDate" |
|
|
|
:max-date="dateObj.maxDate" |
|
|
|
@confirm="startConfirm" |
|
|
|
@cancel ="startCancel" |
|
|
|
type="year-month" |
|
|
|
@@ -153,7 +137,7 @@ export default { |
|
|
|
startVisbile:false, |
|
|
|
startDate: new Date(), |
|
|
|
minDate:new Date(2018, 0, 1), |
|
|
|
maxDate:new Date(2028, 5, 1), |
|
|
|
maxDate:new Date(2018, 0, 1), |
|
|
|
//结束日期-弹窗显隐 |
|
|
|
endVisbile:false, |
|
|
|
endDate:new Date(), |
|
|
|
@@ -192,7 +176,8 @@ export default { |
|
|
|
} |
|
|
|
this.$set(this.queryParams, "startDate", currentDays); |
|
|
|
this.$set(this.queryParams, "endDate", currentDays); |
|
|
|
|
|
|
|
this.$set(this.dateObj, "maxDate", new Date(new Date(currentDays).getFullYear(),11)); |
|
|
|
this.$set(this.dateObj, "minDate", new Date(currentDays)); |
|
|
|
let dataArr = currentDays.split('-') |
|
|
|
this.$set(this.dateObj, "startDate", new Date(dataArr[0], dataArr[1]-1), 1); |
|
|
|
this.$set(this.dateObj, "endDate", new Date(dataArr[0], dataArr[1]-1), 1); |
|
|
|
@@ -219,9 +204,12 @@ export default { |
|
|
|
|
|
|
|
this.initPage() |
|
|
|
this.makeSubjectsTree(res.rows, resp.data); |
|
|
|
}else{ |
|
|
|
this.subjectText = '暂无数据'; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.subjectText = '暂无数据'; |
|
|
|
this.subjectsTree = []; //会计科目显示列表(树) |
|
|
|
this.cascaderValue = ""; //科目选择 |
|
|
|
this.initPage() |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
@@ -318,10 +306,15 @@ export default { |
|
|
|
let years = this.format(value,'yyyy'); |
|
|
|
let months = this.format(value,'MM'); |
|
|
|
this.queryParams.startDate = years+'-'+months; |
|
|
|
this.dateObj.startVisbile = false; |
|
|
|
|
|
|
|
this.queryParams.endDate = years+'-'+months; |
|
|
|
this.subjectYear = years; |
|
|
|
|
|
|
|
this.dateObj.startVisbile = false; |
|
|
|
this.initPage(); |
|
|
|
const end = new Date(value.getFullYear(),11) //年份的最后一个月+1,就是次年的1月 |
|
|
|
this.dateObj.minDate = value; |
|
|
|
this.dateObj.maxDate = end; |
|
|
|
this.initAxios(); |
|
|
|
}, |
|
|
|
//弹窗-开始日期-取消 |
|
|
|
startCancel(){ |
|
|
|
@@ -337,16 +330,185 @@ export default { |
|
|
|
let years = this.format(value,'yyyy'); |
|
|
|
let months = this.format(value,'MM'); |
|
|
|
this.queryParams.endDate = years+'-'+months; |
|
|
|
|
|
|
|
|
|
|
|
this.dateObj.endVisbile = false; |
|
|
|
this.initPage(); |
|
|
|
this.initAxios(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.balance-main { |
|
|
|
background: #fff; |
|
|
|
margin-top: 20px; |
|
|
|
.main-title { |
|
|
|
margin-bottom: 5PX; |
|
|
|
padding: 0 10PX; |
|
|
|
height: 33PX; |
|
|
|
line-height: 33PX; |
|
|
|
color: #333; |
|
|
|
font-size: 13PX; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
.company { |
|
|
|
} |
|
|
|
.nper { |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.amountOf { |
|
|
|
text-align: right; |
|
|
|
} |
|
|
|
} |
|
|
|
.main-center { |
|
|
|
// min-height: 404PX; |
|
|
|
border: 1PX solid #CACBCC; |
|
|
|
border-bottom: 0; |
|
|
|
overflow-x: scroll; |
|
|
|
.datagrid { |
|
|
|
min-height: 100PX; |
|
|
|
width: 250%; |
|
|
|
.header { |
|
|
|
background: #f8f8f9; |
|
|
|
font-weight: bold; |
|
|
|
display: flex; |
|
|
|
color: #278dff; |
|
|
|
} |
|
|
|
.header_sec{ |
|
|
|
div{ |
|
|
|
width: 14.2%; |
|
|
|
} |
|
|
|
} |
|
|
|
.kmbm, |
|
|
|
.xmmc, |
|
|
|
.qj, |
|
|
|
.zy, |
|
|
|
.jfje, |
|
|
|
.dfje, |
|
|
|
.fx, |
|
|
|
.ye { |
|
|
|
height: 29PX; |
|
|
|
line-height: 29PX; |
|
|
|
font-size: 13PX; |
|
|
|
border-bottom: 1PX solid #CACBCC; |
|
|
|
border-right: 1PX solid #CACBCC; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.xmmc { |
|
|
|
width: 14.2%; |
|
|
|
text-align: center; |
|
|
|
padding-left: 10PX; |
|
|
|
} |
|
|
|
.qj { |
|
|
|
width: 14.2%; |
|
|
|
text-align: center; |
|
|
|
padding-right: 10PX; |
|
|
|
} |
|
|
|
.zy { |
|
|
|
width: 14.2%; |
|
|
|
text-align: center; |
|
|
|
padding-right: 10PX; |
|
|
|
} |
|
|
|
|
|
|
|
.dfje { |
|
|
|
width: 14.2%; |
|
|
|
text-align: center; |
|
|
|
padding-left: 10PX; |
|
|
|
} |
|
|
|
.fx { |
|
|
|
width: 12%; |
|
|
|
text-align: right; |
|
|
|
padding-right: 10PX; |
|
|
|
} |
|
|
|
.ye { |
|
|
|
width: 12%; |
|
|
|
text-align: right; |
|
|
|
padding-right: 10PX; |
|
|
|
border-right: 0; |
|
|
|
} |
|
|
|
.mok_list { |
|
|
|
display: block; |
|
|
|
overflow-y: scroll; |
|
|
|
height: calc(100vh - 230PX); |
|
|
|
//background: url("~@/assets/images/report_line.png") repeat; |
|
|
|
} |
|
|
|
.list { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
ul { |
|
|
|
margin: 0; |
|
|
|
padding: 0; |
|
|
|
li { |
|
|
|
display: block; |
|
|
|
overflow: hidden; |
|
|
|
list-style: none; |
|
|
|
&.header { |
|
|
|
background: #f8f8f9; |
|
|
|
font-weight: bold; |
|
|
|
} |
|
|
|
&.header_sec{ |
|
|
|
div{ |
|
|
|
width: 14.2%; |
|
|
|
} |
|
|
|
} |
|
|
|
&:nth-child(even){ |
|
|
|
background: #e9e9e9; |
|
|
|
} |
|
|
|
.pz_tx{ |
|
|
|
color: #278dff; |
|
|
|
} |
|
|
|
.kmbm, |
|
|
|
.xmmc, |
|
|
|
.qj, |
|
|
|
.zy, |
|
|
|
.jfje, |
|
|
|
.dfje, |
|
|
|
.fx, |
|
|
|
.ye { |
|
|
|
height: 29PX; |
|
|
|
line-height: 29PX; |
|
|
|
float: left; |
|
|
|
font-size: 13PX; |
|
|
|
border-bottom: 1PX solid #CACBCC; |
|
|
|
border-right: 1PX solid #CACBCC; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
.xmmc { |
|
|
|
width: 26%; |
|
|
|
text-align: center; |
|
|
|
padding-left: 10PX; |
|
|
|
} |
|
|
|
.qj { |
|
|
|
width: 12%; |
|
|
|
text-align: center; |
|
|
|
padding-right: 10PX; |
|
|
|
} |
|
|
|
.zy { |
|
|
|
width: 12%; |
|
|
|
text-align: center; |
|
|
|
padding-right: 10PX; |
|
|
|
} |
|
|
|
|
|
|
|
.dfje { |
|
|
|
width: 26%; |
|
|
|
text-align: center; |
|
|
|
padding-left: 10PX; |
|
|
|
} |
|
|
|
.fx { |
|
|
|
width: 12%; |
|
|
|
text-align: right; |
|
|
|
padding-right: 10PX; |
|
|
|
} |
|
|
|
.ye { |
|
|
|
width: 12%; |
|
|
|
text-align: right; |
|
|
|
padding-right: 10PX; |
|
|
|
border-right: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.home_wrapper{ |
|
|
|
background: #e9e9e9; |
|
|
|
min-height: 100vh; |
|
|
|
|