<template>
  <ant-modal
    modalWidth="576"
    modalHeight="500"
    :visible="open"
    :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="12">
          <a-form-model-item label="码头序号" prop="wharfOrder">
            <a-input-number v-model="form.wharfOrder" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="码头名称" prop="wharfNanme">
            <a-input v-model="form.wharfNanme" placeholder="请输入码头名称"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="当前维度" prop="lat">
            <a-input v-model="form.lat" placeholder="请输入当前维度"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="当前维度" prop="lng">
            <a-input v-model="form.lng" placeholder="请输入当前维度"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12" >
          <a-form-model-item label="码头状态" prop="status">
            <a-radio-group v-model="form.status">
              <a-radio
                v-for="(dict, index) in statusOptions"
                :key="index"
                :value="dict.dictValue"
              >
                {{ dict.dictLabel }}
              </a-radio>
            </a-radio-group>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import SysWharfAddForm from './SysWharfForm'
export default {
  ...SysWharfAddForm
}
</script>
