Opnp1.vue 20.8 KB
Newer Older
1
<template>
2 3
    <div class="eibs-tab">
        <!--=================顶部=================  -->
4

liushikai committed
5
        <!-- <c-col :span="24" style="height: 24px">
6 7 8 9
            <el-form-item label="基本信息" class="messageLabel"> </el-form-item>
        </c-col>
        <c-col :span="24" style="height: 0px">
            <el-divider></el-divider>
liushikai committed
10
        </c-col> -->
11

liushikai committed
12
        <c-col :span="24" style="margin-top: 0">
13 14 15
            <c-col :span="11">
                <el-form-item
                    label="业务编号"
16
                    prop="cpdgrp.rec.ownref"
17 18 19 20
                    style="width: 100%"
                >
                    <c-fullbox>
                        <c-input
21
                            v-model="model.cpdgrp.rec.ownref"
22 23 24 25 26 27
                            maxlength="16"
                            placeholder="请输入Reference"
                            disabled
                        ></c-input>
                        <template slot="footer">
                            <c-button
28
                                style="margin: 0px 10px 0 10px; padding: 0 12px"
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
                                size="small"
                                type="primary"
                                @click="onSeainf"
                            >
                                <span
                                    style="
                                        font-family: '宋体';
                                        font-weight: bold;
                                    "
                                    >i</span
                                >
                            </c-button>
                            <c-button
                                style="margin: 0 0"
                                size="small"
                                type="primary"
                                :disabled="this.flag"
                                @click="onOpnpButgetref"
                            >
                                获取
                            </c-button>
                        </template>
                    </c-fullbox>
                </el-form-item>
            </c-col>
            <c-col :span="11" :offset="1">
                <el-form-item label="Name" prop="cpdgrp.rec.nam">
56
                    <c-input
57
                        v-model="model.cpdgrp.rec.nam"
58
                        maxlength="16"
59
                        placeholder=""
60 61
                        disabled
                    ></c-input>
62 63
                </el-form-item>
            </c-col>
64
        </c-col>
65
        <!-- <c-col :span="11" :offset="1">
liushikai committed
66 67 68 69 70 71 72
      <el-form-item label="Our Reference">
        <c-input
          v-model="model.cpdgrp.rec.ownref"
          maxlength="16"
          placeholder="请输入Our Reference"
        ></c-input>
      </el-form-item>
潘际乾 committed
73
    </c-col> -->
liushikai committed
74

75
        <!-- <c-col :span="9">
liushikai committed
76 77 78 79 80 81
      <el-form-item label="">
        <c-input
          v-model="model.cptp.recget.sdamod.seainf"
          placeholder="请输入"
        ></c-input>
      </el-form-item>
潘际乾 committed
82
    </c-col>
liushikai committed
83

潘际乾 committed
84
    <c-col :span="11">
liushikai committed
85 86 87 88 89 90 91
      <el-form-item label="Externally Displayed Name to Identify the Contract">
        <c-input
          v-model="model.cpdgrp.rec.nam"
          maxlength="40"
          placeholder="请输入Externally Displayed Name to Identify the Contract"
        ></c-input>
      </el-form-item>
潘际乾 committed
92
    </c-col> -->
liushikai committed
93

94 95 96 97 98 99 100 101 102 103 104 105
        <c-col>
            <!-- ===================中部--左==================== -->
            <c-col :span="11">
                <c-col :span="24">
                    <el-form-item label="清算编号" prop="cpdgrp.rec.sysno">
                        <c-input
                            v-model="model.cpdgrp.rec.sysno"
                            maxlength="21"
                            placeholder="请输入清算编号"
                        ></c-input>
                    </el-form-item>
                </c-col>
liushikai committed
106

107
                <c-col :span="24">
liushikai committed
108
                    <c-col :span="13">
109
                        <c-form-item
110
                            label="汇款金额"
111
                            previewLabel="汇款金额币种"
112 113 114 115 116 117 118 119 120
                            prop="cpdgrp.cbs.nom1.cur"
                        >
                            <c-select
                                v-model="model.cpdgrp.cbs.nom1.cur"
                                style="width: 100%"
                                placeholder=""
                                @change="onNom1CurChange"
                            >
                                <el-option
zhujiazhan committed
121
                                    v-for="item in codes.currencycode"
122
                                    :key="item.value"
zhujiazhan committed
123
                                    :label="item.value+item.label"
124 125 126
                                    :value="item.value"
                                ></el-option>
                            </c-select>
127
                        </c-form-item>
128
                    </c-col>
liushikai committed
129
                    <c-col :span="11">
130
                        <c-form-item
131
                            label=""
132
                            previewLabel="汇款金额"
133
                            label-width="8px"
134 135 136
                            prop="cpdgrp.cbs.nom1.amt"
                        >
                            <c-input
liushikai committed
137
                                class="m-input-currency"
138 139
                                v-model="model.cpdgrp.cbs.nom1.amt"
                                placeholder="请输入汇款金额"
liushikai committed
140
                                @keyup.enter.native="defaultFunction('cpdgrp.cbs.nom1.amt', model.cpdgrp.cbs.nom1.amt)"
141
                            ></c-input>
142
                        </c-form-item>
143 144
                    </c-col>
                </c-col>
liushikai committed
145

146
                <c-col :span="24">
liushikai committed
147
                    <c-col :span="13">
148 149 150 151 152 153 154 155 156
                        <el-form-item label="所属行" prop="cpdgrp.rec.othbch">
                            <c-input
                                v-model="model.cpdgrp.rec.othbch"
                                maxlength="8"
                                placeholder=""
                                disabled
                            ></c-input>
                        </el-form-item>
                    </c-col>
liushikai committed
157 158
                    <c-col :span="11">
                        <el-form-item label="汇款语种" label-width="40%">
159 160 161 162
                            <c-select
                                v-model="model.cptp.payuil"
                                placeholder="请选择汇款语种"
                                @change="onPayuilChange"
163
                                style="width:100%"
164 165 166 167 168 169 170 171 172 173 174
                            >
                                <el-option
                                    v-for="item in codes.payuil"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
                        </el-form-item>
                    </c-col>
                </c-col>
liushikai committed
175

176
                <c-col :span="24">
liushikai committed
177
                    <c-col :span="13">
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
                        <el-form-item
                            label="是否需要核验"
                            prop="cpdgrp.rec.ischktyp"
                        >
                            <c-select
                                v-model="model.cpdgrp.rec.ischktyp"
                                style="width: 100%"
                                placeholder=""
                            >
                                <el-option
                                    v-for="item in codes.ischktyp"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
                        </el-form-item>
                    </c-col>
liushikai committed
196

liushikai committed
197
                    <c-col :span="11">
198 199 200
                        <el-form-item
                            label="预计核验日期"
                            prop="cpdgrp.rec.paydat"
liushikai committed
201
                            label-width="40%"
liuxin committed
202
                        >
203 204 205 206 207 208
                            <c-date-picker
                                type="date"
                                v-model="model.cpdgrp.rec.paydat"
                                value-format="yyyy-MM-dd"
                                style="width: 100%"
                                placeholder=""
zhujiazhan committed
209
                                :disabled=this.flag1
210 211 212 213 214 215 216
                            ></c-date-picker>
                        </el-form-item>
                    </c-col>
                </c-col>

                <c-col :span="24">
                    <el-form-item label="我行费用负担">
liuxin committed
217
                        <c-select
218 219 220
                            v-model="model.cpdgrp.rec.detchgcod"
                            style="width: 100%"
                            placeholder=""
liuxin committed
221 222
                        >
                            <el-option
223 224 225 226
                                v-for="item in codes.detchgcod"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
liuxin committed
227 228 229 230
                            ></el-option>
                        </c-select>
                    </el-form-item>
                </c-col>
231
            </c-col>
liushikai committed
232

233 234 235
            <!-- ===================中部--右==================== -->
            <c-col :span="11" :offset="1">
                <c-col :span="24">
liushikai committed
236
                    <c-col :span="13">
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
                        <el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
                            <c-select
                                v-model="model.cpdgrp.rec.trntyp"
                                placeholder="请选择汇款性质"
                                style="width: 100%"
                            >
                                <el-option
                                    v-for="item in trntyp"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
                        </el-form-item>
                    </c-col>
liushikai committed
252
                    <c-col :span="11">
253
                        <c-form-item
254 255
                            label="汇款方式"
                            prop="cpdgrp.rec.paytype"
liushikai committed
256
                            label-width="40%"
liuxin committed
257
                        >
258 259 260
                            <c-select
                                v-model="model.cpdgrp.rec.paytype"
                                placeholder="请选择汇款方式"
261
                                style="width:100%"
262 263 264 265 266 267 268 269
                            >
                                <el-option
                                    v-for="item in codes.paytype"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
270
                        </c-form-item>
271
                    </c-col>
liuxin committed
272
                </c-col>
liushikai committed
273

274
                <c-col :span="24">
liushikai committed
275
                    <c-col :span="13">
liuxin committed
276
                        <el-form-item label="汇款对象" prop="cpdgrp.rec.gors">
277 278
                            <c-select
                                v-model="model.cpdgrp.rec.gors"
liuxin committed
279
                                placeholder="请选择汇款对象"
280
                                style="width:100%"
281 282 283 284 285 286 287 288 289 290
                            >
                                <el-option
                                    v-for="item in codes.gors"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
                        </el-form-item>
                    </c-col>
liushikai committed
291
                    <c-col :span="11">
292
                        <c-form-item label="收支类型" prop="cpdgrp.rec.sztyp" label-width="40%">
293 294 295
                            <c-select
                                v-model="model.cpdgrp.rec.sztyp"
                                placeholder="请选择收支类型"
296
                                style="width:100%"
297 298 299 300 301 302 303 304
                            >
                                <el-option
                                    v-for="item in codes.sztyp"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
305
                        </c-form-item>
306
                    </c-col>
liuxin committed
307
                </c-col>
308 309

                <c-col :span="24">
liushikai committed
310
                    <c-col :span="13">
311 312 313 314
                        <el-form-item label="客户类型" prop="cpdgrp.rec.clityp">
                            <c-select
                                v-model="model.cpdgrp.rec.clityp"
                                placeholder="请选择客户类型"
315
                                style="width:100%"
316 317 318 319 320 321 322 323 324 325
                            >
                                <el-option
                                    v-for="item in codes.clityp"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
                        </el-form-item>
                    </c-col>
liushikai committed
326
                    <c-col :span="11">
327
                        <c-form-item label="报文类型" prop="cpdgrp.rec.swftyp" label-width="40%"> 
328 329 330 331 332 333 334
                            <c-select
                                style="width: 100%"
                                placeholder=""
                                v-model="model.cpdgrp.rec.swftyp"
                                :disabled="
                                    model.cpdgrp.cbs.nom1.amt === '0.000'
                                "
335
                                @change="swftypChange"
336 337 338 339 340 341 342 343 344
                            >
                                <!-- :disabled="model.cptp.liqtyp != 'C' && model.cptp.liqtyp != 'S' && model.cptp.liqtyp != ''" -->
                                <el-option
                                    v-for="item in codes.swftypOpnp"
                                    :label="item.label"
                                    :value="item.value"
                                    :key="item.value"
                                ></el-option>
                            </c-select>
345
                        </c-form-item>
346 347 348 349
                    </c-col>
                </c-col>

                <c-col :span="24">
350
                    <c-fullbox>
zhujiazhan committed
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
                        <c-col :span="20">
                                <c-col :span="21">
                                    <el-form-item
                                        label="收款人常驻国家/地区代码"
                                        prop="cptp.payeecountcode">
                                        <c-input
                                            v-model="model.cptp.payeecountcode"
                                            maxlength="3"
                                            placeholder="请输入收款人常驻国家/地区代码"
                                            @keyup.enter.native="
                                                showGridPromptDialog('cptp.payeecountcode')
                                            "
                                            style="width: 100%"
                                        ></c-input>
                                    </el-form-item>
                                </c-col>
                              <c-col :span="3">
                              <c-button
                                    size="small"
                                    type="primary"
                                     icon="el-icon-search"
                                    @click="showGridPromptDialog('cptp.selbut1', null, null,{TXT: 'cptp.payeecountcode'}, {TXT: false},'doxpDialog')"
                                  > </c-button>
                            </c-col>
                        </c-col>
376

zhujiazhan committed
377 378 379
                         <c-col :span="4" style="float: right">
                                 <c-checkbox v-model="model.cpdgrp.rec.tsnflg" label-width="150px" >同名划转</c-checkbox>
                        </c-col>
380
                    </c-fullbox>
381 382 383 384 385 386 387
                </c-col>

                <!-- <c-col :span="24">
                    <c-col :span="14">
                        <el-form-item
                            label="清算模式"
                            v-if="model.cpdgrp.cbs.nom1.cur === 'CNY'"
liuxin committed
388
                        >
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413
                            <c-select
                                v-model="model.cptp.liqtyp"
                                style="width: 100%"
                                placeholder="请选择清算模式"
                                :disabled="
                                    model.cpdgrp.cbs.nom1.amt === '0.000'
                                "
                            >
                                <el-option
                                    v-for="item in liqtypOptions"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                ></el-option>
                            </c-select>
                        </el-form-item>
                        <el-form-item
                            label=""
                            v-if="!(model.cpdgrp.cbs.nom1.cur === 'CNY')"
                        ></el-form-item>
                    </c-col>
                </c-col> -->

                <c-col :span="24">
                    <el-form-item label="货物类型">
liuxin committed
414
                        <c-select
415
                            v-model="model.cpdgrp.rec.stagod"
liuxin committed
416
                            style="width: 100%"
417
                            placeholder="请选择货物类型"
liuxin committed
418 419
                        >
                            <el-option
420 421 422 423
                                v-for="item in codes.godcod"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
liuxin committed
424 425 426 427
                            ></el-option>
                        </c-select>
                    </el-form-item>
                </c-col>
428 429 430
            </c-col>
        </c-col>

liushikai committed
431
        <!-- <c-col :span="24" style="height: 24px">
432
            <el-form-item label="*****信息" class="messageLabel">
liushikai committed
433
            </el-form-item>
liushikai committed
434
        </c-col> -->
435 436 437
        <c-col :span="24" style="height: 0px">
            <el-divider></el-divider>
        </c-col>
liushikai committed
438

潘际乾 committed
439
        <CptOpnp1Common :model="model" :codes="codes" v-on:onSndpDet="onSndpDet"></CptOpnp1Common>
440
    </div>
441 442
</template>
<script>
liushikai committed
443 444
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
wangren committed
445
import commonProcess from "~/mixin/commonProcess";
liushikai committed
446
import Event from "~/model/Cptopn/Event";
liushikai committed
447
import Utils from "~/utils";
liushikai committed
448
import Infpta from "~/views/Business/Infpta";
449

liuxin committed
450
import CptOpnp1Common from "./CptOpnp1Common";
潘际乾 committed
451

452
export default {
453 454
    inject: ["root"],
    props: ["model", "codes"],
潘际乾 committed
455
    components: { Infpta, CptOpnp1Common },
wangren committed
456
    mixins: [commonProcess],
457 458 459 460 461 462 463 464 465 466 467 468 469 470
    data() {
        return {
            trntyp: [
                { value: "0", label: "贸易" },
                { value: "1", label: "非贸易" },
                { value: "2", label: "资本" },
                { value: "3", label: "其他" },
            ],
            liqtypOptions: [
                { value: "B", label: "人行支付系统" },
                { value: "C", label: "代理行模式" },
                { value: "O", label: "Other" },
                { value: "S", label: "CIPS系统" },
            ],
zhujiazhan committed
471
            flag1:false,
472
        };
473
    },
474 475 476 477
    methods: {
        ...Event,
        onCptpGetref() {},
        onCptpGetmod() {},
liushikai committed
478
    },
zhujiazhan committed
479 480 481 482 483 484 485 486 487 488 489 490 491 492
    watch:{
        "model.cpdgrp.rec.ischktyp":{
            immediate:true,
            handler(val ,oldVal){
                if(this.model.cpdgrp.rec.ischktyp == 'N'){
                    this.flag1=true;
                    this.model.cpdgrp.rec.paydat="";
                }
                else{
                    this.flag1=false;
                }
            }
          },
    },
493 494 495 496
    created: function () {},
    computed: {
        flag() {
            return (
497 498
                this.model.cpdgrp.orc.pts.extkey == ""
                // && this.model.cpdgrp.rec.ownref != ""
499 500
            );
        },
501
    },
liushikai committed
502
};
503
</script>
504
<style scoped>
潘际乾 committed
505

506
</style>