index.vue 5.14 KB
Newer Older
chenzhaole committed
1 2 3
<template>
  <c-page title="境内外币汇出汇款">
    <div class="eContainer">
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
    <!-- <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>

chenzhaole committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        size="small"
      >
        <c-tabs ref="elment" :value="tabVal" type="card" @tab-click="tabClick">
          <el-tab-pane label="Overview" name="opnp1">
            <!--PD000020 -->
            <c-content>
            <m-opnp1 :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
33 34 35 36 37 38
          <el-tab-pane label="parties" name="pardet">
            <!--PD000546 parties-->
            <c-content>
            <m-pardet :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
chenzhaole committed
39
          <el-tab-pane label="账务" name="setpan">
40
            <!--PD000006 settlment-->
chenzhaole committed
41 42
            <m-setpan :model="model" :codes="codes" />
          </el-tab-pane>
43 44 45 46
          <el-tab-pane label="分录" name="glepan">
            <!--PD000006 bookings-->
            <m-glepan :model="model" :codes="codes" />
          </el-tab-pane>
chenzhaole committed
47 48 49 50
          <el-tab-pane label="附言" name="coninfp">
            <!--PD000000 -->
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>
51
          <!-- Messages -->
chenzhaole committed
52 53 54 55
          <el-tab-pane label="报文及面函" name="docpan">
            <!--PD000000 -->
            <m-docpan :model="model" :codes="codes" />
          </el-tab-pane>
56 57 58 59
          <el-tab-pane label="附件" name="doctre">
            <!--attachments -->
            <m-doctre :model="model" :codes="codes" />
          </el-tab-pane>
chenzhaole committed
60 61 62 63
          <el-tab-pane label="外管信息" name="wg">
            <!--PD000546 -->
            <m-wg :model="model" :codes="codes" />
          </el-tab-pane>
64
          
65 66 67 68 69 70 71 72
          <el-tab-pane
            label="境内汇款申请书-基础信息"
            name="dbe"
            v-if="model.bopmod.szflg === '2' && model.bopmod.basflg"
          >
            <m-dbe :model="model" :codes="codes"></m-dbe>
          </el-tab-pane>
          <el-tab-pane
taojinrui committed
73
            label="涉外汇款申请书-基础信息"
74 75 76 77 78 79
            name="dbb"
            v-if="model.bopmod.szflg === '1' && model.bopmod.basflg"
          >
            <m-dbb :model="model" :codes="codes"></m-dbb>
          </el-tab-pane>
          
chenzhaole committed
80 81
        </c-tabs>
      </el-form>
82 83
      <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
      </c-grid-ety-prompt-dialog>
chenzhaole committed
84 85 86 87 88 89 90 91 92
    </div>
  </c-page>
</template>

<script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Cptato from "~/model/Cptato";
wangren committed
93
import commonProcess from "~/mixin/commonProcess";
chenzhaole committed
94 95 96 97
import Pattern from "~/model/Cptato/Pattern";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
98 99
import Glepan from "~/views/Public/Glepan";
import Doctre from "~/views/Public/Doctre";
100 101 102
import Opnp1 from "./Opnp1";
import Pardet from "./Pardet";
import Wg from "./Wg";
103 104 105 106
import Basp from "./Basp";
import Sbxx from "~/views/Public/Sbxx";
import Dbe from "./Dbe.vue";
import Dbb from "./Dbb.vue";
chenzhaole committed
107

108 109
import commonFuncs from "~/mixin/commonFuncs";

chenzhaole committed
110 111 112 113 114 115 116 117
export default {
    name: "Cptato",
    components:{
        "m-opnp1" : Opnp1,
        "m-setpan" : Setpan,
        "m-docpan" : Docpan,
        "m-coninfp" : Coninfp,
        "m-wg" : Wg,
118 119 120
        "m-glepan" : Glepan,
        "m-pardet" : Pardet,
        "m-doctre" : Doctre,
121 122 123 124
        "m-basp" : Basp,
        "m-sbxx": Sbxx,
        "m-dbe": Dbe,
        "m-dbb": Dbb,
chenzhaole committed
125 126 127 128 129 130
    },
    provide() {
        return {
            root: this,
        };
    },
131
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
chenzhaole committed
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
    data(){
        return {
            tabVal: "opnp1",
            trnName: "cptato",
            model: new Cptato().data,
            rules: Pattern,
            codes: { ...CodeTable },
        };
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
     },
    created: async function () {
    console.log("进入cptato交易");
    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: "服务请求失败!" });
    }
  },
};
</script>
<style>

</style>