index.vue 8.35 KB
Newer Older
chenwen committed
1
<template>
wangren committed
2 3 4 5 6 7 8
  <c-page title="进口代收付款">
    <div class="eContainer">
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
chenwen committed
9
      </c-function-btn>
wangren committed
10 11 12 13 14 15 16 17 18
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
panziyi committed
19
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
wangren committed
20 21
          <!--PD000005 -->
          <el-tab-pane label="Settle BC at Maturity" name="bctsus">
panziyi committed
22
            <c-content>
wangren committed
23
            <m-bctsus ref="bctsus" :model="model" :codes="codes" />
panziyi committed
24
            </c-content>
wangren committed
25 26
          </el-tab-pane>

panziyi committed
27
         <el-tab-pane label="Financing Details" name="trtcrep" v-if="model.trtcre.crefinflg">
panziyi committed
28 29 30 31 32
           <c-content>
            <m-trtcrep :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

panziyi committed
33
          <el-tab-pane label="同业代付" name="dftcrep" v-if="model.dftcre.dfflag">
panziyi committed
34 35 36 37 38 39
            <c-content>
            <m-dftcrep :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
          

wangren committed
40 41 42 43 44 45 46 47 48
          <!--PD000018 -->
          <el-tab-pane label="Instructions" name="detp">
            <m-detp :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000260 -->
          <el-tab-pane label="Parties" name="ptyp">
            <c-content>
              <m-ptyp :model="model" :codes="codes" />
chenwen committed
49
            </c-content>
wangren committed
50 51 52 53 54 55 56 57 58
          </el-tab-pane>

          <!--PD000027 -->
          <el-tab-pane label="Liability" name="engp">
            <m-engp :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000000 -->
          <el-tab-pane label="Settlement" name="setpan">
panziyi committed
59
            <c-content>
wangren committed
60
            <m-setpan :model="model" :codes="codes" />
panziyi committed
61
            </c-content> 
wangren committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
          </el-tab-pane>

          <el-tab-pane label="Bookings" name="glepan">
            <m-glepan :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000000 -->
          <el-tab-pane label="Completion" name="coninfp">
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000529 -->
          <el-tab-pane label="Messages" name="docpan">
            <m-docpan :model="model" :codes="codes" />
          </el-tab-pane>

          <el-tab-pane label="Attachments" name="doctre">
            <m-doctre :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
82
           <el-tab-pane label="融资款项" name="rzkx" v-if="model.trtcre.crefinflg">
panziyi committed
83 84 85
            <m-rzkx :model="model" :codes="codes" />
          </el-tab-pane>

wangren committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
          <el-tab-pane label="外管信息" name="wg">
            <m-wg :model="model" :codes="codes" />
          </el-tab-pane>

          <el-tab-pane
            v-if="(this.model.bopmod.basflg == 'X' && this.model.bopmod.szflg == '1')"
            label="对外付款/承兑通知书-基础信息"
            name="basp"
          >
            <m-basp :model="model" :codes="codes" />
          </el-tab-pane>

          <el-tab-pane
            v-if="(this.model.bopmod.basflg == 'X' && this.model.bopmod.szflg == '2')"
            label="境内付款/承兑通知书-基础信息"
            name="basp1"
          >
            <m-basp1 :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
106
          <el-tab-pane label="定向收付" name="dxzfp" v-if="model.trtcre.crefinflg">
panziyi committed
107 108
            <m-dxzfp :model="model" :codes="codes" />
          </el-tab-pane>
wangren committed
109 110 111 112
          <el-tab-pane label="跨境人名币申报" name="cnyp">
            <m-cnyp :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
113 114 115 116 117 118 119 120
     <el-tab-pane
          label="2111跨境支出信息"
          name="outp"
          v-if="model.cnybop.outflg == '1'"
        >
          <m-outp :model="model" :codes="codes" />
        </el-tab-pane>
        
wangren committed
121 122 123 124
          <el-tab-pane label="资本项目" name="cfactlp">
            <m-cfactlp :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
125
          <el-tab-pane label="Cips" name="cips" v-if="model.trnmod.cmtflg=='P'">
panziyi committed
126 127 128
            <m-cips :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
129
          <el-tab-pane label="Cips要素" name="cips2" v-if="model.trnmod.cmtflg=='P'">
panziyi committed
130 131 132
            <m-cips2 :model="model" :codes="codes" />
          </el-tab-pane>

wangren committed
133 134 135 136 137 138 139 140 141 142 143 144 145
          <el-tab-pane label="统一授信" name="limitbody">
            <m-limitbody :model="model" :codes="codes" />
          </el-tab-pane>

          <el-tab-pane label="Payment 400 RMI " name="det400">
            <m-det400 :model="model" :codes="codes" />
          </el-tab-pane>

          <el-tab-pane label="Payment 202 RMI " name="det202cv">
            <m-det202cv :model="model" :codes="codes" />
          </el-tab-pane>
        </c-tabs>
      </el-form>
panziyi committed
146 147 148 149 150 151 152 153 154 155 156 157 158
       <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
wangren committed
159
    </div>
chenwen committed
160
  </c-page>
chenwen committed
161 162
</template>
<script>
wangren committed
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bctset from "~/model/Bctset";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bctset/Check";
import Default from "~/model/Bctset/Default";
import Pattern from "~/model/Bctset/Pattern";
import Bctsus from "./Bctsus";
import Detp from "./Detp";
import Shpdet from "./Shpdet";
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";
panziyi committed
182 183 184 185 186 187
import Cips from "./Cips";
import Cips2 from "./Cips2";
import Dftcrep from "./Dftcrep";
import Dxzfp from "./Dxzfp";
import Rzkx from "./Rzkx";
import Trtcrep from "./Trtcrep";
wangren committed
188 189 190 191

import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
panziyi committed
192
import Docpan from "~/views/Public/Docpan";
wangren committed
193
import Doctre from "~/views/Public/Doctre";
panziyi committed
194
import Limitbody from "./Limitbody";
wangren committed
195
import Glepan from "~/views/Public/Glepan";
panziyi committed
196
import Outp from "./Outp";
chenwen committed
197 198

export default {
wangren committed
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
  name: "Bctset",
  components: {
    "m-bctsus": Bctsus,
    "m-detp": Detp,
    "m-setpan": Setpan,
    "m-shpdet": Shpdet,
    "m-ptyp": Ptyp,
    "m-basp": Basp,
    "m-basp1": Basp1,
    "m-engp": Engp,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-wg": Wg,
    "m-cnyp": Cnyp,
    "m-cfactlp": Cfactlp,
    "m-det400": Det400,
    "m-det202cv": Det202cv,
    "m-limitbody": Limitbody,
    "m-glepan": Glepan,
panziyi committed
219 220 221 222 223
    "m-cips" :Cips,
    "m-dftcrep" :Dftcrep,
    "m-dxzfp" : Dxzfp,
    "m-rzkx" :Rzkx,
    "m-trtcrep" :Trtcrep,
panziyi committed
224 225
    "m-cips2" :Cips2,
    "m-outp": Outp,
panziyi committed
226

wangren committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "bctsus",
      trnName: "bctset",
      model: new Bctset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
panziyi committed
246
  methods: {
panziyi committed
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
    myTabClick(tab) {
      this.tabClick(tab);
      let name = tab.name;
      let rulePath;
      if ((name === "trtcrep")) {
        rulePath = "trtcre.trtcrep";
      }
      if ((name === "dftcrep")) {
        rulePath = "dftcre.dftcrep";
      }
      if(name === 'outp'){
        rulePath = "cnybop.Outp"
      }
      if (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
          }
        });
      }
    },
panziyi committed
268
  },
wangren committed
269 270
  created: async function () {
    console.log("进入bctset交易");
panziyi committed
271
    let rtnmsg = await this.init(this.$route.query);
wangren committed
272 273 274
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
panziyi committed
275 276
      
     if (this.isInDisplay) {
wangren committed
277 278
        this.restoreDisplay();
      }
panziyi committed
279
      
wangren committed
280 281 282
      this.$refs.bctsus.$refs.table.$refs.table.toggleAllSelection();
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
chenwen committed
283
    }
wangren committed
284 285
  },
};
chenwen committed
286
</script>
wangren committed
287
<style></style>