|
|
@ -149,6 +149,7 @@ const updataTableColumns = (val) => { |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: SupplierApbalanceMainApi.getSupplierApbalanceMainPage // 分页接口 |
|
|
|
}) |
|
|
|
tableObject.params.actionType = 'search' |
|
|
|
|
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList, setSearchParams } = tableMethods |
|
|
@ -381,7 +382,7 @@ const confirmationHandle = async ()=>{ |
|
|
|
await SupplierApbalanceMainApi.confirmationPage(param) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
searchClick(searchData) |
|
|
|
searchClick(searchData,'confirmation') |
|
|
|
// getList() // 刷新当前列表 |
|
|
|
loadDone() |
|
|
|
} |
|
|
@ -423,7 +424,7 @@ const resetClick = async (data)=>{ |
|
|
|
searchClick(data) |
|
|
|
} |
|
|
|
|
|
|
|
const searchClick = async (data)=>{ |
|
|
|
const searchClick = async (data,actionType="search")=>{ |
|
|
|
if((data['year']||data['month']||data['day'])&&(!data['year']||!data['month']||!data['day'])){ |
|
|
|
message.error('请选择年月日') |
|
|
|
return |
|
|
@ -437,6 +438,7 @@ const searchClick = async (data)=>{ |
|
|
|
if(data['year']&&data['month']&&data['day']){ |
|
|
|
data['searchTime'] = `${data['year']}-${data['month']}-${data['day']}` |
|
|
|
} |
|
|
|
tableObject.params.actionType = actionType |
|
|
|
setSearchParams(data) |
|
|
|
} |
|
|
|
/** 初始化 **/ |
|
|
|