index.vue 4.77 KB
Newer Older
zhoukai committed
1
<template>
2 3
  <c-page title="到单">
    <div class="eContainer">
liuxin committed
4 5 6 7 8 9
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
10 11 12 13 14 15 16
      <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">智能提示</el-button>
17
      </c-function-btn>
18 19 20 21
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
22
        label-width="120px"
23 24 25 26 27 28 29 30
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
          <!--PD000047 -->
          <el-tab-pane label="单据概况" name="litdckp">
            <c-content>
31 32 33 34 35
              <m-litdckp
                :model="model"
                :codes="codes"
                v-on:changeShowDocpre="changeShowDocpre"
              />
36 37 38 39
            </c-content>
          </el-tab-pane>

          <!--PD000062 -->
40
          <el-tab-pane label="单据详情" name="docpre" v-if="isShowDocpre">
41
            <m-docpre :model="model" :codes="codes" />
42
          </el-tab-pane> 
43

liushikai committed
44
          <el-tab-pane label="表外" name="engp">
zhoukai committed
45
            <m-engp :model="model" :codes="codes" />
liushikai committed
46
          </el-tab-pane>
zhoukai committed
47

liushikai committed
48
          <el-tab-pane label="费用及账务" name="setpan">
49
            <c-content>
zhoukai committed
50
            <m-setpan :model="model" :codes="codes" />
51
            </c-content>
52
          </el-tab-pane> 
zhoukai committed
53 54 55 56

          <el-tab-pane label="附言" name="coninfp">
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>
57

zhoukai committed
58 59 60 61
          <el-tab-pane label="面函" name="docpan">
            <m-docpan :model="model" :codes="codes" ref="docpan" />
          </el-tab-pane>

liushikai committed
62
          <el-tab-pane label="授信额度" name="limitbody">
zhoukai committed
63
            <m-limitbody :model="model" :codes="codes" />
潘际乾 committed
64
          </el-tab-pane>
zhoukai committed
65
        </c-tabs>
66
      </el-form>
67 68 69 70 71 72
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
73 74
    </div>
  </c-page>
zhoukai committed
75 76
</template>
<script>
77 78 79 80
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Ditdck from "~/model/Ditdck";
wangren committed
81 82
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
83
import Pattern from "~/model/Ditdck/Pattern";
zhoukai committed
84 85
import Default from "~/model/Ditdck/Default";
import Check from "~/model/Ditdck/Check";
86 87
import Litdckp from "./Litdckp";
import Docpre from "./Docpre";
zhoukai committed
88 89

import Glepan from "~/views/Public/Glepan";
90
import Setpan from "~/components/business/setmod/views";
zhoukai committed
91 92 93 94
import Docpan from "~/views/Public/Docpan";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
liushikai committed
95
import Limitbody from "~/views/Public/Limitbody";
zhoukai committed
96 97

export default {
wangguangchao committed
98
  name: "Ditdck",
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
  components: {
    "m-litdckp": Litdckp,
    "m-docpre": Docpre,
    "m-engp": Engp,
    "m-setpan": Setpan,
    "m-glepan": Glepan,
    "m-docpan": Docpan,
    "m-limitbody": Limitbody,
    "m-coninfp": Coninfp,
    "m-ccvpan": Ccvpan,
  },
  provide() {
    return {
      root: this,
    };
  },
wangren committed
115
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
116 117
  data() {
    return {
118
      isShowDocpre: false,
119 120 121
      tabVal: "litdckp",
      trnName: "ditdck",
      model: new Ditdck().data,
122 123
      checkRules: Check,
      defaultRules: Default,
124 125
      pattern: Pattern,
      rules: null,
126
      codes: { ...CodeTable, invtypCodes: [{ label: "type1", value: "1" }] },
127 128
    };
  },
129 130 131 132
   methods: {
    changeShowDocpre(val) {
      this.isShowDocpre = val;
    },
133 134 135
  },
  created: async function () {
    console.log("进入ditdck交易");
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
    let rtnmsg = await this.init(this.$route.query);
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      console.log(rtnmsg);
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      console.log(this.model);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
      
    };
    if (this.model.bddgrp.rec.dscinsflg == "X") {
      this.isShowDocpre = true;
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
151
    }
152
    
153
  },
154 155 156

  
 
157
};
zhoukai committed
158 159 160
</script>
<style>
</style>