index.vue 6.19 KB
Newer Older
1
<template>
Wuyuqiu committed
2 3
  <div class="eContainer">
    <c-page title="进口信用证修改">
4 5 6 7 8 9 10 11
     <!--
        <div  class="fast-button">
           <el-button size="small">备忘录</el-button>
           <el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</el-button>
           <el-button size="small">制裁信息</el-button>
           <el-button size="small">智能提示</el-button>
        /div>
     -->
Wuyuqiu committed
12 13 14 15
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
16
        label-width="120px"
Wuyuqiu committed
17 18 19 20 21 22 23 24 25 26
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
Wuyuqiu committed
27
          <el-tab-pane label="业务信息" name="ovwp">
Wuyuqiu committed
28 29 30 31
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
jianglong committed
32

Wuyuqiu committed
33 34
          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan">
Wuyuqiu committed
35
            <c-content>
Wuyuqiu committed
36
              <m-ccvpan :model="model" :codes="codes" />
Wuyuqiu committed
37 38
            </c-content>
          </el-tab-pane>
jianglong committed
39

Wuyuqiu committed
40 41
          <!--PD000001 -->
          <el-tab-pane label="统一授信" name="limitbody">
Wuyuqiu committed
42
            <c-content>
Wuyuqiu committed
43
              <m-limitbody :model="model" :codes="codes" />
Wuyuqiu committed
44 45 46 47 48
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
Wuyuqiu committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
                    <m-engp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <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>
Wuyuqiu committed
65 66
            </c-content>
          </el-tab-pane>
jianglong committed
67

Wuyuqiu committed
68
          <!--PD000328 -->
Wuyuqiu committed
69
          <el-tab-pane label="备查/附言" name="addbcb">
Wuyuqiu committed
70 71 72 73
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
jianglong committed
74

Wuyuqiu committed
75
          <!--PD000529 -->
Wuyuqiu committed
76
          <el-tab-pane label="报文/面函" name="docpan">
Wuyuqiu committed
77 78 79 80
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
jianglong committed
81

Wuyuqiu committed
82
          <!--PD000546 -->
Wuyuqiu committed
83
          <el-tab-pane label="附件信息" name="doctre">
Wuyuqiu committed
84 85 86 87
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
jianglong committed
88

Wuyuqiu committed
89 90 91 92 93 94 95 96 97
        </c-tabs>
      </el-form>
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
      <c-grid-ety-prompt-dialog
98 99
        ref="etyDialog"
        :promptData="promptData"
100
        @select-ety="selectEty"
101 102
      >
      </c-grid-ety-prompt-dialog>
103 104 105 106 107
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
Wuyuqiu committed
108 109
      >
      </c-grid-ety-prompt-dialog>
Wuyuqiu committed
110 111
    </c-page>
  </div>
112 113
</template>
<script>
jianglong committed
114 115 116 117 118
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Litame from "~/model/Litame";
import commonProcess from "~/mixin/commonProcess";
119 120
import commonFuncs from "~/mixin/commonFuncs";

jianglong committed
121 122 123 124 125
import Check from "~/model/Litame/Check";
import Default from "~/model/Litame/Default";
import Pattern from "~/model/Litame/Pattern";
import Amep from "./Amep";
import Ovwp from "./Ovwp";
Wuyuqiu committed
126
import Ovwp1 from "./Ovwp1";
jianglong committed
127 128 129 130 131 132 133 134 135
import Aamp from "./Aamp";
import Narp from "./Narp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Inspame from "./Inspame";
import Addbcb from "./Addbcb";
import Dorpame from "./Dorpame";
import Dogpame from "./Dogpame";
import Adcpame from "./Adcpame";
136 137 138 139 140 141 142 143

import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan";
Wuyuqiu committed
144 145
// import Limitbody from "./Limitbody";
import Limitbody from "~/views/Public/Limitbody";
jianglong committed
146
import AampVue from "../Detame/Aamp.vue";
Wuyuqiu committed
147 148
import Spbpame from "./Spbpame.vue";
import Sprpame from "./Sprpame.vue";
jianglong committed
149

150
export default {
Wuyuqiu committed
151
  name: "Litame",
jianglong committed
152 153 154
  components: {
    "m-amep": Amep,
    "m-ovwp": Ovwp,
Wuyuqiu committed
155
    "m-ovwp1": Ovwp1,
jianglong committed
156 157 158 159 160 161 162 163 164 165 166
    "m-aamp": Aamp,
    "m-narp": Narp,
    "m-detp": Detp,
    "m-ptyp": Ptyp,
    "m-inspame": Inspame,
    "m-engp": Engp,
    "m-ccvpan": Ccvpan,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-addbcb": Addbcb,
    "m-coninfp": Coninfp,
Wuyuqiu committed
167 168
    "m-spbpame": Spbpame,
    "m-sprpame": Sprpame,
jianglong committed
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-dorpame": Dorpame,
    "m-dogpame": Dogpame,
    "m-adcpame": Adcpame,
    "m-limitbody": Limitbody,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  computed: {},
  data() {
    return {
Wuyuqiu committed
185
      tabVal: "ovwp",
jianglong committed
186 187 188 189 190 191 192
      trnName: "litame",
      model: new Litame().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
Wuyuqiu committed
193
      activeNames: ["engp"],
jianglong committed
194 195 196 197 198 199 200 201
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
202
    },
jianglong committed
203 204 205 206 207
  },
  created: async function () {
    console.log("进入litame交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
208
      this.updateModel(rtnmsg.data);
jianglong committed
209 210 211 212 213
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
214
    }
jianglong committed
215 216
  },
};
217 218 219
</script>
<style>
</style>