Opnp1.vue 15.5 KB
Newer Older
1
<template>
2
  <div class="eibs">
wangna committed
3
    <!-- ============== 顶部============================== -->
liushikai committed
4
    <c-col :span="24" style="margin-top: 0">
5
      <c-col :span="12" style="padding-right: 20px;">
wangna committed
6 7 8 9 10
        <el-form-item
          label="业务编号"
          style="width: 100%"
          prop="cpdgrp.rec.ownref"
        >
吴佳 committed
11 12 13 14 15 16 17 18 19 20
          <c-fullbox>
            <c-input
              v-model="model.cpdgrp.rec.ownref"
              maxlength="16"
              disabled
              placeholder="请输入业务编号"
            ></c-input>

            <template slot="footer">
              <c-button
wangna committed
21
                style="margin: 0 10px 0 10px; padding: 0 12px"
吴佳 committed
22 23
                size="small"
                type="primary"
wangna committed
24 25
                @click="onSeainf"
              >
nanrui committed
26
                <i class="el-icon-info"></i>
吴佳 committed
27 28
              </c-button>
              <c-button
wangna committed
29
                style="margin: 0 0"
吴佳 committed
30 31 32
                size="small"
                type="primary"
                :disabled="this.flag"
33
                @click="commonExecuteRule('cptp.getref')"
吴佳 committed
34 35 36 37 38 39 40 41
              >
                获取
              </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>

42
      <c-col :span="12" style="padding-left: 20px;">
43
        <el-form-item label="简略信息" prop="cpdgrp.rec.nam">
liushikai committed
44
          <c-input
吴佳 committed
45 46
            v-model="model.cpdgrp.rec.nam"
            maxlength="40"
liushikai committed
47
            disabled
wangna committed
48
            placeholder="请输入简略信息"
liushikai committed
49 50 51
          ></c-input>
        </el-form-item>
      </c-col>
潘际乾 committed
52
    </c-col>
wangna committed
53

54
    <!-- ========================左边======================= -->
55
    <c-col :span="12" style="padding-right: 20px;">
吴佳 committed
56
      <c-col :span="24">
wangna committed
57 58 59 60 61
        <el-form-item
          label="清算编号"
          style="width: 100%"
          prop="cpdgrp.rec.sysno"
        >
吴佳 committed
62 63 64 65 66
          <c-fullbox>
            <c-input
              v-model="model.cpdgrp.rec.sysno"
              maxlength="21"
              placeholder="请输入清算编号"
wangna committed
67
              style="width: 100%"
吴佳 committed
68 69
            ></c-input>
          </c-fullbox>
70
        </el-form-item>
潘际乾 committed
71
      </c-col>
吴佳 committed
72

liushikai committed
73
      <c-col :span="13">
wangna committed
74 75 76 77 78
        <c-form-item
          label="汇款金额"
          previewLabel="汇款金额币种"
          prop="cpdgrp.cbs.nom1.cur"
        >
79 80
          <c-select
            v-model="model.cpdgrp.cbs.nom1.cur"
81
            style="width: 100%"
82
            placeholder="请选择币种"
83
            @change="commonExecuteRule('cpdgrp.cbs.nom1.cur')"
84
          >
chenzhaole committed
85
            <el-option
wangna committed
86 87 88 89
              v-for="item in codes.currencycode"
              :key="item.value"
              :label="item.value + item.label"
              :value="item.value"
chenzhaole committed
90
            ></el-option>
91
          </c-select>
92
        </c-form-item>
潘际乾 committed
93
      </c-col>
liushikai committed
94
      <c-col :span="11">
wangna committed
95 96 97 98 99 100
        <c-form-item
          label=""
          previewLabel="汇款金额"
          label-width="8px"
          prop="cpdgrp.cbs.nom1.amt"
        >
101
          <c-input
liushikai committed
102
            class="m-input-currency"
103 104 105
            v-model="model.cpdgrp.cbs.nom1.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入汇款金额"
wangna committed
106
            @change="commonExecuteNotify()"
107
          ></c-input>
108
        </c-form-item>
潘际乾 committed
109
      </c-col>
110
      <c-col :span="13">
111
        <el-form-item label="所属行" prop="cpdgrp.rec.othbch">
112 113 114 115
          <c-input
            v-model="model.cpdgrp.rec.othbch"
            maxlength="8"
            placeholder="请输入所属行"
116
            disabled
117 118
          ></c-input>
        </el-form-item>
潘际乾 committed
119
      </c-col>
120
      <c-col :span="11">
liushikai committed
121
        <el-form-item label="汇款语种" label-width="40%" prop="cptp.payuil">
122 123
          <c-select
            v-model="model.cptp.payuil"
吴佳 committed
124
            style="width: 100%"
125 126
            placeholder="请选择汇款语种"
          >
wangna committed
127 128 129 130 131 132 133
            <el-option
              v-for="item in codes.payuil"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
134 135
          </c-select>
        </el-form-item>
潘际乾 committed
136
      </c-col>
吴佳 committed
137
      <c-col :span="24">
wangna committed
138 139 140 141
        <el-form-item
          label="付款人常驻国家/地区代码"
          prop="cptp.draweecountcode"
        >
吴佳 committed
142 143 144 145 146
          <c-fullbox>
            <c-input
              v-model="model.cptp.draweecountcode"
              maxlength="3"
              placeholder="请输入付款人常驻国家/地区代码"
wangna committed
147
              style="width: 100%"
148
              @keyup.enter.native="showGridPromptDialog('cptp.draweecountcode')"
吴佳 committed
149 150
            ></c-input>
            <template slot="footer">
zhujiazhan committed
151
              <c-button
wangna committed
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
                size="small"
                type="primary"
                icon="el-icon-search"
                @click="
                  showGridPromptDialog(
                    'cptp.selbut',
                    null,
                    null,
                    { COD: 'cptp.draweecountcode' },
                    { COD: true },
                    'doxpDialog'
                  )
                "
              >
              </c-button>
吴佳 committed
167 168
            </template>
          </c-fullbox>
169
        </el-form-item>
潘际乾 committed
170
      </c-col>
wangna committed
171

吴佳 committed
172
      <c-col :span="24">
173
        <el-form-item label="我行费用负担" prop="cpdgrp.rec.detchgcod">
174 175
          <c-select
            v-model="model.cpdgrp.rec.detchgcod"
吴佳 committed
176
            style="width: 100%"
wangna committed
177
            placeholder="请选择我行费用负担"
178
          >
吴佳 committed
179
            <el-option
wangna committed
180 181 182 183
              v-for="item in codes.detchgcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
吴佳 committed
184
            ></el-option>
185 186
          </c-select>
        </el-form-item>
潘际乾 committed
187
      </c-col>
吴佳 committed
188
      <c-col :span="24">
189
        <el-form-item label="货物类型" prop="cpdgrp.rec.stagod">
190 191
          <c-select
            v-model="model.cpdgrp.rec.stagod"
吴佳 committed
192
            style="width: 100%"
193 194
            placeholder="请选择货物类型"
          >
吴佳 committed
195
            <el-option
wangna committed
196 197 198 199
              v-for="item in codes.godcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
吴佳 committed
200
            ></el-option>
201 202
          </c-select>
        </el-form-item>
潘际乾 committed
203 204
      </c-col>
    </c-col>
205 206

    <!-- ========================右边======================= -->
207
    <c-col :span="12" style="padding-left: 20px;">
208 209
      <c-col :span="13">
        <el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
210 211 212 213 214
          <c-select
            v-model="model.cpdgrp.rec.trntyp"
            style="width: 100%"
            placeholder="请选择汇款性质"
          >
chenzhaole committed
215 216 217 218 219 220
            <el-option
              v-for="item in trntyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
221 222
          </c-select>
        </el-form-item>
潘际乾 committed
223
      </c-col>
224
      <c-col :span="11">
wangna committed
225 226 227 228 229
        <c-form-item
          label="汇款方式"
          label-width="40%"
          prop="cpdgrp.rec.paytype"
        >
230 231 232 233 234
          <c-select
            v-model="model.cpdgrp.rec.paytype"
            style="width: 100%"
            placeholder="请选择汇款方式"
          >
chenzhaole committed
235 236 237 238 239 240
            <el-option
              v-for="item in codes.paytype"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
241
          </c-select>
242
        </c-form-item>
潘际乾 committed
243
      </c-col>
244 245
      <c-col :span="13">
        <el-form-item label="收款对象" prop="cpdgrp.rec.gors">
246 247 248 249 250
          <c-select
            v-model="model.cpdgrp.rec.gors"
            style="width: 100%"
            placeholder="请选择收款对象"
          >
chenzhaole committed
251 252 253 254 255
            <el-option
              v-for="item in codes.gors"
              :key="item.value"
              :label="item.label"
              :value="item.value"
wangna committed
256
            ></el-option>
257 258
          </c-select>
        </el-form-item>
潘际乾 committed
259
      </c-col>
260

261
      <c-col :span="11">
wangna committed
262
        <c-form-item label="收支类型" label-width="40%" prop="cpdgrp.rec.sztyp">
263 264 265 266 267
          <c-select
            v-model="model.cpdgrp.rec.sztyp"
            style="width: 100%"
            placeholder="请选择收支类型"
          >
chenzhaole committed
268 269 270 271 272
            <el-option
              v-for="item in codes.sztyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
wangna committed
273
            ></el-option>
274
          </c-select>
275
        </c-form-item>
潘际乾 committed
276 277
      </c-col>
      <c-col :span="24">
278
        <el-form-item label="Uetr" prop="cptp.uetr">
吴佳 committed
279 280 281 282 283
          <c-fullbox>
            <c-input
              v-model="model.cptp.uetr"
              style="width: 100%"
              placeholder="请输入Uetr"
284
              disabled
吴佳 committed
285 286
            ></c-input>
            <template slot="footer">
wangna committed
287 288 289 290 291 292
              <c-button
                size="small"
                style="margin-left: 10px; padding: 0 10px"
                type="primary"
                @click="onCptpGetuetr"
              >
nanrui committed
293
                获取
吴佳 committed
294 295 296
              </c-button>
            </template>
          </c-fullbox>
297
        </el-form-item>
潘际乾 committed
298
      </c-col>
299

300
      <c-col :span="13">
301
        <el-form-item label="解付日期">
302 303 304 305 306 307 308
          <c-date-picker
            type="date"
            v-model="model.cpdgrp.rec.paydat"
            style="width: 100%"
            placeholder="请选择付款日期"
          ></c-date-picker>
        </el-form-item>
潘际乾 committed
309
      </c-col>
310
      <c-col :span="11">
311
        <el-form-item label="起息日" label-width="40%">
312 313 314 315 316
          <c-date-picker
            type="date"
            v-model="model.cpdgrp.rec.valdat"
            style="width: 100%"
            placeholder="请选择起息日"
wangna committed
317
            @change="commonExecuteNotify()"
318 319
          ></c-date-picker>
        </el-form-item>
潘际乾 committed
320
      </c-col>
321 322
      <c-col :span="13">
        <el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
323 324 325 326 327
          <c-select
            v-model="model.cpdgrp.rec.clityp"
            style="width: 100%"
            placeholder="请选择客户类型"
          >
wangna committed
328 329 330 331 332 333
            <el-option
              v-for="item in codes.clityp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            ></el-option>
334 335
          </c-select>
        </el-form-item>
潘际乾 committed
336
      </c-col>
337

338
      <c-col :span="11">
wangna committed
339 340 341 342 343
        <c-form-item
          label="报文类型"
          label-width="40%"
          prop="cpdgrp.rec.swftyp"
        >
344 345 346 347
          <c-select
            v-model="model.cpdgrp.rec.swftyp"
            style="width: 100%"
            placeholder="请选择报文类型"
348
            :disabled="model.cpdgrp.cbs.nom1.amt === '0.000'"
349
            @change="commonExecuteRule('cpdgrp.rec.swftyp')"
wangna committed
350
            :code="this.swftypOpnp"
351 352
          >
          </c-select>
353
        </c-form-item>
潘际乾 committed
354
      </c-col>
chenzhaole committed
355

356
      <c-col :span="13">
357
        <el-form-item label="国外费用" prop="cpdgrp.rec.feecur">
358 359 360 361 362
          <c-select
            v-model="model.cpdgrp.rec.feecur"
            style="width: 100%"
            placeholder="请选择国外费用币种"
          >
chenzhaole committed
363
            <el-option
wangna committed
364 365 366 367
              v-for="item in codes.currencycode"
              :key="item.value"
              :label="item.value + item.label"
              :value="item.value"
chenzhaole committed
368
            >
wangna committed
369
            </el-option>
370 371
          </c-select>
        </el-form-item>
潘际乾 committed
372
      </c-col>
373

374
      <c-col :span="11">
wangna committed
375 376 377 378 379 380 381 382 383 384 385 386
        <el-form-item
          label=""
          style="width: 100%"
          label-width="8px"
          prop="cpdgrp.rec.feeamt"
        >
          <c-fullbox>
            <c-input
              v-model="model.cpdgrp.rec.feeamt"
              placeholder="请输入国外费用金额"
              style="width: 95%"
            ></c-input>
387

wangna committed
388 389 390 391 392 393 394
            <template slot="footer">
              <span>
                <c-checkbox v-model="model.cpdgrp.rec.tsnflg"
                  >同名划转标志</c-checkbox
                >
              </span>
            </template>
395
          </c-fullbox>
396
        </el-form-item>
潘际乾 committed
397 398
      </c-col>
    </c-col>
399

400

wangna committed
401 402 403 404 405
    <CptAdvChangePanel
      :model="model"
      :codes="codes"
      v-on:onSndpDet="onSndpDet"
    ></CptAdvChangePanel>
406

wangna committed
407
    <c-col :span="24">
408
      <c-col :span="12" style="padding-right: 20px;"
wangna committed
409 410 411 412 413 414
        v-if="
          model.cpdgrp.rec.swftyp === '103' ||
          model.cpdgrp.rec.swftyp === '202' ||
          model.cpdgrp.rec.swftyp === '200'
        "
      >
415
        <!--将Addtional Info面板合并-->
416 417
        <el-form-item label="汇款人名称" prop="orcnam">
          <c-input
wangna committed
418 419 420 421 422
            v-model="model.orcnam"
            maxlength="100"
            placeholder="请输入汇款人名称"
            style="width: 100%"
          ></c-input>
423 424 425
        </el-form-item>
      </c-col>

426
      <!--将MT103面板合并-->
427
      <c-col :span="12" style="padding-left: 20px;" v-if="model.cpdgrp.rec.swftyp === '103'">
wangna committed
428 429 430 431 432 433 434 435 436 437 438 439
        <el-form-item
          label="汇款附言(Tag 70)"
          prop="cpdgrp.blk.contag70"
        >
          <c-input
            type="textarea"
            :rows="4"
            maxlength="200"
            v-model="model.cpdgrp.blk.contag70"
            show-word-limit
            placeholder="请输入汇款附言"
          ></c-input>
440 441
        </el-form-item>
      </c-col>
wangna committed
442
    </c-col>
443 444 445
  </div>
</template>
<script>
446
import Api from "~/service/Api";
447
import Utils from "~/utils/index";
wangren committed
448
import commonProcess from "~/mixin/commonProcess";
449 450
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cptadv/Event";
chenzhaole committed
451
import Ptap from "~/views/Public/Ptap";
452

453
import CptAdvChangePanel from "./CptAdvChangePanel";
潘际乾 committed
454

455
export default {
liushikai committed
456
  inject: ["root"],
457
  props: ["model", "codes"],
458
  components: { CptAdvChangePanel },
wangren committed
459
  mixins: [commonProcess],
460
  data() {
chenzhaole committed
461 462 463 464 465 466 467
    return {
      trntyp: [
        { value: "0", label: "贸易" },
        { value: "1", label: "非贸易" },
        { value: "2", label: "资本" },
        { value: "3", label: "其他" },
      ],
wangna committed
468 469 470 471 472
      swftypOpnp: [
        { label: "MT103", value: "103" },
        { label: "Mt202 COV", value: "202" },
        { label: "MT202", value: "200" },
        { label: "Other", value: "OTH" },
473
      ],
chenzhaole committed
474
    };
475
  },
wangna committed
476 477 478 479 480 481
  methods: {
    ...Event,
    onSeainf() {},
    commonExecuteRule(ruleName) {
      this.executeRule(ruleName).then((res) => {
        if (res.respCode == SUCCESS) {
482 483 484 485
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
wangna committed
486 487 488
    commonExecuteNotify() {
      this.executeNotify().then((res) => {
        if (res.respCode == SUCCESS) {
489 490 491 492
          Utils.copyValueFromVO(this.model, res.data);
        }
      });
    },
liushikai committed
493
  },
494 495 496 497 498
  created: function () {
    console.log(this.root);
  },
  computed: {
    flag() {
499
      return this.model.cpdgrp.pye.pts.extkey == "";
500 501
    },
  },
502
  watch: {
wangna committed
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
    "model.cpdgrp.cbs.nom1.cur": function () {
      if (this.model.cpdgrp.cbs.nom1.cur == "CNY") {
        this.swftypOpnp = [
          { label: "MT103", value: "103" },
          { label: "MT202 COV", value: "202" },
          { label: "MT202", value: "200" },
          { label: "CMT100", value: "CMT" },
          { label: "Other", value: "OTH" },
          { label: "hvps111", value: "HVP" },
          { label: "hvps112", value: "HVQ" },
          { label: "hvps115", value: "HVR" },
          { label: "PKG001", value: "CMX" },
          { label: "PKG005", value: "CMY" },
          { label: "beps121", value: "BEP" },
          { label: "beps122", value: "BEQ" },
          { label: "beps125", value: "BES" },
          { label: "cips111", value: "CIU" },
          { label: "cips112", value: "CIV" },
          { label: "cips113", value: "CIW" },
        ];
      } else {
        this.swftypOpnp = [
          { label: "MT103", value: "103" },
          { label: "Mt202 COV", value: "202" },
          { label: "MT202", value: "200" },
          { label: "Other", value: "OTH" },
        ];
      }
    },
532
  },
533
};
534 535 536
</script>
<style>
</style>