index.vue 2.43 KB
Newer Older
wangguangchao committed
1
<template>
潘际乾 committed
2
  <div class="eContainer-search">
wangguangchao committed
3 4 5 6 7 8
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      tokenKey="modelForm"
      :validate-on-rule-change="false"
9
      label-width="120px"
wangguangchao committed
10 11 12 13
      size="small"
    >
      <!-- <el-tabs ref="elment" type="card" @tab-click="tabClick">
                <el-tab-pane label="复核夹查询"> -->
liushikai committed
14
      <!-- <c-content> -->
wangguangchao committed
15
        <m-inftrnps :model="model" :codes="codes" ref="inftrnps" />
liushikai committed
16
      <!-- </c-content> -->
wangguangchao committed
17 18
      <!-- </el-tab-pane>
            </el-tabs> -->
19 20 21 22 23
            <c-grid-ety-prompt-dialog 
      ref="etyDialog" 
      :promptData="promptData"
       v-on:select-ety="selectEty">
      </c-grid-ety-prompt-dialog>
wangguangchao committed
24 25 26 27 28 29
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
潘际乾 committed
30
import Trnrel from "~/model/Trnrel";
wangren committed
31
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
32
import Pattern from "~/model/Trnrel/Pattern";
wangguangchao committed
33 34 35 36
import Default from "~/model/Trnrel/Default";
import Check from "~/model/Trnrel/Check";
import Utils from "~/utils/index";

nanrui committed
37 38
import Inftrnps from "./Inftrnps";

wangguangchao committed
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
// import * as poinMessage from '@/util/poin-common/messageManage.js'
import {
  TabPane,
  Col,
  Table,
  Form,
  FormItem,
  Upload,
  TableColumn,
  Card,
  Input,
  Button,
  Dialog,
  Select,
  Tabs,
  Option,
  DatePicker,
  Row,
} from "element-ui";
import Event from "~/model/Trnrel/Event";

export default {
  name: "Trnfnd",
  components: {
    "m-inftrnps": Inftrnps,
  },
wangren committed
65
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
wangguangchao committed
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
  computed: {},
  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,
      },
    };
  },
  methods: {},
  mounted: async function () {
    console.log("进入trnrel交易");
    const that = this;
    that.init(that.model).then((res) => {
      //TODO 处理数据逻辑
        if ((res.data.trncorco_relflg = "W")) {
          res.data.trncorco_relflg = "R";
        }

      that.model = Utils.copyValueFromVO(that.model, res.data);
      //  that.$refs.inftrnps.stmData.columns=res.data.trncorco_trnstm.rows
liushikai committed
99
      this.$refs.inftrnps.trnfndhandleSearch();
wangguangchao committed
100 101 102 103 104 105
    });
  },
};
</script>
<style>
</style>