index.vue 9.13 KB
Newer Older
1 2
<template>
  <div class="eContainer">
huangxin committed
3
    <c-page title="出口保函收汇">
liyixun committed
4 5 6 7
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
8
      label-width="120px"
liyixun committed
9 10 11 12 13
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
huangxin committed
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

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

          <el-tab-pane label="统一授信" name="limitbody,shisuan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames1">
                  <el-collapse-item title="统一授信" name="limitbody">
                    <m-limitbody :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="试算结果" name="shisuan">
                    <m-shisuan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <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>
48
                  <el-collapse-item title="会计分录" name="glepan">
huangxin committed
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
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>

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

          <el-tab-pane label="申报信息" name="cnyp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

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

          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>


liyixun committed
82
        <!--getset PD000027 Claim Payment -->
huangxin committed
83
        <!-- <el-tab-pane label="索赔付款" name="gitsetp1">
liyixun committed
84 85 86 87
          <c-content>
            <m-gitsetp1 :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
88

wangna committed
89
        <el-tab-pane label="表外" name="liability">
liyixun committed
90 91 92 93
          <c-content>
            <m-engp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
94

wangna committed
95
        <el-tab-pane label="费用及账务" name="setpan">
liyixun committed
96 97 98 99
          <c-content>
            <m-setpan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
100

wangna committed
101
        <el-tab-pane v-if="this.flag" label="分录" name="glepan">
liyixun committed
102 103 104 105
          <c-content>
            <m-glepan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
106

wangna committed
107
        <el-tab-pane label="附言" name="Completion">
liyixun committed
108 109 110 111
          <c-content>
            <m-coninfp :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>
liyixun committed
112

wangna committed
113
        <el-tab-pane label="面函" name="Messages">
liyixun committed
114 115
          <m-docpan :model="model" :codes="codes" />
        </el-tab-pane>
liyixun committed
116

wangna committed
117
        <el-tab-pane label="交易附件" name="Attachments">
liyixun committed
118 119 120
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
huangxin committed
121
        </el-tab-pane> -->
liyixun committed
122
        <!--lendoc PD000001 收账通知 -->
huangxin committed
123
        <!-- <el-tab-pane label="收账通知" name="docpan1">
liyixun committed
124
          <m-docpan1 :model="model" :codes="codes" />
huangxin committed
125
        </el-tab-pane> -->
liyixun committed
126
        <!--bopgat PD000006 外管信息 -->
huangxin committed
127
        <!-- <el-tab-pane label="外管信息" name="wg">
liyixun committed
128
          <m-wg :model="model" :codes="codes" />
huangxin committed
129
        </el-tab-pane> -->
liyixun committed
130
        <!--dbap PD000000 涉外收入申报单-基础信息 -->
huangxin committed
131
        <!-- <el-tab-pane
liyixun committed
132
          v-if="model.bopmod.szflg == '1' && model.bopmod.basflg == 'X'"
wangna committed
133
          label="涉外收入申报单-基础信息"
liyixun committed
134 135 136 137 138 139 140 141
          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
142
          label="境内收入申报单-基础信息"
liyixun committed
143 144 145 146 147
          name="basp1"
        >
          <c-content>
            <m-basp :model="model" :codes="codes" />
          </c-content>
huangxin committed
148
        </el-tab-pane> -->
liyixun committed
149
        <!--cnybop PD000002 跨境人民币申报 -->
huangxin committed
150
        <!-- <el-tab-pane label="跨境人民币申报" name="cnyp">
liyixun committed
151 152
          <m-cnyp :model="model" :codes="codes" />
        </el-tab-pane>
panziyi committed
153 154 155

        <el-tab-pane label="2102跨境收入信息" name="incp" v-if="model.cnybop.cnyflg=='1'">
        <m-incp :model="model" :codes="codes" />
huangxin committed
156
        </el-tab-pane> -->
liyixun committed
157
        <!--limmod PD001139 试算结果 -->
huangxin committed
158
        <!-- <el-tab-pane label="试算结果" name="shisuan">
liyixun committed
159 160 161 162
          <m-shisuan :model="model" :codes="codes" />
        </el-tab-pane>
        <el-tab-pane label="统一授信" name="limitbody">
          <m-limitbody :model="model" :codes="codes" />
huangxin committed
163
        </el-tab-pane> -->
liyixun committed
164
      </c-tabs>
165
    </el-form>
liyixun committed
166 167 168 169 170
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
liyixun committed
171
    </c-grid-ety-prompt-dialog>
panziyi committed
172 173 174 175 176 177 178
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
huangxin committed
179 180 181 182 183 184 185
    <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
    </c-page>
186 187 188
  </div>
</template>
<script>
liyixun committed
189 190
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
liyixun committed
191
import Utils from "~/utils";
liyixun committed
192 193
import Getset from "~/model/Getset";
import commonProcess from "~/mixin/commonProcess";
liuxin committed
194
import commonFuncs from "~/mixin/commonFuncs";
liyixun committed
195 196 197 198 199 200 201
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";
panziyi committed
202
import Incp from "./Incp";
liyixun committed
203
import Shisuan from "./Shisuan";
huangxin committed
204 205 206 207
import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp";
import Cnyp from "./Cnyp";

liyixun committed
208 209

import Engp from "~/views/Public/Engp";
210
import Setpan from "~/components/business/setmod/views";
liyixun committed
211 212 213 214
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
215 216
// import Limitbody from "./Limitbody";
import Limitbody from "~/views/Public/Limitbody";
217 218

export default {
liyixun committed
219 220
  name: "Getset",
  components: {
huangxin committed
221 222
    "m-addbcb": Addbcb,
    "m-ovwp": Ovwp,
liyixun committed
223 224 225 226 227 228
    "m-gitsetp1": Gitsetp1,
    "m-docpan1": Docpan1,
    "m-wg": Wg,
    "m-basp": Basp,
    "m-cnyp": Cnyp,
    "m-shisuan": Shisuan,
panziyi committed
229
    "m-incp": Incp,
liyixun committed
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
    "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 {
huangxin committed
246
      tabVal: "ovwp",
liyixun committed
247 248 249 250 251 252 253 254 255 256
      trnName: "getset",
      trnType: "",
      model: new Getset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
huangxin committed
257 258
      activeNames: ["engp"],
      activeNames1: ["limitbody"],
liyixun committed
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
      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 (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
          }
        });
      }
284
    },
liyixun committed
285 286 287 288 289 290 291 292 293 294 295 296
  },
  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: "服务请求失败!" });
297
    }
liyixun committed
298 299
  },
};
300 301 302
</script>
<style>
</style>