index.vue 6.1 KB
Newer Older
jinqian committed
1 2 3
<template>
  <c-page title="出口信用证单据修改">
    <div class="eContainer">
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
              <!-- 按钮 -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
        <!-- <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> -->
        <el-button size="small">inc to Ben</el-button>
        <el-button size="small">imgyge</el-button>
        <!-- <el-button size="small">拆分报文</el-button> -->
        <el-button size="small">img</el-button>
        <el-button size="small">His.img</el-button>
      </c-function-btn>

jinqian committed
23 24 25 26
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
27
        label-width="120px"
28
        label-position="right"
jinqian committed
29 30 31
        size="small"
        :validate-on-rule-change="false"
      >
32 33 34
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
          <!--PD000001 Additional Documents 明细-->
          <el-tab-pane label="Additional Documents" name="drv">
jinqian committed
35 36 37 38 39
            <c-content>
              <m-drv :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

40 41
          <!--PD000073 Discr./Instr.单据/不符点/指示-->
          <el-tab-pane label="Discr./Instr." name="dscins"  v-if="model.bedgrp.rec.dscinsflg">
jinqian committed
42 43 44 45 46
            <c-content>
              <m-dscins :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

47 48
          <!--PD000027 Liability-或有-->
          <el-tab-pane label="Liability" name="engp">
jinqian committed
49 50 51 52 53 54
            <c-content>
              <m-engp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <!--PD000020 -->
55
          <!-- <el-tab-pane label="信用证详情" name="detp">
jinqian committed
56 57 58
            <c-content>
              <m-detp :model="model" :codes="codes" />
            </c-content>
59
          </el-tab-pane> -->
jinqian committed
60

61 62
          <!--PD000000 Settlement账务-->
          <el-tab-pane label="Settlement" name="setpan">
jinqian committed
63 64 65 66 67
            <c-content>
              <m-setpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

68 69
          <!--PD000000 Completion附言-->
          <el-tab-pane label="Completion" name="coninfp">
jinqian committed
70
            <c-content>
71
              <m-coninfp :model="model" :codes="codes" />
jinqian committed
72 73 74
            </c-content>
          </el-tab-pane>

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

82 83
          <!--PD000001 -->
          <!-- <el-tab-pane label="分录" name="glepan">
jinqian committed
84
            <c-content>
85
              <m-glepan :model="model" :codes="codes" />
jinqian committed
86
            </c-content>
87
          </el-tab-pane> -->
jinqian committed
88

89 90
          <!--PD000546 Attachments附件-->
          <el-tab-pane label="Attachments" name="doctre">
jinqian committed
91 92 93 94
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
95 96 97 98 99 100 101

          <!--PD000001 limitbody统一授信-->
          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
jinqian committed
102 103
        </c-tabs>
      </el-form>
lianyang committed
104 105 106 107 108 109
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
110 111 112 113 114 115 116
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
jinqian committed
117 118 119 120 121 122 123
    </div>
  </c-page>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Betdrv from "~/model/Betdrv";
124
import commonProcess from "~/mixin/commonProcess";
125
import commonFuncs from '~/mixin/commonFuncs'
jinqian committed
126 127 128 129 130 131
import Check from "~/model/Betdrv/Check";
import Default from "~/model/Betdrv/Default";
import Pattern from "~/model/Betdrv/Pattern";
import Drv from "./Drv";
import Dscins from "./Dscins";
//import Engp from "./Engp"
132
// import Detp from "./Detp";
jinqian committed
133 134 135 136
//import Setpan from "./Setpan"
//import Glepan from "./Glepan"
//import Coninfp from "./Coninfp"
//import Docpan from "./Docpan"
137 138
// import Doctre from "./Doctre";
// import Limitbody from './Limitbody'
jinqian committed
139

140
import Engp from "~/views/Public/Engp";
jinqian committed
141
import Setpan from "~/views/Public/Setpan";
142 143
// import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
jinqian committed
144
import Docpan from "~/views/Public/Docpan";
145 146 147
import Doctre from '~/views/Public/Doctre';
import Limitbody from '~/views/Public/Limitbody';

jinqian committed
148 149

export default {
150
  name: 'Betdrv',
jinqian committed
151 152 153 154
  components: {
    "m-drv": Drv,
    "m-dscins": Dscins,
    "m-engp": Engp,
155
    // "m-detp": Detp,
jinqian committed
156
    "m-setpan": Setpan,
157
    // "m-glepan": Glepan,
jinqian committed
158 159 160
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
161
    'm-limitbody': Limitbody,
jinqian committed
162 163 164 165 166 167
  },
  provide() {
    return {
      root: this,
    };
  },
168
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
jinqian committed
169 170 171 172 173 174 175 176 177 178 179 180 181
  data() {
    return {
      tabVal: "drv",
      trnName: "betdrv",
      model: new Betdrv().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
  methods: {
182 183 184 185 186 187
    myTabClick(tab) {
      this.tabClick(tab)
      /**
       *  do it yourself
       **/
    },
jinqian committed
188 189 190 191 192 193
  },
  created: async function () {
    console.log("进入betdrv交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      //更新数据
194 195
      this.updateModel(rtnmsg.data)
      //TODO 处理数据逻辑
jinqian committed
196 197 198 199 200 201 202 203 204 205 206
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
</script>
<style>
</style>