index.vue 5.26 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>
        
jianglong committed
31 32 33 34 35
                <el-tab-pane v-if="model.bddgrp.rec.advtyp=='750'" label="不符点详情" name="mt750p">
                    <m-mt750p :model="model" :codes="codes"/>
                </el-tab-pane>

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


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


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

zxg committed
54 55
                    <!--PD000000 -->
                <el-tab-pane label="账务" name="setpan">
56
                    <c-content>
zxg committed
57
                        <m-setpan :model="model" :codes="codes"/>
58
                        </c-content>
zxg committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
                </el-tab-pane>
        
                    <!--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
82 83 84 85 86 87

        <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></c-grid-ety-prompt-dialog>
zxg committed
88
  </div>
jianglong committed
89
  </c-page>
zxg committed
90 91
</template>
<script>
jianglong committed
92

zxg committed
93 94 95
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Ditdav from "~/model/Ditdav"
96
import commonProcess from "~/mixin/commonProcess"
jianglong committed
97
import commonFuncs from "~/mixin/commonFuncs"
zxg committed
98 99 100 101
import Check from "~/model/Ditdav/Check"
import Default from "~/model/Ditdav/Default"
import Pattern from "~/model/Ditdav/Pattern"
import Davp from "./Davp"
jianglong committed
102 103 104 105 106
import Mt750p from "./Mt750p"
import Mt754p from "./Mt754p"
import Othadvtypp from "./Othadvtypp"

import Setpan from "~/views/Public/Setpan"
zxg committed
107 108 109 110
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "./Doctre"
import Limitbody from "~/views/Public/Limitbody"
jianglong committed
111 112 113 114 115
import Engp from  "~/views/Public/Engp"
import Utils from "~/utils";



zxg committed
116 117 118 119 120 121


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

</style>