<template>
  <a-modal
    v-model:visible="visible"
    :title="props.editId ? '编辑' : '新增'"
    @ok="handleOk"
    @cancel="handleCancel"
    class="myModal"
  >
    <a-form
      :model="formData"
      :label-col="{ span: 6 }"
      :wrapper-col="{ span: 14 }"
      autocomplete="off"
      ref="formRef"
      :rules="rulesRef"
    >
      <a-form-item label="产品线" name="name">
        <a-input v-model:value="formData.name" />
      </a-form-item>
      <a-form-item label="商品" name="name">
        <a-input v-model:value="formData.name" />
      </a-form-item>
      <a-form-item label="折扣时间期限" name="name">
        <a-input v-model:value="formData.name" />
      </a-form-item>
      <a-form-item label="折扣设置" name="name">
        <a-input v-model:value="formData.name" />
      </a-form-item>
      <a-form-item label="状态" name="name">
        <a-input v-model:value="formData.name" />
      </a-form-item>
    </a-form>
  </a-modal>
</template>

<script lang="ts" setup>
  import { defineComponent } from 'vue';
</script>

<style lang="less" scoped></style>
