index.vue 4.63 KB
Newer Older
chenzhaole committed
1
<template>
LiRui committed
2 3
  <div class="eContainer">
    <c-page title="境内外币汇出汇款">
wangna committed
4 5 6 7 8 9 10
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="120px"
        size="small"
      >
chenzhaole committed
11
        <c-tabs ref="elment" :value="tabVal" type="card" @tab-click="tabClick">
LiRui committed
12
          <el-tab-pane label="业务信息" name="ovwp">
chenzhaole committed
13
            <c-content>
LiRui committed
14
              <m-ovwp :model="model" :codes="codes" />
chenzhaole committed
15 16
            </c-content>
          </el-tab-pane>
LiRui committed
17
          <el-tab-pane label="费用/账务" name="setpan,glepan">
18
            <c-content>
LiRui committed
19 20 21 22 23 24 25 26 27 28 29 30
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="结算" name="setpan">
                    <!-- 结算 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
31 32
            </c-content>
          </el-tab-pane>
LiRui committed
33 34 35 36
          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
37
          </el-tab-pane>
LiRui committed
38 39 40 41 42

          <el-tab-pane label="申报信息" name="cnyp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
chenzhaole committed
43
          </el-tab-pane>
nanrui committed
44
          <!-- 报文和面函 -->
LiRui committed
45
          <el-tab-pane label="报文/面函" name="docpan">
LiRui committed
46
            <c-content>
wangna committed
47
              <!--PD000000 -->
LiRui committed
48 49
              <m-docpan :model="model" :codes="codes" />
            </c-content>
chenzhaole committed
50
          </el-tab-pane>
LiRui committed
51
          <el-tab-pane label="附件信息" name="doctre">
LiRui committed
52
            <c-content>
wangna committed
53 54 55
              <!--附件 -->
              <m-doctre :model="model" :codes="codes" /> </c-content
            >>
56
          </el-tab-pane>
chenzhaole committed
57 58
        </c-tabs>
      </el-form>
wangna committed
59 60 61 62 63 64 65 66 67 68 69 70
      <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"
      >
71
      </c-grid-ety-prompt-dialog>
wangna committed
72 73 74 75 76 77
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
LiRui committed
78 79 80
      </c-function-btn>
    </c-page>
  </div>
chenzhaole committed
81 82 83 84 85 86 87
</template>

<script>
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Cptato from "~/model/Cptato";
wangren committed
88
import commonProcess from "~/mixin/commonProcess";
89
import commonFuncs from "~/mixin/commonFuncs";
wangna committed
90
import Check from "~/model/Cptato/Check";
chenzhaole committed
91
import Pattern from "~/model/Cptato/Pattern";
LiRui committed
92
import Default from "~/model/Cptato/Default";
93

LiRui committed
94 95 96
import Ovwp from "./Ovwp";
import Cnyp from "./Cnyp";
import Addbcb from "./Addbcb";
chenzhaole committed
97

98
import Setpan from "~/components/business/setmod/views";
99 100 101 102 103
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Glepan from "~/views/Public/Glepan";
import Doctre from "~/views/Public/Doctre";
import Sbxx from "~/views/Public/Sbxx";
104

chenzhaole committed
105
export default {
106 107
  name: "Cptato",
  components: {
LiRui committed
108
    "m-ovwp": Ovwp,
109 110 111 112 113 114
    "m-setpan": Setpan,
    "m-docpan": Docpan,
    "m-coninfp": Coninfp,
    "m-glepan": Glepan,
    "m-doctre": Doctre,
    "m-sbxx": Sbxx,
LiRui committed
115 116
    "m-cnyp": Cnyp,
    "m-addbcb": Addbcb,
117 118 119 120 121 122
  },
  provide() {
    return {
      root: this,
    };
  },
wangna committed
123
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
124 125
  data() {
    return {
LiRui committed
126
      tabVal: "ovwp",
127 128
      trnName: "cptato",
      model: new Cptato().data,
LiRui committed
129 130 131
      pattern: Pattern,
      checkRules: Check,
      defaultRules: Default,
LiRui committed
132
      activeNames: ["setpan"],
LiRui committed
133
      rules: null,
134 135 136 137 138
      codes: { ...CodeTable },
    };
  },
  methods: {
    myTabClick(tab) {
wangna committed
139
      this.tabClick(tab);
140
      /**
wangna committed
141 142 143
       *  do it yourself
       **/
    },
144 145
  },
  created: async function () {
chenzhaole committed
146 147 148
    console.log("进入cptato交易");
    let rtnmsg = await this.init(this.$route.query);
    if (rtnmsg.respCode == SUCCESS) {
LiRui committed
149
      this.updateModel(rtnmsg.data);
chenzhaole committed
150 151 152 153 154 155 156 157 158 159 160 161 162
      //TODO 处理数据逻辑
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
</script>
<style>
</style>