feat:充值/扣款申请导出
This commit is contained in:
1 parent
4c74d5a410
commit
9df3d669a5
2 files changed
+7
-5
No files matched your search
@@ -44,7 +44,7 @@
|
||||
</div>
|
||||
</el-row>
|
||||
<product-total-table-by-day v-if="activeTab === 'DAY'" ref="productTotalTableByDayRef" />
|
||||
<ProductTotalTableByMonth v-if="activeTab === 'MONTH'" ref="productTotalTableByMonthRef" />
|
||||
<product-total-table-by-month v-if="activeTab === 'MONTH'" ref="productTotalTableByMonthRef" />
|
||||
</template>
|
||||
</DraggableDepTree>
|
||||
</div>
|
||||
@@ -98,10 +98,10 @@ const state = reactive<any>({
|
||||
|
||||
watch(() => [activeTab.value, productTotalTableByDayRef.value, productTotalTableByMonthRef.value], () => {
|
||||
if (activeTab.value === "DAY" && productTotalTableByDayRef.value?.doSearch) {
|
||||
productTotalTableByDayRef.value.doSearch(state.queryForm)
|
||||
search()
|
||||
}
|
||||
if (activeTab.value === "MONTH" && productTotalTableByMonthRef.value?.doSearch) {
|
||||
productTotalTableByMonthRef.value.doSearch(state.queryForm)
|
||||
search()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -115,6 +115,7 @@ onMounted(() => {
|
||||
const resetQuery = () => {
|
||||
// 清空搜索条件
|
||||
queryRef.value?.resetFields()
|
||||
state.queryForm = { ...defaultQueryForm }
|
||||
state.queryForm.deptId = ""
|
||||
state.queryForm.userDeptIds = []
|
||||
draggableDepTreeRef.value.resetData()
|
||||
@@ -152,6 +153,7 @@ const search = () => {
|
||||
if (activeTab.value === "MONTH") {
|
||||
state.queryForm.createTimeList = []
|
||||
}
|
||||
console.log("queryForm:", state.queryForm);
|
||||
switch (activeTab.value) {
|
||||
case "DAY":
|
||||
productTotalTableByDayRef.value.doSearch(state.queryForm)
|
||||
|
||||
@@ -209,7 +209,7 @@ const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
})
|
||||
|
||||
// table hook
|
||||
const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state)
|
||||
const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, postDownBlobFile, tableStyle } = useTable(state)
|
||||
|
||||
// 清空搜索条件
|
||||
const resetQuery = () => {
|
||||
@@ -222,7 +222,7 @@ const resetQuery = () => {
|
||||
|
||||
// 导出excel
|
||||
const exportExcel = () => {
|
||||
downBlobFile("/wallet/walletRechargeApply/export", Object.assign(state.queryForm, { ids: selectObjs }), "充值/扣款申请.xlsx")
|
||||
postDownBlobFile("/wallet/wallet-recharge-apply/export", Object.assign(state.queryForm, { ids: selectObjs }), "充值/扣款申请.xlsx")
|
||||
}
|
||||
|
||||
const doApply = async (row: any) => {
|
||||
|
||||
Reference in new issue
Block a user