TrnfndsDetail.vue 27.5 KB
Newer Older
liuxin committed
1 2
<template>
    <c-page title="">
liuxin committed
3 4
        <!-- <div class="eContainer"> -->
            <c-content :height="120">
liuxin committed
5
            <div class="eibs-tab">
liuxin committed
6
                <!-- <c-col :span="23">
7 8 9
                    <div style="float:right;margin-bottom:10px">
                        <el-button size="small">交易快照</el-button>
                        <el-button size="small">智能提示</el-button>
liuxin committed
10
                        <el-button size="small" @click="exit">返回</el-button>
11
                    </div>
liuxin committed
12
                </c-col> -->
13
                                       
liuxin committed
14 15 16 17 18
                <!-- <c-col :span="12">
                    <el-form-item label="Drag  Drop Sender">
                        <c-input  v-model="model.recpan.recget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
                    </el-form-item>
                </c-col>              -->
19
                
liuxin committed
20 21 22 23 24 25 26 27 28
                <el-form
                    :model="model"
                    ref="modelForm"
                    tokenKey="modelForm"
                    :validate-on-rule-change="false"
                    label-width="150px"
                    size="small"
                    >
                    <c-content>
liuxin committed
29 30 31 32 33 34

                        <c-col :span="13" style="height:24px">
                            <el-form-item label="基本信息" class="messageLabel">
                            </el-form-item>
                        </c-col>
                        <c-col :span="10" style="text-align:right">
liuxin committed
35 36 37
                            <c-button size="small" type="primary" style="margin-left:0" @click="display">交易快照</c-button>
                            <c-button size="small" type="primary" style="margin-left:0">智能提示</c-button>
                            <c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button>
liuxin committed
38 39 40 41 42
                        </c-col>
                        <c-col :span="23" style="height: 10px;margin-bottom:10px">
                            <el-divider></el-divider>
                        </c-col>

43
                        <!-- -------------------基础信息------------------- -->
liuxin committed
44

45
                        <!-- ========================= Left ========================= -->
liuxin committed
46
                        <c-col :span="11"> 
47 48 49 50 51 52
                            <c-col :span="24">
                                <c-col :span="22">
                                    <el-form-item label="Reference">
                                        <c-input  v-model="model.trn.ownref" maxlength="16" disabled  placeholder="请输入Reference"></c-input>
                                    </el-form-item>
                                </c-col>             
liuxin committed
53
                                <c-col :span="2" style="text-align: right">
54
                                    <c-button
liuxin committed
55
                                        style="margin:0;padding: 0 14px;"
56 57 58 59 60 61
                                        size="small"
                                        type="primary"
                                    >
                                    <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
                                    </c-button>
                                </c-col>
62
                            </c-col>
liuxin committed
63

64 65 66 67 68 69
                            <c-col :span="24">
                                <c-col :span="22">
                                    <el-form-item label="Transaction  ID">
                                        <c-input  v-model="model.recpan.atp.cod" maxlength="6" disabled placeholder="请输入Transaction  ID"></c-input>
                                    </el-form-item>
                                </c-col> 
liuxin committed
70
                                <c-col :span="2" style="text-align: right">
71
                                    <c-button
liuxin committed
72
                                        style="margin:0;padding: 0 14px;"
73 74 75 76 77 78
                                        size="small"
                                        type="primary"
                                    >
                                    <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
                                    </c-button>
                                </c-col>
liuxin committed
79 80
                            </c-col>

81 82 83 84 85 86 87 88 89 90 91 92 93
                            <c-col :span="24">
                                <c-col :span="12">
                                    <el-form-item label="Relevant Amount">
                                        <c-input  v-model="model.trn.reloricur" maxlength="3" disabled  placeholder="请输入Relevant Amount"></c-input>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="1">
                                    &nbsp;
                                </c-col>
                                <c-col :span="11">
                                        <c-input  v-model="model.trn.reloriamt" disabled placeholder="请输入Relevant Amount for Release in Original Currency"></c-input>
                                </c-col> 
                            </c-col>      
liuxin committed
94

95 96 97 98 99 100 101 102 103
                            <c-col :span="24">
                                <c-col :span="12">
                                    <el-form-item label="Responsible">
                                        <c-input  v-model="model.trn.usr" maxlength="8" disabled  placeholder="请输入Responsible"></c-input>
                                    </el-form-item>
                                </c-col>             
                                                            
                                <c-col :span="12">
                                    <el-form-item label-width="35%" label="Group">
104 105 106 107 108 109 110 111 112
                                        <!-- <c-input  v-model="model.trn.usg" maxlength="6" disabled  placeholder="请输入Responsible Group"></c-input> -->
                                        <el-select v-model="model.trn.usg" style="width: 100%" disabled>
                                            <el-option
                                                v-for="item in codes.usgtxt"
                                                :key="item.value"
                                                :label="item.label"
                                                :value="item.value"
                                            />
                                        </el-select>
113 114
                                    </el-form-item>
                                </c-col>  
115 116
                            </c-col>

117 118 119 120 121 122 123 124 125 126 127 128 129
                            <c-col :span="24">
                                <c-col :span="12">
                                    <el-form-item label="Based on Ident No.">
                                        <c-input  v-model="model.trn.cortrninr" maxlength="8" disabled placeholder="请输入Based on Ident No."></c-input>
                                    </el-form-item>
                                </c-col>             
                                                            
                                <c-col :span="12">
                                    <el-form-item label-width="35%" label="Execution Date">
                                        <c-date-picker type="date"  v-model="model.trn.exedat" style="width:100%" disabled placeholder="请选择Execution Date"></c-date-picker>
                                    </el-form-item>
                                </c-col>
                            </c-col>
liuxin committed
130

131 132 133 134 135 136 137 138 139 140 141 142 143
                            <c-col :span="24">
                                <c-col :span="12">
                                    <el-form-item label="Entered by">
                                        <c-input  v-model="model.recpan.cretrs.usr" maxlength="8" disabled placeholder="请输入Entered by"></c-input>
                                    </el-form-item>
                                </c-col>             
                                                            
                                <c-col :span="12">
                                    <el-form-item label-width="35%" label="Timestamp">
                                        <c-input  v-model="model.recpan.cretrs.dattim" disabled placeholder="请输入Timestamp"></c-input>
                                    </el-form-item>
                                </c-col>  
                            </c-col>
liuxin committed
144

liuxin committed
145 146 147 148 149 150 151 152
                            <c-col :span="24">
                                <c-col :span="22">
                                    <el-form-item label="Infotext">
                                        <c-input type="textarea" v-model="model.trn.inftxt" maxlength="65" :rows="3" show-word-limit placeholder="请输入Infotext" ></c-input>
                                    </el-form-item>
                                </c-col>
                                <c-col :span="2" style="text-align: right">
                                    <c-button
liuxin committed
153
                                        style="margin:0;padding: 0 12px;"
liuxin committed
154 155 156 157 158 159 160
                                        size="small"
                                        icon="el-icon-search"
                                        type="primary"
                                    ></c-button>
                                </c-col>
                            </c-col>

161 162 163
                        </c-col>

                        <!-- ========================= Right ========================= -->
liuxin committed
164
                        <c-col :span="11" :offset="1">
165
                            <c-col :span="24">
liuxin committed
166 167
                                    <c-col :span="22">
                                <el-form-item label="Ident No.">
168
                                        <c-input  v-model="model.trn.inr" disabled placeholder="请输入Ident No."></c-input>
liuxin committed
169
                                </el-form-item>
liuxin committed
170
                                    </c-col>
liuxin committed
171
                                    <c-col :span="2" style="text-align: right">
172
                                        <c-button
liuxin committed
173
                                            style="margin:0;padding: 0 14px;"
174 175 176 177 178
                                            size="small"
                                            type="primary"
                                        >
                                        <span style="font-size:15px;font-family:'宋体';font-weight:bold">i</span>
                                        </c-button>
179
                                    </c-col>
liuxin committed
180 181
                            </c-col>

182
                            <c-col :span="24">
liuxin committed
183
                                <el-form-item  label="Transaction  ID">
184 185 186 187 188 189 190 191 192
                                    <el-select v-model="model.recpan.atp.cod" style="width: 100%" disabled>
                                        <el-option
                                            v-for="item in codes.atptxt"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value"
                                        />
                                    </el-select>
                                    <!-- <c-input  v-model="model.recpan.atp.cod" maxlength="6"  placeholder="请输入Transaction  ID"></c-input> -->
liuxin committed
193
                                </el-form-item>
194 195 196
                            </c-col>

                            <c-col :span="24">
liuxin committed
197
                                <el-form-item  label="Drop Receiver">
198
                                    <c-input  v-model="model.trn.objnam" maxlength="40" disabled placeholder="请输入External Readable Object Identification"></c-input>
liuxin committed
199
                                </el-form-item>
200 201 202
                            </c-col>

                            <c-col :span="24">
liuxin committed
203
                                <el-form-item  label="Release Status">
204 205 206 207 208 209 210 211 212 213
                                    <!-- <c-input v-model="model.trn.relflg" style="width:100%" disabled placeholder="请选择Release Status of Transaction">
                                    </c-input> -->
                                    <el-select v-model="model.trn.relflg" style="width: 100%" disabled>
                                        <el-option
                                            v-for="item in codes.relstaEN"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value"
                                        />
                                    </el-select>
214
                                </el-form-item>
215
                                
216 217
                            </c-col>

liuxin committed
218 219
                            <!-- <c-col :span="24">
                                <el-form-item  label="Signatures Required/Obtained">
liuxin committed
220 221
                                <c-row>
                                    <c-col :span="11">
222
                                        <c-input  v-model="model.trn.relreq" maxlength="3" disabled placeholder="请输入Signatures Required/Obtained"></c-input>
liuxin committed
223 224 225 226 227
                                    </c-col>
                                    <c-col :span="2">
                                        <span style="margin-left:40%">/</span>
                                    </c-col>
                                    <c-col :span="11">
228
                                        <c-input  v-model="model.trn.relres" maxlength="3" disabled placeholder="请输入Applied Signatures"></c-input>
liuxin committed
229 230 231 232 233
                                    </c-col>
                                </c-row>
                                </el-form-item>
                            </c-col>

234
                            <c-col :span="24">
liuxin committed
235
                                <el-form-item  label="Completion text">
236 237
                                    <c-input style="font-weight:bold"  v-model="model.recpan.cpltxt" disabled  placeholder="请输入Based on Ident No."></c-input>
                                </el-form-item>
liuxin committed
238
                            </c-col> -->
liuxin committed
239

liuxin committed
240
                            <c-col :span="24">
liuxin committed
241
                                <el-form-item  label="Infoflag">
liuxin committed
242 243 244 245 246 247 248 249 250 251 252 253
                                    <el-select v-model="model.trn.infdsp" style="width: 100%">
                                        <el-option
                                            v-for="item in codes.infdsp"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value"
                                        />
                                    </el-select>
                                </el-form-item>
                            </c-col>

                            <c-col :span="24">
liuxin committed
254
                                <el-form-item  label="Send for Repair to">
liuxin committed
255 256 257 258 259
                                    <c-input v-model="model.recpan.usr.extkey" disabled style="width:100%" placeholder="请选择extkey">
                                    </c-input>
                                </el-form-item>
                            </c-col>

260 261 262
                        </c-col>
                        
                        <!-- -------------------分割线------------------- -->
liuxin committed
263
                        <!-- <c-col :span="23">
264 265
                            <div style="border-bottom: 10px solid rgb(232, 232, 232);">
                            </div>
liuxin committed
266
                        </c-col> -->
267 268 269 270 271
                        <!-- <c-col :span="23" style="margin-left:9px;height:25px">
                            <el-divider></el-divider>
                        </c-col> -->

                        <!-- -------------------document------------------- -->
liuxin committed
272
                        <c-col :span="24" style="height:24px">
273
                            <el-form-item label="面函/报文" class="messageLabel">
274 275
                            </el-form-item>
                        </c-col>
liuxin committed
276
                        <c-col :span="23" style="height: 0px">
liuxin committed
277 278
                            <el-divider></el-divider>
                        </c-col>
279
                        <c-col :span="23">
liuxin committed
280
                                <!-- <c-input  v-model="model.recpan.smhstm"  placeholder="请输入Documents"></c-input> -->
281 282
                            <c-col :span="24">
                                <c-istream-table :list="documentsData.data" :columns="documentsData.columns" :paginationShow="false" style="width:100%">
liuxin committed
283 284 285 286
                                    <el-table-column
                                        fixed="right"
                                        prop="display"
                                        label="操作"
liuxin committed
287
                                        width="200px"
liuxin committed
288 289 290 291 292
                                    >
                                    <template slot="header">
                                        <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
                                        <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col>
                                        </template>
293 294 295 296 297 298 299 300 301 302 303 304 305
                                        <template>
                                            <c-button
                                                style="margin-left: 0"
                                                size="small"
                                            >
                                                Show
                                            </c-button>
                                            <c-button
                                                style="margin-left: 0"
                                                size="small"
                                            >
                                                生成PDF
                                            </c-button>
liuxin committed
306 307 308
                                        </template>
                                    </el-table-column>
                                </c-istream-table>
309
                            </c-col>
liuxin committed
310 311
                        </c-col> 

liuxin committed
312
                        
liuxin committed
313 314 315 316 317 318 319 320 321 322 323 324
                        <!-- <c-col :span="12">
                            <el-form-item label="User ID">
                                <c-input  v-model="model.recpan.usr.extkey" maxlength="8"  placeholder="请输入User ID"></c-input>
                            </el-form-item>
                        </c-col>             
                                    
                        <c-col :span="12">
                            <el-form-item label="">
                                <c-input  v-model="model.recpan.usrget.sdamod.seainf"  placeholder="请输入"></c-input>
                            </el-form-item>
                        </c-col>             
                                                        -->
liuxin committed
325 326
                        <c-col :span="24" style="height:24px;margin-top:30px">
                            <el-form-item label="经办/复核" class="messageLabel">
327 328
                            </el-form-item>
                        </c-col>
liuxin committed
329
                        <c-col :span="23" style="height:0px;">
liuxin committed
330 331
                            <el-divider></el-divider>
                        </c-col>
liuxin committed
332
                        <c-col :span="23">
333 334 335
                            <!-- <c-input  v-model="model.recpan.trsstm"  placeholder="请输入Signatures"></c-input> -->
                            <c-col :span="24">
                                <c-istream-table :list="SignaturesData.data" :columns="SignaturesData.columns" :paginationShow="false" style="width:100%">
336 337 338 339 340 341 342 343 344 345 346 347 348
                                    <el-table-column label="Action" width="400px">
                                        <template slot-scope="scope">
                                            <!-- <span>{{JSON.stringify(scope.row)}}</span> -->
                                            <el-select v-model="action[scope.row.IDX]" style="100%" disabled>
                                                <el-option
                                                    v-for="item in codes.flg"
                                                    :key="item.value"
                                                    :label="item.label"
                                                    :value="item.value"
                                                />
                                            </el-select>
                                        </template>
                                    </el-table-column>
liuxin committed
349 350 351 352
                                    <el-table-column
                                        fixed="right"
                                        prop="display"
                                        label="操作"
liuxin committed
353
                                        width="200px"
liuxin committed
354 355 356 357 358 359 360
                                    >
                                    <template slot="header">
                                        <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
                                        <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col>
                                        </template>
                                    </el-table-column>
                                </c-istream-table>
361
                            </c-col> 
liuxin committed
362 363
                        </c-col>  

364
                        <!-- -------------------workflow------------------- -->
liuxin committed
365 366
                        <c-col :span="24" style="height:24px;margin-top:30px">
                            <el-form-item label="工作流服务" class="messageLabel">
liuxin committed
367 368
                            </el-form-item>
                        </c-col>
liuxin committed
369
                        <c-col :span="23" style="height:0px;">
liuxin committed
370
                            <el-divider></el-divider>
liuxin committed
371
                        </c-col>
372
                        <c-col :span="23">
373
                            <c-col :span="24">
liuxin committed
374
                                <!-- <c-input  v-model="model.recpan.wfestm"  placeholder="请输入WFEs for transaction for display"></c-input> -->
375 376
                                    <c-istream-table :list="stmData.data" :columns="stmData.columns" :paginationShow="false" style="width:100%">
                                        <!-- <el-table-column
liuxin committed
377 378 379
                                            fixed="right"
                                            prop="display"
                                            label="操作"
380
                                            width="150px"
liuxin committed
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
                                        >
                                        <template slot="header">
                                            <c-col :span="11" style="text-align:left"><span>操作</span></c-col>
                                            <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col>
                                            </template>
                                            <template slot-scope="scope">
                                            <c-button
                                                style="margin-left: 0"
                                                size="small"
                                                type="primary"
                                                @click="onDetail(scope.$index,scope.row)"
                                            >
                                                详情
                                            </c-button>
                                            <c-button
                                                style="margin-left: 0"
                                                size="small"
                                                type="primary"
                                                @click="onHandle(scope.$index,scope.row)"
                                            >
                                                处理
                                            </c-button>
                                            </template>
404
                                        </el-table-column> -->
liuxin committed
405
                                    </c-istream-table>
406 407
                            </c-col>
                        </c-col>                       
liuxin committed
408 409 410 411

                    </c-content>                  
                </el-form>      
            </div>
liuxin committed
412 413
        <!-- </div> -->
            </c-content>
liuxin committed
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431
    </c-page>
</template>

<script>
import Trnrel from "~/Model/Trnrel";
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trnrel/Event"

export default {
    name: "InftrnpsDetail",
    mixins: [CommonProcess],
    data(){
        return {
            model: new Trnrel().data,
            documentsData: {
                columns: [
liuxin committed
432 433 434 435 436
                    "1 1 \"Type\" 100 1 0:0 1 CORTYP",
                    "2 2 \"External Key\" 300",
                    "3 3 \"Document\" 300",
                    "4 4 \"Show\" 150 5 6:1 0 A",
                    "5 5 \"GenPDF\" 150 5 6:1 0 B"
liuxin committed
437 438 439 440 441
                    ],
                data: [],
            },
            SignaturesData: {
                columns: [
442
                    '1 2:1 "User" 200',
liuxin committed
443
                    '2 3:1 "Date / Time" 300',
444
                    // '3 5:1 "Action" 400',
445
                    '4 1:1 "Type" 200'
liuxin committed
446 447 448 449 450
                    ],
                data: [],
            },
            stmData: {
                columns: [
liuxin committed
451 452 453 454 455 456 457 458
                    '1 1 "ID" 100',
                    '2 2 "Service" 125',
                    '3 3 "Status" 100',
                    '4 4 "Last Update" 125',
                    '5 5 "Retries" 100',
                    '6 6 "Text" 300',
                    '7 7 "Contrary Text" 300',
                    '8 8 "Target Time" 200'
liuxin committed
459 460 461
                    ],
                data: [],
            },
462 463
            codes: { infdsp: CodeTable.infdsp,
                     flg : CodeTable.flg,
464 465 466
                     atptxt : CodeTable.atptxt,
                     relstaEN : CodeTable.relstaEN,
                     usgtxt : CodeTable.usgtxt },
467
            action:[],
liuxin committed
468 469 470 471 472 473 474 475 476 477 478 479
        }
    },
    mounted() {
        this.loadData()
    },
    methods: {
        loadData() {
            // const { data } = this.$route.query
            this.model = JSON.parse(sessionStorage.getItem('InftrnpsDetail'));
            this.documentsData.data = this.model.recpan.smhstm.rows;
            this.SignaturesData.data = this.model.recpan.trsstm.rows;
            this.stmData.data = this.model.recpan.wfestm.rows;
480 481 482 483 484 485 486
            console.log(this.SignaturesData.data)
            for (let i = 0; i < this.SignaturesData.data.length; i++) {
                const d = this.SignaturesData.data[i];
                const items = d.split("\t");
                this.action[i] = items[items.length - 2];
            }
            console.log(this.action)
487 488 489 490 491
        },
        exit(){
            this.$store.dispatch("TagsView/delView", this.$route)
            this.$router.history.push("/taskList");
        },
liuxin committed
492 493 494 495 496 497 498 499 500 501 502
        display() {
            debugger
            const inr = this.model.trn.inr;
            Api.post("getTrnNameByInr", { inr: inr}).then((res) => {
                if (res.respCode == SUCCESS) {
                const trnName = res.data.toLowerCase();
                let viewurl = "/#/display/" + trnName + "?trn=" + inr
                window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
                }
            });
        },
503
        ...Event
liuxin committed
504 505 506
    }
}
</script>
507 508 509 510 511 512 513 514
<style scoped>
.el-col >>> .el-divider--horizontal {
    margin-top: 10px;
}
.formItemLabel >>> .el-form-item__label{
    text-align: left;
    font-weight:bold;
}
liuxin committed
515 516 517 518 519 520 521 522
.el-col >>> .el-divider--horizontal {
  margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
    text-align: left;
    font-weight:bold;
    font-size: 12px;
}
liuxin committed
523
</style>