<template>
  <div class="eibs-tab">
    <c-col :span="12" style="padding-right: 20px;">
      <c-col :span="24">
        <el-form-item label="借记记账账号" prop="cipmodVo.dafnzh">
          <c-input v-model="model.cipmodVo.dafnzh" disabled maxlength="34" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="端到端标识号" prop="cipmodVo.dddbsh">
          <c-input v-model="model.cipmodVo.dddbsh" disabled maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-ptap-bnk :model="model"
        :mainInfo="{ moduleKey: 'cipmodVo', keyLabel: '中介机构1行号', keyProp: 'zjg1hh', otherLabel: '中介机构1名称', otherProp: 'zjg1mc', cyzgbs:'IDPT',banktyp:'N'}">
      </c-ptap-bnk>

      <c-ptap-bnk :model="model"
        :mainInfo="{ moduleKey: 'cipmodVo', keyLabel: '收款行开户行行号', keyProp: 'pyebchkey', otherLabel: '收款行开户行名称\收款非银行支付机构名称', otherProp: 'pyebchnam', cyzgbs:'IDPT',banktyp:'N'}">
      </c-ptap-bnk>

      <c-ptap-bnk :model="model"
        :mainInfo="{ moduleKey: 'cipmodVo', keyLabel: '付款行开户行行号', keyProp: 'fkrkhh', otherLabel: '付款行开户行名称\付款非银行支付机构名称', otherProp: 'fukrhm', cyzgbs:'IDPT',banktyp:'N'}">
      </c-ptap-bnk>

      <c-ptap-bnk :model="model"
        :mainInfo="{ moduleKey: 'cipmodVo', keyLabel: '收款间接参与者行号', keyProp: 'recsehbch', otherLabel: '收款间接参与者名称', otherProp: 'recsehbchnam', cyzgbs:'IDPT',banktyp:'Y'}">
      </c-ptap-bnk>

      <c-col :span="24">
        <el-form-item label="付款直接参与者行号" prop="cipmodVo.staonebch">
          <c-input v-model="model.cipmodVo.staonebch" maxlength="35" disabled placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款直接参与者名称" prop="cipmodVo.staonebchnam">
          <c-input type="textarea" disabled v-model="model.cipmodVo.staonebchnam" maxlength="100" show-word-limit
            placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款间接参与者行号" prop="cipmodVo.stasehbch">
          <c-input v-model="model.cipmodVo.stasehbch" disabled maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款间接参与者名称" prop="cipmodVo.stasehbchnam">
          <c-input v-model="model.cipmodVo.stasehbchnam" disabled maxlength="100" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款行行号" prop="cipmodVo.fkhkhh">
          <c-input v-model="model.cipmodVo.fkhkhh" disabled maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款行行名" prop="cipmodVo.fkkhmc">
          <c-input type="textarea" v-model="model.cipmodVo.fkkhmc" disabled maxlength="35" show-word-limit
            placeholder="">
          </c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="付款行地址" prop="cipmodVo.fkhdzh">
          <c-input type="textarea" v-model="model.cipmodVo.fkhdzh" maxlength="35" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款行账号" prop="cipmodVo.fkkhzh">
          <c-input v-model="model.cipmodVo.fkkhzh" disabled maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="订单编号" prop="cipmodVo.ddbhao">
          <c-input v-model="model.cipmodVo.ddbhao" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="订单描述" prop="cipmodVo.ddmisu">
          <c-input type="textarea" v-model="model.cipmodVo.ddmisu" maxlength="100" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="24">
        <el-form-item label="借记记账名称" prop="cipmodVo.dafnmc">
          <c-input type="textarea" disabled v-model="model.cipmodVo.dafnmc" maxlength="35" show-word-limit
            placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-ptap-bnk :model="model"
          :mainInfo="{ moduleKey: 'cipmodVo', keyLabel: '中介机构2行号', keyProp: 'zjg2hh', otherLabel: '中介机构2名称', otherProp: 'zjg2mc', cyzgbs:'IDPT',banktyp:'N'}">
        </c-ptap-bnk>
      </c-col>
      <c-col :span="24">
        <el-form-item label="致收款人银行附言1" prop="cipmodVo.fuyns1">
          <c-input type="textarea" v-model="model.cipmodVo.fuyns1" show-word-limit maxlength="140" placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="致收款人银行附言2" prop="cipmodVo.fuyns2">
          <c-input type="textarea" v-model="model.cipmodVo.fuyns2" maxlength="140" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="致收款人银行附言3" prop="cipmodVo.fuyns3">
          <c-input type="textarea" v-model="model.cipmodVo.fuyns3" maxlength="140" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="致收款人银行附言4" prop="cipmodVo.fuyns4">
          <c-input type="textarea" v-model="model.cipmodVo.fuyns4" maxlength="140" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>

      <c-ptap-bnk :model="model"
        :mainInfo="{ moduleKey: 'cipmodVo', keyLabel: '收款行行号', keyProp: 'skkhhh', otherLabel: '收款行行名', otherProp: 'skkhhm', cyzgbs:'IDPT',banktyp:'N'}">
      </c-ptap-bnk>

      <c-col :span="24">
        <el-form-item label="收款行地址" prop="cipmodVo.skkhdz">
          <c-input type="textarea" v-model="model.cipmodVo.skkhdz" maxlength="35" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款行账号" prop="cipmodVo.skkhzh">
          <c-input v-model="model.cipmodVo.skkhzh" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>

      <c-ptap-bnk :model="model"
        :mainInfo="{ moduleKey: 'cipmodVo', keyLabel: '收款直接参与者行号', keyProp: 'reconebch', otherLabel: '收款直接参与者名称', otherProp: 'reconebchnam', cyzgbs:'DRPT',banktyp:'Y'}">
      </c-ptap-bnk>

      <c-col :span="24">
        <el-form-item label="附言" prop="cipmodVo.commen">
          <c-input type="textarea" v-model="model.cipmodVo.commen" rows="2" maxlength="135" show-word-limit
            placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="附言2" prop="cipmodVo.fuynh2">
          <c-input type="textarea" v-model="model.cipmodVo.fuynh2" maxlength="280" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="附言3" prop="cipmodVo.fuynh3">
          <c-input type="textarea" v-model="model.cipmodVo.fuynh3" maxlength="280" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="附言4" prop="cipmodVo.fuynh4">
          <c-input type="textarea" v-model="model.cipmodVo.fuynh4" maxlength="280" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="业务种类" prop="cipmodVo.bustyp">
          <c-select v-model="model.cipmodVo.bustyp" style="width: 100%" placeholder="">
            <el-option v-for="item in bustypList" :key="item.cod" :label="item.txt" :value="item.cod">
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
  </div>
</template>
<script>
  import event from "../event";

  export default {
    inject: ["root"],
    props: ["model", "codes"],
    mixins: [event],
    data() {
      return {
        bnktyp: ''
      };
    },
    methods: {
      showPtapDialog() {

      }
    },
    computed: {
      bustypList() {
        let bustypList = [];
        let CMTFLG = this.model.cmtflg;
        let SWFTYP = this.model.swftyp;

        //业务种类bustyp
        if (CMTFLG === "P" && SWFTYP === "CIV") {
          bustypList.push({ "cod": "GODX", "txt": "GODX-货物贸易" });
          bustypList.push({ "cod": "STRX", "txt": "STRX-服务贸易" });
          bustypList.push({ "cod": "CTFX", "txt": "CTFX-资本项下" });

          bustypList.push({ "cod": "FTFX", "txt": "FTFX-金融机构头寸调拨" });
          bustypList.push({ "cod": "BDES", "txt": "BDES-债券还本付息" });
          bustypList.push({ "cod": "BPRR", "txt": "BPRR-债券还本金" });
          bustypList.push({ "cod": "BINP", "txt": "BINP-债券付息" });
          bustypList.push({ "cod": "BISF", "txt": "BISF-债券发行手续费" });
          bustypList.push({ "cod": "BCAF", "txt": "BCAF-债券兑付手续费" });
          bustypList.push({ "cod": "CBCF", "txt": "CBCF-附息式债券兑付手续费" });
          bustypList.push({ "cod": "OTFX", "txt": "OTFX-其他" });

        }

        return bustypList;
      }
    },
    created() { },
  };
</script>
<style>
</style>