| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, onMounted } from 'vue' |
| | | import { ref, onMounted, reactive, toRefs, nextTick, getCurrentInstance } from 'vue' |
| | | import dayjs from "dayjs"; |
| | | import Modal from "./Modal.vue"; |
| | | import FilesDia from "./filesDia.vue"; |
| | | import {lavorIssueListPage} from "@/api/lavorissce/ledger.js"; |
| | | import {ElMessageBox} from "element-plus"; |
| | | import Pagination from "@/components/Pagination/index.vue"; |
| | | import {lavorIssueListPage, deleteLedger, update} from "@/api/lavorissce/ledger.js"; |
| | | import {ElMessageBox, ElMessage} from "element-plus"; |
| | | const { proxy } = getCurrentInstance(); |
| | | import { getCurrentMonth } from "@/utils/util" |
| | | |
| | | const page = ref({ |
| | | current: 1, |
| | |
| | | const { sys_lavor_issue } = proxy.useDict("sys_lavor_issue") |
| | | const data = reactive({ |
| | | searchForm: { |
| | | feedbackDate: "", |
| | | disDate: "", |
| | | season: "", |
| | | staffName: "", |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | | |
| | | const modalRef = ref(); |
| | | const filesDia = ref(); |
| | | const { searchForm } = toRefs(data); |
| | | const multipleList = ref([]); |
| | | const jidu = ref([ |
| | | { |
| | |
| | | |
| | | /** 搜索按钮操作 */ |
| | | const handleQuery = () => { |
| | | page.current = 1; |
| | | page.value.current = 1; |
| | | getList(); |
| | | }; |
| | | // 获取字典数据 |
| | | const getList = async () => { |
| | | tableLoading.value = true; |
| | | lavorIssueListPage().then(res => { |
| | | const params = { ...searchForm.value, ...page.value }; |
| | | lavorIssueListPage(params).then(res => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records; |
| | | page.total = res.data.total; |
| | | total.value = res.data.total; |
| | | }).catch(err => { |
| | | tableLoading.value = false; |
| | | }) |
| | |
| | | type: "success", |
| | | message: "删除成功", |
| | | }); |
| | | getTableData(); |
| | | getList(); |
| | | } |
| | | }); |
| | | }; |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | proxy.download(`/lavorIssue/exportCopy`, {season: filters.season}, "劳保台账.xlsx"); |
| | | proxy.download(`/lavorIssue/exportCopy`, {season: searchForm.value.season}, "劳保台账.xlsx"); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |
| | | ElMessage.info("已取消"); |
| | | }); |
| | | }; |
| | | const adopted = (row) => { |
| | |
| | | type: "success", |
| | | message: "领用成功", |
| | | }); |
| | | getTableData(); |
| | | getList(); |
| | | } |
| | | }) |
| | | } |
| | |
| | | multipleList.value = selection; |
| | | } |
| | | |
| | | const paginationChange = (size) => { |
| | | console.log(size) |
| | | |
| | | const paginationChange = (pagination) => { |
| | | page.value.current = pagination.page; |
| | | page.value.size = pagination.limit; |
| | | getList(); |
| | | } |
| | | |
| | | // 组件挂载时加载字典数据 |