index.vue 20.3 KB
Newer Older
liuyunfeng committed
1
<template>
傅凯 committed
2
  <c-page title="业务详情">
3
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" size="small">
傅凯 committed
4
       
liuyunfeng committed
5

潘际乾 committed
6
        <c-col :span="12">
liuyunfeng committed
7
        <el-form-item label="业务参考号">
liuxin committed
8
            <c-input  v-model="model.trn.ownref" maxlength="16" :readonly="true"  placeholder="请输入业务参考号"></c-input>
liuyunfeng committed
9
        </el-form-item>
潘际乾 committed
10
       </c-col>             
liuyunfeng committed
11
	
潘际乾 committed
12
        <c-col :span="12">
liuyunfeng committed
13
        <el-form-item label="索引">
liuxin committed
14
            <c-input  v-model="model.trn.inr" maxlength="8"  :readonly="true" placeholder="请输入索引"></c-input>
liuyunfeng committed
15
        </el-form-item>
潘际乾 committed
16 17
       </c-col>             
        <c-col :span="12">
liuyunfeng committed
18
        <el-form-item label="交易描述">
liuxin committed
19
            <c-input  v-model="model.trn.objnam" maxlength="40" :readonly="true" placeholder="请输入交易描述"></c-input>
liuyunfeng committed
20
        </el-form-item>
潘际乾 committed
21
       </c-col>             
liuyunfeng committed
22
 
潘际乾 committed
23
        <c-col :span="12">
liuyunfeng committed
24
        <el-form-item label="交易编码">
liuxin committed
25
            <c-input  v-model="model.trn.inifrm" maxlength="6" :readonly="true" placeholder="请输入交易编码"></c-input>
liuyunfeng committed
26
        </el-form-item>
潘际乾 committed
27
       </c-col>             
liuyunfeng committed
28
	
潘际乾 committed
29
        <c-col :span="12">
liuyunfeng committed
30
        <el-form-item label="业务币种金额">
liuxin committed
31
            <c-select v-model="model.trn.reloricur" style="width:100%" :disabled="true" placeholder="请选择业务币种金额">
liuyunfeng committed
32 33 34 35 36 37
                <el-option
                  v-for="item in codes.curtxt"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                </el-option>
liuxin committed
38
              </c-select>
liuyunfeng committed
39
        </el-form-item>
潘际乾 committed
40 41
       </c-col>
        <c-col :span="12">
liuyunfeng committed
42
        <el-form-item label="换算金额">
liuxin committed
43
            <c-input  v-model="model.trn.reloriamt" :readonly="true"  placeholder="请输入换算金额"></c-input>
liuyunfeng committed
44
        </el-form-item>
潘际乾 committed
45
       </c-col>                 
liuyunfeng committed
46 47
 
	
潘际乾 committed
48
        <c-col :span="12">
liuyunfeng committed
49
        <el-form-item label="交易状态">
liuxin committed
50
            <c-select v-model="model.trn.relflg" style="width:100%" :disabled="true" placeholder="请选择交易状态">
liuyunfeng committed
51 52 53 54 55 56
                <el-option
                  v-for="item in codes.relflg"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                </el-option>
liuxin committed
57
              </c-select>
liuyunfeng committed
58
        </el-form-item>
潘际乾 committed
59
       </c-col>
liuyunfeng committed
60 61
 
	
潘际乾 committed
62
        <c-col :span="12">
liuyunfeng committed
63
        <el-form-item label="经办柜员">
liuxin committed
64
            <c-input  v-model="model.trn.usr" maxlength="8" :readonly="true" placeholder="请输入经办柜员"></c-input>
liuyunfeng committed
65
        </el-form-item>
潘际乾 committed
66
       </c-col>             
liuyunfeng committed
67 68
 
	
潘际乾 committed
69
        <c-col :span="12">
liuyunfeng committed
70
        <el-form-item label="用户组">
liuxin committed
71
            <c-input  v-model="model.trn.usg" maxlength="6" :readonly="true"  placeholder="请输入用户组"></c-input>
liuyunfeng committed
72
        </el-form-item>
潘际乾 committed
73
       </c-col>             
liuyunfeng committed
74
	
潘际乾 committed
75
        <c-col :span="12">
liuyunfeng committed
76
        <el-form-item label="前手流水号">
liuxin committed
77
            <c-input  v-model="model.trn.cortrninr" maxlength="8" :readonly="true" placeholder="请输入前手流水号"></c-input>
liuyunfeng committed
78
        </el-form-item>
潘际乾 committed
79
       </c-col>             
liuyunfeng committed
80 81
 
	
潘际乾 committed
82
        <c-col :span="12">
liuyunfeng committed
83
        <el-form-item label="执行日期">
84
            <c-date-picker type="date"  v-model="model.trn.exedat" style="width:100%" :readonly="true" placeholder="请选择执行日期"></c-date-picker>
liuyunfeng committed
85
        </el-form-item>
潘际乾 committed
86
       </c-col>
liuyunfeng committed
87 88
 
	
潘际乾 committed
89
        <c-col :span="12">
liuyunfeng committed
90
        <el-form-item label="提交柜员">
liuxin committed
91
            <c-input  v-model="model.recpan.cretrs.usr" maxlength="8" :readonly="true" placeholder="请输入提交柜员"></c-input>
liuyunfeng committed
92
        </el-form-item>
潘际乾 committed
93
       </c-col>             
liuyunfeng committed
94 95
 
	
潘际乾 committed
96
        <c-col :span="12">
liuyunfeng committed
97
        <el-form-item label="提交时间">
liuxin committed
98
            <c-input  :value="dateFormat(model.recpan.cretrs.dattim,'yyyy/MM/dd hh:mm:ss')"   :readonly="true" placeholder="请输入提交时间"></c-input>
liuyunfeng committed
99
        </el-form-item>
潘际乾 committed
100
       </c-col>             
liuyunfeng committed
101
 
潘际乾 committed
102
        <c-col :span="22" :offset="1">
傅凯 committed
103
            <p>面函报文</p>
liuxin committed
104
            <c-table
liuyunfeng committed
105 106 107 108 109 110 111
                :data="model.recpan.smhlst"
                style="width: 100%"
                >
                <el-table-column
                  prop="cortyp"
                  label="传送方式"
                  sortable
傅凯 committed
112
                  >
liuyunfeng committed
113 114 115 116 117
                </el-table-column>
                <el-table-column
                  prop="extkey"
                  label="面函/报文"
                  sortable
傅凯 committed
118
                  >
liuyunfeng committed
119 120 121 122 123
                </el-table-column>
                <el-table-column
                  prop="nam"
                  label="面函/报文名称"
                  sortable
傅凯 committed
124 125 126 127 128 129 130
                  >
                </el-table-column>
                <el-table-column
                    prop="op"
                    label="操作"
                >
                    <template slot-scope="scope">
傅凯 committed
131
                    <m-pager :path="scope.row.docpth" />
傅凯 committed
132
                    </template>
liuyunfeng committed
133
                </el-table-column>
liuxin committed
134
              </c-table>
潘际乾 committed
135
       </c-col>
傅凯 committed
136
	
潘际乾 committed
137
        <c-col :span="22" :offset="1">
傅凯 committed
138
            <p>工作服务流程</p>
liuxin committed
139
            <c-table
傅凯 committed
140
                :data="model.recpan.wfelst"
liuyunfeng committed
141 142
                style="width: 100%"
                >
傅凯 committed
143
               
liuyunfeng committed
144
                <el-table-column
傅凯 committed
145 146
                  prop="srvsub"
                  label="服务码"
liuyunfeng committed
147
                  sortable
傅凯 committed
148
                  >
liuyunfeng committed
149 150
                </el-table-column>
                <el-table-column
傅凯 committed
151 152
                  prop="srvnam"
                  label="服务名"
liuyunfeng committed
153
                  sortable
傅凯 committed
154
                  >
liuyunfeng committed
155 156
                </el-table-column>
                <el-table-column
傅凯 committed
157 158
                  prop="sta"
                  label="状态"
liuyunfeng committed
159
                  sortable
傅凯 committed
160
                  >
liuyunfeng committed
161 162 163 164
                  <template slot-scope="scope">
                    <span>{{ findCodeLabel(codes.oratyp,scope.row.typ) }}</span>
                  </template>
                </el-table-column>
傅凯 committed
165
                
liuyunfeng committed
166
                <el-table-column
傅凯 committed
167 168
                  prop="rtycnt"
                  label="重调次数"
liuyunfeng committed
169
                  sortable
傅凯 committed
170
                  >
liuyunfeng committed
171 172
                </el-table-column>
                <el-table-column
傅凯 committed
173 174
                  prop="lev"
                  label="优先级"
liuyunfeng committed
175
                  sortable
傅凯 committed
176
                  >
liuyunfeng committed
177 178
                </el-table-column>
                <el-table-column
傅凯 committed
179 180
                  prop="txt"
                  label="返回信息"
liuyunfeng committed
181
                  sortable
傅凯 committed
182
                  >
liuyunfeng committed
183
                </el-table-column>
liuxin committed
184
              </c-table>
傅凯 committed
185
              
潘际乾 committed
186 187
       </c-col>
        <c-col :span="22" :offset="1">
傅凯 committed
188
            <p>签字列表</p>
liuxin committed
189
            <c-table
傅凯 committed
190 191 192
                :data="model.recpan.trslst"
                style="width: 100%"
                >
liuyunfeng committed
193
                <el-table-column
傅凯 committed
194 195
                  prop="sigidx"
                  label="签名顺序"
liuyunfeng committed
196
                  sortable
傅凯 committed
197
                  >
liuyunfeng committed
198 199
                </el-table-column>
                <el-table-column
傅凯 committed
200 201
                  prop="usr"
                  label="柜员"
liuyunfeng committed
202
                  sortable
傅凯 committed
203
                  >
liuyunfeng committed
204 205
                </el-table-column>
                <el-table-column
傅凯 committed
206 207
                  prop="dattim"
                  label="日期/时间"
liuyunfeng committed
208
                  sortable
傅凯 committed
209 210 211 212
                  >
                  <template slot-scope="scope">
                  {{dateFormat(scope.row.dattim)}}
                  </template>
liuyunfeng committed
213 214
                </el-table-column>
                <el-table-column
傅凯 committed
215 216
                  prop="flg"
                  label="操作"
liuyunfeng committed
217
                  sortable
傅凯 committed
218 219 220 221
                  >
                  <template slot-scope="scope">
                    <span>{{ findCodeLabel(codes.oratyp,scope.row.typ) }}</span>
                  </template>
liuyunfeng committed
222
                </el-table-column>
liuxin committed
223
              </c-table>
潘际乾 committed
224 225
       </c-col>
       <c-col :span="22" :offset="1" style="margin:2em 0">
傅凯 committed
226
        <el-form-item label="操作意见">
liuxin committed
227
            <c-input type="textarea" v-model="model.trn.inftxt" maxlength="65"  show-word-limit placeholder="请输入意见" ></c-input>
傅凯 committed
228
        </el-form-item>
潘际乾 committed
229 230
        </c-col>
       <c-col :span="22" :offset="1" style="text-align:center">
liuxin committed
231
            <c-button size="small" type="primary"  @click="onDsp">
傅凯 committed
232
                明细
liuxin committed
233 234
            </c-button>
            <c-button size="small" type="primary"  @click="onRelrow">
傅凯 committed
235
                复核
liuxin committed
236 237
            </c-button>
            <c-button size="small" type="primary"  @click="onReprow">
傅凯 committed
238
                退回更正
liuxin committed
239 240
            </c-button>
            <c-button size="small" type="primary"  @click="onExi">
傅凯 committed
241
                退出
liuxin committed
242
            </c-button>
潘际乾 committed
243
        </c-col>
傅凯 committed
244 245 246
    </el-form>
     
  </c-page>
liuyunfeng committed
247 248 249 250
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
傅凯 committed
251
import Utils from "~/utils"
nanrui committed
252

傅凯 committed
253
import PaperShow from "./PaperShow"
liuyunfeng committed
254 255

export default {
傅凯 committed
256 257
    components:{
        "m-pager":PaperShow
liuxin committed
258 259 260
    },
    computed: {

傅凯 committed
261
    },
liuyunfeng committed
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 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 320 321 322 323 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 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
    data(){
        return {
                  codes:{
                        dsp:CodeTable.dsp,
                        busflg:CodeTable.busflg,
                        actiontype:CodeTable.actiontype,
                        cur:CodeTable.cur,
                        ptytyp:CodeTable.ptytyp,
                        staflg:CodeTable.staflg,
                        paytyp:CodeTable.paytyp,
                        payattr:CodeTable.payattr,
                        balancemode:CodeTable.balancemode,
                        bopcustype:CodeTable.bopcustype,
                        payeeattr:CodeTable.payeeattr,
                        boppaytype:CodeTable.boppaytype,
                        debcdtflg:CodeTable.debcdtflg,
                        acttyp:CodeTable.acttyp,
                        payflg:CodeTable.payflg,
                        sptsta:CodeTable.sptsta,
                        buscod:CodeTable.buscod,
                        datsrc:CodeTable.datsrc,
                        sndselflg:CodeTable.sndselflg,
                        flg:CodeTable.flg,
                        sta:CodeTable.sta,
                        relflg:CodeTable.relflg,
                        payacttyp:CodeTable.payacttyp,
                        curtxt:CodeTable.curtxt,
                        dbfmethod:CodeTable.dbfmethod,
                        bustyp:CodeTable.bustyp,
                        todo:CodeTable.todo,
                        swftyp:CodeTable.swftyp,
                        payeraccttype:CodeTable.payeraccttype,
                        oratyp:CodeTable.oratyp,
                        chato:CodeTable.chato,
                        opertype:CodeTable.opertype,
                        bopyesno:CodeTable.bopyesno,
                        custyp:CodeTable.custyp,
                        selten:CodeTable.selten,
                        dsp2:CodeTable.dsp2,
                        liqtyp:CodeTable.liqtyp,
                   },
                  model:{
						trncorco:{
							inidatfro:"",			//  查询区间		.trncorco.inidatfro
							inidattil:"",			//  Date of entry of Transaction until		.trncorco.inidattil
							ownref:"",			//  业务编号		.trncorco.ownref
							relflg:"",			//  复核状态		.trncorco.relflg
							iniusr:"",			//  Userid entering the Transaction		.trncorco.iniusr
						},
						atp:{
							cod:"",			//  Transaction  ID		.atp.cod
						},
						atptxt:"",			//  交易名		.atptxt
						recpan:{
							trnlst:[],			//  		.recpan.trnlst
							cretrs:{
								usr:"",			//  提交柜员		.recpan.cretrs.usr
								dattim:"",			//  提交时间		.recpan.cretrs.dattim
							},
							smhlst:[],			//  		.recpan.smhlst
							trslst:[],			//  		.recpan.trslst
							wfelst:[],			//  		.recpan.wfelst
							docinf:"",			//  报文信息		.recpan.docinf
						},
						trn:{
							ownref:"",			//  业务参考号		.trn.ownref
							inr:"",			//  索引		.trn.inr
							objnam:"",			//  交易描述		.trn.objnam
							reloricur:"",			//  业务币种金额		.trn.reloricur
							reloriamt:"",			//  换算金额		.trn.reloriamt
							relflg:"",			//  交易状态		.trn.relflg
							usr:"",			//  经办柜员		.trn.usr
							usg:"",			//  用户组		.trn.usg
							cortrninr:"",			//  前手流水号		.trn.cortrninr
							exedat:"",			//  执行日期		.trn.exedat
							inftxt:"",			//  意见		.trn.inftxt
							inifrm:"",			//  交易编码		.trn.inifrm
						},
				},
                  pager:{
                       "recpan_trnlst":{total:0,curIdx:0},
                       "recpan_smhlst":{total:0,curIdx:0},
                       "recpan_trslst":{total:0,curIdx:0},
                       "recpan_wfelst":{total:0,curIdx:0},
                    },
                  rules:{
                       "trncorco.iniusr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trncorco.ownref":[{type: "string", required: false, len: 16, message: "输入不合法"}],
                       "atp.cod":[{type: "string", required: false, len: 6, message: "输入不合法"}],
                       "atptxt":[{type: "string", required: false, len: 37, message: "输入不合法"}],
                       "trncorco.inidatfro":[{type: "date", required: false, message: "输入正确的日期"}],
                       "trncorco.inidattil":[{type: "date", required: false, message: "输入正确的日期"}],
                       "trn.ownref":[{type: "string", required: false, len: 16, message: "输入不合法"}],
                       "trn.inr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.objnam":[{type: "string", required: false, len: 40, message: "输入不合法"}],
                       "trn.inifrm":[{type: "string", required: false, len: 6, message: "输入不合法"}],
                       "trn.reloriamt":[{type: "number", required: false, message: "输入不合法"}],
                       "trn.usr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.usg":[{type: "string", required: false, len: 6, message: "输入不合法"}],
                       "trn.cortrninr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.exedat":[{type: "date", required: false, message: "输入正确的日期"}],
                       "recpan.cretrs.usr":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "recpan.cretrs.dattim":[{type: "string", required: false, len: 8, message: "输入不合法"}],
                       "trn.inftxt":[{type: "string", required: true, len: 65, message: "输入超长"}],
                       "recpan.docinf":[{type: "string", required: true, len: 200, message: "输入超长"}],
                    }
        }
    },
    methods:{
            onDsp(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/dsp",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑
                                              
                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRelrow(){
              alert(this.$route.query.ownref);
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/relrow",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onReprow(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/reprow",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onExi(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/exi",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanDet(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_det",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
liuyunfeng committed
452 453
            onRecpanButshw(row){
                //let path = row.docpth
liuyunfeng committed
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519
            },
            onRecpanInc(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_inc",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanIncall(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_incall",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanButord(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_butord",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
            onRecpanButspt(){
                this.$refs.modelForm.validate(async valid => {
                    if(!valid)
                        return;
                    let rtnmsg = await Api.post("trnrel/recpan_butspt",{data:this.model})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑

                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
                })
            },
    },
傅凯 committed
520
    mounted:async function(){
liuyunfeng committed
521 522 523 524 525 526 527
        console.log("进入trndtl交易");
        console.log("param:"+this.$route.query.ownref);
        var trninr = this.$route.query.inr
        let rtnmsg = await Api.post("trnrel/init",{params:{trninr}})
        if(rtnmsg.code == SUCCESS)
        {
           //TODO 处理数据逻辑
傅凯 committed
528 529
            // this.model.recpan.trn=rtnmsg.data
            Utils.copyValueFromVO(this.model,rtnmsg.data)
liuyunfeng committed
530 531 532 533 534 535 536 537 538
        }
        else
        {
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>