<template>
  <a-drawer
    width="45%"
    :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="awbno">
            <a-input v-model="form.awbno" placeholder="请输入申报单号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="货物编号" prop="cargonumber">
            <a-input v-model="form.cargonumber" 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="securityName" prop="securityname">
            <a-input v-model="form.securityname" placeholder="请输入securityName"/>
          </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-row>
      </a-spin>
       <div class="bottom-control">
              <a-space>
              <a-button @click="cancel">
                  取消
              </a-button>
              <a-button type="primary" @click="submitForm">
                  保存
              </a-button>
              </a-space>
       </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import VCsisBusinessRecordEditForm from './VCsisBusinessRecordForm'
export default {
  ...VCsisBusinessRecordEditForm
}
</script>
