index.vue 7.42 KB
Newer Older
严一鸣 committed
1
<template>
潘际乾 committed
2 3
  <div class="eContainer">
    <c-page title="进口信用证单据进口付汇">
jianglong committed
4

jianglong committed
5 6 7 8 9 10 11 12
      <!--
        <div  class="fast-button">
           <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>
        /div>
     -->
jianglong committed
13

Wuyuqiu committed
14 15 16 17
      <el-form
        :model="model"
        :rules="rules"
        ref="modelForm"
18
        label-width="120px"
Wuyuqiu committed
19 20 21 22 23 24 25 26 27 28
        label-position="right"
        size="small"
        :validate-on-rule-change="false"
      >
        <c-tabs
          v-model="tabVal"
          ref="elment"
          type="card"
          @tab-click="myTabClick"
        >
jianglong committed
29 30 31 32 33 34 35


        <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp ref="ovwp" :model="model" :codes="codes" />
            </c-content>
        </el-tab-pane>
wangna committed
36
         
Wuyuqiu committed
37 38 39
          <!--PD000001 -->
          <el-tab-pane label="保证金" name="ccvpan">
            <c-content>
潘际乾 committed
40
              <m-ccvpan :model="model" :codes="codes" />
Wuyuqiu committed
41 42 43
            </c-content>
          </el-tab-pane>

jianglong committed
44 45 46 47 48 49 50 51

          <!--PD000115 -->
          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

潘际乾 committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="fyzw">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
                    <m-engp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <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>
Wuyuqiu committed
71 72
          </el-tab-pane>

jianglong committed
73 74 75 76 77 78
          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              
                <m-addbcb :model="model" :codes="codes" />
            </c-content>
            
Wuyuqiu committed
79 80
          </el-tab-pane>

潘际乾 committed
81
          <!--PD000009 -->
82
          <el-tab-pane label="申报信息" name="cfactlp,cnyp1">
潘际乾 committed
83 84 85 86 87
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

Wuyuqiu committed
88 89
          <!--PD000529 -->
          <el-tab-pane label="报文/面函" name="docpan">
jianglong committed
90
          <c-content>
Wuyuqiu committed
91
            <m-docpan :model="model" :codes="codes" />
jianglong committed
92
            </c-content>
Wuyuqiu committed
93 94 95
          </el-tab-pane>

          <!--PD000546 -->
潘际乾 committed
96 97 98 99
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
Wuyuqiu committed
100 101 102 103 104 105 106 107 108
          </el-tab-pane>

        </c-tabs>
      </el-form>
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
Wuyuqiu committed
109
      >
jianglong committed
110
        
Wuyuqiu committed
111 112 113 114 115 116
      </c-function-btn>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></c-grid-ety-prompt-dialog>
潘际乾 committed
117 118
    </c-page>
  </div>
严一鸣 committed
119 120
</template>
<script>
Wuyuqiu committed
121 122 123 124
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Brtset from "~/model/Brtset";
import commonProcess from "~/mixin/commonProcess";
严一鸣 committed
125
import commonFuncs from "~/mixin/commonFuncs";
Wuyuqiu committed
126 127 128 129 130 131
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";
132
import Setpan from "~/components/business/setmod/views";
Wuyuqiu committed
133 134 135 136 137 138 139 140 141 142 143
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";
import Basp from "./Basp";
import Basp1 from "./Basp1";
144
import Limitbody from "~/views/Public/Limitbody";
145
import Sbxx from "~/views/Public/Sbxx";
zhujiazhan committed
146 147 148
import Det756 from "./Det756";
import Det202cv from "./Det202cv";
import Outp from "./Outp";
149 150
import Cips from "./Cips";
import Cips2 from "./Cips2";
151 152
import Trtcrep from "./Trtcrep";
import Dinpan from "./Dinpan";
153

jianglong committed
154 155 156
import Ovwp from "./Ovwp";
import Addbcb from "./Addbcb";

严一鸣 committed
157
export default {
Wuyuqiu committed
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
  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,
    "m-sbxx": Sbxx,
    "m-basp": Basp,
    "m-basp1": Basp1,
    "m-det756": Det756,
    "m-det202cv": Det202cv,
    "m-outp": Outp,
    "m-cips": Cips,
    "m-cips2": Cips2,
    "m-trtcrep": Trtcrep,
    "m-dinpan": Dinpan,
jianglong committed
184 185
    "m-ovwp": Ovwp,
    "m-addbcb": Addbcb,
Wuyuqiu committed
186 187 188 189 190 191 192 193 194 195 196 197
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  computed: {},
  data() {
    return {
      det202cvName: "头寸调拨(MT202)",
      det756Name: "通知付款(MT756)",
jianglong committed
198
      tabVal: "ovwp",
Wuyuqiu committed
199 200 201 202 203 204 205 206 207
      trnName: "brtset",
      model: new Brtset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: {
        ...CodeTable,
      },
潘际乾 committed
208
      fyzw: ['engp']
Wuyuqiu committed
209 210 211 212 213 214 215 216
    };
  },
  methods: {
    myTabClick(tab) {
      this.tabClick(tab);
      /**
       *  do it yourself
       **/
严一鸣 committed
217
    },
Wuyuqiu committed
218 219 220 221 222 223 224 225 226 227 228
  },
  watch: {
    "model.setmod.doccur": {
      immediate: true,
      handler() {
        let cur = this.model.setmod.doccur;
        let amt = this.model.setmod.docamt;
        let doc = this.model.brdgrp.rec.docprbrol;
        this.det202cvName = "Payment 202 " + doc + " " + cur + " " + amt;
        this.det756Name = "Payment 756 " + doc + " " + cur + " " + amt;
      },
严一鸣 committed
229
    },
Wuyuqiu committed
230 231 232 233 234 235 236 237 238
    "model.mtabut.clsflg": {
      immediate: true,
      handler() {
        let cur = this.model.setmod.doccur;
        let amt = this.model.setmod.docamt;
        let doc = this.model.brdgrp.rec.docprbrol;
        this.det202cvName = "Payment 202 " + doc + " " + cur + " " + amt;
        this.det756Name = "Payment 756 " + doc + " " + cur + " " + amt;
      },
严一鸣 committed
239
    },
Wuyuqiu committed
240 241 242 243
  },

  created: async function () {
    console.log("进入brtset交易");
244
    let rtnmsg = await this.init(this.$route.query);
Wuyuqiu committed
245 246
    if (rtnmsg.respCode == SUCCESS) {
      this.updateModel(rtnmsg.data);
247
      // this.model.mtabut.clsflg = "X";
Wuyuqiu committed
248 249 250
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
潘际乾 committed
251 252 253
      this.$nextTick(() => {
        this.$refs.ovwp.$refs.utlp.$refs.table.$refs.table.toggleAllSelection(); //表格,默认勾选
      })
Wuyuqiu committed
254 255 256 257 258
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
    }
  },
};
严一鸣 committed
259 260 261
</script>
<style>
</style>