Rzsq.vue 2.55 KB
<template>
  <div class="eibs-tab">
    <!-- ======================= 左边 ========================= -->
    <c-col :span="12" style="padding-right: 20px">
      <c-col :span="24">
        <el-form-item label="外管局融资编号" prop="recgrp.rec.wgrref">
          <c-input disabled v-model="model.recgrp.rec.wgrref" maxlength="22" placeholder="请输入外管局融资编号"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <c-col :span="12">
          <el-form-item label="融资申请金额" prop="recgrp.rec.cur">
            <c-select disabled v-model="model.recgrp.rec.cur" style="width: 100%" placeholder="币种" dbCode="curtxt">
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item style="text-align: left; margin-left: 5px" label-width="0px" prop="recgrp.rec.amt">
            <c-input-currency v-model="model.recgrp.rec.amt" :currency="model.recgrp.rec.cur" style="text-align: left; width: 100%" placeholder="请输入融资申请金额"></c-input-currency>
          </el-form-item>
        </c-col>
      </c-col>

    </c-col>
    <!-- ======================右边====================== -->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24">
        <el-form-item label="经办机构号" prop="recgrp.rec.bchcod">
          <c-input disabled v-model="model.recgrp.rec.bchcod" maxlength="8" placeholder="请输入经办机构号"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="归属机构号" prop="recgrp.rec.ownbchcod">
          <c-select v-model="model.recgrp.rec.ownbchcod" style="width:100%" placeholder="请选择归属机构号" filterable :isShowKeyAndLabel="true">
            <el-option v-for="item in wrkbchlist" :key="item.branch" :label="item.bchname" :value="item.branch">
              <span style="float: left">{{ item.branch }} - {{ item.bchname }}</span>
            </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 {
      wrkbchlist: []
    };
  },
  methods: {
    getWrkBchlist(branch) {
      this.getBchcodlist({ branch: branch }).then(res => {
        if (res.respCode == SUCCESS) {
          const list = res.data;
          this.wrkbchlist = list;
        }
      });
    }
  },
  mounted() {
    this.getWrkBchlist(this.model.recgrp.rec.bchcod);
  }
};
</script>
<style>
</style>