<template>
  <div class="eibs-tab">
    <!-- <c-col :span="12">
      <el-form-item
        label="Drag  Drop Sender"
        prop="ditamep.recget.sdamod.dadsnd"
      >
        <c-input
          v-model="model.ditamep.recget.sdamod.dadsnd"
          placeholder="请输入Drag  Drop Sender"
        ></c-input>
      </el-form-item>
    </c-col> -->
    <el-row>
      <c-col :span="12">
        <el-form-item label="参考号" prop="didgrp.rec.ownref">
          <c-input
            v-model="model.didgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Reference"
          ></c-input>
        </el-form-item>
      </c-col>

      <!-- <c-col :span="12">
      <el-form-item label="" prop="ditamep.recget.sdamod.seainf">
        <c-input
          v-model="model.ditamep.recget.sdamod.seainf"
          placeholder="请输入参考号"
        ></c-input>
      </el-form-item>
    </c-col> -->

      <c-col :span="12">
        <el-form-item label="摘要" prop="didgrp.rec.nam">
          <c-input
            v-model="model.didgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="8">
        <el-form-item label="修改日期" prop="trnmod.swiadd.amedat">
          <c-date-picker
            type="date"
            v-model="model.trnmod.swiadd.amedat"
            style="width: 100%"
            placeholder="请选择修改日期"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="8">
        <el-form-item label="修改次数" prop="trnmod.swiadd.amenbr">
          <c-input
            v-model="model.trnmod.swiadd.amenbr"
            placeholder="请输入修改次数"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="8">
        <el-form-item label="实际修改次数" prop="ditamep.amenbr">
          <c-input
            v-model="model.ditamep.amenbr"
            placeholder="请输入实际修改次数"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="4">
        <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
          <c-input
            v-model="model.didgrp.cbs.nom1.cur"
            maxlength="3"
            placeholder="请输入Currency"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="" prop="olddidgrp.cbs.nom1.amt" label-width="0px">
          <c-input
            v-model="model.olddidgrp.cbs.nom1.amt"
            placeholder="请输入信用证金额"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="5">
        <el-form-item label="溢短装" prop="olddidgrp.rec.nomtop">
          <c-input
            v-model="model.olddidgrp.rec.nomtop"
            placeholder="请输入Amount Tolerance - Positive"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="3">
        <el-form-item label="" prop="olddidgrp.rec.nomton" label-width="20px">
          <c-input
            v-model="model.olddidgrp.rec.nomton"
            placeholder="请输入Amount Tolerance - Negative"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="最大金额" prop="olddidgrp.cbs.max.cur">
          <c-input
            v-model="model.olddidgrp.cbs.max.cur"
            maxlength="3"
            placeholder="请输入Currency"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="" prop="olddidgrp.cbs.max.amt" label-width="0px">
          <c-input
            v-model="model.olddidgrp.cbs.max.amt"
            placeholder="请输入Balance"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="4">
        <el-form-item label="增减金额" prop="trnmod.swiadd.amecur">
          <c-select
            v-model="model.trnmod.swiadd.amecur"
            style="width: 100%"
            placeholder="请选择增减金额"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="" prop="trnmod.swiadd.ameamt" label-width="0px">
          <c-input
            v-model="model.trnmod.swiadd.ameamt"
            placeholder="请输入增减金额"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="4" :offset="8">
        <el-form-item label="修改总金额" prop="ditamep.engcur">
          <c-select
            v-model="model.ditamep.engcur"
            style="width: 100%"
            placeholder="请选择修改总金额"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="" prop="ditamep.engamt" label-width="0px">
          <c-input
            v-model="model.ditamep.engamt"
            placeholder="请输入修改总金额"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>

    <el-row>
      <c-col :span="4">
        <el-form-item label="修改后金额" prop="trnmod.swiadd.newcur">
          <c-select
            v-model="model.trnmod.swiadd.newcur"
            style="width: 100%"
            placeholder="请选择修改后金额"
          >
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="" prop="trnmod.swiadd.newamt" label-width="0px">
          <c-input
            v-model="model.trnmod.swiadd.newamt"
            placeholder="请输入修改后金额"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="5">
        <el-form-item label="修改后溢短装" prop="trnmod.swiadd.newnomtopame">
          <c-input
            v-model="model.trnmod.swiadd.newnomtopame"
            placeholder="请输入New positive tolerance for GNZ"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="3">
        <el-form-item
          label=""
          prop="trnmod.swiadd.newnomtoname"
          label-width="20px"
        >
          <c-input
            v-model="model.trnmod.swiadd.newnomtoname"
            placeholder="请输入New negative tolerance for GNZ"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="修改后最大金额" prop="ditamep.maxcur">
          <c-input
            v-model="model.ditamep.maxcur"
            maxlength="3"
            placeholder="请输入Currency of Maximum Amount"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="4">
        <el-form-item label="" prop="ditamep.maxamt" label-width="0px">
          <c-input
            v-model="model.ditamep.maxamt"
            placeholder="请输入New Maximum Amount"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="12">
        <el-form-item label="到期日" prop="olddidgrp.rec.expdat">
          <c-date-picker
            type="date"
            v-model="model.olddidgrp.rec.expdat"
            style="width: 100%"
            placeholder="请选择到期日"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="12">
      <span v-text="model.ditamep.zchday" data-path=".ditamep.zchday"> </span>
    </c-col> -->
      <c-col :span="12">
        <el-form-item label="最迟服务提供日" prop="olddidgrp.rec.shpdat">
          <c-date-picker
            type="date"
            v-model="model.olddidgrp.rec.shpdat"
            style="width: 100%"
            placeholder="请选择Shipment Date"
          ></c-date-picker>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="12">
        <el-form-item label="新到期日" prop="trnmod.swiadd.newexpdat">
          <c-date-picker
            type="date"
            v-model="model.trnmod.swiadd.newexpdat"
            style="width: 100%"
            placeholder="请选择新到期日"
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="12">
        <span v-text="model.ditamep.newday" data-path=".ditamep.newday"> </span>
      </c-col> -->

      <c-col :span="12">
        <el-form-item label="新最迟服务提供日" prop="trnmod.swiadd.newshpdat">
          <c-date-picker
            type="date"
            v-model="model.trnmod.swiadd.newshpdat"
            style="width: 100%"
            placeholder="请选择New Shipmentdate"
          ></c-date-picker>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <!-- <c-col :span="12">
        <span v-text="model.ditamep.hwzydi" data-path=".ditamep.hwzydi"> </span>
      </c-col> -->
      <c-col :span="12">
        <el-form-item label="货物装运地(港)" prop="trnmod.swiadd.shpfroelc">
          <c-input
            type="textarea"
            v-model="model.trnmod.swiadd.shpfroelc"
            maxlength="35"
            show-word-limit
            placeholder="请输入Shipment from"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="报文类型" prop="ditamep.msgtyp">
          <c-select
            v-model="model.ditamep.msgtyp"
            style="width: 100%"
            placeholder="请选择报文类型"
          >
          </c-select>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <!-- <c-col :span="12">
      <span v-text="model.ditamep.ramrollab" data-path=".ditamep.ramrollab">
      </span>
    </c-col> -->
      <c-col :span="12">
        <el-form-item
          label="货物目的地/交货地(港)"
          prop="trnmod.swiadd.shptoelc"
        >
          <c-input
            type="textarea"
            v-model="model.trnmod.swiadd.shptoelc"
            maxlength="35"
            show-word-limit
            placeholder="请输入货物目的地/交货地(港)"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <!-- <c-col :span="12">
      <el-form-item label="Request of Amendment send to" prop="ditamep.ramrol">
        <c-select
          v-model="model.ditamep.ramrol"
          style="width: 100%"
          placeholder="请选择Request of Amendment send to"
        >
        </c-select>
      </el-form-item>
    </c-col>

    <c-col :span="12">
      <c-checkbox v-model="model.ditamep.cre707flg"
        >Create Amendment Message</c-checkbox
      >
    </c-col> -->
  </div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditdla/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [CommonProcess],
  data() {
    return {};
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
