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

5 6 7 8
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
9
        label-width="120px"
10
        size="small"
Wuyuqiu committed
11
        label-position="right"
12 13 14 15
        :validate-on-rule-change="false"
      >
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
          <!--PD000001 -->
Wuyuqiu committed
16
          <el-tab-pane label="业务信息" name="ovwp">
17 18 19 20 21
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

Wuyuqiu committed
22 23
          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan">
“yanyuxin” committed
24 25 26
            <c-content>
              <m-ccvpan :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
27 28 29 30
          </el-tab-pane>

          <!--PD000001 -->
          <el-tab-pane label="统一授信" name="limitbody">
“yanyuxin” committed
31 32 33
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
34 35 36
          </el-tab-pane>

          <!--PD000027 -->
Wuyuqiu committed
37
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
wangren committed
38
            <c-content>
Wuyuqiu committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
              <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
55 56
            </c-content>
          </el-tab-pane>
57 58

          <!--PD000510 -->
Wuyuqiu committed
59
          <el-tab-pane label="备查/附言" name="addbcb">
“yanyuxin” committed
60 61 62
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
63 64 65
          </el-tab-pane>

          <!--PD000000 -->
Wuyuqiu committed
66
          <!-- <el-tab-pane label="附言" name="coninfp">
67
            <m-coninfp :model="model" :codes="codes" />
Wuyuqiu committed
68
          </el-tab-pane> -->
69

Wuyuqiu committed
70 71 72 73 74 75 76
          <!--PD000002 -->
          <el-tab-pane label="申报信息" name="cnyp,libp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

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

          <!--PD000546 -->
Wuyuqiu committed
85
          <el-tab-pane label="附件信息" name="doctre">
“yanyuxin” committed
86 87 88
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
89 90 91 92 93
          </el-tab-pane>


        </c-tabs>
      </el-form>
wangna committed
94
     
95 96 97 98 99 100 101 102 103 104 105
      <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"
106 107
      >
      </c-grid-ety-prompt-dialog>
Wuyuqiu committed
108 109

      <c-function-btn
潘际乾 committed
110
        :handleConfirm="handleConfirm"
Wuyuqiu committed
111 112 113 114 115
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
116 117
    </c-page>
  </div>
118 119
</template>
<script>
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
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 Namp from "./Namp";
import Spcrcvp from "./Spcrcvp";
import Spcbenp from "./Spcbenp";
Wuyuqiu committed
141 142
// import Limitbody from "./Limitbody";
import Limitbody from "~/views/Public/Limitbody";
143 144
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
145 146 147
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
148
import Doctre from "~/views/Public/Doctre";
149
import Glepan from "~/views/Public/Glepan";
Wuyuqiu committed
150
import Doxp from "~/views/Public/Doxp";
151 152

export default {
wangren committed
153
  name: "Litopn",
154 155 156 157 158 159 160 161
  components: {
    "m-ovwp": Ovwp,
    "m-aamp": Aamp,
    "m-detp": Detp,
    "m-ptyp": Ptyp,
    "m-dogp": Dogp,
    "m-dorp": Dorp,
    "m-adcp": Adcp,
Wuyuqiu committed
162
    "m-doxp": Doxp,
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
    "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-namp": Namp,
    "m-limitbody": Limitbody,
    "m-spcrcvp": Spcrcvp,
    "m-spcbenp": Spcbenp,
  },
  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
194
      activeNames: ["engp"],
195 196 197 198 199 200 201 202 203 204
    };
  },
  methods: {
  },
  created: async function () {
    console.log("进入litopn交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
jianglong committed
205

wangren committed
206
      if (this.isInDisplay) {
jianglong committed
207 208
        this.restoreDisplay();
      }
209 210
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
211
    }
212 213
  },
};
214
</script>
215
<style></style>