index.vue 4.66 KB
Newer Older
liuxiaojing committed
1
<template>
liushikai committed
2 3 4 5 6 7 8 9
  <c-page title="汇出汇款">
    <div class="eContainer">
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="200px"
        size="small"
潘际乾 committed
10
        :validate-on-rule-change="false"
liushikai committed
11 12 13 14 15 16
      >
        <el-tabs ref="elment" type="card" @tab-click="tabClick">
          <el-tab-pane label="Overview">
            <!--PD000020 -->
            <m-opnp1 :model="model" :codes="codes" />
          </el-tab-pane>
liuyunfeng committed
17

liushikai committed
18 19 20 21
          <el-tab-pane label="Settlement">
            <!--PD000000 -->
            <m-setpan :model="model" :codes="codes" />
          </el-tab-pane>
liuyunfeng committed
22

liushikai committed
23 24
          <el-tab-pane label="Bookings">
            <!--PD000001 -->
25
            <m-glepan :model="model" :codes="codes" ref="glepan"/>
liushikai committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
          </el-tab-pane>

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

          <el-tab-pane label="Messages">
            <!--PD000529 -->
            <m-docpan :model="model" :codes="codes" />
          </el-tab-pane>

          <el-tab-pane label="Attachments">
            <!--PD000546 -->
            <m-doctre :model="model" :codes="codes" />
          </el-tab-pane>
liuxin committed
42

liushikai committed
43 44 45 46
          <el-tab-pane label="Finance">
            <!--PD000218 -->
            <m-finp :model="model" :codes="codes" />
          </el-tab-pane>
47

liushikai committed
48 49
          <el-tab-pane label="外管信息">
            <!--PD000009 -->
liushikai committed
50 51 52
            <m-wg :model="model" :codes="codes"/>
          </el-tab-pane>
          
liushikai committed
53
          <el-tab-pane label="境内汇款申请书-基础信息" v-if="model.bopmod.basflg">
liushikai committed
54 55
            <m-dbe :model="model" :codes="codes"></m-dbe>
          </el-tab-pane>
liushikai committed
56
          <el-tab-pane label="境外汇款申请书-基础信息" v-if="model.bopmod.basflg">
liushikai committed
57
            <m-dbb :model="model" :codes="codes"></m-dbb>
liushikai committed
58 59 60 61
          </el-tab-pane>

          <el-tab-pane label="跨境人民币申报">
            <!--PD000002 -->
liushikai committed
62
            <m-cnyp :model="model" :codes="codes"/>
liushikai committed
63
          </el-tab-pane>
liushikai committed
64
          <el-tab-pane label="2111跨境支出信息">
liushikai committed
65
            <m-outp :model="model" :codes="codes"></m-outp>
liushikai committed
66
        </el-tab-pane>
liushikai committed
67
        </el-tabs>
liushikai committed
68
        
liushikai committed
69 70 71 72 73 74
      </el-form>
    </div>
  </c-page>
</template>
<script>
import Api from "~/service/Api";
潘际乾 committed
75
import Utils from "~/utils/index"
liushikai committed
76 77 78 79
import CodeTable from "~/config/CodeTable";
import Cptopn from "~/model/Cptopn";
import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Cptopn/Pattern";
潘际乾 committed
80 81
import Default from "~/model/Cptopn/Default";
import Check from "~/model/Cptopn/Check";
liushikai committed
82 83 84 85 86 87 88 89 90
import Opnp1 from "./Opnp1";
import Setpan from "./Setpan";
import Glepan from "./Glepan";
import Coninfp from "./Coninfp";
import Docpan from "./Docpan";
import Doctre from "./Doctre";
import Finp from "./Finp";
import Wg from "./Wg";
import Cnyp from "./Cnyp";
liushikai committed
91 92
import Dbe from "./Dbe.vue"
import Dbb from "./Dbb.vue"
liushikai committed
93
import Outp from "./Outp.vue"
liushikai committed
94 95 96 97 98 99 100 101 102 103 104 105

export default {
  components: {
    "m-opnp1": Opnp1,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-finp": Finp,
    "m-wg": Wg,
    "m-cnyp": Cnyp,
liushikai committed
106
    "m-dbe": Dbe,
liushikai committed
107 108
    "m-dbb": Dbb,
    "m-outp": Outp
liushikai committed
109
  },
110 111 112 113 114
    provide() {
        return {
            root: this
        }
    },
liushikai committed
115 116 117
  mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
  data() {
    return {
潘际乾 committed
118
      trnName:"cptopn",
liushikai committed
119
      model: new Cptopn().data,
潘际乾 committed
120 121 122 123 124
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules:null,
      codes: {...CodeTable},
liushikai committed
125 126
    };
  },
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
   methods:{
        tabClick(vm){
            if(this.isInDisplay){
                return
            }
            const label = vm.label
           
            if (label === "Settlement") {
                this.executeRule("setmod.setpan").then(res => {
                    if (res.respCode == "AAAAAA"){
                        const data = res.data;
                        Utils.copyValueFromVO(this.model, data)
                    }
                })
            }
             if (label === "Bookings") {
                this.executeRule("setmod.glemod.glepan").then(res => {
                    const data = res.data;
                    this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
                })
            }
        }
    },
liushikai committed
150 151 152
  created: async function () {
    console.log("进入cptopn交易");
    let rtnmsg = await Api.post("cptopn/init", { params: {} });
潘际乾 committed
153 154
    if (rtnmsg.respCode == SUCCESS) {
      Utils.copyValueFromVO(this.model,rtnmsg.data)
liushikai committed
155 156
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
157
    }
liushikai committed
158 159
  },
};
liuxiaojing committed
160 161
</script>
<style>
162
</style>