<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-col :span="24">
        <el-form-item label="中介机构1行号" prop="cipmodVo.zjg1hh">
          <c-input v-model="model.cipmodVo.zjg1hh" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="中介机构1名称" prop="cipmodVo.zjg1mc">
          <c-input type="textarea" v-model="model.cipmodVo.zjg1mc" maxlength="35" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款人开户行行号" prop="cipmodVo.pyebchkey">
          <c-input v-model="model.cipmodVo.pyebchkey" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款人开户行名称\收款非银行支付机构名称" prop="cipmodVo.pyebchnam">
          <c-input type="textarea" v-model="model.cipmodVo.pyebchnam" maxlength="70" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="付款人开户行行号" prop="cipmodVo.fkrkhh">
          <c-input v-model="model.cipmodVo.fkrkhh" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="付款人开户行名称\付款非银行支付机构名称" prop="cipmodVo.fukrhm">
          <c-input type="textarea" v-model="model.cipmodVo.fukrhm" maxlength="70" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款间接参与者行号" prop="cipmodVo.recsehbch">
          <c-input v-model="model.cipmodVo.recsehbch" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款间接参与者名称" prop="cipmodVo.recsehbchnam">
          <c-input type="textarea" v-model="model.cipmodVo.recsehbchnam" maxlength="100" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <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="附言2" prop="cipmodVo.fuynh2">
          <c-input type="textarea" v-model="model.cipmodVo.fuynh2" maxlength="35" 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="35" 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.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 :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">
        <el-form-item label="中介机构2行号" prop="cipmodVo.zjg2hh">
          <c-input v-model="model.cipmodVo.zjg2hh" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="中介机构2名称" prop="cipmodVo.zjg2mc">
          <c-input type="textarea" v-model="model.cipmodVo.zjg2mc" maxlength="35" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="致收款人银行附言1" prop="cipmodVo.fuyns1">
          <c-input type="textarea" v-model="model.cipmodVo.fuyns1" maxlength="35" show-word-limit 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="35" 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="35" 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="35" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款行行号" prop="cipmodVo.skkhhh">
          <c-input v-model="model.cipmodVo.skkhhh" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款行行名" prop="cipmodVo.skkhhm">
          <c-input type="textarea" v-model="model.cipmodVo.skkhhm" maxlength="35" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>

      <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-col :span="24">
        <el-form-item label="附言3" prop="cipmodVo.fuynh3">
          <c-input type="textarea" v-model="model.cipmodVo.fuynh3" maxlength="35" show-word-limit placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <!-- <c-col :span="24">
        <el-form-item label="">
          <c-checkbox v-model="model.cipmodVo.covflg" @change="resetCipmod" class="checkbox-left" true-label='X'
            false-label=''>112cov
          </c-checkbox>
        </el-form-item>
      </c-col> -->
      <c-col :span="24">
        <el-form-item label="收款直接参与者行号" prop="reconebch">
          <c-input v-model="model.cipmodVo.reconebch" maxlength="35" placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="收款直接参与者名称" prop="reconebchnam">
          <c-input type="textarea" v-model="model.cipmodVo.reconebchnam" rows="3" maxlength="35" show-word-limit
            placeholder=""></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="附言" prop="commen">
          <c-input type="textarea" v-model="model.cipmodVo.commen" rows="2" maxlength="30" show-word-limit
            placeholder="">
          </c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="业务种类" prop="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 {};
    },
    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>