index.vue 7.78 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
<template>
  <div class="eContainer">
    <c-page title="进口代收付款">
      <el-form :model="model" :rules="rules" :validate-on-rule-change="false" label-position="right" label-width="180px" ref="modelForm" size="small">
        <c-tabs @tab-click="tabClick" ref="elment" type="card" v-model="tabVal">
          <!--业务信息  -->
          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="指示条款" name="instructions">
            <c-content>
              <m-instructions :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="融资信息" name="trtcre" v-if="model.trtcre.crefinflg === 'X'">
            <c-content>
              <m-trtcrep :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <!--同业代付  -->
          <el-tab-pane label="委托方代付" name="dftcre" v-if="model.dftcre.dfflag === 'X'">
            <c-content>
              <m-dftcrep :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="授信/表外" name="liacombo">
            <c-content>
                <div class="eibs-tab">
                    <c-collapse ref="liacombo" style="margin-bottom: 5px;" v-model="activeNames">
                        <el-collapse-item name="limitbody" title="统一授信" v-if="limopn">
                            <m-limitbody :codes="codes" :model="model"/>
                        </el-collapse-item>

                        <el-collapse-item name="engp" title="表外信息">
                            <m-engp :codes="codes" :model="model" ref="engps"/>
                        </el-collapse-item>
                    </c-collapse>
                </div>
            </c-content>
        </el-tab-pane>

          <!-- <el-tab-pane label="表外信息" name="engp">
            <c-content>
              <m-engp :codes="codes" :model="model" ref="engps"/>
            </c-content>
          </el-tab-pane> -->

          <!--PD000027 -->
          <el-tab-pane label="费用/账务" name="setpan">
            <c-content>
              <m-setmod :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="资本项目" name="cfabop">
              <c-content>
                  <m-cfabop :codes="codes" :model="model" ref="cfabop" />
              </c-content>
          </el-tab-pane>

          <el-tab-pane label="外管信息" name="boppay">
            <c-content>
              <m-boppay :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <!-- 备案表核验 -->
          <el-tab-pane label="备案表核验" name="txfp">
            <c-content>
              <m-txfmodp :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="付款报文" name="msgdetail" v-if="model.setmod.setglg.avlMsgDetial && model.setmod.setglg.avlMsgDetial.length > 0">
            <c-content>
              <m-messagedetail :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane :label="$t('commonModels.统一名单')" name="usrmd">
            <c-content>
              <m-usrmd :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--报文/面函  -->
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :codes="codes" :model="model" />
            </c-content>
          </el-tab-pane>

          <!-- 跨境人民币申报 -->
          <el-tab-pane label="跨境人民币申报" name="rmbbop">
            <c-content>
              <m-rmbbop :codes="codes" :model="model" ref="rmbbop" />
            </c-content>
          </el-tab-pane>
        </c-tabs>
      </el-form>
      <c-function-btn :handleCheck="handleCheck" :handleStash="handleStash" :handleSubmit="handleSubmit" @handleSureWarning="handleSureWarning" ref="commonBtn"></c-function-btn>
    </c-page>
  </div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Bctset from "../model";

import Bctsus from "./Bctsus";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Wg from "./Wg";
import Basp from "./Basp";
import Basp1 from "./Basp1";
import Cnyp from "./Cnyp";
import Cfactlp from "./Cfactlp";
import Det400 from "./Det400";
import Det202cv from "./Det202cv";
import Cips from "./Cips";
import Cips2 from "./Cips2";
import Dxzfp from "./Dxzfp";
import Rzkx from "./Rzkx";
import Outp from "./Outp";
import Limitbody from "~/components/business/limitbody/views";
import Addbcb from "./Addbcb";

import Trtcrep from "~/components/business/trtcre/views";
import Dftcrep from "~/components/business/dftcre/views";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views";
import Usrmd from "~/components/business/Usrmd/views";
import MessageDetail from "~/components/business/setmod/views/MessageDetail.vue";
import Glentry from "~/components/business/glentry/views";
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Boppay from "~/components/business/Boppay/views";
import Rmbbop from "../../../../components/business/rmb/rmbbop/views";

import Ovwp from "./Ovwp";
import Instructions from "./Instructions";

import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import buildFn from "../event/buildCommons.js";
import Check from "../model/check";
import Default from "../model/default";
import commonDepend from "~/mixin/commonDepend";
import Cfabop from "~/components/business/cfa/cfabop/views";
import Txfmodp from "~/components/business/txfmod/views";
import txfpCheck from "../../../Remittance/Cptopn/event/txfpCheck.js";

export default {
  name: "Bctset",
  components: {
    "m-bctsus": Bctsus,
    "m-detp": Detp,
    "m-setmod": Setmod,
    "m-messagedetail": MessageDetail,
    "m-ptyp": Ptyp,
    "m-basp": Basp,
    "m-basp1": Basp1,
    "m-engp": Engp,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-wg": Wg,
    "m-cnyp": Cnyp,
    "m-cfactlp": Cfactlp,
    "m-det400": Det400,
    "m-det202cv": Det202cv,
    "m-limitbody": Limitbody,
    "m-glentry": Glentry,
    "m-cips": Cips,
    "m-dftcrep": Dftcrep,
    "m-dxzfp": Dxzfp,
    "m-rzkx": Rzkx,
    "m-trtcrep": Trtcrep,
    "m-cips2": Cips2,
    "m-outp": Outp,
    "m-addbcb": Addbcb,
    "m-ovwp": Ovwp,
    "m-boppay": Boppay,
    "m-instructions": Instructions,
    "m-rmbbop": Rmbbop,
    "m-cfabop": Cfabop,
    "m-txfmodp": Txfmodp,
    "m-usrmd": Usrmd,
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [operationFunc, event, buildFn, commonDepend, Default,txfpCheck], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      activeNames: ["engp", "limitbody"],
      tabVal: "ovwp",
      trnName: "bctset",
      model: new Bctset().data,
      codes: { ...CodeTable }
    };
  },
  computed: {
    rules() {
      return Check.apply(this);
    },
    limopn(){
      let islim=this.model.trtcre.crefinflg === 'X' || this.model.dftcre.dfflag === 'X';
      if(!islim){
        this.model.limmod.limpts.opnflg='N'
      }else{
				this.model.limmod.limpts.opnflg='Y'
			}
      return islim;
    }
  },
  methods: {
    
  },
  created: async function() {},
  mounted() {
    console.log("进入bctset交易");
    let params = {
      transName: this.trnName,
      bcdgrp: {
        rec: {
          inr: this.$route.query.inr
        }
      }
    };
    this.init(params).then(async () => {
      this.$refs.engps.initEngp(this.buildCommonData(this.model, this.trnName));
    });
  }
};
</script>
<style></style>