index.vue 4.57 KB
Newer Older
1
<template>
wangna committed
2 3 4
  <c-page title="出口保函索赔">
    <div class="eContainer">
      <c-function-btn
panziyi committed
5 6 7 8
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
wangna committed
9 10 11 12 13 14 15 16 17 18 19
        <el-button size="small">备忘录</el-button>
        <el-button size="small">影像信息</el-button>
        <!-- <el-button size="small">使用模板</el-button> -->
        <el-button size="small">制裁信息</el-button>
        <!-- <el-button size="small">拆分报文</el-button> -->
        <el-button size="small">智能提示</el-button>
      </c-function-btn>
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
20
        label-width="120px"
wangna committed
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
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
          <!--PD000063 -->
          <el-tab-pane label="索赔" name="gitsetp1">
            <c-content>
              <m-gitsetp1 :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000027 -->
          <el-tab-pane label="表外" name="engp">
            <c-content>
              <m-engp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000000 -->
          <el-tab-pane label="费用及账务" name="setpan">
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000020 -->
          <el-tab-pane label="附言" name="coninfp">
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>
panziyi committed
56

wangna committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
          <!--PD000529 -->
          <el-tab-pane label="报文" name="docpan">
            <m-docpan :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000546 -->
          <el-tab-pane label="交易附件" name="doctre">
            <m-doctre :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000170 -->
          <el-tab-pane label="详细信息" name="gitdetp">
            <m-gitdetp :model="model" :codes="codes" />
          </el-tab-pane>

          <!--PD000001 -->
          <el-tab-pane label="授信额度" name="Limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
    </div>
panziyi committed
87
  </c-page>
88 89
</template>
<script>
panziyi committed
90 91 92 93 94
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Getcrq from "~/model/Getcrq";
import commonProcess from "~/mixin/commonProcess";
95

panziyi committed
96 97 98 99 100 101
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Getcrq/Check";
import Default from "~/model/Getcrq/Default";
import Pattern from "~/model/Getcrq/Pattern";
import Gitsetp1 from "./Gitsetp1";
import Setpan from "~/views/Public/Setpan";
wangna committed
102 103 104 105 106 107 108
// import Detp from "./Detp";
import Gitdetp from "./Gitdetp";
import Limitbody from "~/views/Public/Limitbody";
import Engp from "~/views/Public/Engp";
import Doctre from "~/views/Public/Doctre";
import Docpan from "~/views/Public/Docpan";
import Coninfp from "~/views/Public/Coninfp"
109
export default {
wangna committed
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
  name: "Getcrq",
  components: {
    "m-gitsetp1": Gitsetp1,
    "m-engp": Engp,
    "m-setpan": Setpan,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-gitdetp": Gitdetp,
    "m-limitbody": Limitbody,
    "m-coninfp" : Coninfp,
    // "m-detp": Detp,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "gitsetp1",
      trnName: "getcrq",
      model: new Getcrq().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
146
    },
wangna committed
147
  },
panziyi committed
148

wangna committed
149 150 151
  created: async function () {
    console.log("进入getcrq交易");
    let rtnmsg = await this.init(this.$route.query);
panziyi committed
152
    if (rtnmsg.respCode == SUCCESS) {
wangna committed
153
      Utils.copyValueFromVO(this.model, rtnmsg.data);
panziyi committed
154 155 156 157 158
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
159
    }
wangna committed
160 161
  },
};
162 163 164
</script>
<style>
</style>