index.vue 5.54 KB
Newer Older
zxg committed
1
<template>
jianglong committed
2
<c-page title="信用证修改">
zxg committed
3 4 5 6 7 8 9 10 11 12 13 14
    <div class="eContainer">
        <c-function-btn
            :handleSubmit="handleSubmit"
            :handleCheck="handleCheck"
            :handleStash="handleStash"
        >
            <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>
        <el-form
jianglong committed
15 16 17 18 19 20 21
        :model="model"
        :rules="rules"
        ref="modelForm"
        label-width="150px"
        size="small"
        label-position="right"
      >
zxg committed
22 23 24 25
            <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
                
                    <!--PD000045 -->
                <el-tab-pane label="基本信息" name="davp">
jianglong committed
26
                    <c-content>
zxg committed
27
                        <m-davp :model="model" :codes="codes"/>
jianglong committed
28
                    </c-content>
zxg committed
29 30
                </el-tab-pane>
        
31 32
                <el-tab-pane v-if="model.bddgrp.rec.advtyp=='750'" label="不符点通知" name="mt750p">
                    <c-content>
jianglong committed
33
                    <m-mt750p :model="model" :codes="codes"/>
34
                    </c-content>
jianglong committed
35 36
                </el-tab-pane>

37
                <el-tab-pane v-if="model.bddgrp.rec.advtyp=='754'" label="付款通知" name="mt754p">
38
                <c-content>
jianglong committed
39
                    <m-mt754p :model="model" :codes="codes"/>
40
                    </c-content>
jianglong committed
41 42 43 44
                </el-tab-pane>


                <el-tab-pane v-if="model.bddgrp.rec.advtyp=='oth'" label="通知详情" name="othadvtypp">
45 46 47
                    <c-content>
                        <m-othadvtypp :model="model" :codes="codes"/>
                    </c-content>
jianglong committed
48 49 50 51 52 53 54 55
                </el-tab-pane>


                
                <el-tab-pane label="或有" name="engp">
                  <m-engp :model="model" :codes="codes" />
                </el-tab-pane>

zxg committed
56 57
                    <!--PD000000 -->
                <el-tab-pane label="账务" name="setpan">
58
                    <c-content>
zxg committed
59
                        <m-setpan :model="model" :codes="codes"/>
60
                        </c-content>
zxg committed
61
                </el-tab-pane>
huangxin committed
62 63 64 65

                <el-tab-pane label="分录" name="glepan">
          <m-glepan :model="model" :codes="codes" ref="glepan" />
        </el-tab-pane>
zxg committed
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
        
                    <!--PD000000 -->
                <el-tab-pane label="附言" name="coninfp">
                        <m-coninfp :model="model" :codes="codes"/>
                </el-tab-pane>
        
                    <!--PD000529 -->
                <el-tab-pane label="报文及面函" name="docpan">
                        <m-docpan :model="model" :codes="codes"/>
                </el-tab-pane>
        
                    <!--PD000546 -->
                <el-tab-pane label="附件" name="doctre">
                        <m-doctre :model="model" :codes="codes"/>
                </el-tab-pane>
        
                    <!--PD000001 -->
                <el-tab-pane label="统一授信" name="limitbody">
                        <m-limitbody :model="model" :codes="codes"/>
                </el-tab-pane>
            </c-tabs>
        </el-form>
jianglong committed
88 89 90 91 92 93

        <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></c-grid-ety-prompt-dialog>
zxg committed
94
  </div>
jianglong committed
95
  </c-page>
zxg committed
96 97
</template>
<script>
jianglong committed
98

zxg committed
99 100 101
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Ditdav from "~/model/Ditdav"
102
import commonProcess from "~/mixin/commonProcess"
jianglong committed
103
import commonFuncs from "~/mixin/commonFuncs"
zxg committed
104 105 106 107
import Check from "~/model/Ditdav/Check"
import Default from "~/model/Ditdav/Default"
import Pattern from "~/model/Ditdav/Pattern"
import Davp from "./Davp"
jianglong committed
108 109 110 111 112
import Mt750p from "./Mt750p"
import Mt754p from "./Mt754p"
import Othadvtypp from "./Othadvtypp"

import Setpan from "~/views/Public/Setpan"
zxg committed
113 114
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
115
import Doctre from "~/views/Public/Doctre"
zxg committed
116
import Limitbody from "~/views/Public/Limitbody"
jianglong committed
117 118
import Engp from  "~/views/Public/Engp"
import Utils from "~/utils";
huangxin committed
119
import Glepan from "~/views/Public/Glepan";
jianglong committed
120 121 122



zxg committed
123 124 125 126 127 128


export default {
    name: "Ditdav",
    components:{
        "m-davp" : Davp,
jianglong committed
129
        "m-setpan" : Setpan,
zxg committed
130 131 132 133
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
        "m-limitbody" : Limitbody,
jianglong committed
134 135 136 137
        "m-mt750p" : Mt750p,
        "m-mt754p" : Mt754p,
        "m-othadvtypp" : Othadvtypp,
        "m-engp" : Engp,
huangxin committed
138
        "m-glepan": Glepan,
zxg committed
139 140 141 142 143 144
    },
    provide() {
        return {
            root: this
        }
    },
jianglong committed
145
    mixins: [commonProcess, commonFuncs],    // 里面包含了Default、Check等的公共处理
zxg committed
146 147 148 149 150
    data(){
        return {
            tabVal: "davp",
            trnName: "ditdav",
            model: new Ditdav().data,
151 152 153
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
zxg committed
154
            rules: null,
jianglong committed
155
            codes: { ...CodeTable },
zxg committed
156 157 158
        }
    },
    methods:{
huangxin committed
159
        //tabClick(){}
zxg committed
160 161 162 163
    },
    created:async function(){
        console.log("进入ditdav交易");
        let rtnmsg = await this.init({})
jianglong committed
164 165 166 167 168 169 170 171
        if (rtnmsg.respCode == SUCCESS) {
        //TODO 处理数据逻辑
          Utils.copyValueFromVO(this.model, rtnmsg.data);
          if (this.isInDisplay) {
            this.restoreDisplay();
          }
        } else {
          this.$notify.error({ title: "错误", message: "服务请求失败!" });
zxg committed
172 173 174 175 176 177 178
        }
    },
};
</script>
<style>

</style>