综合销售表合计回显 搜索报错时给通过
This commit is contained in:
@@ -567,6 +567,7 @@ const getTableData = async (isLoading = true) => {
|
|||||||
const searchObj = await getSearchData()
|
const searchObj = await getSearchData()
|
||||||
try {
|
try {
|
||||||
// 获取数据
|
// 获取数据
|
||||||
|
|
||||||
let data = await ReportApi.getTableList(props.reportCode, searchObj)
|
let data = await ReportApi.getTableList(props.reportCode, searchObj)
|
||||||
|
|
||||||
// 功能测试:CS_DTBT报表使用模拟数据
|
// 功能测试:CS_DTBT报表使用模拟数据
|
||||||
@@ -736,7 +737,7 @@ const getTableData = async (isLoading = true) => {
|
|||||||
let value={...tableData.value[0]}
|
let value={...tableData.value[0]}
|
||||||
if(tableInfo.value.reportCode==='ZHXSQK'){
|
if(tableInfo.value.reportCode==='ZHXSQK'){
|
||||||
value=(await ReportApi.getAggMonthTotalDetail(searchObj))[0]
|
value=(await ReportApi.getAggMonthTotalDetail(searchObj))[0]
|
||||||
searchObj['usemonth']?'':value.thisMonthSaMoney_s=value.thissamoney_s
|
// searchObj['usemonth']?'':value.thisMonthSaMoney_s=value.thissamoney_s
|
||||||
|
|
||||||
}
|
}
|
||||||
keys.forEach(item=>{
|
keys.forEach(item=>{
|
||||||
@@ -766,7 +767,9 @@ const getTableData = async (isLoading = true) => {
|
|||||||
})
|
})
|
||||||
resolve(data.records)
|
resolve(data.records)
|
||||||
} finally {
|
} finally {
|
||||||
|
|
||||||
if (isLoading) loading.value = false
|
if (isLoading) loading.value = false
|
||||||
|
resolve()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -811,11 +814,11 @@ const clearSearch = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const searchChange = (params?, done?) => {
|
const searchChange = async (params?, done?) => {
|
||||||
if (tablePage.value) tablePage.value['currentPage'] = 1
|
if (tablePage.value) tablePage.value['currentPage'] = 1
|
||||||
getTableData().finally(() => {
|
await getTableData()
|
||||||
|
|
||||||
if (done) done()
|
if (done) done()
|
||||||
})
|
|
||||||
}
|
}
|
||||||
const resetChange = () => {
|
const resetChange = () => {
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user