<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :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="mwbno">
            <a-input v-model="form.mwbno" placeholder="请输入航空主运单编号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="航空分运单编号" prop="hwbno">
            <a-input v-model="form.hwbno" placeholder="请输入航空分运单编号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="安检通道编码" prop="checkpoint">
            <a-input v-model="form.checkpoint" placeholder="请输入安检通道编码"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="安检开始时间/货物扫码时间" prop="starttime">
            <a-date-picker
              v-model="form.starttime"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="安检结束时间" prop="endtime">
            <a-date-picker
              v-model="form.endtime"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="安检件数" prop="securitypcs">
            <a-input-number v-model="form.securitypcs" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="判图员" prop="securityname">
            <a-input v-model="form.securityname" placeholder="请输入判图员"/>
          </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 VInternationalRecordAddForm from './VInternationalRecordForm'
export default {
  ...VInternationalRecordAddForm
}
</script>
