Commit 20a40a91 authored by youjie's avatar youjie

no message

parent b0f44a52
......@@ -128,7 +128,7 @@
<ul>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()"/>
<input v-if="SubjectList&&SubjectList.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="normalBtn" :value="$t('objFill.duizhnagkm')+$t('ground.liebiao')" @click="isShow=true"/>
</li>
......@@ -249,7 +249,8 @@ export default {
SubjectName: '',
Income:0,// 银行收入
Expenses:0,//银行支出
}
},
SubjectTypeList:[]
}
},
created(){
......@@ -262,6 +263,7 @@ export default {
this.productionDate=[mon2,mon1];
this.msg.StartDate=mon2;
this.msg.EndDate=mon1;
this.getSubjectList()
this.getList();
},
methods:{
......@@ -278,22 +280,15 @@ export default {
Image: '',
SubjectList: [],
}
this.SubjectList.forEach((x,index)=>{
if(x.SubjectId!=-4&&x.SubjectId!=-5&&x.SubjectId!=-6){
x.BalanceList.forEach((y,indexs)=>{
if(indexs==0){
let BanObj = JSON.parse(JSON.stringify(this.BanObj))
this.SubjectTypeList.forEach(x=>{
let BanObj = JSON.parse(JSON.stringify(x))
BanObj = {
SubjectId: x.SubjectId,//科目ID
SubjectId: x.Id,//科目ID
SubjectName: x.Name,
Income: 0,// 银行收入
Expenses: 0,//银行支出
}
this.BankStaObj.SubjectList.push(BanObj)
}
})
}
})
this.isShowBankSta = true
},
......@@ -327,6 +322,13 @@ export default {
})
this.isShowBankSta = true
},
getSubjectList(){
this.apipost("Financial_post_GetBankSubjectList", {}, res => {
if (res.data.resultCode === 1) {
this.SubjectTypeList = res.data.data;
}
}, null)
},
changeData(){
this.isShowAdd = false
this.getList();
......@@ -343,14 +345,15 @@ export default {
}
},
getList(){ //获取列表
if(this.loadingTable) return
this.tableData=[];
this.DateList = []
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({
......
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