| | |
| | | validateTemplateBinding, |
| | | } from "../approve-shared/approvalTemplateBindingUtils.js"; |
| | | import { |
| | | APPROVAL_STATUS_SEARCH_OPTIONS, |
| | | APPROVAL_TYPE_OPTIONS, |
| | | approvalStatusLabel, |
| | | approvalStatusTagType, |
| | |
| | | const userStore = useUserStore(); |
| | | |
| | | const tableData = ref([]); |
| | | const searchBusinessTypeOptions = ref([]); |
| | | const submitBusinessTypeOptions = ref([]); |
| | | const allSubmitTemplates = ref([]); |
| | | const selectedBusinessType = ref(""); |
| | |
| | | }); |
| | | |
| | | const searchForm = reactive({ |
| | | approvalType: "", |
| | | applicantKeyword: "", |
| | | businessType: "", |
| | | status: "", |
| | | createTimeRange: [], |
| | | }); |
| | | |
| | |
| | | const tableColumn = ref([ |
| | | { label: "申请人编号", prop: "applicantNo", width: 110 }, |
| | | { label: "申请人名称", prop: "applicantName", minWidth: 100 }, |
| | | { label: "业务类型", prop: "businessName", minWidth: 120 }, |
| | | { label: "模板类型", prop: "businessName", minWidth: 120 }, |
| | | { |
| | | label: "审批类型", |
| | | prop: "approvalType", |
| | |
| | | } |
| | | |
| | | function resetSearch() { |
| | | searchForm.approvalType = ""; |
| | | searchForm.applicantKeyword = ""; |
| | | searchForm.businessType = ""; |
| | | searchForm.status = ""; |
| | | searchForm.createTimeRange = []; |
| | | handleQuery(); |
| | | } |
| | | |
| | | async function loadSearchBusinessTypeOptions() { |
| | | try { |
| | | searchBusinessTypeOptions.value = await fetchBusinessTypeOptions(); |
| | | } catch { |
| | | searchBusinessTypeOptions.value = []; |
| | | } |
| | | } |
| | | |
| | | function pagination({ page: p, limit }) { |
| | |
| | | return { |
| | | Search, |
| | | APPROVAL_TYPE_OPTIONS, |
| | | APPROVAL_STATUS_SEARCH_OPTIONS, |
| | | searchBusinessTypeOptions, |
| | | loadSearchBusinessTypeOptions, |
| | | approvalTypeLabel, |
| | | approvalStatusLabel, |
| | | approvalStatusTagType, |