index.vue 9.23 KB
Newer Older
严一鸣 committed
1 2 3
<template>
  <div class="eContainer">

严一鸣 committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17
     <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <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>
严一鸣 committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
    <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">
        
           
         

           <!--PD000005 -->
           <el-tab-pane label="Seting Doc" name="utlp">
               <c-content>
34
                <m-utlp ref="utlp" :model="model" :codes="codes"/>
严一鸣 committed
35 36
                </c-content>
           </el-tab-pane>
37 38

             <!--PD000027 -->
39
           <!-- <el-tab-pane label="同业代付" name="dftcrep" v-if="this.model.dftcre.dfflag==''">
40
                <m-dftcrep :model="model" :codes="codes" />
wangyanjiao committed
41
           </el-tab-pane> -->
42

严一鸣 committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
            <!--PD000027 -->
           <el-tab-pane label="Liability" name="engp">
                <m-engp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="Cash Cover" name="ccvpan">
                <m-ccvpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000000 -->
           <el-tab-pane label="Settlement" name="setpan">
                <m-setpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000001 -->
           <el-tab-pane label="Bookings" name="glepan">
                <m-glepan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000000 -->
           <el-tab-pane label="Completion" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000529 -->
           <el-tab-pane label="Message" name="docpan">
                <m-docpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000546 -->
           <el-tab-pane label="Attachment" name="doctre">
                <m-doctre :model="model" :codes="codes"/>
           </el-tab-pane>
 
78
            <!--PD000008
严一鸣 committed
79 80
           <el-tab-pane label="外管信息" name="wg">
                <m-wg :model="model" :codes="codes"/>
81 82 83 84 85 86 87 88 89 90
           </el-tab-pane> -->

          <!--PD000002
          <el-tab-pane label="跨境人民币申报" name="cnyp">
               <m-cnyp :model="model" :codes="codes"/>
          </el-tab-pane>-->

          <!--PD000009 -->
           <el-tab-pane label="申报信息" name="sbxx">
                <m-sbxx :model="model" :codes="codes"/>
严一鸣 committed
91
           </el-tab-pane>
92 93 94 95 96

            <el-tab-pane label="对外付款/承兑通知书-基础信息" name="basp" v-if="model.bopmod.basflg !='' && model.bopmod.szflg=='1'">
                <m-basp :model="model" :codes="codes"/>
           </el-tab-pane>

97 98
            <el-tab-pane label="境内付款/承兑通知书-基础信息" name="basp1" v-if="model.bopmod.basflg !='' && model.bopmod.szflg=='2'">
                <m-basp1 :model="model" :codes="codes"/>
99 100
           </el-tab-pane>

严一鸣 committed
101 102 103 104 105
            <!--PD000061 -->
           <el-tab-pane label="资本项目" name="cfactlp">
                <m-cfactlp :model="model" :codes="codes"/>
           </el-tab-pane>
 
106

严一鸣 committed
107 108 109 110 111 112 113 114 115 116
 
            <!--PD001139 -->
           <el-tab-pane label="试算结果" name="shisuan">
                <m-shisuan :model="model" :codes="codes"/>
           </el-tab-pane>
 
            <!--PD000115 -->
           <el-tab-pane label="统一授信" name="limitbody">
                <m-limitbody :model="model" :codes="codes"/>
           </el-tab-pane>
zhujiazhan committed
117 118 119 120 121 122 123 124 125

        <!--PD000130 -->
         <el-tab-pane :label=this.det756Name name="det756" v-if="model.mtabut.clsflg !=''">
           <c-content>
             <m-det756 :model="model" :codes="codes" />
           </c-content>
         </el-tab-pane>

         <!--PD000131 -->
126
         <el-tab-pane :label=this.det202cvName  name="det202cv" v-if="model.trnmod.cmtflg =='C'">
zhujiazhan committed
127 128 129 130 131
           <c-content>
             <m-det202cv :model="model" :codes="codes" />
           </c-content>
         </el-tab-pane>

132
       <el-tab-pane label="2111跨境支出信息" name="outp" v-if="model.cnybop.outflg == '1'" >
zhujiazhan committed
133 134 135
          <m-outp :model="model" :codes="codes" />
        </el-tab-pane>

136 137 138 139 140 141 142 143 144 145
      <el-tab-pane label="CIPS" name="cips2" v-if="model.trnmod.cmtflg =='P'" >
            <c-content>
                <m-cips2 :model="model" :codes="codes" />
           </c-content>
        </el-tab-pane>

      <el-tab-pane label="CIPS要素" name="cips" v-if="model.trnmod.cmtflg =='P'" >
          <m-cips :model="model" :codes="codes" />
        </el-tab-pane>

zhujiazhan committed
146

严一鸣 committed
147 148
       </c-tabs>
    </el-form>
149 150 151 152
    <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty"></c-grid-ety-prompt-dialog>



严一鸣 committed
153 154 155 156 157 158 159
  </div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Brtset from "~/model/Brtset"
import commonProcess from "~/mixin/commonProcess"
严一鸣 committed
160
import commonFuncs from "~/mixin/commonFuncs";
严一鸣 committed
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
import Check from "~/model/Brtset/Check"
import Default from "~/model/Brtset/Default"
import Pattern from "~/model/Brtset/Pattern"
import Utlp from "./Utlp"
import Engp from "~/views/Public/Engp"
import Ccvpan from "~/views/Public/Ccvpan"
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "~/views/Public/Doctre"
import Wg from "./Wg"
import Cfactlp from "./Cfactlp"
import Cnyp from "./Cnyp"
import Shisuan from "./Shisuan"
import Namp from "./Namp"
177
import Basp from "./Basp"
178
import Basp1 from "./Basp1"
wangyanjiao committed
179
// import Dftcrep from "./Dftcrep"
180
import Limitbody from "./Limitbody";
181
import Sbxx from "~/views/Public/Sbxx";
zhujiazhan committed
182 183 184
import Det756 from "./Det756";
import Det202cv from "./Det202cv";
import Outp from "./Outp";
185 186 187 188
import Cips from "./Cips";
import Cips2 from "./Cips2";


严一鸣 committed
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206

export default {
    name: "Brtset",
    components:{
        "m-utlp" : Utlp,
        "m-engp" : Engp,
        "m-ccvpan" : Ccvpan,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
        "m-docpan" : Docpan,
        "m-doctre" : Doctre,
        "m-wg" : Wg,
        "m-cfactlp" : Cfactlp,
        "m-cnyp" : Cnyp,
        "m-shisuan" : Shisuan,
        "m-namp" : Namp,
        "m-limitbody" : Limitbody,
207 208
        "m-sbxx": Sbxx,
        "m-basp": Basp,
209
        "m-basp1": Basp1,
zhujiazhan committed
210 211 212
        "m-det756": Det756,
        "m-det202cv": Det202cv,
        "m-outp": Outp,
213 214
        "m-cips": Cips,
        "m-cips2": Cips2,
严一鸣 committed
215 216 217 218 219 220
    },
    provide() {
        return {
            root: this
        }
    },
严一鸣 committed
221 222
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
      computed: {},
严一鸣 committed
223 224
    data(){
        return {
zhujiazhan committed
225 226
            det202cvName:"Payment 202 PRB",
            det756Name:"Payment 756 PRB" ,
严一鸣 committed
227
            tabVal: "utlp",
严一鸣 committed
228 229 230 231 232 233 234
            trnName: "brtset",
            model: new Brtset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
严一鸣 committed
235
               ...CodeTable
严一鸣 committed
236 237 238 239 240 241 242 243 244 245 246
            },
        }
    },
    methods:{
        myTabClick(tab){
            this.tabClick(tab)
            /**
            *  do it yourself
            **/
        }
    },
247
    watch:{
zhujiazhan committed
248 249 250 251 252
         "model.setmod.doccur":{
              immediate:true,
              handler(){
                let cur = this.model.setmod.doccur;
                let amt = this.model.setmod.docamt;
253
                let doc = this.model.brdgrp.rec.docprbrol
254 255
                this.det202cvName= "Payment 202 "+ doc +" "+cur+" "+ amt;
                this.det756Name  = "Payment 756 "+ doc +" "+cur+" "+ amt;
zhujiazhan committed
256 257 258 259 260 261 262
              }
            },
          "model.mtabut.clsflg":{
                  immediate:true,
                  handler(){
                    let cur = this.model.setmod.doccur;
                    let amt = this.model.setmod.docamt;
263
                    let doc = this.model.brdgrp.rec.docprbrol
264 265
                    this.det202cvName= "Payment 202 "+ doc +" "+cur+" "+ amt;
                    this.det756Name  = "Payment 756 "+ doc +" "+cur+" "+ amt;
zhujiazhan committed
266 267
              }
            },
268
    },
jianglong committed
269
   
严一鸣 committed
270 271 272
    created:async function(){
        console.log("进入brtset交易");
        let rtnmsg = await this.init({})
jianglong committed
273
        if (rtnmsg.respCode == SUCCESS) {
274
          this.updateModel(rtnmsg.data);
jianglong committed
275 276 277 278
          this.model.mtabut.clsflg="X";
          if (this.isInDisplay) {
          this.restoreDisplay();
          }
279
          this.$refs.utlp.$refs.table.$refs.table.toggleAllSelection();   //表格,默认勾选
jianglong committed
280
        } else {
严一鸣 committed
281 282
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
jianglong committed
283
    },
严一鸣 committed
284 285 286 287 288 289
    
}
</script>
<style>

</style>