<template>
  <a-drawer
    width="576"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{height:'calc(100vh - 100px)',overflow:'auto'}"
    @close="cancel">
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <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-spin>
      <div class="bottom-control">
        <a-space>
          <a-button :disabled="disabled" @click="cancel">
            取消
          </a-button>
          <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
            保存
          </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import SysWharfEditForm from './SysWharfForm'
export default {
  ...SysWharfEditForm
}
</script>
