index.vue 11.6 KB
Newer Older
严一鸣 committed
1
<template>
潘际乾 committed
2 3
  <div class="eContainer">
    <c-page title="进口信用证单据进口付汇">
jianglong committed
4

jianglong committed
5 6 7 8 9 10 11 12
      <!--
        <div  class="fast-button">
           <el-button size="small">备忘录</el-button>
           <el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</el-button>
           <el-button size="small">制裁信息</el-button>
           <el-button size="small">智能提示</el-button>
        /div>
     -->
jianglong committed
13

Wuyuqiu committed
14 15 16 17
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
18
        label-width="120px"
Wuyuqiu committed
19 20 21 22 23 24 25 26 27 28
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
jianglong committed
29 30 31 32 33 34 35 36 37


        <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp ref="ovwp" :model="model" :codes="codes" />
            </c-content>
        </el-tab-pane>

          <!--PD000005
Wuyuqiu committed
38 39 40 41
          <el-tab-pane label="单据结算" name="utlp">
            <c-content>
              <m-utlp ref="utlp" :model="model" :codes="codes" />
            </c-content>
jianglong committed
42
          </el-tab-pane>  -->
Wuyuqiu committed
43 44 45

          <!--PD000027 -->
          <!-- <el-tab-pane label="同业代付" name="dftcrep" v-if="this.model.dftcre.dfflag==''">
46
                <m-dftcrep :model="model" :codes="codes" />
wangyanjiao committed
47
           </el-tab-pane> -->
48

jianglong committed
49
          <!--PD000027 
Wuyuqiu committed
50 51 52 53 54 55 56 57 58
          <el-tab-pane
            label="创建融资"
            name="trtcrep"
            v-if="model.trtcre.crefinflg != ''"
          >
            <c-content>
              <m-trtcrep :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
jianglong committed
59
          
Wuyuqiu committed
60 61 62 63 64 65 66 67 68 69 70 71

          <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>
jianglong committed
72
          </el-tab-pane>-->
Wuyuqiu committed
73 74 75 76

          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan">
            <c-content>
潘际乾 committed
77
              <m-ccvpan :model="model" :codes="codes" />
Wuyuqiu committed
78 79 80
            </c-content>
          </el-tab-pane>

jianglong committed
81 82 83 84 85 86 87 88

          <!--PD000115 -->
          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

潘际乾 committed
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="fyzw">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
                    <m-engp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="结算" name="setpan">
                    <!-- 结算 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
Wuyuqiu committed
108 109
          </el-tab-pane>

jianglong committed
110
          <!--PD000000 
Wuyuqiu committed
111
          <el-tab-pane label="提示信息" name="coninfp">
潘际乾 committed
112 113 114 115 116
            <c-content>
              <div class="eibs-tab">
                <m-coninfp :model="model" :codes="codes" />
              </div>
            </c-content>
jianglong committed
117 118 119 120 121 122 123 124 125
          </el-tab-pane>-->


          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              
                <m-addbcb :model="model" :codes="codes" />
            </c-content>
            
Wuyuqiu committed
126 127
          </el-tab-pane>

潘际乾 committed
128
          <!--PD000009 -->
129
          <el-tab-pane label="申报信息" name="cfactlp,cnyp1">
潘际乾 committed
130 131 132 133 134
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

Wuyuqiu committed
135 136
          <!--PD000529 -->
          <el-tab-pane label="报文/面函" name="docpan">
jianglong committed
137
          <c-content>
Wuyuqiu committed
138
            <m-docpan :model="model" :codes="codes" />
jianglong committed
139
            </c-content>
Wuyuqiu committed
140 141 142
          </el-tab-pane>

          <!--PD000546 -->
潘际乾 committed
143 144 145 146
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
147 148 149
          </el-tab-pane>

          <!--PD000008
严一鸣 committed
150 151
           <el-tab-pane label="外管信息" name="wg">
                <m-wg :model="model" :codes="codes"/>
152 153
           </el-tab-pane> -->

Wuyuqiu committed
154
          <!--PD000002
155 156 157 158
          <el-tab-pane label="跨境人民币申报" name="cnyp">
               <m-cnyp :model="model" :codes="codes"/>
          </el-tab-pane>-->

潘际乾 committed
159

Wuyuqiu committed
160

jianglong committed
161
<!--
Wuyuqiu committed
162 163 164 165 166
          <el-tab-pane
            label="对外付款/承兑通知书-基础信息"
            name="basp"
            v-if="model.bopmod.basflg != '' && model.bopmod.szflg == '1'"
          >
潘际乾 committed
167 168 169
            <c-content>
              <m-basp :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
170 171 172 173 174 175 176
          </el-tab-pane>

          <el-tab-pane
            label="境内付款/承兑通知书-基础信息"
            name="basp1"
            v-if="model.bopmod.basflg != '' && model.bopmod.szflg == '2'"
          >
潘际乾 committed
177 178 179
            <c-content>
              <m-basp1 :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
180 181
          </el-tab-pane>

jianglong committed
182 183 184
           -->

          <!--PD000061 
Wuyuqiu committed
185
          <el-tab-pane label="资本项目" name="cfactlp">
潘际乾 committed
186 187 188
            <c-content>
              <m-cfactlp :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
189 190
          </el-tab-pane>

jianglong committed
191 192 193
          -->

          <!--PD001139 
Wuyuqiu committed
194
          <el-tab-pane label="试算结果" name="shisuan">
潘际乾 committed
195 196 197
            <c-content>
              <m-shisuan :model="model" :codes="codes" />
            </c-content>
jianglong committed
198
          </el-tab-pane>-->
Wuyuqiu committed
199

jianglong committed
200
          
Wuyuqiu committed
201

jianglong committed
202
          <!--PD000130 
Wuyuqiu committed
203 204 205 206 207 208 209 210 211
          <el-tab-pane
            :label="this.det756Name"
            name="det756"
            v-if="model.mtabut.clsflg != ''"
          >
            <c-content>
              <m-det756 :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
jianglong committed
212 213
-->
          <!--PD000131 
Wuyuqiu committed
214 215 216 217 218 219 220 221
          <el-tab-pane
            :label="this.det202cvName"
            name="det202cv"
            v-if="model.trnmod.cmtflg == 'C'"
          >
            <c-content>
              <m-det202cv :model="model" :codes="codes" />
            </c-content>
jianglong committed
222 223
          </el-tab-pane>-->
<!--
Wuyuqiu committed
224 225 226 227 228
          <el-tab-pane
            label="2111跨境支出信息"
            name="outp"
            v-if="model.cnybop.outflg == '1'"
          >
潘际乾 committed
229 230 231
            <c-content>
              <m-outp :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
          </el-tab-pane>

          <el-tab-pane
            label="CIPS"
            name="cips2"
            v-if="model.trnmod.cmtflg == 'P'"
          >
            <c-content>
              <m-cips2 :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane
            label="CIPS要素"
            name="cips"
            v-if="model.trnmod.cmtflg == 'P'"
          >
潘际乾 committed
249 250 251
            <c-content>
              <m-cips :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
252
          </el-tab-pane>
jianglong committed
253 254

          -->
Wuyuqiu committed
255 256 257 258 259 260 261
        </c-tabs>
      </el-form>
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
Wuyuqiu committed
262
      >
jianglong committed
263
        
Wuyuqiu committed
264 265 266 267 268 269
      </c-function-btn>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></c-grid-ety-prompt-dialog>
潘际乾 committed
270 271
    </c-page>
  </div>
严一鸣 committed
272 273
</template>
<script>
Wuyuqiu committed
274 275 276 277
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Brtset from "~/model/Brtset";
import commonProcess from "~/mixin/commonProcess";
严一鸣 committed
278
import commonFuncs from "~/mixin/commonFuncs";
Wuyuqiu committed
279 280 281 282 283 284
import Check from "~/model/Brtset/Check";
import Default from "~/model/Brtset/Default";
import Pattern from "~/model/Brtset/Pattern";
import Utlp from "./Utlp";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
严一鸣 committed
285
import Setpan from "~/views/Public/Setpan";
Wuyuqiu committed
286 287 288 289 290 291 292 293 294 295 296
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Wg from "./Wg";
import Cfactlp from "./Cfactlp";
import Cnyp from "./Cnyp";
import Shisuan from "./Shisuan";
import Namp from "./Namp";
import Basp from "./Basp";
import Basp1 from "./Basp1";
wangyanjiao committed
297
// import Dftcrep from "./Dftcrep"
298
import Limitbody from "~/views/Public/Limitbody";
299
import Sbxx from "~/views/Public/Sbxx";
zhujiazhan committed
300 301 302
import Det756 from "./Det756";
import Det202cv from "./Det202cv";
import Outp from "./Outp";
303 304
import Cips from "./Cips";
import Cips2 from "./Cips2";
305 306
import Trtcrep from "./Trtcrep";
import Dinpan from "./Dinpan";
307

jianglong committed
308 309 310
import Ovwp from "./Ovwp";
import Addbcb from "./Addbcb";

严一鸣 committed
311
export default {
Wuyuqiu committed
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
  name: "Brtset",
  components: {
    "m-utlp": Utlp,
    "m-engp": Engp,
    "m-ccvpan": Ccvpan,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-wg": Wg,
    "m-cfactlp": Cfactlp,
    "m-cnyp": Cnyp,
    "m-shisuan": Shisuan,
    "m-namp": Namp,
    "m-limitbody": Limitbody,
    "m-sbxx": Sbxx,
    "m-basp": Basp,
    "m-basp1": Basp1,
    "m-det756": Det756,
    "m-det202cv": Det202cv,
    "m-outp": Outp,
    "m-cips": Cips,
    "m-cips2": Cips2,
    "m-trtcrep": Trtcrep,
    "m-dinpan": Dinpan,
jianglong committed
338 339
    "m-ovwp": Ovwp,
    "m-addbcb": Addbcb,
Wuyuqiu committed
340 341 342 343 344 345 346 347 348 349 350 351
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  computed: {},
  data() {
    return {
      det202cvName: "头寸调拨(MT202)",
      det756Name: "通知付款(MT756)",
jianglong committed
352
      tabVal: "ovwp",
Wuyuqiu committed
353 354 355 356 357 358 359 360 361
      trnName: "brtset",
      model: new Brtset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
潘际乾 committed
362
      fyzw: ['engp']
Wuyuqiu committed
363 364 365 366 367 368 369 370
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
严一鸣 committed
371
    },
Wuyuqiu committed
372 373 374 375 376 377 378 379 380 381 382
  },
  watch: {
    "model.setmod.doccur": {
      immediate: true,
      handler() {
        let cur = this.model.setmod.doccur;
        let amt = this.model.setmod.docamt;
        let doc = this.model.brdgrp.rec.docprbrol;
        this.det202cvName = "Payment 202 " + doc + " " + cur + " " + amt;
        this.det756Name = "Payment 756 " + doc + " " + cur + " " + amt;
      },
严一鸣 committed
383
    },
Wuyuqiu committed
384 385 386 387 388 389 390 391 392
    "model.mtabut.clsflg": {
      immediate: true,
      handler() {
        let cur = this.model.setmod.doccur;
        let amt = this.model.setmod.docamt;
        let doc = this.model.brdgrp.rec.docprbrol;
        this.det202cvName = "Payment 202 " + doc + " " + cur + " " + amt;
        this.det756Name = "Payment 756 " + doc + " " + cur + " " + amt;
      },
严一鸣 committed
393
    },
Wuyuqiu committed
394 395 396 397
  },

  created: async function () {
    console.log("进入brtset交易");
398
    let rtnmsg = await this.init(this.$route.query);
Wuyuqiu committed
399 400
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
401
      // this.model.mtabut.clsflg = "X";
Wuyuqiu committed
402 403 404
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
405
      this.$refs.ovwp.$refs.utlp.$refs.table.$refs.table.toggleAllSelection(); //表格,默认勾选
Wuyuqiu committed
406 407 408 409 410
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
严一鸣 committed
411 412 413
</script>
<style>
</style>