Docpan.vue 22.3 KB
Newer Older
1
<template>
SunJie committed
2
    <div class="eibs-tab">
潘际乾 committed
3
        <c-col :span="12">
SunJie committed
4
            <el-form-item label="Correspondence"> </el-form-item>
潘际乾 committed
5
        </c-col>
SunJie committed
6

潘际乾 committed
7
        <c-col :span="22" :offset="1">
SunJie committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
            <c-istream-table-docpan :list="stmData.data" :columns="stmData.columns">
            <el-table-column label="报文格式">
                <template slot-scope="scope">
                    <c-select
                        v-model="
                            model.trnmod.trndoc.doceot[scope.row.index].cortyp
                        "
                        style="width: 100%"
                        disabled
                        placeholder="请选择"
                    >
                        <el-option
                            v-for="item in codes.doceotCortyp"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </template>
            </el-table-column>
            <el-table-column label="报文格式">
                <template slot-scope="scope">
                    <c-select
                        v-model="
                            model.trnmod.trndoc.doceot[scope.row.index].docsnf
                        "
                        style="width: 100%"
                        placeholder="请选择"
                    >
                        <el-option
                            v-for="item in codes.docsnf"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </template>
            </el-table-column>
            <el-table-column label="语言" width="150%">
                <template slot-scope="scope">
                    <c-select
                        v-model="
                            model.trnmod.trndoc.doceot[scope.row.index].docuil
                        "
                        style="width: 100%"
                        placeholder="请选择"
                    >
                        <el-option
                            v-for="item in codes.uiltxt"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </template>
            </el-table-column>
            <el-table-column label="传送方式">
                <template slot-scope="scope">
                    <c-select
                        v-model="
                            model.trnmod.trndoc.doceot[scope.row.index].apf
                        "
                        disabled
                        style="width: 100%"
                        placeholder="请选择"
                    >
                        <el-option
                            v-for="item in codes.apftxt"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </template>
            </el-table-column>
            <el-table-column label="Or." width="65%">
                <template slot-scope="scope">
                    <c-input
                        v-model="
                            model.trnmod.trndoc.doceot[scope.row.index].apfcpy1
                        "
                        :readonly="true"
                        style="width: 100%"
                        placeholder="请选择"
                    >
                    </c-input>
                </template>
            </el-table-column>
            <el-table-column label="CC" width="65%">
                <template slot-scope="scope">
                    <c-input
                        v-model="
                            model.trnmod.trndoc.doceot[scope.row.index].apfcpy2
                        "
                        style="width: 100%"
                        placeholder="请选择"
                        
                    >
                    </c-input>
                </template>
            </el-table-column>
            <el-table-column label="">
                <template slot-scope="scope">
                    <c-select
                        v-model="
                            model.trnmod.trndoc.doceot[scope.row.index].staflg
                        "
                        style="width: 100%"
                        placeholder="请选择"
                    >
                        <el-option
                            v-for="item in codes.swttlx"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </template>
            </el-table-column>
            <el-table-column label="操作">
                <template slot-scope="scope">
                    <el-button
                        size="mini"
                        :disabled="
                            model.trnmod.trndoc.doceot[scope.row.index]
                                .pandsc == 'MT799' &&
                            model.didgrp.rec.elcflg == 'Y'
                        "
                        @click="handleDisplay(scope.row.index, scope.row)"
                        >显示</el-button
                    >
                    <el-button
                        size="mini"
                        type="danger"
                        @click="handleDetail(scope.row.index, scope.row)"
                        >明细</el-button
                    >
                </template>
            </el-table-column>
            <!-- <el-table-column label="">
                <template slot-scope="scope">
                    <el-button
                        size="medium"
                        type="danger"
                        @click="handleDetail(scope.row.index, scope.row)"
                        >明细</el-button
                    >
                </template>
            </el-table-column> -->
            
        </c-istream-table-docpan>
潘际乾 committed
164
        </c-col>
SunJie committed
165

潘际乾 committed
166
        <!-- <c-col :span="24">
SunJie committed
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 212 213 214 215 216 217 218 219 220 221 222 223
            <c-table :list="model.trnmod.trndoc.doceot" style="width:80%,text-align:center">
                <el-table-column
                    label="Role"
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="Description"
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="CORTYP"
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="DOCSNF"
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="Lang."
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="Form"
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="Or."
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="CC"
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label=".."
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="Show"
                    width="auto"
                > 
                </el-table-column>
                <el-table-column
                    label="Details"
                    width="auto"
                > 
                </el-table-column>
            </c-table>
潘际乾 committed
224
       </c-col> -->
SunJie committed
225 226

        <!--                                           
潘际乾 committed
227
	<c-col :span="12">
228
	    <span  v-text="model.trnmod.trndoc.advlabel"   data-path=".trnmod.trndoc.advlabel" > </span>
潘际乾 committed
229
	</c-col>
230
                  
潘际乾 committed
231
       <c-col :span="12">
232 233 234
        <el-form-item label="国内证落款">
            <c-input  v-model="model.trnmod.trndoc.advnam" maxlength="50"  placeholder="请输入国内证落款"></c-input>
        </el-form-item>
潘际乾 committed
235
       </c-col>             
236
                  
潘际乾 committed
237
       <c-col :span="12">
238 239 240
        <el-form-item label="修改申请人名称">
            <c-input type="textarea" v-model="model.trnmod.trndoc.amdapl" maxlength="50" show-word-limit placeholder="请输入修改申请人名称" ></c-input>
        </el-form-item>
潘际乾 committed
241
        </c-col>
242
                  
潘际乾 committed
243
	<c-col :span="12">
244
	    <span  v-text="model.trnmod.trndoc.amdnam"   data-path=".trnmod.trndoc.amdnam" > </span>
潘际乾 committed
245
	</c-col>
246
                  
潘际乾 committed
247
       <c-col :span="12">
248 249 250
        <el-form-item label="国内证通知书">
            <c-input  v-model="model.trnmod.trndoc.advdoc" maxlength="1"  placeholder="请输入国内证通知书"></c-input>
        </el-form-item>
潘际乾 committed
251
       </c-col>        
SunJie committed
252 253 254 255 256 257 258 259
       --><template>
            <el-dialog
                :title="title"
                :visible.sync="centerDialogVisible"
                width="60%"
                center
            >
                <el-form label-width="100px" :model="dialog">
潘际乾 committed
260 261 262
                    <c-row>
                        <c-col :span="12">
                            <c-col>
SunJie committed
263 264 265
                                <el-form-item label="per-medium"
                                    ><el-input disabled v-model="dialog.cortyp"
                                /></el-form-item>
潘际乾 committed
266 267
                            </c-col>
                            <c-col>
SunJie committed
268 269 270 271 272 273
                                <el-form-item label="Form Set">
                                    <el-input
                                        disabled
                                        v-model="dialog.cortyp"
                                    />
                                </el-form-item>
潘际乾 committed
274 275
                            </c-col>
                            <c-col v-if="title != 'elcs.101.001.01'">
SunJie committed
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
                                <el-form-item>
                                    <el-input
                                        disabled
                                        style="width: 150px"
                                        value="Original"
                                    />
                                    <el-input
                                        v-model="dialog.apfcpy1"
                                        style="width: 100px; margin-left: 20px"
                                    />
                                </el-form-item>
                                <el-form-item>
                                    <el-input
                                        disabled
                                        style="width: 150px"
                                        value="Customer Copy"
                                    />
                                    <el-input
                                        v-model="dialog.apfcpy2"
                                        style="width: 100px; margin-left: 20px"
                                    />
                                </el-form-item>
                                <el-form-item>
                                    <el-input
                                        disabled
                                        style="width: 150px"
                                        value="File Copy"
                                    />
                                    <el-input
                                        v-model="dialog.apfcpy3"
                                        style="width: 100px; margin-left: 20px"
                                    />
                                </el-form-item>
                                <el-form-item>
                                    <el-input
                                        disabled
                                        style="width: 150px"
                                        value="Internal Copy"
                                    />
                                    <el-input
                                        v-model="dialog.apfcpy4"
                                        style="width: 100px; margin-left: 20px"
                                    />
                                </el-form-item>
潘际乾 committed
320 321
                            </c-col>
                        </c-col>
SunJie committed
322

潘际乾 committed
323
                        <c-col :span="12">
SunJie committed
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 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 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
                            <el-form-item
                                label="Send Message to"
                                label-width="150px"
                            >
                                <el-input disabled v-model="dialog.roladr" />
                            </el-form-item>
                            <el-form-item
                                label-width="30px"
                                v-if="title != 'elcs.101.001.01'"
                            >
                                <el-input
                                    style="width: 250px"
                                    v-model="dialog.rcv.pts.extkey"
                                />
                                <c-button size="small" type="primary;width:20%"
                                    >i</c-button
                                >
                                <c-button size="small" type="primary">
                                    Details
                                </c-button>
                            </el-form-item>
                            <el-form-item v-else label="BIC">
                                <el-input v-model="dialog.rcv.pts.extkey" />
                            </el-form-item>
                            <el-form-item
                                v-if="title == 'elcs.101.001.01'"
                                label="行联行号"
                            >
                                <el-input v-model="dialog.rcv.pts.bankno" />
                            </el-form-item>
                            <el-form-item label-width="30px">
                                <el-input
                                    :value="
                                        title != 'elcs.101.001.01'
                                            ? dialog.rcv.namelc
                                            : dialog.rcv.pts.jigomc
                                    "
                                    :disabled="title != 'elcs.101.001.01'"
                                    type="textarea"
                                    :rows="2"
                                />
                                <br />
                                <el-input
                                    :value="
                                        title != 'elcs.101.001.01'
                                            ? dialog.rcv.adrelc
                                            : dialog.rcv.pts.dizzhii
                                    "
                                    :disabled="title == 'MT799'"
                                    type="textarea"
                                    :rows="2"
                                />
                            </el-form-item>
                            <el-form-item label="Reference" label-width="100px">
                                <el-input disabled v-model="dialog.adrref" />
                            </el-form-item>
                            <el-form-item label="Medium" label-width="100px">
                                <el-input
                                    disabled
                                    style="width: 40%"
                                    v-model="dialog.cortyp"
                                />
                                <el-input
                                    disabled
                                    v-model="dialog.docuil"
                                    style="width: 40%; margin-left: 20px"
                                />
                            </el-form-item>
潘际乾 committed
392
                        </c-col>
SunJie committed
393

潘际乾 committed
394 395
                        <c-col>&nbsp;</c-col>
                        <c-col :span="12" v-if="title != 'MT799'">
SunJie committed
396 397 398 399 400 401 402 403 404 405
                            <el-form-item
                                label="Adress Amend"
                                label-width="120px"
                            >
                                <el-input
                                    type="textarea"
                                    v-model="dialog.adrblk"
                                    :rows="4"
                                />
                            </el-form-item>
潘际乾 committed
406 407
                        </c-col>
                        <c-col :span="12" v-else>
SunJie committed
408 409 410 411 412 413 414 415 416
                            <el-form-item label="BIC">
                                <el-input disabled v-model="dialog.adrbic" />
                            </el-form-item>
                            <el-form-item label="Authenticator"
                                ><el-input disabled v-model="dialog.adrbicaut"
                            /></el-form-item>
                            <el-form-item label="Priority"
                                ><el-input disabled v-model="dialog.msgpri"
                            /></el-form-item>
潘际乾 committed
417 418
                        </c-col>
                        <c-col :span="12">
SunJie committed
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
                            <el-form-item label-width="30px">
                                <el-table
                                    :data="dialog.rcv.ptyinftxt.rows"
                                    size="mini"
                                    stripe
                                    :border="true"
                                    empty-text=" "
                                    max-height="430px"
                                >
                                    <el-table-column label="Corr.Type" sortable>
                                    </el-table-column>
                                    <el-table-column label="Adressing" sortable>
                                    </el-table-column>
                                    <el-table-column
                                        label="Authentication"
                                        sortable
                                    >
                                    </el-table-column>
                                </el-table>
                            </el-form-item>
潘际乾 committed
439 440
                        </c-col>
                        <c-col v-if="title != 'MT799'"
SunJie committed
441 442 443 444 445 446 447
                            ><el-form-item label="Letter Date">
                                <el-date-picker
                                    type="date"
                                    v-model="dialog.docdat"
                                >
                                </el-date-picker
                            ></el-form-item>
潘际乾 committed
448 449
                        </c-col>
                        <c-col
SunJie committed
450 451 452
                            ><el-form-item label="Contact"
                                ><el-input v-model="dialog.ptcnam"
                            /></el-form-item>
潘际乾 committed
453 454
                        </c-col>
                        <c-col :span="22"
SunJie committed
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470
                            ><el-form-item
                                :label="
                                    title == 'MT799'
                                        ? 'Sender to Rec. information'
                                        : 'Remark'
                                "
                                ><el-input
                                    type="textarea"
                                    :rows="10"
                                    :disabled="title == 'MT799'"
                                    :v-model="
                                        title == 'MT799'
                                            ? dialog.addtxt
                                            : dialog.remark
                                    "
                            /></el-form-item>
潘际乾 committed
471 472
                        </c-col>
                        <c-col :span="2">
SunJie committed
473
                            <el-button size="mini">... </el-button>
潘际乾 committed
474 475
                        </c-col>
                    </c-row>
SunJie committed
476 477 478 479 480 481 482 483 484 485 486 487 488 489
                </el-form>
                <template #footer>
                    <span class="dialog-footer">
                        <el-button type="primary" @click="saveDialog"
                            >确 定</el-button
                        >
                        <el-button @click="centerDialogVisible = false"
                            >取 消</el-button
                        >
                    </span>
                </template>
            </el-dialog>
        </template>
    </div>
490 491
</template>
<script>
492
import CommonProcess from "~/mixin/CommonProcess";
SunJie committed
493 494 495 496
import Event from "~/model/Ditopn/Event";
import Input from "../../../components/Input.vue";
import Api from "~/service/Api";
import Utils from "~/utils/index";
497
export default {
498
    inject: ['root'],
SunJie committed
499 500
    components: { Input },
    props: ["model", "codes"],
501
    mixins: [CommonProcess],
SunJie committed
502
    data() {
503
        return {
SunJie committed
504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525
            index: 0,
            title: "",
            dialog: {
                rcv: {
                    pts: {},
                    ptyinftxt: {},
                },
            },
            centerDialogVisible: false,
            stmData: {
                columns: [
                    //注释的已改成静态
                    "role 收报人",
                    "pandsc 描述",
                    //"cortyp 类型",
                    //"docsnf 报文格式",
                    //"docuil 语言",
                    //"apf 传送方式"
                ],
                data: [],
            },
        };
526
    },
SunJie committed
527 528 529 530 531 532
    methods: {
        ...Event,
        saveDialog() {
            this.centerDialogVisible = false;
            console.log(this.model);
            this.model.trnmod.trndoc.doceot.splice(this.index, 1, this.dialog);
533
            this.executeRule("trnmod.trndoc.doccur.butaddok").then(res => {
潘际乾 committed
534
                if(res.data.respCode==SUCCESS){
535 536 537 538 539 540
                    //TODO
                }else{
                    this.$notify.error({ title: '错误', message: '服务请求失败!' });
                }
            })
            
SunJie committed
541 542 543 544
        },
    },
    created: function () {},
};
545 546 547
</script>
<style>
</style>