index.vue 5.46 KB
Newer Older
1
<template>
Wuyuqiu committed
2 3
  <div class="eContainer">
    <c-page title="进口信用证到单">
jianglong committed
4

5 6 7 8 9 10 11 12
     <!--
        <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>
     -->
jianglong committed
13 14


Wuyuqiu committed
15 16 17 18
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
19
        label-width="120px"
Wuyuqiu committed
20 21 22 23 24 25 26 27 28 29
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
30

Wuyuqiu committed
31
          <el-tab-pane label="业务信息" name="ovwp">
“yanyuxin” committed
32
            <c-content>
Wuyuqiu committed
33
              <m-ovwp :model="model" :codes="codes" />
“yanyuxin” committed
34
            </c-content>
Wuyuqiu committed
35 36
          </el-tab-pane>

Wuyuqiu committed
37 38
          <!--PD000001 -->
          <el-tab-pane label="统一授信" name="limitbody">
“yanyuxin” committed
39
            <c-content>
Wuyuqiu committed
40
              <m-limitbody :model="model" :codes="codes" />
“yanyuxin” committed
41
            </c-content>
Wuyuqiu committed
42 43
          </el-tab-pane>

44
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
“yanyuxin” committed
45
            <c-content>
Wuyuqiu committed
46 47 48 49 50 51 52 53 54 55
              <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>
56 57 58 59
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
Wuyuqiu committed
60 61
                </el-collapse>
              </div>
“yanyuxin” committed
62
            </c-content>
Wuyuqiu committed
63 64 65
          </el-tab-pane>

          <!--PD000000 -->
Wuyuqiu committed
66
          <el-tab-pane label="附言" name="coninfp">
“yanyuxin” committed
67
            <c-content>
68
              <div class="eibs-tab">
Wuyuqiu committed
69
              <m-coninfp :model="model" :codes="codes" />
70
              </div>
“yanyuxin” committed
71
            </c-content>
Wuyuqiu committed
72 73 74
          </el-tab-pane>

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

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

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

Wuyuqiu committed
120 121 122 123 124
import Check from "~/model/Litdck/Check";
import Default from "~/model/Litdck/Default";
import Pattern from "~/model/Litdck/Pattern";
import Litdckp from "./Litdckp";
import Docpre from "./Docpre";
125 126 127 128 129
// import Engp from "./Engp"
// import Setpan from "./Setpan"
// import Coninfp from "./Coninfp"
// import Docpan from "./Docpan"
// import Doctre from "./Doctre"
Wuyuqiu committed
130
// import Limitbody from "./Limitbody";
Wuyuqiu committed
131 132 133
import Srmp from "./Srmp";

import Engp from "~/views/Public/Engp";
134
import Setpan from "~/components/business/setmod/views";
Wuyuqiu committed
135 136 137
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
Wuyuqiu committed
138
import Limitbody from "~/views/Public/Limitbody"
139 140

export default {
Wuyuqiu committed
141 142
  name: "Litdck",
  components: {
Wuyuqiu committed
143
    "m-ovwp": Ovwp,
Wuyuqiu committed
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
    "m-litdckp": Litdckp,
    "m-docpre": Docpre,
    "m-engp": Engp,
    "m-setpan": Setpan,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-limitbody": Limitbody,
    "m-srmp": Srmp,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
Wuyuqiu committed
162
      tabVal: "ovwp",
Wuyuqiu committed
163 164 165 166 167 168 169
      trnName: "litdck",
      model: new Litdck().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
Wuyuqiu committed
170
      activeNames: ["engp"],
Wuyuqiu committed
171 172 173 174 175 176 177 178
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
179
    },
Wuyuqiu committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193
  },
  created: async function () {
    console.log("进入litdck交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
194 195 196
</script>
<style>
</style>