index.vue 4.56 KB
Newer Older
孟冬雪 committed
1 2
<template>
  <div class="eContainer">
Wuyuqiu committed
3
    <c-page title="转让信用证注销">
4
    <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
Wuyuqiu committed
5
    
孟冬雪 committed
6 7 8 9
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
10
      label-width="120px"
孟冬雪 committed
11 12 13 14
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
15
      <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
        <!--PD000001 -->
          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000001 -->
          <!-- <el-tab-pane label="保证金" name="ccvpan">
            <c-content>
              <m-ccvpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane> -->

          <!--PD000001 -->
          <!-- <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane> -->

          <!--PD000027 -->
          <el-tab-pane label="费用/账务" name="setpan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="结算" name="setpan">
                    <!-- 结算 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>

          <!--PD000510 -->
          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000529 -->
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000546 -->
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
孟冬雪 committed
71
      </c-tabs>
孟冬雪 committed
72
    </el-form>
73 74 75 76 77 78 79 80 81 82 83 84 85
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
    <c-grid-ety-prompt-dialog
      ref="doxpDialog"
      :isPty="false"
      :promptData="promptData"
      @select-ety="selectMsg"
    >
    </c-grid-ety-prompt-dialog>
Wuyuqiu committed
86 87 88 89 90 91 92
    <c-function-btn
      :handleSubmit="handleSubmit"
      :handleCheck="handleCheck"
      :handleStash="handleStash"
    >
    </c-function-btn>
    </c-page>
孟冬雪 committed
93 94 95
  </div>
</template>
<script>
孟冬雪 committed
96 97 98
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Lttcan from "~/model/Lttcan";
wangren committed
99
import commonProcess from "~/mixin/commonProcess";
100
import commonFuncs from "~/mixin/commonFuncs";
孟冬雪 committed
101 102 103 104
import Check from "~/model/Lttcan/Check";
import Default from "~/model/Lttcan/Default";
import Pattern from "~/model/Lttcan/Pattern";
import Canp from "./Canp";
105 106
import Ovwp from "./Ovwp";
import Addbcb from "./Addbcb";
107 108 109 110 111
import Rcldetp from "./Rcldetp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
孟冬雪 committed
112 113

export default {
孟冬雪 committed
114 115
  name: "Lttcan",
  components: {
116 117
    "m-ovwp": Ovwp,
    "m-addbcb": Addbcb,
孟冬雪 committed
118
    "m-canp": Canp,
119 120 121 122 123
    "m-setpan": Setpan,
    "m-rcldetp": Rcldetp,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
孟冬雪 committed
124 125 126 127 128 129
  },
  provide() {
    return {
      root: this,
    };
  },
130
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
孟冬雪 committed
131 132
  data() {
    return {
133
      tabVal: "ovwp",
孟冬雪 committed
134 135 136 137 138 139 140 141 142
      trnName: "lttcan",
      model: new Lttcan().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
143
      activeNames: ["setpan"],
孟冬雪 committed
144 145 146
    };
  },
  methods: {
147 148 149 150 151 152
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
    },
孟冬雪 committed
153 154 155 156 157
  },
  created: async function () {
    console.log("进入lttcan交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
158 159 160 161
      this.updateModel(rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
孟冬雪 committed
162 163 164
      //TODO 处理数据逻辑
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
孟冬雪 committed
165
    }
孟冬雪 committed
166 167
  },
};
孟冬雪 committed
168 169 170
</script>
<style>
</style>