| | |
| | | <pagination :total="total" layout="total, sizes, prev, pager, next, jumper" |
| | | :page="page.current" :limit="page.size" @pagination="paginationChange" /> |
| | | </div> |
| | | <Modal ref="modalRef" @success="handleQuery"></Modal> |
| | | <files-dia ref="filesDia"></files-dia> |
| | | <!-- <Modal ref="modalRef" @success="handleQuery"></Modal> --> |
| | | <!-- <files-dia ref="filesDia"></files-dia> --> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, onMounted, reactive, toRefs, nextTick, getCurrentInstance } from 'vue' |
| | | import dayjs from "dayjs"; |
| | | import Modal from "./Modal.vue"; |
| | | import FilesDia from "./filesDia.vue"; |
| | | // import Modal from "./Modal.vue"; |
| | | // import FilesDia from "./filesDia.vue"; |
| | | import Pagination from "@/components/Pagination/index.vue"; |
| | | import {lavorIssueListPage, deleteLedger, update} from "@/api/lavorissce/ledger.js"; |
| | | import {listPage, deleteLedger, update} from "@/api/lavorissce/ledger.js"; |
| | | import {ElMessageBox, ElMessage} from "element-plus"; |
| | | const { proxy } = getCurrentInstance(); |
| | | import { getCurrentMonth } from "@/utils/util" |
| | |
| | | const { searchForm } = toRefs(data); |
| | | |
| | | const modalRef = ref(); |
| | | const filesDia = ref(); |
| | | // const filesDia = ref(); |
| | | const multipleList = ref([]); |
| | | const jidu = ref([ |
| | | { |
| | |
| | | const getList = async () => { |
| | | tableLoading.value = true; |
| | | const params = { ...searchForm.value, ...page.value }; |
| | | lavorIssueListPage(params).then(res => { |
| | | listPage(params).then(res => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records; |
| | | total.value = res.data.total; |
| | |
| | | }) |
| | | } |
| | | // 打开附件弹框 |
| | | const openFilesFormDia = (row) => { |
| | | nextTick(() => { |
| | | filesDia.value?.openDialog( row,'收入') |
| | | }) |
| | | }; |
| | | // const openFilesFormDia = (row) => { |
| | | // nextTick(() => { |
| | | // filesDia.value?.openDialog( row,'收入') |
| | | // }) |
| | | // }; |
| | | // 事件处理函数 |
| | | const handleSelectionChange = (selection) => { |
| | | multipleList.value = selection; |