index.vue 6.34 KB
Newer Older
wangbinfei committed
1 2
<template>
  <div class="eContainer">
xionglin committed
3 4
    <c-page>
      <el-form
wangna committed
5 6 7
      :model="model"
      :rules="rules"
      ref="modelForm"
8
      label-width="120px"
wangna committed
9 10 11 12 13 14
      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 -->
nanrui committed
15
        <el-tab-pane label="结汇" name="setp">
xionglin committed
16 17 18
          <c-content>
            <m-setp ref="setp" :model="model" :codes="codes" />
          </c-content>
wangna committed
19 20
        </el-tab-pane>

nanrui committed
21 22
        <!--报文和面函(TRNMOD\TRNDOC\DOCPAN) -->
        <el-tab-pane label="报文和面函" name="docpan">
xionglin committed
23 24 25
          <c-content>
            <m-docpan :model="model" :codes="codes" />
          </c-content>
wangna committed
26 27
        </el-tab-pane>

nanrui committed
28 29
        <!--附件 -->
        <el-tab-pane label="附件" name="doctre">
xionglin committed
30 31 32
          <c-content>
            <m-doctre :model="model" :codes="codes" />
          </c-content>
wangna committed
33 34
        </el-tab-pane>

nanrui committed
35 36
        <!--提示信息 -->
        <el-tab-pane label="提示信息" name="coninfp">
xionglin committed
37 38 39
          <c-content>
            <m-coninfp :model="model" :codes="codes" />
          </c-content>
wangna committed
40 41
        </el-tab-pane>

nanrui committed
42 43
        <!--表外记账 -->
        <el-tab-pane label="表外记账" name="engp">
xionglin committed
44 45 46
          <c-content>
            <m-engp :model="model" :codes="codes" />
          </c-content>
wangna committed
47 48
        </el-tab-pane>

nanrui committed
49 50
        <!--结算 -->
        <el-tab-pane label="结算" name="setpan">
wangna committed
51 52 53 54 55
          <c-content>
            <m-setpan :model="model" :codes="codes" />
          </c-content>
        </el-tab-pane>

nanrui committed
56 57
        <!--会计分录 -->
        <el-tab-pane label="会计分录" name="glepan">
xionglin committed
58 59 60
          <c-content>
            <m-glepan :model="model" :codes="codes" />
          </c-content>
wangna committed
61 62 63 64
        </el-tab-pane>

        <!--lendoc PD000001 收账通知 -->
        <el-tab-pane label="收账通知" name="docpan1">
xionglin committed
65 66 67
          <c-content>
            <m-docpan1 :model="model" :codes="codes" />
          </c-content>
wangna committed
68 69 70 71
        </el-tab-pane>

        <!--bopgat PD000006 外管信息 -->
        <el-tab-pane label="外管信息" name="wg">
xionglin committed
72 73 74
          <c-content>
            <m-wg :model="model" :codes="codes" />
          </c-content>
wangna committed
75 76
        </el-tab-pane>

wangna committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
        <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
97 98
        <!--cnybop PD000002 跨境人民币申报 -->
        <el-tab-pane label="跨境人民币申报" name="cnyp">
xionglin committed
99 100 101
          <c-content>
            <m-cnyp :model="model" :codes="codes" />
          </c-content>
wangna committed
102 103
        </el-tab-pane>

wangna committed
104 105 106 107 108 109 110 111
        <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
112 113
        </el-tab-pane>
      </c-tabs>
wangbinfei committed
114
    </el-form>
wangna committed
115 116 117 118 119 120 121 122 123 124 125 126 127

    <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"
xionglin committed
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
    >
    </c-grid-ety-prompt-dialog>
    <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>
    </c-page>
wangbinfei committed
144 145 146 147 148 149
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Cctset from "~/model/Cctset";
wangren committed
150
import commonProcess from "~/mixin/commonProcess";
wangna committed
151
import commonFuncs from "~/mixin/commonFuncs";
wangbinfei committed
152 153 154
import Check from "~/model/Cctset/Check";
import Default from "~/model/Cctset/Default";
import Pattern from "~/model/Cctset/Pattern";
nanrui committed
155

wangbinfei committed
156
import Setp from "./Setp";
wangna committed
157 158 159
import Wg from "./Wg";
import Cnyp from "./Cnyp";
import Docpan1 from "./Docpan1";
wangna committed
160 161
import Basp2 from "./Basp2";
import Basp3 from "./Basp3";
wangna committed
162
import Incp from "./Incp";
wangna committed
163 164 165 166

import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Coninfp from "~/views/Public/Coninfp";
167
import Setpan from "~/components/business/setmod/views";
wangna committed
168
import Glepan from "~/views/Public/Glepan";
wangbinfei committed
169 170 171
import Engp from "~/views/Public/Engp";

export default {
wangna committed
172 173 174 175 176 177 178 179 180 181 182 183
  name: "Cctset",
  components: {
    "m-setp": Setp,
    "m-docpan1": Docpan1,
    "m-wg": Wg,
    "m-cnyp": Cnyp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-coninfp": Coninfp,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-engp": Engp,
wangna committed
184 185
    "m-basp2": Basp2,
    "m-basp3": Basp3,
wangna committed
186
    "m-incp": Incp,
wangna committed
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
  },
  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
213
    },
wangna committed
214 215 216 217 218 219 220 221 222 223
  },
  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
224

wangna committed
225 226 227
      this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
wangbinfei committed
228
    }
wangna committed
229 230
  },
};
wangbinfei committed
231 232 233
</script>
<style>
</style>