This commit is contained in:
weipengfei 2023-09-11 19:41:21 +08:00
parent 391901b499
commit a545531195
3 changed files with 16 additions and 1 deletions

View File

@ -37,6 +37,8 @@
path: getRoutePath('finance.account_log/lists'),
query: {
company_id: formData.company_id,
s_date: formData.s_date,
e_date: formData.e_date,
},
}"
>查看明细</router-link
@ -131,6 +133,8 @@ const formData = reactive({
deny_desc: "",
company_id: "",
company_name: "",
s_date: "",
e_date: "",
});
//

View File

@ -142,7 +142,11 @@ const queryParams = reactive({
end_time: "",
company_id: "",
});
if (route.query?.company_id) queryParams.company_id = route.query?.company_id;
if (route.query?.company_id) {
queryParams.company_id = route.query?.company_id;
queryParams.start_time = route.query?.s_date;
queryParams.end_time = route.query?.e_date;
}
const { pager, getLists, resetPage, resetParams } = usePaging({
fetchFun: accountLog,

View File

@ -57,6 +57,12 @@
<el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button>
<export-data
class="ml-2.5"
:fetch-fun="accountLog"
:params="queryParams"
:page-size="pager.size"
/>
</el-form-item>
</el-form>
</el-card>
@ -146,6 +152,7 @@ import { timeFormat } from "@/utils/util";
import { dictDataLists } from "@/api/setting/dict";
import { getRoutePath } from "@/router";
import { dictContractTypeList } from "@/utils/dict.ts";
import { accountLog } from "@/api/finance";
const userStore = useUserStore();
// console.log(userStore.userInfo.company_id);