index.vue 4.15 KB
Newer Older
liumin committed
1
<template>
liuxin committed
2
<c-content>
liumin committed
3 4 5 6 7 8 9 10 11
  <div class="eContainer">

  <c-function-btn
	    :handleSubmit="handleSubmit"
	    :handleCheck="handleCheck"
	    :handleStash="handleStash"
	  >
	    <el-button size="small">备忘录</el-button>
	    <el-button size="small">影像信息</el-button>
liumin committed
12 13
	    <el-button size="small">保存模板</el-button> 
	    <el-button size="small">使用模板</el-button> 
liumin committed
14
	    <el-button size="small">制裁信息</el-button>
liumin committed
15
	    <el-button size="small">拆分报文</el-button>
liumin committed
16 17 18
	    <el-button size="small">智能提示</el-button>
	  </c-function-btn>

19
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
liumin committed
20
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
liumin committed
21 22 23 24 25
           <!--PD000002 -->
           <el-tab-pane label="单据" name="drv">
                <m-drv :model="model" :codes="codes"/>
           </el-tab-pane>

liumin committed
26
            <!--PD000034 -->
liumin committed
27
           <el-tab-pane label="不符点" name="dscins">
liumin committed
28 29 30
                <m-dscins :model="model" :codes="codes"/>
           </el-tab-pane>
 
liuxin committed
31 32 33 34 35
           <el-tab-pane label="或有" name="engp">
            <c-content>
            <m-engp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>
liumin committed
36 37 38 39 40 41 42

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

liuxin committed
44 45 46 47
          <el-tab-pane label="附言" name="coninfp">
            <m-coninfp :model="model" :codes="codes" />
          </el-tab-pane>

liumin committed
48 49 50 51 52 53 54
          <!--PD000529 -->
          <el-tab-pane label="面函" name="docpan">
            <m-docpan :model="model" :codes="codes" ref="docpan" />
          </el-tab-pane>

         
          <!--PD000001 -->
liuxin committed
55
          <el-tab-pane label="统一授信" name="limitbody">
liumin committed
56 57 58 59 60 61
            <m-limitbody :model="model" :codes="codes" />
          </el-tab-pane>

       </c-tabs>
    </el-form>
  </div>
liuxin committed
62
</c-content>
liumin committed
63 64 65 66 67
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Detdrv from "~/model/Detdrv"
wangren committed
68
import commonProcess from "~/mixin/commonProcess"
liuxin committed
69
import commonFuncs from "~/mixin/commonFuncs";
liumin committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
import Check from "~/model/Detdrv/Check"
import Default from "~/model/Detdrv/Default"
import Pattern from "~/model/Detdrv/Pattern"
import Dscins from "./Dscins"
import Drv from "./Drv"

import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";


export default {
    name: "Detdrv",
    components:{
        "m-dscins" : Dscins,
        "m-drv" : Drv,
        "m-setpan": Setpan,
        "m-glepan": Glepan,
        "m-engp": Engp,
        "m-docpan": Docpan,
        "m-limitbody": Limitbody,
        "m-coninfp": Coninfp,
        "m-ccvpan": Ccvpan,
    },
    provide() {
        return {
            root: this
        }
    },
liuxin committed
103
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
liumin committed
104 105
    data(){
        return {
liuxin committed
106
            tabVal: "drv",
liumin committed
107 108 109 110 111 112
            trnName: "detdrv",
            model: new Detdrv().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
liuxin committed
113
            codes: {...CodeTable
liumin committed
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入detdrv交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑
liuxin committed
132 133 134
            if (this.isInDisplay) {
                this.restoreDisplay();
            }
liumin committed
135 136 137 138 139 140 141 142 143 144 145
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>