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