index.vue 12.7 KB
Newer Older
chenwen committed
1
<template>
2 3 4 5
  <div class="eContainer">
    <c-page title="进口代收付款">
      <!--    <div class="eContainer">-->

wangren committed
6
      <el-form
7 8 9 10 11 12 13
          :model="model"
          :rules="rules"
          ref="modelForm"
          label-width="120px"
          label-position="right"
          size="small"
          :validate-on-rule-change="false"
wangren committed
14
      >
panziyi committed
15
        <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
16 17
          <!--业务信息  -->
          <el-tab-pane label="业务信息" name="ovwp">
panziyi committed
18
            <c-content>
19
              <m-ovwp :model="model" :codes="codes" />
panziyi committed
20
            </c-content>
wangren committed
21 22
          </el-tab-pane>

23 24
          <!--统一授信  -->
          <el-tab-pane label="统一授信" name="limitbody">
panziyi committed
25
            <c-content>
26
              <m-limitbody :model="model" :codes="codes" />
panziyi committed
27 28 29
            </c-content>
          </el-tab-pane>

30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
          <!--费用/账户  -->
          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <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>
wangren committed
50 51
          </el-tab-pane>

52 53
          <!--备查/附言  -->
          <el-tab-pane label="备查/附言" name="addbcb">
wangren committed
54
            <c-content>
55
              <m-addbcb :model="model" :codes="codes" />
chenwen committed
56
            </c-content>
wangren committed
57 58
          </el-tab-pane>

59 60 61 62 63
          <!--申报信息  -->
          <el-tab-pane label="申报信息" name="cnyp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
wangren committed
64 65
          </el-tab-pane>

66 67
          <!--报文/面函  -->
          <el-tab-pane label="报文/面函" name="docpan">
panziyi committed
68
            <c-content>
69 70
              <m-docpan :model="model" :codes="codes" />
            </c-content>
wangren committed
71 72
          </el-tab-pane>

73 74 75 76 77
          <!--附件信息  -->
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
wangren committed
78 79
          </el-tab-pane>

80 81 82 83 84 85 86
        </c-tabs>
        <!--PD000005 -->
        <!--          <el-tab-pane label="到期时结算BC" name="bctsus">-->
        <!--            <c-content>-->
        <!--            <m-bctsus ref="bctsus" :model="model" :codes="codes" />-->
        <!--            </c-content>-->
        <!--          </el-tab-pane>-->
wangren committed
87

88 89 90 91 92
        <!--          <el-tab-pane label="创建融资" name="trtcrep"  v-if="model.trtcre.crefinflg != ''">-->
        <!--              <c-content>-->
        <!--                <m-trtcrep :model="model" :codes="codes"/>-->
        <!--              </c-content>-->
        <!--           </el-tab-pane>-->
wangren committed
93

94 95 96 97 98
        <!--           <el-tab-pane label="定价系统" name="dinpan" v-if="model.trtcre.trtmod.finmod.dinjdm != '' && model.trtcre.crefinflg !=''">-->
        <!--              <c-content>-->
        <!--                <m-dinpan :model="model" :codes="codes"/>-->
        <!--              </c-content>-->
        <!--           </el-tab-pane>-->
wangren committed
99

100 101 102 103 104
        <!--          <el-tab-pane label="同业代付" name="dftcrep" v-if="model.dftcre.dfflag">-->
        <!--            <c-content>-->
        <!--            <m-dftcrep :model="model" :codes="codes" />-->
        <!--            </c-content>-->
        <!--          </el-tab-pane>-->
panziyi committed
105

wangren committed
106

107 108 109 110
        <!--PD000018 -->
        <!--          <el-tab-pane label="指示条款" name="detp">-->
        <!--            <m-detp :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
wangren committed
111

112 113 114 115 116 117
        <!--          &lt;!&ndash;PD000260 &ndash;&gt;-->
        <!--          <el-tab-pane label="参与方" name="ptyp">-->
        <!--            <c-content>-->
        <!--              <m-ptyp :model="model" :codes="codes" />-->
        <!--            </c-content>-->
        <!--          </el-tab-pane>-->
wangren committed
118

119 120 121 122
        <!--PD000027 -->
        <!--          <el-tab-pane label="表外记账" name="engp">-->
        <!--            <m-engp :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
wangren committed
123

124 125 126 127 128 129
        <!--          &lt;!&ndash;PD000000 &ndash;&gt;-->
        <!--          <el-tab-pane label="结算" name="setpan">-->
        <!--            <c-content>-->
        <!--            <m-setpan :model="model" :codes="codes" />-->
        <!--            </c-content>-->
        <!--          </el-tab-pane>-->
wangren committed
130

131 132 133
        <!--          <el-tab-pane label="账务" name="glepan">-->
        <!--            <m-glepan :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
panziyi committed
134

135 136 137 138
        <!--          &lt;!&ndash;PD000000 &ndash;&gt;-->
        <!--          <el-tab-pane label="提示信息" name="coninfp">-->
        <!--            <m-coninfp :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
panziyi committed
139

140 141 142 143
        <!--          &lt;!&ndash;PD000529 &ndash;&gt;-->
        <!--          <el-tab-pane label="报文和面函" name="docpan">-->
        <!--            <m-docpan :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
wangren committed
144

145 146 147
        <!--          <el-tab-pane label="附件" name="doctre">-->
        <!--            <m-doctre :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
wangren committed
148

149 150 151 152 153 154 155 156 157 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 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
        <!--           <el-tab-pane label="融资款项" name="rzkx" v-if="model.trtcre.crefinflg">-->
        <!--            <m-rzkx :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->

        <!--          <el-tab-pane label="外管信息" name="wg">-->
        <!--            <m-wg :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->

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

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

        <!--          <el-tab-pane label="定向收付" name="dxzfp" v-if="model.trtcre.crefinflg">-->
        <!--            <m-dxzfp :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
        <!--          <el-tab-pane label="跨境人名币申报" name="cnyp">-->
        <!--            <m-cnyp :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->

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

        <!--          <el-tab-pane label="资本项目" name="cfactlp">-->
        <!--            <m-cfactlp :model="model" :codes="codes" />-->
        <!--          </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>-->

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

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

        <!--          <el-tab-pane label="Payment 400 RMI " name="det400">-->
        <!--            <m-det400 :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->

        <!--          <el-tab-pane label="Payment 202 RMI " name="det202cv">-->
        <!--            <m-det202cv :model="model" :codes="codes" />-->
        <!--          </el-tab-pane>-->
        <!--        </c-tabs>-->
wangren committed
212
      </el-form>
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
      <c-grid-ety-prompt-dialog
          ref="etyDialog"
          :promptData="promptData"
          v-on:select-ety="selectEty"
      >
      </c-grid-ety-prompt-dialog>
      <c-grid-ety-prompt-dialog
          ref="doxpDialog"
          :isPty="false"
          :promptData="promptData"
          @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
      <c-function-btn
          :handleSubmit="handleSubmit"
          :handleCheck="handleCheck"
          :handleStash="handleStash"
      >
      </c-function-btn>
      <!--    </div>-->
    </c-page>
  </div>

chenwen committed
236 237
</template>
<script>
wangren committed
238 239 240 241 242 243 244 245
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Bctset from "~/model/Bctset";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Bctset/Check";
import Default from "~/model/Bctset/Default";
import Pattern from "~/model/Bctset/Pattern";
nanrui committed
246

wangren committed
247 248 249 250 251 252 253 254 255 256
import Bctsus from "./Bctsus";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Wg from "./Wg";
import Basp from "./Basp";
import Basp1 from "./Basp1";
import Cnyp from "./Cnyp";
import Cfactlp from "./Cfactlp";
import Det400 from "./Det400";
import Det202cv from "./Det202cv";
panziyi committed
257 258 259 260 261 262
import Cips from "./Cips";
import Cips2 from "./Cips2";
import Dftcrep from "./Dftcrep";
import Dxzfp from "./Dxzfp";
import Rzkx from "./Rzkx";
import Trtcrep from "./Trtcrep";
263
import Dinpan from "./Dinpan";
nanrui committed
264 265
import Outp from "./Outp";
import Limitbody from "./Limitbody";
266
import Addbcb from "./Addbcb";
wangren committed
267 268 269 270

import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
panziyi committed
271
import Docpan from "~/views/Public/Docpan";
wangren committed
272 273
import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan";
nanrui committed
274

275 276
import Ovwp from "./Ovwp";

chenwen committed
277 278

export default {
wangren committed
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
  name: "Bctset",
  components: {
    "m-bctsus": Bctsus,
    "m-detp": Detp,
    "m-setpan": Setpan,
    "m-ptyp": Ptyp,
    "m-basp": Basp,
    "m-basp1": Basp1,
    "m-engp": Engp,
    "m-coninfp": Coninfp,
    "m-docpan": Docpan,
    "m-doctre": Doctre,
    "m-wg": Wg,
    "m-cnyp": Cnyp,
    "m-cfactlp": Cfactlp,
    "m-det400": Det400,
    "m-det202cv": Det202cv,
    "m-limitbody": Limitbody,
    "m-glepan": Glepan,
panziyi committed
298 299 300 301 302
    "m-cips" :Cips,
    "m-dftcrep" :Dftcrep,
    "m-dxzfp" : Dxzfp,
    "m-rzkx" :Rzkx,
    "m-trtcrep" :Trtcrep,
panziyi committed
303 304
    "m-cips2" :Cips2,
    "m-outp": Outp,
305
    "m-dinpan":Dinpan,
306 307
    "m-addbcb": Addbcb,
    "m-ovwp": Ovwp,
panziyi committed
308

wangren committed
309 310 311 312 313 314 315 316 317
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
  data() {
    return {
318 319
      activeNames: ["engp", ""],
      tabVal: "ovwp",
wangren committed
320 321 322 323 324 325 326 327 328
      trnName: "bctset",
      model: new Bctset().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
    };
  },
panziyi committed
329
  methods: {
panziyi committed
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350
    myTabClick(tab) {
      this.tabClick(tab);
      let name = tab.name;
      let rulePath;
      if ((name === "trtcrep")) {
        rulePath = "trtcre.trtcrep";
      }
      if ((name === "dftcrep")) {
        rulePath = "dftcre.dftcrep";
      }
      if(name === 'outp'){
        rulePath = "cnybop.Outp"
      }
      if (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
          }
        });
      }
    },
panziyi committed
351
  },
wangren committed
352 353
  created: async function () {
    console.log("进入bctset交易");
panziyi committed
354
    let rtnmsg = await this.init(this.$route.query);
wangren committed
355 356 357
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      this.updateModel(rtnmsg.data);
panziyi committed
358 359
      
     if (this.isInDisplay) {
wangren committed
360 361
        this.restoreDisplay();
      }
panziyi committed
362
      
363
      // this.$refs.bctsus.$refs.table.$refs.table.toggleAllSelection();
wangren committed
364 365
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
chenwen committed
366
    }
wangren committed
367 368
  },
};
chenwen committed
369
</script>
wangren committed
370
<style></style>