index.vue 4.11 KB
Newer Older
liuxin committed
1 2
<template>
  <div class="eContainer">
huangxin committed
3
    <c-page title="进口信用证单据接受不符点">
4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
huangxin committed
5
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
liuxin committed
6
        
7 8

           <el-tab-pane label="业务信息" name="ovwp">
jianglong committed
9
               <c-content>
10
                <m-ovwp :model="model" :codes="codes"/>
jianglong committed
11
                </c-content>
12
           </el-tab-pane>
liuxin committed
13 14
 
            <!--PD000000 -->
huangxin committed
15
           <el-tab-pane label="费用/账务" name="setpan,glepan">
jianglong committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="结算" name="setpan">
                    <!-- 结算 -->
                    <m-setpan :model="model" :codes="codes" />
                  </el-collapse-item>
                  <el-collapse-item title="会计分录" name="glepan">
                    <!-- 会计分录 -->
                    <m-glepan :model="model" :codes="codes" />
                  </el-collapse-item>
                </el-collapse>
              </div>
            </c-content>
          </el-tab-pane>
liuxin committed
31 32
 
            <!--PD000000 -->
33
           <el-tab-pane label="备查/附言" name="addbcb">
jianglong committed
34 35 36
                <c-content>
                    <m-addbcb :model="model" :codes="codes"/>
                </c-content>
liuxin committed
37 38 39
           </el-tab-pane>
 
            <!--PD000529 -->
40
           <el-tab-pane label="报文/面函" name="docpan">
jianglong committed
41 42 43
                <c-content>
                    <m-docpan :model="model" :codes="codes"/>
                </c-content>
liuxin committed
44 45 46
           </el-tab-pane>
 
            <!--PD000546 -->
47
           <el-tab-pane label="附件信息" name="doctre">
jianglong committed
48 49 50
                <c-content>
                    <m-doctre :model="model" :codes="codes"/>
                </c-content>
liuxin committed
51 52 53
           </el-tab-pane>
       </c-tabs>
    </el-form>
54 55 56 57 58 59 60 61

     <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
       
      </c-function-btn>
jianglong committed
62

63
  </c-page>
jianglong committed
64
    </div>
liuxin committed
65 66 67 68 69 70
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Brtacp from "~/model/Brtacp"
import commonProcess from "~/mixin/commonProcess"
liuxin committed
71
import commonFuncs from "~/mixin/commonFuncs";
liuxin committed
72 73 74 75
import Check from "~/model/Brtacp/Check"
import Default from "~/model/Brtacp/Default"
import Pattern from "~/model/Brtacp/Pattern"
import Acpp from "./Acpp"
76
import Ovwp from "./Ovwp"
liuxin committed
77
import Mt750p from "./Mt750p"
78
import Addbcb from "./Addbcb";
liuxin committed
79

huangxin committed
80
import Glepan from "~/views/Public/Glepan";
81
import Setpan from "~/components/business/setmod/views";
liuxin committed
82 83 84
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre"
liuxin committed
85 86 87 88 89


export default {
    name: "Brtacp",
    components:{
huangxin committed
90
      "m-glepan" : Glepan,
liuxin committed
91 92 93 94 95 96
        "m-acpp" : Acpp,
        "m-mt750p" : Mt750p,
        "m-setpan" : Setpan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
97 98
         "m-addbcb": Addbcb,
          "m-ovwp": Ovwp,
liuxin committed
99 100 101 102 103 104
    },
    provide() {
        return {
            root: this
        }
    },
liuxin committed
105
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
liuxin committed
106 107
    data(){
        return {
108
            tabVal: "ovwp",
liuxin committed
109 110 111 112 113 114 115
            trnName: "brtacp",
            model: new Brtacp().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
liuxin committed
116
                ...CodeTable
liuxin committed
117
            },
huangxin committed
118
            activeNames: ["setpan"],
liuxin committed
119 120 121
        }
    },
    methods:{
huangxin committed
122

liuxin committed
123 124 125 126
    },
    created:async function(){
        console.log("进入brtacp交易");
        let rtnmsg = await this.init({})
jianglong committed
127
        if (rtnmsg.respCode == SUCCESS) {
128
          this.updateModel(rtnmsg.data);
jianglong committed
129 130 131 132
          if (this.isInDisplay) {
          this.restoreDisplay();
          }
        } else {
liuxin committed
133 134
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
jianglong committed
135
    },
liuxin committed
136 137 138 139 140
}
</script>
<style>

</style>