index.vue 5.61 KB
Newer Older
chenzhaole committed
1
<template>
2 3 4 5
  <c-page title="境内外币汇入汇款">
    <div class="eContainer">
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <c-function-btn
taojinrui committed
6 7 8 9 10 11 12 13 14 15 16 17 18
        :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>

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
          <!--Ovweview -->
          <el-tab-pane label="Ovweview" name="opnp1">
            <c-content>
              <m-opnp1 :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
40

41 42 43 44 45 46
          <!--Parties -->
          <el-tab-pane label="Parties" name="pardet">
            <c-content>
              <m-pardet :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
47

48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
          <!--Settlement -->
          <el-tab-pane label="Settlements" name="setpan">
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

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

          <!-- Messages -->
taojinrui committed
63
          <el-tab-pane label="Messages" name="docpan">
64
            <c-content>
taojinrui committed
65
              <m-docpan :model="model" :codes="codes" />
66 67 68 69 70 71 72 73 74 75
            </c-content>
          </el-tab-pane>

          <!--Attachments -->
          <el-tab-pane label="Attachments" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

76 77 78 79 80 81 82
          <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>
taojinrui committed
83

84 85 86 87 88 89 90 91
          <el-tab-pane
            label="涉外收入申报单-基础信息"
            name="dbb"
            v-if="model.bopmod.szflg === '1' && model.bopmod.basflg"
          >
            <m-dbb :model="model" :codes="codes"></m-dbb>
          </el-tab-pane>

taojinrui committed
92
          <!--收账通知 -->
taojinrui committed
93
          <el-tab-pane label="收账通知" name="docpan1">
taojinrui committed
94
            <c-content>
taojinrui committed
95
              <m-docpan1 :model="model" :codes="codes" />
taojinrui committed
96 97 98 99 100 101 102 103 104 105
            </c-content>
          </el-tab-pane>

          <!--PD000006 -->
          <el-tab-pane label="外管信息" name="wg">
            <c-content>
              <m-wg :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

106 107 108 109 110 111 112 113
          <!--PD000018 -->
          <!-- <el-tab-pane label="PD000018" name="addinf">
            <c-content>
              <m-addinf :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane> -->
        </c-tabs>
      </el-form>
taojinrui committed
114 115 116 117 118 119

      

       <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
 </c-grid-ety-prompt-dialog>

120 121
    </div>
  </c-page>
chenzhaole committed
122 123
</template>
<script>
124 125 126 127 128 129 130 131 132 133 134 135 136
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Cptati from "~/model/Cptati";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Cptati/Check";
import Default from "~/model/Cptati/Default";
import Pattern from "~/model/Cptati/Pattern";
import Opnp1 from "./Opnp1";
import Pardet from "./Pardet";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Addinf from "./Addinf";
import Doctre from "~/views/Public/Doctre";
taojinrui committed
137 138
import Docpan from "~/views/Public/Docpan";
import Docpan1 from "./Docpan";
139
import Wg from "./Wg";
140 141
import Dbe from "./Dbe.vue";
import Dbb from "./Dbb.vue";
chenzhaole committed
142

taojinrui committed
143 144
import commonFuncs from "~/mixin/commonFuncs";

chenzhaole committed
145
export default {
146 147 148 149 150 151 152 153 154
  name: "Cptati",
  components: {
    "m-opnp1": Opnp1,
    "m-pardet": Pardet,
    "m-setpan": Setpan,
    "m-coninfp": Coninfp,
    "m-addinf": Addinf,
    "m-doctre": Doctre,
    "m-docpan": Docpan,
taojinrui committed
155
    "m-docpan1": Docpan1,
156
    "m-wg": Wg,
157 158
    "m-dbe": Dbe,
    "m-dbb": Dbb,
159 160 161 162 163 164
  },
  provide() {
    return {
      root: this,
    };
  },
taojinrui committed
165
  mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
  data() {
    return {
      tabVal: "opnp1",
      trnName: "cptati",
      model: new Cptati().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
184
    },
185 186 187 188 189 190 191
  },
  created: async function () {
    console.log("进入cptati交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      //TODO 处理数据逻辑
taojinrui committed
192
      if(this.isInDisplay){
193
        this.restoreDisplay();
taojinrui committed
194
      }
195 196
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
chenzhaole committed
197
    }
198 199
  },
};
chenzhaole committed
200 201 202
</script>
<style>
</style>