index.vue 8.25 KB
Newer Older
1
<template>
liushikai committed
2 3
  <c-page title="汇入汇款">
    <div class="eContainer">
4 5 6 7 8 9 10 11 12 13 14 15 16 17
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <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>
liushikai committed
18 19 20 21 22 23
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        size="small"
24
        :validate-on-rule-change="false"
liushikai committed
25
      >
26 27 28 29 30 31
        <c-tabs
          ref="elment"
          :value="tabVal"
          type="card"
          @tab-click="mimeTabClick"
        >
32
          <el-tab-pane label="基本信息" name="opnp1">
liushikai committed
33 34
            <!--PD000020 -->
            <c-content>
35
              <m-opnp1 :model="model" :codes="codes" />
liushikai committed
36 37
            </c-content>
          </el-tab-pane>
38
          <el-tab-pane label="费用及账务" name="setpan">
liushikai committed
39
            <!--PD000006 -->
40
            <c-content>
41
              <m-setpan :model="model" :codes="codes" />
42
            </c-content>
43
          </el-tab-pane>
44

45
          <el-tab-pane label="分录" name="glepan">
46
            <m-glepan :model="model" :codes="codes" ref="glepan" />
liushikai committed
47
          </el-tab-pane>
48

liushikai committed
49 50 51 52
          <el-tab-pane label="附言" name="coninfp">
            <!--PD000000 -->
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>
53

liushikai committed
54 55 56 57 58 59
          <el-tab-pane label="附件" name="doctre">
            <!--PD000529 -->
            <m-doctre :model="model" :codes="codes" />
          </el-tab-pane>
          <el-tab-pane label="收账通知" name="docpan2">
            <!--PD000001 -->
吴佳 committed
60
            <m-docpan2 :model="model" :codes="codes" />
liushikai committed
61
          </el-tab-pane>
潘际乾 committed
62
          <el-tab-pane label="申报信息" name="sbxx">
liushikai committed
63
            <!--PD000546 -->
潘际乾 committed
64
            <m-sbxx :model="model" :codes="codes" />
liushikai committed
65
          </el-tab-pane>
66
          <el-tab-pane label="2101跨境收入信息" name="incp" v-if="model.cnybop.cnyflg === '1'" >
67
            <c-content>
68
              <m-incp :model="model" :codes="codes"></m-incp>
69 70
            </c-content>
          </el-tab-pane>
71

吴佳 committed
72 73 74 75
          <el-tab-pane label="报文及面函" name="docpan">
            <!--PD000000 -->
            <m-docpan :model="model" :codes="codes" />
          </el-tab-pane>
76 77


78 79
          <el-tab-pane label="境外汇款申请书-基础信息" name="basp3" v-if="model.bopmod.basflg !='' && model.bopmod.szflg=='1'">
              <m-basp3 :model="model" :codes="codes"/>
80 81
         </el-tab-pane>

82
          <el-tab-pane label="境内汇款申请书-基础信息" name="basp2" v-if="model.bopmod.basflg !='' && model.bopmod.szflg=='2'">
83 84 85 86
              <m-basp :model="model" :codes="codes"/>
         </el-tab-pane>


87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
       <el-tab-pane label="跨境支付" name="secpan" v-if="model.cpdgrp.rec.swftyp=='HVP'||
                                                        model.cpdgrp.rec.swftyp=='HVQ'||
                                                        model.cpdgrp.rec.swftyp=='HVR'||
                                                        model.cpdgrp.rec.swftyp=='BEP'||
                                                        model.cpdgrp.rec.swftyp=='BEQ'||
                                                        model.cpdgrp.rec.swftyp=='BES'
                                                        ">
           <c-content>
            <m-secpan :model="model" :codes="codes"/>
           </c-content>
      </el-tab-pane>


        <el-tab-pane label="CIPS" name="cips" v-if="model.cpdgrp.rec.swftyp=='CIU' ||
                                                    model.cpdgrp.rec.swftyp=='CIV' ||
                                                    model.cpdgrp.rec.swftyp=='CIW' ">
             <c-content>
                <m-cips :model="model" :codes="codes" />
             </c-content>
        </el-tab-pane>


        <el-tab-pane label="CIPS2.0" name="cips2" v-if="model.cpdgrp.rec.swftyp=='CIU' ||
                                                        model.cpdgrp.rec.swftyp=='CIV' ||
                                                        model.cpdgrp.rec.swftyp=='CIW' ">
             <c-content>
                <m-cips2 :model="model" :codes="codes" />
             </c-content>
        </el-tab-pane>

        <el-tab-pane label="CIPS2.0" name="cips3" v-if="model.cpdgrp.rec.swftyp=='CIU' ||
                                                        model.cpdgrp.rec.swftyp=='CIV' ||
                                                        model.cpdgrp.rec.swftyp=='CIW' ">
             <c-content>
                <m-cips3 :model="model" :codes="codes" />
             </c-content>
        </el-tab-pane>


126

liushikai committed
127 128 129
        </c-tabs>
      </el-form>
    </div>
130 131 132 133 134 135 136 137
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
           
    </c-grid-ety-prompt-dialog>
zhujiazhan committed
138

139 140 141 142 143
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    ></c-grid-ety-prompt-dialog>
zhujiazhan committed
144

liushikai committed
145
  </c-page>
146 147
</template>
<script>
liushikai committed
148 149 150 151
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Cptadv from "~/model/Cptadv";
wangren committed
152 153
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
liushikai committed
154
import Opnp1 from "./Opnp1";
吴佳 committed
155
import Docpan2 from "./Docpan2";
156 157 158
import Pattern from "~/model/Cptadv/Pattern";
import Default from "~/model/Cptadv/Default";
import Check from "~/model/Cptadv/Check";
潘际乾 committed
159
import Sbxx from "./Sbxx";
160
import Incp from "./Incp";
161
import Basp from "./Basp"
162
import Basp3 from "./Basp3"
163

潘际乾 committed
164
import Doctre from "~/views/Public/Doctre";
liushikai committed
165
import Setpan from "~/views/Public/Setpan";
166
import Glepan from "~/views/Public/Glepan";
liushikai committed
167 168
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
chenzhaole committed
169
import Ptap from "~/views/Public/Ptap";
170

171 172 173 174 175
import Secpan from "./Secpan"
import Cips from "./Cips"
import Cips2 from "./Cips2"
import Cips3 from "./Cips3"

176
export default {
liushikai committed
177 178 179
  name: "Cptadv",
  components: {
    "m-opnp1": Opnp1,
潘际乾 committed
180
    "m-sbxx": Sbxx,
liushikai committed
181
    "m-setpan": Setpan,
182
    "m-glepan": Glepan,
liushikai committed
183 184 185
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
chenzhaole committed
186
    "m-ptap": Ptap,
187 188
    "m-docpan2": Docpan2,
    "m-incp": Incp,
189
    "m-basp": Basp,
190
    "m-basp3": Basp3,
191 192 193 194
    "m-secpan" : Secpan,
    "m-cips": Cips,
    "m-cips2": Cips2,
    "m-cips3": Cips3,
liushikai committed
195 196 197 198 199 200
  },
  provide() {
    return {
      root: this,
    };
  },
201
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
202
  computed: {},
liushikai committed
203 204 205 206 207 208 209
  data() {
    return {
      tabVal: "opnp1",
      trnName: "cptadv",
      model: new Cptadv().data,
      // defaultRule:Default,
      // rules:this.mergeRules(Pattern,Check),
210 211 212 213
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
liushikai committed
214 215 216
      codes: { ...CodeTable },
    };
  },
wangguangchao committed
217 218
  methods: {
    mimeTabClick(tab) {
219 220
      this.tabClick(tab);
      const name = tab.name;
wangguangchao committed
221 222 223 224 225 226 227 228 229 230 231
      let rulePath;
      if (name === "docpan2") {
        rulePath = "lendoc.docpan";
      }
      if (name === "sbxx") {
        rulePath = "bopmod.wg,cnybop.cnyp";
      }
      if (name === "incp") {
        rulePath = "cnybop.incp";
      }
      if (!!rulePath) {
232
        this.executeRule(rulePath).then((res) => {
wangguangchao committed
233
          if (res.respCode == SUCCESS) {
234
            this.updateModel(res.data);
wangguangchao committed
235
          }
236
        });
wangguangchao committed
237
      }
238
    },
wangguangchao committed
239
  },
liushikai committed
240 241 242 243 244 245 246 247 248 249 250
  created: async function () {
    console.log("进入cptadv交易");
    let rtnmsg = await this.init(this.$route.query);
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
251
    }
liushikai committed
252 253
  },
};
254 255
</script>
<style>
潘际乾 committed
256
.el-col .el-divider--horizontal {
257
  margin-top: 0;
潘际乾 committed
258 259
}
.messageLabel .el-form-item__label {
260 261 262
  text-align: left;
  font-weight: bold;
  font-size: 12px;
潘际乾 committed
263
}
264
</style>