|
@@ -3,13 +3,10 @@ import { ref } from "vue";
|
|
import { utils, writeFile } from "xlsx";
|
|
import { utils, writeFile } from "xlsx";
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
import { PageSearch, usePageSearch } from "/@/components/PageSearch";
|
|
import { PageSearch, usePageSearch } from "/@/components/PageSearch";
|
|
-import { PageModal, usePageModal } from "/@/components/PageModal";
|
|
|
|
import { PageContent } from "/@/components/PageContent";
|
|
import { PageContent } from "/@/components/PageContent";
|
|
import ExeclUpload from "./components/execl-upload.vue";
|
|
import ExeclUpload from "./components/execl-upload.vue";
|
|
import searchFormConfig from "./config/search.config";
|
|
import searchFormConfig from "./config/search.config";
|
|
import contentConfig from "./config/content.config";
|
|
import contentConfig from "./config/content.config";
|
|
-import modalConfig from "./config/modal.config";
|
|
|
|
-import { useRenderIcon } from "/@/components/ReIcon/src/hooks";
|
|
|
|
|
|
|
|
defineOptions({
|
|
defineOptions({
|
|
name: "invoiceheader"
|
|
name: "invoiceheader"
|
|
@@ -33,15 +30,6 @@ const { pageContentRef, handleResetClick, handleSearchClick } = usePageSearch(
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|
|
-const {
|
|
|
|
- pageModalRef,
|
|
|
|
- handleUpdateData,
|
|
|
|
- handleCreateData,
|
|
|
|
- handlePreviewData,
|
|
|
|
- handleConfrim,
|
|
|
|
- defaultInfo
|
|
|
|
-} = usePageModal({ pageContentRef });
|
|
|
|
-
|
|
|
|
//导出模板
|
|
//导出模板
|
|
function onDownloadTemplate() {
|
|
function onDownloadTemplate() {
|
|
const { columns } = contentConfig;
|
|
const { columns } = contentConfig;
|
|
@@ -91,28 +79,7 @@ function toFundClaim(tradNo) {
|
|
<PageContent
|
|
<PageContent
|
|
ref="pageContentRef"
|
|
ref="pageContentRef"
|
|
:content-config="contentConfig"
|
|
:content-config="contentConfig"
|
|
- @create-btn-click="handleCreateData"
|
|
|
|
- @update-btn-click="handleUpdateData"
|
|
|
|
- @preview-btn-click="handlePreviewData"
|
|
|
|
- >
|
|
|
|
- <template #custom="{ tradNo }">
|
|
|
|
- <el-tooltip content="资金认领" placement="top">
|
|
|
|
- <el-button
|
|
|
|
- class="reset-margin"
|
|
|
|
- link
|
|
|
|
- type="primary"
|
|
|
|
- @click="toFundClaim(tradNo)"
|
|
|
|
- :icon="useRenderIcon('eye-view')"
|
|
|
|
- />
|
|
|
|
- </el-tooltip>
|
|
|
|
- </template>
|
|
|
|
- </PageContent>
|
|
|
|
-
|
|
|
|
- <PageModal
|
|
|
|
- ref="pageModalRef"
|
|
|
|
- :modal-config="modalConfig"
|
|
|
|
- :default-info="defaultInfo"
|
|
|
|
- @confirm-btn-click="handleConfrim"
|
|
|
|
|
|
+ @preview-btn-click="({ tradNo }) => toFundClaim(tradNo)"
|
|
/>
|
|
/>
|
|
|
|
|
|
<ExeclUpload ref="execlUploadRef" />
|
|
<ExeclUpload ref="execlUploadRef" />
|