index.vue 8.63 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
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
14
        label-width="120px"
wangren committed
15 16 17 18
        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
          <!--PD000005 -->
wangna committed
21
          <el-tab-pane label="到期时结算BC" 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>

27 28 29 30 31 32 33 34 35 36 37
          <el-tab-pane label="创建融资" name="trtcrep"  v-if="model.trtcre.crefinflg != ''">
              <c-content>
                <m-trtcrep :model="model" :codes="codes"/>
              </c-content>
           </el-tab-pane>

           <el-tab-pane label="定价系统" name="dinpan" v-if="model.trtcre.trtmod.finmod.dinjdm != '' && model.trtcre.crefinflg !=''">
              <c-content>
                <m-dinpan :model="model" :codes="codes"/>
              </c-content>
           </el-tab-pane>
panziyi committed
38

panziyi committed
39
          <el-tab-pane label="同业代付" name="dftcrep" v-if="model.dftcre.dfflag">
panziyi committed
40 41 42 43 44 45
            <c-content>
            <m-dftcrep :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
          

wangren committed
46
          <!--PD000018 -->
nanrui committed
47
          <el-tab-pane label="指示条款" name="detp">
wangren committed
48 49 50 51
            <m-detp :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000260 -->
nanrui committed
52
          <el-tab-pane label="参与方" name="ptyp">
wangren committed
53 54
            <c-content>
              <m-ptyp :model="model" :codes="codes" />
chenwen committed
55
            </c-content>
wangren committed
56 57 58
          </el-tab-pane>

          <!--PD000027 -->
nanrui committed
59
          <el-tab-pane label="表外记账" name="engp">
wangren committed
60 61 62 63
            <m-engp :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000000 -->
nanrui committed
64
          <el-tab-pane label="结算" name="setpan">
panziyi committed
65
            <c-content>
wangren committed
66
            <m-setpan :model="model" :codes="codes" />
panziyi committed
67
            </c-content> 
wangren committed
68 69
          </el-tab-pane>

nanrui committed
70
          <el-tab-pane label="账务" name="glepan">
wangren committed
71 72 73 74
            <m-glepan :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000000 -->
nanrui committed
75
          <el-tab-pane label="提示信息" name="coninfp">
wangren committed
76 77 78 79
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000529 -->
nanrui committed
80
          <el-tab-pane label="报文和面函" name="docpan">
wangren committed
81 82 83
            <m-docpan :model="model" :codes="codes" />
          </el-tab-pane>

nanrui committed
84
          <el-tab-pane label="附件" name="doctre">
wangren committed
85 86 87
            <m-doctre :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
88
           <el-tab-pane label="融资款项" name="rzkx" v-if="model.trtcre.crefinflg">
panziyi committed
89 90 91
            <m-rzkx :model="model" :codes="codes" />
          </el-tab-pane>

wangren committed
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
          <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
112
          <el-tab-pane label="定向收付" name="dxzfp" v-if="model.trtcre.crefinflg">
panziyi committed
113 114
            <m-dxzfp :model="model" :codes="codes" />
          </el-tab-pane>
wangren committed
115 116 117 118
          <el-tab-pane label="跨境人名币申报" name="cnyp">
            <m-cnyp :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
119 120 121 122 123 124 125 126
     <el-tab-pane
          label="2111跨境支出信息"
          name="outp"
          v-if="model.cnybop.outflg == '1'"
        >
          <m-outp :model="model" :codes="codes" />
        </el-tab-pane>
        
wangren committed
127 128 129 130
          <el-tab-pane label="资本项目" name="cfactlp">
            <m-cfactlp :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
131
          <el-tab-pane label="Cips" name="cips" v-if="model.trnmod.cmtflg=='P'">
panziyi committed
132 133 134
            <m-cips :model="model" :codes="codes" />
          </el-tab-pane>

panziyi committed
135
          <el-tab-pane label="Cips要素" name="cips2" v-if="model.trnmod.cmtflg=='P'">
panziyi committed
136 137 138
            <m-cips2 :model="model" :codes="codes" />
          </el-tab-pane>

wangren committed
139 140 141 142 143 144 145 146 147 148 149 150 151
          <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
152 153 154 155 156 157 158 159 160 161 162 163 164
       <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
165
    </div>
chenwen committed
166
  </c-page>
chenwen committed
167 168
</template>
<script>
wangren committed
169 170 171 172 173 174 175 176
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";
nanrui committed
177

wangren committed
178 179 180 181 182 183 184 185 186 187
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";
panziyi committed
188 189 190 191 192 193
import Cips from "./Cips";
import Cips2 from "./Cips2";
import Dftcrep from "./Dftcrep";
import Dxzfp from "./Dxzfp";
import Rzkx from "./Rzkx";
import Trtcrep from "./Trtcrep";
194
import Dinpan from "./Dinpan";
nanrui committed
195 196
import Outp from "./Outp";
import Limitbody from "./Limitbody";
wangren committed
197 198 199 200

import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
panziyi committed
201
import Docpan from "~/views/Public/Docpan";
wangren committed
202 203
import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan";
nanrui committed
204

chenwen committed
205 206

export default {
wangren committed
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
  name: "Bctset",
  components: {
    "m-bctsus": Bctsus,
    "m-detp": Detp,
    "m-setpan": Setpan,
    "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
226 227 228 229 230
    "m-cips" :Cips,
    "m-dftcrep" :Dftcrep,
    "m-dxzfp" : Dxzfp,
    "m-rzkx" :Rzkx,
    "m-trtcrep" :Trtcrep,
panziyi committed
231 232
    "m-cips2" :Cips2,
    "m-outp": Outp,
233
    "m-dinpan":Dinpan,
panziyi committed
234

wangren committed
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
  },
  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
254
  methods: {
panziyi committed
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
    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
276
  },
wangren committed
277 278
  created: async function () {
    console.log("进入bctset交易");
panziyi committed
279
    let rtnmsg = await this.init(this.$route.query);
wangren committed
280 281 282
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
panziyi committed
283 284
      
     if (this.isInDisplay) {
wangren committed
285 286
        this.restoreDisplay();
      }
panziyi committed
287
      
wangren committed
288 289 290
      this.$refs.bctsus.$refs.table.$refs.table.toggleAllSelection();
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
chenwen committed
291
    }
wangren committed
292 293
  },
};
chenwen committed
294
</script>
wangren committed
295
<style></style>