优化账账相对

This commit is contained in:
lihao 2025-03-24 17:44:22 +08:00
parent 1c9f7e1610
commit 8c30972d0a
1 changed files with 27 additions and 19 deletions

View File

@ -638,24 +638,32 @@ class Reckon extends Component {
toast({content: self.state.json['20020RECON-000010'], color: 'warning'});/* 国际化处理: 请先选择核算账簿*/
return false;
}
let temp="";
if (pk_accountingbook.value == "" || pk_accountingbook.value == undefined) {
toast({content: self.state.json['20020RECON-000038'], color: 'warning'});/* 国际化处理: 请先选择会计科目*/
return false;
temp=""
}else{
temp=pk_accountingbook.value;
}
let url = '/nccloud/gl/accountrep/accountbalancetotal.do';
// let pk_accpont = {"pk_accountingbook":accountingbook.value};
let enddate = this.getMonthDays(periodData.presentYear, periodData.presentMonth)
let pk_accpont = {
"pk_accountingbook": [accountingbook.value],
"pk_accasoa": [pk_accountingbook.value],
"pk_accasoa": [temp],
// "pk_accountingbook":["1001A110000000001PFH"],
// "pk_accasoa": ["1001A1100000000017L8"],
"startyear": periodData.presentYear,
"endyear": periodData.presentYear,
"startperiod": periodData.presentMonth,
"endperiod": periodData.presentMonth,
"startdate": periodData.presentYear + '-' + periodData.presentMonth + "-01",
"enddate": periodData.presentYear + '-' + periodData.presentMonth + '-' + enddate
"startyear": "2024",
"endyear": "2024",
"startperiod": "01",
"endperiod":"10",
"startdate": "2024-01-01",
"enddate":"2024-10-31"
// "startyear": periodData.presentYear,
// "endyear": periodData.presentYear,
// "startperiod": periodData.presentMonth,
// "endperiod": periodData.presentMonth,
// "startdate": periodData.presentYear + '-' + periodData.presentMonth + "-01",
// "enddate": periodData.presentYear + '-' + periodData.presentMonth + '-' + enddate
}
ajax({
url: url,
@ -665,16 +673,16 @@ class Reckon extends Component {
//渲染已有账表数据遮罩
if (success) {
if (response.data) {
data.forEach((item, i) => {
if (i != 0) {
if (data[i - 1].pacccode == item.pacccode) {
item.paccname = ''
}
if (data[i - 1].acccode == item.acccode) {
item.accname = ''
}
}
})
// data.forEach((item, i) => {
// if (i != 0) {
// if (data[i - 1].pacccode == item.pacccode) {
// item.paccname = ''
// }
// if (data[i - 1].acccode == item.acccode) {
// item.accname = ''
// }
// }
// })
reportData = data
reportData.unshift({
pacccode: "会计科目编码", //总账余额表-会计科目编码