<template>
  <DocumentFormShell
    class="warehouse-document-form"
    :title="title"
    :document-no="documentNo"
    :business-date="businessDate"
    :tone="tone"
    :company-name="companyName"
    meta-label="仓库联单"
    :signature-labels="signatureLabels"
    @submit="emit('submit')"
  >
    <slot />
  </DocumentFormShell>
</template>

<script setup>
import DocumentFormShell from "./DocumentFormShell.vue";

defineProps({
  title: {
    type: String,
    required: true
  },
  documentNo: {
    type: String,
    default: ""
  },
  businessDate: {
    type: [String, Date],
    default: ""
  },
  tone: {
    type: String,
    default: "green"
  },
  companyName: {
    type: String,
    default: "嘉恒仓库"
  },
  signatureLabels: {
    type: Array,
    default: () => ["制单", "审核", "仓库", "财务"]
  }
});

const emit = defineEmits(["submit"]);
</script>
