index.vue 4.96 KB
Newer Older
1
<template>
daixuan committed
2 3 4 5 6 7 8
    <c-page title="买方信用证单据展期">
        <div class="eContainer">
            <c-function-btn
                :handleSubmit="handleSubmit"
                :handleCheck="handleCheck"
                :handleStash="handleStash"
            >
jianglong committed
9 10 11 12 13 14 15
            <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>
daixuan committed
16
            </c-function-btn>
jianglong committed
17 18 19 20

            <el-form :model="model" 
            :rules="rules" 
            ref="modelForm" 
21
            label-width="120px" 
jianglong committed
22 23 24 25 26
            label-position="right" 
            size="small" 
            :validate-on-rule-change="false"
            >
                <c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
daixuan committed
27 28 29 30 31 32 33 34 35 36 37 38 39
                    
                        <!--PD000024 -->
                    <el-tab-pane label="展期" name="brteus">
                            <m-brteus :model="model" :codes="codes"/>
                    </el-tab-pane>
            
                        <!--PD000027 -->
                    <el-tab-pane label="或有" name="engp">
                            <m-engp :model="model" :codes="codes"/>
                    </el-tab-pane>
            
                        <!--PD000000 -->
                    <el-tab-pane label="账务" name="setpan">
jianglong committed
40
                        <c-content>
daixuan committed
41
                            <m-setpan :model="model" :codes="codes"/>
jianglong committed
42
                            </c-content>
daixuan committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
                    </el-tab-pane>
            
                        <!--PD000001 -->
                    <el-tab-pane label="分录" name="glepan">
                            <m-glepan :model="model" :codes="codes"/>
                    </el-tab-pane>
            
                        <!--PD000000 -->
                    <el-tab-pane label="附言" name="coninfp">
                            <m-coninfp :model="model" :codes="codes"/>
                    </el-tab-pane>
            
                        <!--PD000529 -->
                    <el-tab-pane label="报文及面函" name="docpan">
                            <m-docpan :model="model" :codes="codes"/>
                    </el-tab-pane>
            
                        <!--PD000001 -->
                    <el-tab-pane label="统一授信" name="limitbody">
                            <m-limitbody :model="model" :codes="codes"/>
                    </el-tab-pane>
                </c-tabs>
daixuan committed
65
            </el-form>
daixuan committed
66 67 68 69 70 71
            <c-grid-ety-prompt-dialog
                ref="etyDialog"
                :promptData="promptData"
                v-on:select-ety="selectEty"
            >
            </c-grid-ety-prompt-dialog>
daixuan committed
72 73
        </div>
    </c-page>
74 75
</template>
<script>
daixuan committed
76
import Api from "~/service/Api";
jianglong committed
77
import Utils from "~/utils/index";
daixuan committed
78 79 80
import CodeTable from "~/config/CodeTable";
import Bdteus from "~/model/Bdteus";
import commonProcess from "~/mixin/commonProcess";
daixuan committed
81
import commonFuncs from "~/mixin/commonFuncs";
daixuan committed
82 83 84 85 86 87 88 89 90 91
import Check from "~/model/Bdteus/Check";
import Default from "~/model/Bdteus/Default";
import Pattern from "~/model/Bdteus/Pattern";
import Brteus from "./Brteus";
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Limitbody from "~/views/Public/Limitbody";
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109


export default {
    name: "Bdteus",
    components:{
        "m-brteus" : Brteus,
        "m-engp" : Engp,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-limitbody" : Limitbody,
    },
    provide() {
        return {
            root: this
        }
    },
daixuan committed
110
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
111 112
    data(){
        return {
daixuan committed
113
            tabVal: "brteus",
114 115 116 117 118 119 120
            trnName: "bdteus",
            model: new Bdteus().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
jianglong committed
121
                ...CodeTable
122 123 124 125 126 127 128
            },
        }
    },
    methods:{
    },
    created:async function(){
        console.log("进入bdteus交易");
jianglong committed
129 130 131
        let rtnmsg = await this.init();
        if (rtnmsg.respCode == SUCCESS) {
        
132
           //TODO 处理数据逻辑
jianglong committed
133 134 135 136 137 138
           console.log(rtnmsg);
            Utils.copyValueFromVO(this.model, rtnmsg.data);
            console.log(this.model);
            if (this.isInDisplay) {
              this.restoreDisplay();
            }
139 140 141 142 143 144

        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
jianglong committed
145 146
    },
};
147 148 149 150
</script>
<style>

</style>