| | |
| | | const { form: searchForm } = useFormData({ |
| | | searchText: undefined, |
| | | purchaseContractNumber: undefined, |
| | | paymentDate: [], |
| | | paymentDateStart: undefined, |
| | | paymentDateEnd: undefined, |
| | | // 设置付款日期范围为当天 |
| | | paymentDate: [dayjs().startOf('day').format('YYYY-MM-DD'), dayjs().endOf('day').format('YYYY-MM-DD')], |
| | | paymentDateStart: dayjs().startOf('day').format('YYYY-MM-DD'), |
| | | paymentDateEnd: dayjs().endOf('day').format('YYYY-MM-DD'), |
| | | }); |
| | | |
| | | // 查询列表 |
| | |
| | | const getList = () => { |
| | | tableLoading.value = true; |
| | | const { paymentDate, ...rest } = searchForm; |
| | | paymentHistoryListPage({ ...rest, ...page }).then((res) => { |
| | | const { total, ...pageParams } = page; |
| | | paymentHistoryListPage({ ...rest, ...pageParams }).then((res) => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.records; |
| | | page.total = res.total; |