index.vue 5.9 KB
Newer Older
wangbinfei committed
1 2
<template>
  <div class="eContainer">
wangna committed
3 4 5 6 7 8 9 10 11 12 13 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
    <c-function-btn
      :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>
    </c-function-btn>
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      label-width="150px"
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
        <!--cctset PD000002 Settle -->
        <el-tab-pane label="Settle" name="setp">
          <m-setp ref="setp" :model="model" :codes="codes" />
        </el-tab-pane>

        <!--Messages(TRNMOD\TRNDOC\DOCPAN) -->
        <el-tab-pane label="Messages" name="docpan">
          <m-docpan :model="model" :codes="codes" />
        </el-tab-pane>

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

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

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

        <!--Settlement -->
        <el-tab-pane label="Settlement" name="setpan">
          <c-content>
            <m-setpan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>

        <!--Bookings -->
        <el-tab-pane label="Bookings" name="glepan">
          <m-glepan :model="model" :codes="codes" />
        </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>

wangna committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
        <el-tab-pane
          v-if="model.bopmod.szflg == '1' && model.bopmod.basflg == 'X'"
          label="涉外收入申请单-基础信息"
          name="basp3"
        >
          <c-content>
            <m-basp3 :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>

        <el-tab-pane
          v-if="model.bopmod.szflg == '2' && model.bopmod.basflg == 'X'"
          label="境内收入申请单-基础信息"
          name="basp2"
        >
          <c-content>
            <m-basp2 :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>

wangna committed
93 94 95 96 97
        <!--cnybop PD000002 跨境人民币申报 -->
        <el-tab-pane label="跨境人民币申报" name="cnyp">
          <m-cnyp :model="model" :codes="codes" />
        </el-tab-pane>

wangna committed
98 99 100 101 102 103 104 105
        <el-tab-pane
          v-if="model.cnybop.cnyflg == '1'"
          label="2101跨境收入信息"
          name="incp"
        >
          <c-content>
            <m-incp :model="model" :codes="codes" />
          </c-content>
wangna committed
106 107
        </el-tab-pane>
      </c-tabs>
wangbinfei committed
108
    </el-form>
wangna committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122

    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>

    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    ></c-grid-ety-prompt-dialog>
wangbinfei committed
123 124 125 126 127 128
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Cctset from "~/model/Cctset";
wangren committed
129
import commonProcess from "~/mixin/commonProcess";
wangna committed
130
import commonFuncs from "~/mixin/commonFuncs";
wangbinfei committed
131 132 133 134
import Check from "~/model/Cctset/Check";
import Default from "~/model/Cctset/Default";
import Pattern from "~/model/Cctset/Pattern";
import Setp from "./Setp";
wangna committed
135 136 137 138
import Wg from "./Wg";
import Cnyp from "./Cnyp";
import Trap from "./Trap";
import Docpan1 from "./Docpan1";
wangna committed
139 140
import Basp2 from "./Basp2";
import Basp3 from "./Basp3";
wangna committed
141
import Incp from "./Incp";
wangna committed
142 143 144 145 146 147

import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
wangbinfei committed
148 149 150
import Engp from "~/views/Public/Engp";

export default {
wangna committed
151 152 153 154 155 156 157 158 159 160 161 162 163
  name: "Cctset",
  components: {
    "m-setp": Setp,
    "m-docpan1": Docpan1,
    "m-wg": Wg,
    "m-cnyp": Cnyp,
    "m-trap": Trap,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-coninfp": Coninfp,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-engp": Engp,
wangna committed
164 165
    "m-basp2": Basp2,
    "m-basp3": Basp3,
wangna committed
166
    "m-incp": Incp,
wangna committed
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
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "setp",
      trnName: "cctset",
      trnType: "",
      model: new Cctset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
wangbinfei committed
193
    },
wangna committed
194 195 196 197 198 199 200 201 202 203
  },
  created: async function () {
    console.log("进入cctset交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      //TODO 处理数据逻辑
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
wangbinfei committed
204

wangna committed
205 206 207
      this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
wangbinfei committed
208
    }
wangna committed
209 210
  },
};
wangbinfei committed
211 212 213
</script>
<style>
</style>