index.vue 4.53 KB
Newer Older
1
<template>
zhoubaojian committed
2
 <c-page title="卖方信用证收款">
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  <div class="eContainer">
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <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">制裁信息</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" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
        
            <!--PD000034 -->
           <el-tab-pane label="收款" name="setp">
zhoubaojian committed
25
            <c-content>
26
                <m-setp :model="model" :codes="codes"/>
zhoubaojian committed
27
            </c-content>
28 29 30
           </el-tab-pane>
 
            <!--PD000027 -->
zhoubaojian committed
31 32
           <el-tab-pane label="表外" name="engp">
            <c-content>
33
                <m-engp :model="model" :codes="codes"/>
zhoubaojian committed
34
            </c-content>
35 36 37
           </el-tab-pane>
 
            <!--PD000000 -->
zhoubaojian committed
38 39
           <el-tab-pane label="费用及账务" name="setpan">
            <c-content>
40
                <m-setpan :model="model" :codes="codes"/>
zhoubaojian committed
41
            </c-content>
42 43 44 45
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="分录" name="glepan">
zhoubaojian committed
46
            <c-content>
47
                <m-glepan :model="model" :codes="codes"/>
zhoubaojian committed
48
            </c-content>
49 50 51 52
           </el-tab-pane>
 
            <!--PD000000 -->
           <el-tab-pane label="附言" name="coninfp">
zhoubaojian committed
53
            <c-content>
54
                <m-coninfp :model="model" :codes="codes"/>
zhoubaojian committed
55
            </c-content>
56 57 58 59
           </el-tab-pane>
 
            <!--PD000529 -->
           <el-tab-pane label="报文及面函" name="docpan">
zhoubaojian committed
60
            <c-content>
61
                <m-docpan :model="model" :codes="codes"/>
zhoubaojian committed
62
            </c-content>
63 64 65 66
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="统一授信" name="limitbody">
zhoubaojian committed
67
            <c-content>
68
                <m-limitbody :model="model" :codes="codes"/>
zhoubaojian committed
69
            </c-content>
70 71 72 73 74
           </el-tab-pane>
 
       </c-tabs>
    </el-form>
  </div>
zhoubaojian committed
75
</c-page>
76 77
</template>
<script>
zhoubaojian committed
78 79 80 81
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Bftset from "~/model/Bftset";
wangren committed
82 83
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
zhoubaojian committed
84 85 86 87 88 89
import Check from "~/model/Bftset/Check";
import Default from "~/model/Bftset/Default";
import Pattern from "~/model/Bftset/Pattern";
import Setp from "./Setp";
import Detp from "./Detp";

90 91 92 93 94 95
import Glepan from "~/views/Public/Glepan";
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
zhoubaojian committed
96

97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115


export default {
    name: "Bftset",
    components:{
        "m-setp" : Setp,
        "m-engp" : Engp,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-limitbody" : Limitbody,
        "m-detp" : Detp,
    },
    provide() {
        return {
            root: this
        }
    },
wangren committed
116
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
zhoubaojian committed
117
    computed: {},
118 119
    data(){
        return {
zhoubaojian committed
120
            tabVal: "setp",
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 146 147 148 149 150 151 152
            trnName: "bftset",
            model: new Bftset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: { ...CodeTable },
        }
    },
    methods:{
        tabClick(){
        }
    },
    created:async function(){
        console.log("进入bftset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
             this.updateModel(rtnmsg.data)
           //TODO 处理数据逻辑

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>