index.vue 6.96 KB
Newer Older
1 2
<template>
  <div class="eContainer">
liuxin committed
3
    <c-function-btn
liyixun committed
4 5 6 7 8 9 10 11 12 13 14 15 16
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash"
    >
      <el-button size="small">流程附言</el-button>
      <el-button size="small">交易历史</el-button>
      <el-button size="small">备忘录</el-button>
      <el-button size="small">影像信息</el-button>
      <!-- <el-button size="small">保存模板</el-button> -->
      <!-- <el-button size="small">使用模板</el-button> -->
      <el-button size="small">制裁信息</el-button>
      <!-- <el-button size="small">拆分报文</el-button> -->
      <el-button size="small">智能提示</el-button>
liuxin committed
17
    </c-function-btn>
liyixun committed
18 19 20 21
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
22
      label-width="120px"
liyixun committed
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">
        <!--getset PD000027 Claim Payment -->
wangna committed
29
        <el-tab-pane label="索赔付款" name="gitsetp1">
liyixun committed
30 31 32 33
          <c-content>
            <m-gitsetp1 :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
34

wangna committed
35
        <el-tab-pane label="表外" name="liability">
liyixun committed
36 37 38 39
          <c-content>
            <m-engp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
40

wangna committed
41
        <el-tab-pane label="费用及账务" name="setpan">
liyixun committed
42 43 44 45
          <c-content>
            <m-setpan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
46

wangna committed
47
        <el-tab-pane v-if="this.flag" label="分录" name="glepan">
liyixun committed
48 49 50 51
          <c-content>
            <m-glepan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
52

wangna committed
53
        <el-tab-pane label="附言" name="Completion">
liyixun committed
54 55 56 57
          <c-content>
            <m-coninfp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
58

wangna committed
59
        <el-tab-pane label="面函" name="Messages">
liyixun committed
60 61
          <m-docpan :model="model" :codes="codes" />
        </el-tab-pane>
liyixun committed
62

wangna committed
63
        <el-tab-pane label="交易附件" name="Attachments">
liyixun committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
        <!--lendoc PD000001 收账通知 -->
        <el-tab-pane label="收账通知" name="docpan1">
          <m-docpan1 :model="model" :codes="codes" />
        </el-tab-pane>
        <!--bopgat PD000006 外管信息 -->
        <el-tab-pane label="外管信息" name="wg">
          <m-wg :model="model" :codes="codes" />
        </el-tab-pane>
        <!--dbap PD000000 涉外收入申报单-基础信息 -->
        <el-tab-pane
          v-if="model.bopmod.szflg == '1' && model.bopmod.basflg == 'X'"
wangna committed
79
          label="涉外收入申报单-基础信息"
liyixun committed
80 81 82 83 84 85 86 87
          name="basp"
        >
          <c-content>
            <m-basp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
        <el-tab-pane
          v-if="model.bopmod.szflg == '2' && model.bopmod.basflg == 'X'"
wangna committed
88
          label="境内收入申报单-基础信息"
liyixun committed
89 90 91 92 93 94 95 96 97 98
          name="basp1"
        >
          <c-content>
            <m-basp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
        <!--cnybop PD000002 跨境人民币申报 -->
        <el-tab-pane label="跨境人民币申报" name="cnyp">
          <m-cnyp :model="model" :codes="codes" />
        </el-tab-pane>
panziyi committed
99 100 101 102

        <el-tab-pane label="2102跨境收入信息" name="incp" v-if="model.cnybop.cnyflg=='1'">
        <m-incp :model="model" :codes="codes" />
        </el-tab-pane>
liyixun committed
103 104 105 106 107 108 109 110
        <!--limmod PD001139 试算结果 -->
        <el-tab-pane label="试算结果" name="shisuan">
          <m-shisuan :model="model" :codes="codes" />
        </el-tab-pane>
        <el-tab-pane label="统一授信" name="limitbody">
          <m-limitbody :model="model" :codes="codes" />
        </el-tab-pane>
      </c-tabs>
111
    </el-form>
liyixun committed
112 113 114 115 116
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
liyixun committed
117
    </c-grid-ety-prompt-dialog>
panziyi committed
118 119 120 121 122 123 124
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
125 126 127
  </div>
</template>
<script>
liyixun committed
128 129
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
liyixun committed
130
import Utils from "~/utils";
liyixun committed
131 132
import Getset from "~/model/Getset";
import commonProcess from "~/mixin/commonProcess";
liuxin committed
133
import commonFuncs from "~/mixin/commonFuncs";
liyixun committed
134 135 136 137 138 139 140 141
import Check from "~/model/Getset/Check";
import Default from "~/model/Getset/Default";
import Pattern from "~/model/Getset/Pattern";
import Gitsetp1 from "./Gitsetp1";
import Docpan1 from "./Docpan";
import Wg from "./Wg";
import Basp from "./Basp";
import Cnyp from "./Cnyp";
panziyi committed
142
import Incp from "./Incp";
liyixun committed
143 144 145 146 147 148 149 150
import Shisuan from "./Shisuan";

import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
wangna committed
151 152
// import Limitbody from "./Limitbody";
import Limitbody from "~/views/Public/Limitbody";
153 154

export default {
liyixun committed
155 156 157 158 159 160 161 162
  name: "Getset",
  components: {
    "m-gitsetp1": Gitsetp1,
    "m-docpan1": Docpan1,
    "m-wg": Wg,
    "m-basp": Basp,
    "m-cnyp": Cnyp,
    "m-shisuan": Shisuan,
panziyi committed
163
    "m-incp": Incp,
liyixun committed
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
    "m-engp": Engp,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-limitbody": Limitbody,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "gitsetp1",
      trnName: "getset",
      trnType: "",
      model: new Getset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
      flag: false,
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
      let name = tab.name;
      let rulePath;
      let rulePath1;
      if (name === "basp") {
        rulePath = "bopmod.dbap.basp";
      }
      if (name === "basp1") {
        rulePath = "bopmod.dbdp.basp";
      }
      if (name === "setpan") {
        this.flag = true;
      }
      if (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
          }
        });
      }
219
    },
liyixun committed
220 221 222 223 224 225 226 227 228 229 230 231
  },
  created: async function () {
    console.log("进入getset交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      //TODO 处理数据逻辑
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
232
    }
liyixun committed
233 234
  },
};
235 236 237
</script>
<style>
</style>