Opnp.vue 2.83 KB
Newer Older
Wuyuqiu committed
1
<template>
Wuyuqiu committed
2 3 4 5 6 7 8 9 10 11 12 13 14
  <div class="eibs">
    <c-col :span="12" style="padding-right: 20px;">
      <c-col :span="24">
        <el-form-item label="是否SWIFT格式" prop="gitp.swiftflg">
          <c-select
            v-model="model.gitp.swiftflg"
            style="width: 100%"
            placeholder="请选择是否SWIFT格式"
            :code="codes.swiftflg"
            @change="eventFunction('gitp.swiftflg')"
            disabled
          >
          </c-select>
Wuyuqiu committed
15
        </el-form-item>
Wuyuqiu committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
      </c-col>

      <c-col :span="24">
        <c-col :span="model.gidgrp.cbs.max.cur == 'CNY'? 20 : 24">
          <el-form-item label="对外担保类型" prop="gidgrp.rec.cfaguatyp">
            <c-select
              disabled
              v-model="model.gidgrp.rec.cfaguatyp"
              :style="model.gidgrp.cbs.max.cur == 'CNY'? 'width: 90%' :'width: 100%'"
              placeholder="请选择对外担保类型"
              :code="codes.cfaguatyp"
              @change="cfaguatypChange"

            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="4" class="centerLable"  v-if="model.gidgrp.cbs.max.cur == 'CNY'">
          <c-checkbox disabled v-model="model.gidgrp.rec.cmtflg"
            >跨境人民币保函</c-checkbox
          >
        </c-col>
      </c-col>
    </c-col>

    <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="24">
        <el-form-item label="是否对外担保" prop="gidgrp.rec.fingua">
          <c-select
            v-model="model.gidgrp.rec.fingua"
            style="width: 100%"
            placeholder="请选择是否对外担保"
            :code="codes.fingua"
            @change="eventFunction('gidgrp.rec.fingua')"
            disabled
          >
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
Wuyuqiu committed
56 57 58
  </div>
</template>
<script>
Wuyuqiu committed
59
import Api from "~/service/Api";
Wuyuqiu committed
60
import commonProcess from "~/mixin/commonProcess";
Wuyuqiu committed
61 62
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitdla/Event";
Wuyuqiu committed
63 64

export default {
Wuyuqiu committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  computed: {},
  methods: { ...Event,
    async cfaguatypChange(){
      if(this.model.gidgrp.rec.fingua=="Y" && this.model.cfagit.cfaflg=="1"){
          //选择对外担保时,且对外担保数据采集标签页数据采集标志为'新增'时,担保类型改变,td切换到对外担保-签约信息1标签页时会触发tabClick事件,影响签约信息1页面数据。
          //UI合并页面后,需要手动加tabClick切换标签页事件
        let rtnmsg = await this.executeRule("cfagit.recp.conp");
        if (rtnmsg.respCode == SUCCESS) {
          //TODO 处理数据逻辑
          this.updateModel(rtnmsg.data);
Wuyuqiu committed
81
        }
Wuyuqiu committed
82
      }
Wuyuqiu committed
83
    },
Wuyuqiu committed
84 85 86
  },
  created: function () {},
};
Wuyuqiu committed
87 88 89
</script>
<style>
</style>