<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :visible="true"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="24">
          <a-form-model-item label="货品关键词" prop="keywords">
            <a-input v-model="form.keywords" placeholder="请输入关键词"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="24" >
          <a-form-model-item label="特货代码" prop="specialCode">
            <a-select placeholder="特货代码" v-model="form.specialCode" style="width: 100%" allow-clear>
              <a-select-option v-for="(d, index) in thdmOptions" :key="index" :value="d.dictValue">{{ d.dictLabel }}</a-select-option>
            </a-select>
          </a-form-model-item>
        </a-col>
        <!-- <a-col :span="24" >
          <a-form-model-item label="状态" prop="status">
            <a-radio-group v-model="form.status" button-style="solid">
              <a-radio-button
                v-for="(dict, index) in statusOptions"
                :key="index"
                :value="dict.dictValue"
              >
                {{ dict.dictLabel }}
              </a-radio-button>
            </a-radio-group>
          </a-form-model-item>
        </a-col> -->
        <a-col :span="24">
          <a-form-model-item label="备注" prop="remark">
            <a-textarea v-model="form.remark" placeholder="请输入备注" :rows="4"/>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel">
        取消
      </a-button>
      <a-button type="primary" @click="submitForm">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import CargoDetailAddForm from './CargoDetailForm'
export default {
  ...CargoDetailAddForm
}
</script>
