Commit fcf9390e by yuzhenWang

修正应收搜索bug

parent 8f9889bb
...@@ -738,10 +738,23 @@ const loadTableData = async () => { ...@@ -738,10 +738,23 @@ const loadTableData = async () => {
// } // }
loading.value = true loading.value = true
try { try {
console.log('searchParams.entryDate', searchParams.entryDate)
if (searchParams.entryDate.length > 0) {
searchParams.commissionDateStart = `${searchParams.entryDate[0]}-01`
searchParams.commissionDateEnd = `${searchParams.entryDate[1]}-01`
} else {
searchParams.commissionDateStart = ''
searchParams.commissionDateEnd = ''
}
const params = { const params = {
...searchParams, ...searchParams,
commissionDateStart: searchParams?.entryDate?.[0] || undefined, // commissionDateStart: searchParams?.entryDate?.[0] + '-01' || undefined,
commissionDateEnd: searchParams?.entryDate?.[1] || undefined, // commissionDateEnd: searchParams?.entryDate?.[1] + '-01' || undefined,
commissionDateStart: searchParams.commissionDateStart || undefined,
commissionDateEnd: searchParams.commissionDateEnd || undefined,
entryDate: undefined, entryDate: undefined,
pageNo: currentPage.value, pageNo: currentPage.value,
pageSize: pageSize.value pageSize: pageSize.value
......
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