index.vue 2.01 KB
Newer Older
zhengxiaokui committed
1
<template>
zhengxiaokui committed
2 3
  <c-page title="出口信用证查询">
    <!-- <div class="eContainer"> -->
zhengxiaokui committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
    <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">
        <!--PD000035 -->
        <el-tab-pane label="查询" name="sel">
          <c-content>
            <m-sel :model="model" :codes="codes" />
          </c-content>
        </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>
zhengxiaokui committed
28 29
    <!-- </div> -->
  </c-page>
zhengxiaokui committed
30 31
</template>
<script>
zhengxiaokui committed
32 33
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
zhengxiaokui committed
34
import Utils from "~/utils/index";
zhengxiaokui committed
35 36
import Letsel from "~/model/Letsel";
import CommonProcess from "~/mixin/CommonProcess";
zhengxiaokui committed
37
import CommonFuncs from "~/mixin/CommonFuncs";
zhengxiaokui committed
38 39 40 41
import Check from "~/model/Letsel/Check";
import Default from "~/model/Letsel/Default";
import Pattern from "~/model/Letsel/Pattern";
import Sel from "./Sel";
zhengxiaokui committed
42 43

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