<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="createdby">
            <a-input v-model="form.createdby" placeholder="请输入开箱员"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="品名" prop="cargoname">
            <a-input v-model="form.cargoname" placeholder="请输入品名"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="数量" prop="count">
            <a-input-number v-model="form.count" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="单位" prop="unit">
            <a-input v-model="form.unit" placeholder="请输入单位"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="开包登记结果" prop="result">
            <a-input v-model="form.result" 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 VInternationalUnpackingAddForm from './VInternationalUnpackingForm'
export default {
  ...VInternationalUnpackingAddForm
}
</script>
