index.vue 4.39 KB
Newer Older
fukai committed
1 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
<template>
  <div class="eContainer">
    <c-page title="电证管理">
      <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">
          <!--comchk PD000001 对账 --> 
          <el-tab-pane label="对账" name="chkpnl" v-if="this.model.bchlev=='0'">
            <m-chkpnl :model="model" :codes="codes" />
          </el-tab-pane>
          <!--comdow PD000001 原报下载 --> 
          <el-tab-pane label="原报下载" name="dowpnl">
            <m-dowpnl :model="model" :codes="codes" />
          </el-tab-pane>
          <!--comlog PD000001 登录注销 --> 
          <el-tab-pane label="登录注销" name="logpnl" v-if="this.model.bchlev=='0'">
            <m-logpnl :model="model" :codes="codes" />
          </el-tab-pane>
          <!--comreg PD000001 登录注册 --> 
          <el-tab-pane label="报文注册" name="regpnl" v-if="this.model.bchlev=='0'">
            <m-regpnl :model="model" :codes="codes" />
          </el-tab-pane>
          <!--comreg PD000001 发送对账申请报文 --> 
          <el-tab-pane label="发送对账申请报文" name="chksql" v-if="this.model.bchlev=='0'">
            <m-chksql :model="model" :codes="codes" />
          </el-tab-pane>
          <!--comcer PD000001 证书绑定/解绑 --> 
          <el-tab-pane label="证书绑定/解绑" name="cerpnl" v-if="this.model.bchlev=='0'">
            <m-cerpnl :model="model" :codes="codes" />
          </el-tab-pane>
          <!--cominf PD000001 信用证信息查询 -->
          <el-tab-pane label="信用证信息查询" name="infpnl">
            <m-infpnl :model="model" :codes="codes" />
          </el-tab-pane>
          <!--cominv PD000001 发票查询 -->
          <el-tab-pane label="发票查询" name="invpnl">
            <m-invpnl :model="model" :codes="codes" />
          </el-tab-pane>
          <el-tab-pane label="电证报文补发" name="dzbwbf" v-if="this.model.bchlev!='0'">
            <m-dzbwbf :model="model" :codes="codes" />
          </el-tab-pane>
        </c-tabs>
      </el-form>
      <!-- 底部按钮 -->
      <div class="elc_tools-wrap">
         <el-button @click="handleBack" size="small" type="primary">退出</el-button>
      </div>
    </c-page>
  </div>
</template>
<script>
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Syselc from "../model";
import commonProcess from "~/mixin/commonProcess";
import Check from "../model/check";
import Default from "../model/default";
import buildFn from "../event/buildCommons";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import event from "../event";
import Chkpnl from "./Chkpnl";
import Dowpnl from "./Dowpnl";
import Logpnl from "./Logpnl";
import Regpnl from "./Regpnl";
import Chksql from "./Chksql";
import Cerpnl from "./Cerpnl";
import Infpnl from "./Infpnl";
import Invpnl from "./Invpnl";
import Dzbwbf from "./Dzbwbf";

export default {
  name: "Syselc",
  components: {
    "m-chkpnl": Chkpnl,
    "m-dowpnl": Dowpnl,
    "m-logpnl": Logpnl,
    "m-regpnl": Regpnl,
    "m-chksql": Chksql,
    "m-cerpnl": Cerpnl,
    "m-infpnl": Infpnl,
    "m-invpnl": Invpnl,
    "m-dzbwbf": Dzbwbf
  },
  provide() {
    return {
      root: this
    };
  },
  mixins: [Check, Default, operationFunc, event, commonDepend, buildFn], 
  data() {
    return {
      tabVal: "dowpnl",
      trnName: "syselc",
      trnType: "",
      model: new Syselc().data,
      codes: { ...CodeTable },
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
    },
    handleBack () {
			this.$store.commit('delTagsArry', this.$route.path);
			this.$router.back()
		},
  },
  created() {
    console.log("进入Syselc交易");
    let params = {
      transName: this.trnName,
    };
    this.getBchlev();
    this.chkdatDefault();
    this.duizhang();
    this.comcerDefault();
    this.getCertificateStatus();
    this.systypDefault();
    
  }
};
</script>
<style>
.elc_tools-wrap {
	width: 100%;
	height: 60px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 9;
	border-top: 1px dashed var(--collapse-border-color);
}
</style>