index.vue 5.56 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 22 23 24 25 26 27 28 29 30
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        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 40
            </c-content>
          </el-tab-pane>

          <!--PD000137 -->
          <!-- <el-tab-pane label="ovwp" name="ovwp">
zhoukai committed
41 42
                <m-ovwp :model="model" :codes="codes"/>
           </el-tab-pane> -->
43 44

          <!--PD000062 -->
45
          <el-tab-pane label="单据详情" name="docpre" v-if="isShowDocpre">
46
            <m-docpre :model="model" :codes="codes" />
47
          </el-tab-pane> 
48 49 50

          <!--PD000079 -->
          <!-- <el-tab-pane label="Shipping Detail" name="shpdet">
zhoukai committed
51 52 53
                <m-shpdet :model="model" :codes="codes"/>
           </el-tab-pane> -->

liushikai committed
54
          <el-tab-pane label="表外" name="engp">
zhoukai committed
55
            <m-engp :model="model" :codes="codes" />
liushikai committed
56
          </el-tab-pane>
zhoukai committed
57

liushikai committed
58
          <el-tab-pane label="费用及账务" name="setpan">
59
            <c-content>
zhoukai committed
60
            <m-setpan :model="model" :codes="codes" />
61
            </c-content>
62
          </el-tab-pane> 
zhoukai committed
63

64
          <!-- <el-tab-pane label="分录" name="glepan">
zhoukai committed
65
            <m-glepan :model="model" :codes="codes" ref="glepan" />
66
          </el-tab-pane> -->
zhoukai committed
67

68
          <!-- <el-tab-pane label="保证金" name="ccvpan">
zhoukai committed
69
            <m-ccvpan :model="model" :codes="codes" />
70
          </el-tab-pane> -->
zhoukai committed
71 72 73 74

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

zhoukai committed
76 77 78 79
          <el-tab-pane label="面函" name="docpan">
            <m-docpan :model="model" :codes="codes" ref="docpan" />
          </el-tab-pane>

liushikai committed
80
          <el-tab-pane label="授信额度" name="limitbody">
zhoukai committed
81
            <m-limitbody :model="model" :codes="codes" />
潘际乾 committed
82
          </el-tab-pane>
zhoukai committed
83
        </c-tabs>
84
      </el-form>
85 86 87 88 89 90
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
91 92
    </div>
  </c-page>
zhoukai committed
93 94
</template>
<script>
95 96 97 98
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Ditdck from "~/model/Ditdck";
wangren committed
99 100
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
101
import Pattern from "~/model/Ditdck/Pattern";
zhoukai committed
102 103
import Default from "~/model/Ditdck/Default";
import Check from "~/model/Ditdck/Check";
104 105 106 107
import Litdckp from "./Litdckp";
import Ovwp from "./Ovwp";
import Docpre from "./Docpre";
import Shpdet from "./Shpdet";
liushikai committed
108
// import Limitbody from "./Limitbody";
zhoukai committed
109 110 111 112 113 114 115

import Glepan from "~/views/Public/Glepan";
import Setpan from "~/views/Public/Setpan";
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
116
import Limitbody from "~/views/Public/Limitbody";
zhoukai committed
117 118

export default {
wangguangchao committed
119
  name: "Ditdck",
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
  components: {
    "m-litdckp": Litdckp,
    "m-ovwp": Ovwp,
    "m-docpre": Docpre,
    "m-shpdet": Shpdet,
    "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
138
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
139 140
  data() {
    return {
141
      isShowDocpre: false,
142 143 144
      tabVal: "litdckp",
      trnName: "ditdck",
      model: new Ditdck().data,
145 146
      checkRules: Check,
      defaultRules: Default,
147 148
      pattern: Pattern,
      rules: null,
149
      codes: { ...CodeTable, invtypCodes: [{ label: "type1", value: "1" }] },
150 151
    };
  },
152 153 154 155
   methods: {
    changeShowDocpre(val) {
      this.isShowDocpre = val;
    },
156 157 158
  },
  created: async function () {
    console.log("进入ditdck交易");
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
    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: "服务请求失败!" });
174
    }
175
    
176
  },
177 178 179

  
 
180
};
zhoukai committed
181 182 183
</script>
<style>
</style>