<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="casebaseno">
            <a-input-number v-model="form.casebaseno" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
        <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="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="cargodesc">
            <a-textarea v-model="form.cargodesc" placeholder="请输入品名描述" :rows="4"/>
          </a-form-model-item>
        </a-col>
    </a-row>
    <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="航班号" prop="flightno">
            <a-input v-model="form.flightno" placeholder="请输入航班号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="航班开始日期" prop="flightdate">
            <a-date-picker
              v-model="form.flightdate"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="运单创建时间" prop="awbcreatetime">
            <a-input v-model="form.awbcreatetime" placeholder="请输入运单创建时间"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="分析时间" prop="analysistime">
            <a-date-picker
              v-model="form.analysistime"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
            />
          </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 TCasebaseAwbEditForm from './TCasebaseAwbForm'
export default {
  ...TCasebaseAwbEditForm
}
</script>
