index.vue 6.34 KB
Newer Older
1
<template>
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 16
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
17
        label-width="120px"
18
        size="small"
Wuyuqiu committed
19
        label-position="right"
20 21 22 23
        :validate-on-rule-change="false"
      >
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
          <!--PD000001 -->
Wuyuqiu committed
24
          <el-tab-pane label="业务信息" name="ovwp">
25 26 27 28 29
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

Wuyuqiu committed
30 31
          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan">
“yanyuxin” committed
32 33 34
            <c-content>
              <m-ccvpan :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
35 36 37 38
          </el-tab-pane>

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

          <!--PD000027 -->
Wuyuqiu committed
45
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
wangren committed
46
            <c-content>
Wuyuqiu committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
              <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>
wangren committed
63 64
            </c-content>
          </el-tab-pane>
65 66

          <!--PD000510 -->
Wuyuqiu committed
67
          <el-tab-pane label="备查/附言" name="addbcb">
“yanyuxin” committed
68 69 70
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
71 72 73
          </el-tab-pane>

          <!--PD000000 -->
Wuyuqiu committed
74
          <!-- <el-tab-pane label="附言" name="coninfp">
75
            <m-coninfp :model="model" :codes="codes" />
Wuyuqiu committed
76
          </el-tab-pane> -->
77

Wuyuqiu committed
78 79 80 81 82 83 84
          <!--PD000002 -->
          <el-tab-pane label="申报信息" name="cnyp,libp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

85
          <!--PD000529 -->
Wuyuqiu committed
86
          <el-tab-pane label="报文/面函" name="docpan">
“yanyuxin” committed
87 88 89
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
90 91 92
          </el-tab-pane>

          <!--PD000546 -->
Wuyuqiu committed
93
          <el-tab-pane label="附件信息" name="doctre">
“yanyuxin” committed
94 95 96
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
97 98 99 100 101
          </el-tab-pane>


        </c-tabs>
      </el-form>
wangna committed
102
     
103 104 105 106 107 108 109 110 111 112 113
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        @select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
114 115
      >
      </c-grid-ety-prompt-dialog>
Wuyuqiu committed
116 117 118 119 120 121 122

      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
123 124
    </c-page>
  </div>
125 126
</template>
<script>
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Litopn from "~/model/Litopn";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Litopn/Check";
import Default from "~/model/Litopn/Default";
import Pattern from "~/model/Litopn/Pattern";
import Ovwp from "./Ovwp";
import Aamp from "./Aamp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Dogp from "./Dogp";
import Dorp from "./Dorp";
import Adcp from "./Adcp";
import Addbcb from "./Addbcb";
import Cnyp from "./Cnyp";
import Libp from "./Libp";
import Spcrcvp from "./Spcrcvp";
import Spcbenp from "./Spcbenp";
wangna committed
147

Wuyuqiu committed
148 149
// import Limitbody from "./Limitbody";
import Limitbody from "~/views/Public/Limitbody";
150 151
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
152 153 154
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
155
import Doctre from "~/views/Public/Doctre";
156
import Glepan from "~/views/Public/Glepan";
Wuyuqiu committed
157
import Doxp from "~/views/Public/Doxp";
158 159

export default {
wangren committed
160
  name: "Litopn",
161 162 163 164 165 166 167 168
  components: {
    "m-ovwp": Ovwp,
    "m-aamp": Aamp,
    "m-detp": Detp,
    "m-ptyp": Ptyp,
    "m-dogp": Dogp,
    "m-dorp": Dorp,
    "m-adcp": Adcp,
Wuyuqiu committed
169
    "m-doxp": Doxp,
170 171 172 173 174 175 176 177 178 179 180 181 182
    "m-engp": Engp,
    "m-ccvpan": Ccvpan,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-addbcb": Addbcb,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-cnyp": Cnyp,
    "m-libp": Libp,
    "m-limitbody": Limitbody,
    "m-spcrcvp": Spcrcvp,
    "m-spcbenp": Spcbenp,
wangna committed
183
    
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "ovwp",
      trnName: "litopn",
      model: new Litopn().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
Wuyuqiu committed
201
      activeNames: ["engp"],
202 203 204 205 206 207 208 209 210 211
    };
  },
  methods: {
  },
  created: async function () {
    console.log("进入litopn交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
jianglong committed
212

wangren committed
213
      if (this.isInDisplay) {
jianglong committed
214 215
        this.restoreDisplay();
      }
216 217
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
218
    }
219 220
  },
};
221
</script>
222
<style></style>