index.vue 3.94 KB
Newer Older
liuxin committed
1 2
<template>
  <div class="eContainer">
liuxin committed
3 4 5 6 7 8 9 10 11 12 13 14 15
    <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
        <el-button size="small">备忘录</el-button>
        <el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</el-button>
        <!-- <el-button size="small">保存模板</el-button> -->
        <!-- <el-button size="small">使用模板</el-button> -->
        <el-button size="small">制裁信息</el-button>
        <!-- <el-button size="small">拆分报文</el-button> -->
        <el-button size="small">智能提示</el-button>
      </c-function-btn>
liuxin committed
16 17 18 19
    <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">
        
            <!--PD000048 -->
liuxin committed
20
           <el-tab-pane label="Accept Disrepancies" name="acpp">
21
               <c-content>
liuxin committed
22
                <m-acpp :model="model" :codes="codes"/>
23
                </c-content>
liuxin committed
24 25 26
           </el-tab-pane>
 
            <!--PD000139 -->
liuxin committed
27
           <el-tab-pane label="Advice of Discrepancy" name="mt750p">
liuxin committed
28 29 30 31
                <m-mt750p :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000000 -->
32 33
           <el-tab-pane label="Settlement" name="setpan">
               <c-content>
liuxin committed
34
                <m-setpan :model="model" :codes="codes"/>
35
                </c-content>
liuxin committed
36 37 38
           </el-tab-pane>
 
            <!--PD000000 -->
39
           <el-tab-pane label="Completion" name="coninfp">
liuxin committed
40 41 42 43
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000529 -->
44
           <el-tab-pane label="Messages" name="docpan">
liuxin committed
45 46 47 48
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000546 -->
49
           <el-tab-pane label="Attachments" name="doctre">
liuxin committed
50 51 52 53 54 55 56 57 58 59 60
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>
       </c-tabs>
    </el-form>
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Brtacp from "~/model/Brtacp"
import commonProcess from "~/mixin/commonProcess"
liuxin committed
61
import commonFuncs from "~/mixin/commonFuncs";
liuxin committed
62 63 64 65 66
import Check from "~/model/Brtacp/Check"
import Default from "~/model/Brtacp/Default"
import Pattern from "~/model/Brtacp/Pattern"
import Acpp from "./Acpp"
import Mt750p from "./Mt750p"
liuxin committed
67 68 69 70 71 72


import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre"
liuxin committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89


export default {
    name: "Brtacp",
    components:{
        "m-acpp" : Acpp,
        "m-mt750p" : Mt750p,
        "m-setpan" : Setpan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
    },
    provide() {
        return {
            root: this
        }
    },
liuxin committed
90
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
liuxin committed
91 92
    data(){
        return {
liuxin committed
93
            tabVal: "acpp",
liuxin committed
94 95 96 97 98 99 100
            trnName: "brtacp",
            model: new Brtacp().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
liuxin committed
101
                ...CodeTable
liuxin committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
    created:async function(){
        console.log("进入brtacp交易");
        let rtnmsg = await this.init({})
jianglong committed
116 117 118 119 120 121
        if (rtnmsg.respCode == SUCCESS) {
          Utils.copyValueFromVO(this.model, rtnmsg.data);
          if (this.isInDisplay) {
          this.restoreDisplay();
          }
        } else {
liuxin committed
122 123
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
jianglong committed
124
    },
liuxin committed
125 126 127 128 129
}
</script>
<style>

</style>