<script setup lang="ts">
import { useDetail } from "/@/hooks/core/useDetail"
import BaseForm from "./components/BaseForm/index.vue"


import { 
  ElCollapseItem, 
  ElCollapse, 
  ElTabPane, 
  ElTabs 
} from "element-plus"


const { id, isDetail, title, collapses } = useDetail({ baseName: '计提明细处理', collapseLen: 2 });


const rules = {
  isToAdjust: [{ required: true, message: '请选择是否添加至调整单', trigger: 'change' }],
  amount: [{ required: true, message: '请输入调整金额', trigger: 'change' }]
}



</script>

<template>
  <div class="padding__container">
    <ElTabs>
      <ElTabPane :label="title">
        <ElCollapse v-model="collapses">
          <ElCollapseItem :title="title" name="1">
              <BaseForm />
          </ElCollapseItem>
        </ElCollapse>
      </ElTabPane>
    </ElTabs>
  </div>
</template>
