| | |
| | | import PageHeader from "@/components/PageHeader.vue"; |
| | | import FooterButtons from "@/components/FooterButtons.vue"; |
| | | import { getApprovalTemplateDetail } from "@/api/oa/approvalTemplate.js"; |
| | | import { getFieldEditorTypeLabel } from "../../_utils/approvalFormField.js"; |
| | | import { |
| | | buildTypeLabelMap, |
| | | fetchApprovalTemplateTypes, |
| | |
| | | |
| | | const EDIT_STORAGE_KEY = "oa_approve_template_edit_row"; |
| | | const LEVEL_TEXT = ["", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"]; |
| | | |
| | | const FIELD_TYPE_MAP = { |
| | | text: "单行文本", |
| | | textarea: "多行文本", |
| | | number: "数字", |
| | | date: "日期", |
| | | }; |
| | | |
| | | const templateId = ref(""); |
| | | const detail = ref(null); |
| | |
| | | return ""; |
| | | }; |
| | | |
| | | const fieldTypeLabel = type => FIELD_TYPE_MAP[type] || type || "-"; |
| | | const fieldTypeLabel = type => getFieldEditorTypeLabel(type); |
| | | |
| | | const approveTypeText = type => (type === "OR" ? "或签" : "会签"); |
| | | |