index.vue 2.39 KB
Newer Older
wuziqiang committed
1
<template>
liuxin committed
2 3 4 5 6 7
    <c-page title="出口信用证查询">
        <!-- <div class="eContainer"> -->
        <el-form
            :model="model"
            :rules="rules"
            ref="modelForm"
8
            label-width="120px"
liuxin committed
9 10 11 12 13 14 15 16 17 18 19 20
            label-position="right"
            size="small"
            :validate-on-rule-change="false"
        >
            <c-tabs
                v-model="tabVal"
                ref="elment"
                type="card"
                @tab-click="myTabClick"
            >
                <!--PD000035 -->
                <el-tab-pane label="查询" name="sel">
潘际乾 committed
21 22 23
                    <c-content>
                        <m-sel :model="model" :codes="codes" />
                    </c-content>
liuxin committed
24 25 26 27 28 29 30 31 32 33 34
                </el-tab-pane>
            </c-tabs>
        </el-form>
        <c-grid-ety-prompt-dialog
            ref="etyDialog"
            :promptData="promptData"
            v-on:select-ety="selectEty"
        >
        </c-grid-ety-prompt-dialog>
        <!-- </div> -->
    </c-page>
wuziqiang committed
35 36
</template>
<script>
liuxin committed
37 38 39 40 41 42 43 44
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Detsel from "~/model/Detsel";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Detsel/Check";
import Default from "~/model/Detsel/Default";
import Pattern from "~/model/Detsel/Pattern";
import Sel from "./Sel";
wuziqiang committed
45 46 47

export default {
    name: "Detsel",
liuxin committed
48 49
    components: {
        "m-sel": Sel,
wuziqiang committed
50 51 52
    },
    provide() {
        return {
liuxin committed
53 54
            root: this,
        };
wuziqiang committed
55
    },
liuxin committed
56 57
    mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
    data() {
wuziqiang committed
58
        return {
liuxin committed
59
            tabVal: "sel",
wuziqiang committed
60 61 62 63 64 65
            trnName: "detsel",
            model: new Detsel().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
liuxin committed
66
            codes: {...CodeTable},
liuxin committed
67
        };
wuziqiang committed
68
    },
liuxin committed
69 70 71
    methods: {
        myTabClick(tab) {
            this.tabClick(tab);
wuziqiang committed
72
            /**
liuxin committed
73 74 75
             *  do it yourself
             **/
        },
wuziqiang committed
76
    },
liuxin committed
77
    created: async function () {
wuziqiang committed
78
        console.log("进入detsel交易");
liuxin committed
79 80 81 82 83 84
        let rtnmsg = await this.init({});
        if (rtnmsg.respCode == SUCCESS) {
            //TODO 处理数据逻辑
            this.updateModel(rtnmsg.data);
        } else {
            this.$notify.error({ title: "错误", message: "服务请求失败!" });
wuziqiang committed
85
        }
liuxin committed
86 87
    },
};
wuziqiang committed
88 89 90
</script>
<style>
</style>