index.vue 2.33 KB
Newer Older
wuziqiang committed
1
<template>
liuxin committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    <c-page title="出口信用证查询">
        <!-- <div class="eContainer"> -->
        <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="myTabClick"
            >
                <!--PD000035 -->
                <el-tab-pane label="查询" name="sel">
                    <m-sel :model="model" :codes="codes" />
                </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
33 34
</template>
<script>
liuxin committed
35 36 37 38 39 40 41 42
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
43 44 45

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