Commit 20a40a91 authored by youjie's avatar youjie

no message

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