index.vue 3.1 KB
Newer Older
liuxin committed
1
<template>
2 3 4 5 6 7 8 9 10 11 12
  <div class="eContainer">
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      tokenKey="modelForm"
      :validate-on-rule-change="false"
      label-width="150px"
      size="small"
    >
      <!-- <el-tabs ref="elment" type="card" @tab-click="tabClick">
wangguangchao committed
13
                <el-tab-pane label="复核夹查询"> -->
liushikai committed
14
      <!-- <c-content> -->
15
        <m-inftrnps :model="model" :codes="codes" ref="inftrnps" />
liushikai committed
16
      <!-- </c-content> -->
17
      <!-- </el-tab-pane>
wangguangchao committed
18
            </el-tabs> -->
19 20
    </el-form>
  </div>
liuxin committed
21 22
</template>
<script>
23 24
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
潘际乾 committed
25
import Trnrel from "~/model/Trnrel";
wangren committed
26
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
27
import Pattern from "~/model/Trnrel/Pattern";
28 29
import Default from "~/model/Trnrel/Default";
import Check from "~/model/Trnrel/Check";
30 31 32 33 34 35 36 37 38 39 40 41 42
import Inftrnps from "./Inftrnps";
import Trnp0 from "./Trnp0";
import Trnpwfm from "./Trnpwfm";
import Trnpevt from "./Trnpevt";
import Trnpack from "./Trnpack";
import Trnptro from "./Trnptro";
import Prtgle from "./Prtgle";
import Prtpan from "./Prtpan";
import Prtswtp from "./Prtswtp";
import Xmldoc from "./Xmldoc";
import Prtswtrp from "./Prtswtrp";
import Prtp from "./Prtp";
import Utils from "~/utils/index";
liuxin committed
43 44

// import * as poinMessage from '@/util/poin-common/messageManage.js'
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
import {
  TabPane,
  Col,
  Table,
  Form,
  FormItem,
  Upload,
  TableColumn,
  Card,
  Input,
  Button,
  Dialog,
  Select,
  Tabs,
  Option,
  DatePicker,
  Row,
} from "element-ui";
liuxin committed
63
import Event from "~/model/Trnrel/Event";
liuxin committed
64 65

export default {
66 67 68 69
  name: "Trnrel",
  components: {
    "m-inftrnps": Inftrnps,
  },
wangren committed
70
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
71
  // computed: {},
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
  provide() {
    return {
      root: this,
    };
  },
  data() {
    return {
      trnName: "trnrel",
      model: new Trnrel().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        dflg: CodeTable.dflg,
        bchtyp: CodeTable.bchtyp,
        usrsort: CodeTable.usrsort,
      },
90
      // reload:false,
91 92
    };
  },
93
  created() {
94
    const that = this;
95 96
      that.init(that.model).then((res) => {
        //TODO 处理数据逻辑
wangguangchao committed
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
        that.model = Utils.copyValueFromVO(that.model, res.data);
        //  that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
        this.$refs.inftrnps.handleSearch();
      });
  },
  methods: {

  },
  computed: {
    reload: function(){
      return this.$store.state.Status.loading.freshReview;
    }
  },
  watch:{
    reload: function(val, oldVal){
      if(val){
        const that = this;
        that.init(that.model).then((res) => {
          //TODO 处理数据逻辑

          that.model = Utils.copyValueFromVO(that.model, res.data);
          //  that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
          this.$refs.inftrnps.handleSearch();
          //刷新页面后重置刷新状态为不刷新
          this.$store.commit("setLoadingFreshReview", false)
        });

      
      }
    },
128 129
  },
};
liuxin committed
130 131 132
</script>
<style>
</style>