<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="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-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 TCasebaseAwbAddForm from './TCasebaseAwbForm'
export default {
  ...TCasebaseAwbAddForm
}
</script>
