Docpan.vue 29.3 KB
Newer Older
潘际乾 committed
1 2
<template>
    <div class="eibs-tab">
潘际乾 committed
3
        <c-col :span="24" style="">
潘际乾 committed
4
            <c-istream-table-docpan :list="stmData.data" :columns="stmData.columns">
Wuyuqiu committed
5
            <el-table-column label="介质" width="110px">
潘际乾 committed
6
                <template slot-scope="scope">
7
                    <el-form-item
8 9 10
                    label-width="0"
                    :prop="'trnmod.trndoc.doceot.' + scope.$index + '.cortyp'"
                  >
潘际乾 committed
11 12
                    <c-select
                        v-model="
潘际乾 committed
13
                            scope.row.cortyp
潘际乾 committed
14 15 16 17 18 19 20 21 22 23 24 25 26
                        "
                        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>
27
                    </el-form-item>
潘际乾 committed
28 29
                </template>
            </el-table-column>
Wuyuqiu committed
30
            <el-table-column label="报文格式" width="150px">
潘际乾 committed
31 32 33
                <template slot-scope="scope">
                    <c-select
                        v-model="
潘际乾 committed
34
                            scope.row.docsnf
潘际乾 committed
35 36 37
                        "
                        style="width: 100%"
                        placeholder="请选择"
38
                        @change="executeDefault('trnmod.trndoc.doccur.docsnf')"
潘际乾 committed
39 40 41 42 43 44 45 46 47 48 49
                    >
                        <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>
Wuyuqiu committed
50
            <el-table-column label="语言" width="150px">
潘际乾 committed
51 52 53
                <template slot-scope="scope">
                    <c-select
                        v-model="
潘际乾 committed
54
                            scope.row.docuil
潘际乾 committed
55 56 57 58 59
                        "
                        style="width: 100%"
                        placeholder="请选择"
                    >
                        <el-option
60
                            v-for="item in codes.uiltxt1"
潘际乾 committed
61 62 63 64 65 66 67 68
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        >
                        </el-option>
                    </c-select>
                </template>
            </el-table-column>
Wuyuqiu committed
69
            <el-table-column label="传送方式" width="110px">
潘际乾 committed
70
                <template slot-scope="scope">
71
                    <el-form-item
72 73 74
                    label-width="0"
                    :prop="'trnmod.trndoc.doceot.' + scope.$index + '.apf'"
                  >
潘际乾 committed
75 76
                    <c-select
                        v-model="
潘际乾 committed
77
                            scope.row.apf
潘际乾 committed
78 79 80 81 82 83 84 85 86 87 88 89 90
                        "
                        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>
91
                    </el-form-item>
潘际乾 committed
92 93
                </template>
            </el-table-column>
潘际乾 committed
94
            <el-table-column label="发送份数" width="70">
潘际乾 committed
95 96 97
                <template slot-scope="scope">
                    <c-input
                        v-model="
潘际乾 committed
98
                            scope.row.apfcpy1
潘际乾 committed
99 100 101 102 103 104 105 106
                        "
                        :readonly="true"
                        style="width: 100%"
                        placeholder="请选择"
                    >
                    </c-input>
                </template>
            </el-table-column>
潘际乾 committed
107
            <el-table-column label="抄送份数" width="70">
潘际乾 committed
108 109 110
                <template slot-scope="scope">
                    <c-input
                        v-model="
潘际乾 committed
111
                            scope.row.apfcpy2
潘际乾 committed
112 113 114 115 116 117
                        "
                        style="width: 100%"
                        placeholder="请选择"
                    >
                    </c-input>
                </template>
Wuyuqiu committed
118
            </el-table-column> 
119
            <el-table-column label="" width="110px">
潘际乾 committed
120
                <template slot-scope="scope">
121
                    <el-form-item
122 123 124
                    label-width="0"
                    :prop="'trnmod.trndoc.doceot.' + scope.$index + '.staflg'"
                  >
潘际乾 committed
125 126
                    <c-select
                        v-model="
潘际乾 committed
127
                            scope.row.staflg
潘际乾 committed
128 129 130 131 132 133 134 135 136 137 138 139
                        "
                        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>
140
                    </el-form-item>
潘际乾 committed
141 142
                </template>
            </el-table-column>
Wuyuqiu committed
143
            <el-table-column label="操作" width="200px" fixed="right">
潘际乾 committed
144
                <template slot-scope="scope">
145
                    <c-button
liushikai committed
146
                        type="primary"
liushikai committed
147
                        size="small"
潘际乾 committed
148
                        :disabled="
149
                            (scope.row
wangna committed
150
                                .pandsc == 'MT799' && model.didgrp && model.didgrp.rec &&
151
                            model.didgrp.rec.elcflg == 'Y')||suppress
潘际乾 committed
152
                        "
潘际乾 committed
153
                        @click="handleDisplay(scope.row.index, scope.row, model.trnmod.trndoc.doceot[scope.row.idx])"
Wuyuqiu committed
154
                        style="margin-right:10px"
LiRui committed
155
                        >预览</c-button
潘际乾 committed
156
                    >
157
                    <c-button
liushikai committed
158
                        size="small"
liushikai committed
159 160
                        type="primary"
                        style="margin-left:0"
潘际乾 committed
161
                        @click="handleDetail(scope.row.index, scope.row)"
LiRui committed
162
                        >详情</c-button
潘际乾 committed
163 164 165
                    >
                </template>
            </el-table-column>
liuxin committed
166 167 168 169 170 171 172
            </c-istream-table-docpan>
        </c-col>
        <c-col :span="12" style="margin-top:20px">
            <c-col :span="24">
                <el-form-item
                    label="国内证落款"
                    prop="trnmod.trndoc.advnam"
173
                    v-if="root.trnName=='DITCAN' || root.trnName == 'BDTSET' || root.trnName == 'TRTAME' || root.trnName == 'TRTSET' || root.trnName == 'DETOPN' || root.trnName == 'DETAME' || root.trnName == 'BFTDRV' || root.trnName == 'BFTSND' || root.trnName == 'BPTOPN' || root.trnName == 'BPTAME' || root.trnName == 'BPTSET' || root.trnName == 'BFTACC' || root.trnName == 'DFTAME' || root.trnName == 'DFTSET'"
liuxin committed
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
                >
                    <c-input
                        v-model="model.trnmod.trndoc.advnam"
                        maxlength="50"
                        placeholder="请输入"
                    ></c-input>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item
                    label="修改申请人名称"
                    prop="trnmod.trndoc.amdapl"
                    v-if=" root.trnName== 'detame' || root.trnName == 'bftsnd'"
                >
                    <c-input
                        v-model="model.trnmod.trndoc.amdapl"
                        maxlength="100"
                        placeholder="请输入"
                    ></c-input>
                </el-form-item>
            </c-col>
            <c-col :span="24">
                <el-form-item
                    label="国内证通知书"
                    prop="trnmod.trndoc.advdoc"
                    v-if=" root.trnName== 'detopn' || root.trnName == 'detame'"
                >
                    <c-select
                        v-model="model.trnmod.trndoc.advdoc"
                        placeholder="请选择"
                        style="width: 100%"
                        :code="codes.trndoc_advdoc"
                    >
                    </c-select>
                </el-form-item>
            </c-col>
潘际乾 committed
210
        </c-col>
fukai committed
211
        <template>
潘际乾 committed
212 213 214 215 216 217
            <el-dialog
                :title="title"
                :visible.sync="centerDialogVisible"
                width="60%"
                center
            >
218
                <el-form label-width="100px" :model="dialog" :disabled="suppress">
潘际乾 committed
219 220 221
                    <c-row>
                        <c-col :span="12">
                            <c-col>
222
                                <el-form-item label="介质">
Wuyuqiu committed
223 224 225
                                    <c-select disabled v-model="dialog.cortyp" :code="codes.doceotCortyp">
                                    </c-select>
                                </el-form-item>
潘际乾 committed
226 227
                            </c-col>
                            <c-col>
228
                                <el-form-item label="表单集合">
Wuyuqiu committed
229
                                    <!-- <el-input
潘际乾 committed
230 231
                                        disabled
                                        v-model="dialog.cortyp"
Wuyuqiu committed
232 233 234
                                    /> -->
                                    <c-select disabled v-model="dialog.cortyp" :code="codes.doceotCortyp">
                                    </c-select>
潘际乾 committed
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
                                </el-form-item>
                            </c-col>
                            <c-col v-if="title != 'elcs.101.001.01'">
                                <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>
                            </c-col>
                        </c-col>

                        <c-col :span="12">
                            <el-form-item
287
                                label="发送至"
潘际乾 committed
288 289
                                label-width="150px"
                            >
Wuyuqiu committed
290 291 292
                                <!-- <el-input disabled v-model="dialog.roladr" /> -->
                                <c-select disabled v-model="dialog.roladr" :code="codes.payrol">
                                </c-select>
潘际乾 committed
293 294
                            </el-form-item>
                            <el-form-item
295 296 297 298 299
                                label-width="150px"
                                v-if="title == 'elcs.101.001.01'"
                            > 
                              <c-fullbox>
                                <c-input
潘际乾 committed
300
                                    v-model="dialog.rcv.pts.extkey"
liuxin committed
301 302 303
                                    @keyup.enter.native="
                                        showGridPromptDialog('trnmod.trndoc.doccur.rcv.pts.extkey')
                                    "
潘际乾 committed
304
                                />
305 306
                                <template slot="footer">
                                    <c-button size="small" type="primary" icon="el-icon-search"
liushikai committed
307
                                    ></c-button
潘际乾 committed
308 309
                                >
                                <c-button size="small" type="primary">
liushikai committed
310
                                    详情
潘际乾 committed
311
                                </c-button>
312 313
                                </template>
                              </c-fullbox>
潘际乾 committed
314
                            </el-form-item>
jianglong committed
315
                            <el-form-item v-else label="BIC编码" label-width="150px">
潘际乾 committed
316 317 318
                                <el-input v-model="dialog.rcv.pts.extkey" />
                            </el-form-item>
                            <el-form-item
319 320
                                v-if="title == 'elcs.101.001.01'||(title != 'elcs.101.001.01'&&dialog.rcv.pts.bankno!='')"
                                label="联行行号" label-width="150px"
潘际乾 committed
321 322 323 324 325 326
                            >
                                <el-input v-model="dialog.rcv.pts.bankno" />
                            </el-form-item>
                            <el-form-item label-width="30px">
                                <el-input
                                    :value="
327
                                        title == 'elcs.101.001.01'
潘际乾 committed
328 329 330 331 332 333 334 335 336 337
                                            ? dialog.rcv.namelc
                                            : dialog.rcv.pts.jigomc
                                    "
                                    :disabled="title != 'elcs.101.001.01'"
                                    type="textarea"
                                    :rows="2"
                                />
                                <br />
                                <el-input
                                    :value="
338
                                        title == 'elcs.101.001.01'
潘际乾 committed
339 340 341 342 343 344 345 346
                                            ? dialog.rcv.adrelc
                                            : dialog.rcv.pts.dizzhii
                                    "
                                    :disabled="title == 'MT799'"
                                    type="textarea"
                                    :rows="2"
                                />
                            </el-form-item>
jianglong committed
347
                            <el-form-item label="参考号" label-width="100px">
潘际乾 committed
348 349
                                <el-input disabled v-model="dialog.adrref" />
                            </el-form-item>
jianglong committed
350
                            <el-form-item label="介质" label-width="100px">
Wuyuqiu committed
351
                                <!-- <el-input
潘际乾 committed
352 353 354
                                    disabled
                                    style="width: 40%"
                                    v-model="dialog.cortyp"
Wuyuqiu committed
355 356 357 358
                                /> -->
                                <c-select disabled style="width: 40%" v-model="dialog.cortyp" :code="codes.doceotCortyp">
                                </c-select>
                                <!-- <el-input
潘际乾 committed
359 360 361
                                    disabled
                                    v-model="dialog.docuil"
                                    style="width: 40%; margin-left: 20px"
Wuyuqiu committed
362 363 364
                                /> -->
                                <c-select disabled style="width: 40%; margin-left: 20px" v-model="dialog.docuil" :code="codes.payuil">
                                </c-select>
潘际乾 committed
365 366 367 368 369 370
                            </el-form-item>
                        </c-col>

                        <c-col>&nbsp;</c-col>
                        <c-col :span="12" v-if="title != 'MT799'">
                            <el-form-item
371
                                label="地址修改"
潘际乾 committed
372 373 374 375 376 377 378 379 380 381
                                label-width="120px"
                            >
                                <el-input
                                    type="textarea"
                                    v-model="dialog.adrblk"
                                    :rows="4"
                                />
                            </el-form-item>
                        </c-col>
                        <c-col :span="12" v-else>
jianglong committed
382
                            <el-form-item label="BIC编码">
潘际乾 committed
383 384 385 386 387
                                <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>
jianglong committed
388
                            <el-form-item label="优先级"
潘际乾 committed
389 390 391 392 393 394 395 396 397 398 399 400 401
                                ><el-input disabled v-model="dialog.msgpri"
                            /></el-form-item>
                        </c-col>
                        <c-col :span="12">
                            <el-form-item label-width="30px">
                                <el-table
                                    :data="dialog.rcv.ptyinftxt.rows"
                                    size="mini"
                                    stripe
                                    :border="true"
                                    empty-text=" "
                                    max-height="430px"
                                >
jianglong committed
402
                                    <el-table-column label="报文类型" sortable>
潘际乾 committed
403
                                    </el-table-column>
jianglong committed
404
                                    <el-table-column label="地址" sortable>
潘际乾 committed
405 406 407 408 409 410 411 412 413 414
                                    </el-table-column>
                                    <el-table-column
                                        label="Authentication"
                                        sortable
                                    >
                                    </el-table-column>
                                </el-table>
                            </el-form-item>
                        </c-col>
                        <c-col v-if="title != 'MT799'"
jianglong committed
415
                            ><el-form-item label="面函日期">
潘际乾 committed
416 417 418 419 420 421 422
                                <el-date-picker
                                    type="date"
                                    v-model="dialog.docdat"
                                >
                                </el-date-picker
                            ></el-form-item>
                        </c-col>
423
                        <c-col v-if="this.suppress!=true"
潘际乾 committed
424 425 426 427
                            ><el-form-item label="Contact"
                                ><el-input v-model="dialog.ptcnam"
                            /></el-form-item>
                        </c-col>
428
                        <c-col :span="22" v-if="this.suppress!=true"
潘际乾 committed
429 430 431 432 433 434
                            ><el-form-item
                                :label="
                                    title == 'MT799'
                                        ? 'Sender to Rec. information'
                                        : 'Remark'
                                "
liuxin committed
435 436 437 438 439 440
                                >
                                <div v-if="title == 'MT799'">
                                    <el-input
                                        type="textarea"
                                        :rows="10"
                                        disabled
潘际乾 committed
441
                                        v-model="dialog.addtxt"
liuxin committed
442 443 444 445 446 447 448 449 450 451
                                    />
                                </div>
                                <div v-else>
                                    <el-input
                                        type="textarea"
                                        :rows="10"
                                        v-model="dialog.addtxt"
                                    />
                                </div>
                                </el-form-item>
潘际乾 committed
452
                        </c-col>
453
                        <c-col :span="2" v-if="this.suppress!=true">
454
                            <c-button size="mini" icon="el-icon-more"> </c-button>
潘际乾 committed
455 456 457 458 459
                        </c-col>
                    </c-row>
                </el-form>
                <template #footer>
                    <span class="dialog-footer">
460 461
                        <c-button type="primary" @click="saveDialog"
                            >确 定</c-button
潘际乾 committed
462
                        >
463 464 465 466 467 468 469 470 471
                        <c-button type="primary" @click="activateDialog" v-if="dialog.delflg=='D'"
                            >应用</c-button
                        >
                        <c-button type="primary" @click="suppressDialog" v-else-if="dialog.lev=='1'||dialog.mliflg!=''"
                            >禁用</c-button
                        >
                        <c-button type="primary" @click="activateDialog" v-else
                            >删除</c-button
                        >
472 473
                        <c-button @click="centerDialogVisible = false"
                            >取 消</c-button
潘际乾 committed
474 475 476 477 478 479 480 481
                        >
                    </span>
                </template>
            </el-dialog>
        </template>
    </div>
</template>
<script>
wangren committed
482
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
483 484
import Api from "~/service/Api";
import Utils from "~/utils/index";
Wuyuqiu committed
485
import DocUtils from "~/utils/DocUtils";
潘际乾 committed
486
export default {
潘际乾 committed
487 488 489 490 491 492 493 494 495 496 497
    inject: ['root'],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
        return {
            index: 0,
            title: "",
            dialog: {
                rcv: {
                    pts: {},
                    ptyinftxt: {},
498

潘际乾 committed
499 500 501 502 503 504
                },
            },
            centerDialogVisible: false,
            stmData: {
                columns: [
                    //注释的已改成静态
Wuyuqiu committed
505 506
                    "role 收报人 70px",
                    "pandsc 描述 250px",
潘际乾 committed
507 508 509 510 511 512 513
                    //"cortyp 类型",
                    //"docsnf 报文格式",
                    //"docuil 语言",
                    //"apf 传送方式"
                ],
                data: [],
            },
514
            suppress:false,
潘际乾 committed
515
        };
潘际乾 committed
516
    },
潘际乾 committed
517 518 519 520 521 522 523 524 525 526 527 528 529
    watch: {
        "model.trnmod.trndoc.doceot": {
            handler(val, oldVal) {
                var stm = [];
                for (let i = 0; i < val.length; i++) {
                    if (val[i].role != "") {
                        val[i]['idx'] = i
                        stm.push(val[i]);
                    }
                }
                this.stmData.data = stm
            },
            immediate: true
潘际乾 committed
530 531
        }
    },
潘际乾 committed
532 533 534 535 536 537 538 539 540 541 542 543 544
    methods: {
        saveDialog() {
            this.centerDialogVisible = false;
            this.model.trnmod.trndoc.doceot.splice(this.index, 1, this.dialog);
            this.executeRule("trnmod.trndoc.doccur.butaddok").then(res => {
                if(res.respCode==SUCCESS){
                    //TODO

                }else{
                    this.$notify.error({ title: '错误', message: '服务请求失败!' });
                }
            })
        },
545
        activateDialog() {
546
            this.executeRule(`trnmod.trndoc.doceot(${this.index + 1}).butdel`).then(res => {
547 548
                if(res.respCode==SUCCESS){
                    //TODO
549 550 551
                    this.updateModel(res.data)
                    this.dialog = this.model.trnmod.trndoc.doceot[this.index]
                    this.suppress=false;
552 553 554 555 556 557
                }else{
                    this.$notify.error({ title: '错误', message: '服务请求失败!' });
                }
            })
        },
        suppressDialog() {
558
            this.executeRule(`trnmod.trndoc.doceot(${this.index + 1}).butdel`).then(res => {
559 560
                if(res.respCode==SUCCESS){
                    //TODO
561 562 563
                    this.updateModel(res.data)
                    this.dialog = this.model.trnmod.trndoc.doceot[this.index]
                    this.suppress=true;
564 565 566 567 568
                }else{
                    this.$notify.error({ title: '错误', message: '服务请求失败!' });
                }
            })
        },
潘际乾 committed
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589
        async handleDisplay(index, row,doceot){
            //后续要根据快照模式切换请求方式
            let cortyp = row.cortyp
            let docuil = doceot.docuil;
            let docnam = doceot.docnam||'';
            docnam = docnam.substr(docnam.indexOf("\\")+1).toLowerCase().replaceAll("\\","_");
            let rtnmsg
            // if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
            //     // this.model.setmod.msgmod.doccod = row.id
            //     rtnmsg = await Api.post(`${this.requestPrefix}/msgmod_butshw`, this.wrapper())
            // } else {
            //     // this.model.trnmod.trndoc.doccod = row.id
            //     // this.model.trnmod.trndoc.cortyp = cortyp
                
            // }
            const params = {
                index: row.idx
            }
            rtnmsg = await Api.post(`${this.requestPrefix}/executeDocpan`, this.wrapper(params))
            if (rtnmsg.respCode == SUCCESS) {
                if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
“yanyuxin” committed
590 591 592 593 594 595
                    // let viewurl = rtnmsg.data.setmod_msgmod_docpth;
                    let viewurl = "/#/docpan/swift";
                    // this.viewurl = viewurl
                    // window.sessionStorage.docTXT = rtnmsg.data.lidgrp_blk_feetxt + rtnmsg.data.lidgrp_blk_insbnk ;
                    let doctxt = rtnmsg.data.trnmod_trndoc_doceot[index]['doctxt']
                    window.sessionStorage.docTXT = doctxt.rows.filter(d => d != '').join('\n')
潘际乾 committed
596
                    this.title = "报文"
“yanyuxin” committed
597
                    window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
潘际乾 committed
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651
                }
                else if (cortyp == 'ELC') {
                    Modal.info({
                        title: '电证报文', content: <div style={{ height: 400, overflow: 'auto' }}><ELCMessage mty={row.id} message={rtnmsg.data["\\trnmod\\trndoc\\docinf"]} /></div>,
                        width: 1000,
                    })
                }
                else {
                    // let url = rtnmsg.data.trnmod_trndoc_smh_docpth;
                    this.title = "面函"
                    let viewurl = "/#/docpan/show";
                    let XMLdata;
                    if (row.pandsc.startsWith("elcs.")) {
                        window.sessionStorage.docXML = ''
                        window.sessionStorage.docTXT = ''
                        rtnmsg.data.trnmod_trndoc_doceot[row.idx].doctxt.rows.forEach(element => {
                            window.sessionStorage.docTXT += element + "\r\n"
                        });
                    }
                    else if (row.pandsc == "MT799") {
                        window.sessionStorage.docTXT = ''
                        XMLdata = rtnmsg.data.litbenl1blk
                    }
                    else{
                        //参考后台Doceot.butshw order=1000
                        let execution = 'P', structure = 'l'
                        let attr = DocUtils.getDocAttribute(docnam,structure,execution)
                        console.log(attr);
                        window.sessionStorage.docTXT = ''
                        window.sessionStorage.docXML = rtnmsg.data[attr];
                        window.sessionStorage.docuil = doceot.docuil;
                    }
                    // console.log( window.sessionStorage.docTXT);
                    // console.log( window.sessionStorage.docXML);
                    window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
                }
                this.dialogOpen = true
            }
            else {
                this.$notify.error({ title: '错误', message: '服务请求失败!' })
            }
        },
        async handleDetail(index, row) {
            const params = {
                index: row.idx
            }
            let rtnmsg = await Api.post(`${this.requestPrefix}/executeDocpanDetail`, this.wrapper(params))
            if (rtnmsg.respCode == SUCCESS) {
                this.title = row.pandsc
                this.centerDialogVisible = true,
                this.updateModel(rtnmsg.data);
                this.dialog = this.model.trnmod.trndoc.doceot[row.idx]
                this.index = row.idx
            }
hulei committed
652
        }
Wuyuqiu committed
653 654
  },
  created: function () {},
潘际乾 committed
655 656 657 658
};
</script>
<style>
</style>