Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
4f7fa659
Commit
4f7fa659
authored
Nov 15, 2022
by
nanrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cfasel交易优化。
parent
020a633c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
35 deletions
+61
-35
Selp.vue
src/views/Business/Cfasel/Selp.vue
+60
-35
index.vue
src/views/Business/Cfasel/index.vue
+1
-0
No files found.
src/views/Business/Cfasel/Selp.vue
View file @
4f7fa659
<
template
>
<div
class=
"eibs-tab"
>
<c-list-search
@
form-
reset=
"handleReset"
@
form-
search=
"handleSearch"
>
<c-list-search
@
form-search=
"handleSearch"
>
<template
v-slot=
"searchSlot"
>
<el-form
class=
"m-table-search-form"
ref=
"paramsForm"
label-position=
"right"
label-width=
"110px"
size=
"small"
>
...
...
@@ -27,7 +27,8 @@
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"申报类型"
prop=
"cfaquep.cfatyp"
style=
"width: 100%"
>
<c-select
v-model=
"model.cfaquep.cfatyp"
style=
"width:100%"
placeholder=
"请选择申报类型"
>
<c-select
v-model=
"model.cfaquep.cfatyp"
style=
"width: 100%"
placeholder=
"请选择申报类型"
:code=
"codes.cfatyp1"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -41,26 +42,30 @@
</c-col>
<c-col
:span=
"8"
>
<c-form-item
label=
"查询日期类型"
prop=
"cfaquep.dattyp"
style=
"width: 100%"
>
<c-input
v-model=
"model.cfaquep.dattyp"
maxlength=
"1"
placeholder=
"请选择查询日期类型"
>
</c-input>
<c-select
v-model=
"model.cfaquep.dattyp"
maxlength=
"1"
style=
"width: 100%"
placeholder=
"请选择查询日期类型"
:code=
"codes.dattyp"
>
</c-select>
</c-form-item>
</c-col>
<c-col
:span=
"8"
>
<c-form-item
label=
"笔数"
prop=
"cfaquep.sum"
style=
"width: 100%"
>
<c-input
v-model=
"model.cfaquep.sum"
placeholder=
"请输入笔数"
>
<c-input
v-model=
"model.cfaquep.sum"
placeholder=
"请输入笔数"
disabled
>
</c-input>
</c-form-item>
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"业务所属行"
prop=
"cfaquep.ownextkey"
style=
"width: 100%"
>
<c-select
v-model=
"model.cfaquep.ownextkey"
style=
"width:100%"
placeholder=
"请选择业务所属行"
>
<c-select
v-model=
"model.cfaquep.ownextkey"
style=
"width:100%"
placeholder=
"请选择业务所属行"
:code=
"codes.ownextkey4"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
<c-form-item
label=
"业务情况"
prop=
"cfaquep.staflg"
style=
"width: 100%"
>
<c-input
v-model=
"model.cfaquep.staflg"
maxlength=
"1"
placeholder=
"请选择业务情况"
></c-input>
<c-select
v-model=
"model.cfaquep.staflg"
maxlength=
"1"
style=
"width: 100%"
placeholder=
"请选择业务情况"
:code=
"codes.staflg1"
>
</c-select>
</c-form-item>
</c-col>
</el-row>
...
...
@@ -78,28 +83,12 @@
</
template
>
<
template
slot-scope=
"scope"
>
<!-- 申请一个弹出主键放在插槽,加工已渲染的数据 -->
<el-popover
placement=
"top-start"
title=
"历史信息"
width=
"800"
trigger=
"click"
:ref=
"'popover_' + scope.row.IDX"
>
<div
style=
" text-align: right; margin-top: -30px; margin-right: 5px; font-size: 16px;"
>
<span
class=
"el-icon-close"
@
click=
"closeTrn('popover_' + scope.row.IDX)"
/>
</div>
<c-istream-table
:list=
"trnData.data"
:columns=
"trnData.columns"
>
<el-table-column
prop=
"op"
label=
"操作"
width=
"0"
>
<template
slot-scope=
"scope"
>
<c-button
style=
"margin-left: 0"
size=
"small"
@
click=
"display(scope.row['INR'])"
>
详情
</c-button>
</
template
>
</el-table-column>
</c-istream-table>
<c-button
style=
"margin-left: 0"
size=
"small"
@
click=
"getTrnInfo(scope.$index, scope.row)"
slot=
"reference"
>
详情
</c-button>
</el-popover>
<c-button
style=
"margin-left: 0"
size=
"small"
@
click=
"getTrnInfo(scope.$index, scope.row)"
slot=
"reference"
>
详情
</c-button>
<c-button
style=
"margin-left: 5px"
size=
"small"
type=
"primary"
@
click=
"getButtons(scope.row['
业务参考号
'])"
>
@
click=
"getButtons(scope.row['
申报号码
'])"
>
处理
</c-button>
</
template
>
...
...
@@ -198,6 +187,7 @@ import Api from "~/service/Api"
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
import
Event
from
"~/model/Cfasel/Event"
import
Utils
from
"~/utils"
;
export
default
{
inject
:
[
'root'
],
...
...
@@ -208,14 +198,16 @@ export default {
stmData
:
{
columns
:
[
"0 1
\"
业务流水
\"
100 1 0:2 1 "
,
"2 2
\"
申报号码
\"
18
0 1 0:0 1 "
,
"2 2
\"
申报号码
\"
20
0 1 0:0 1 "
,
"3 3
\"
业务参考号
\"
150 1 0:0 1 "
,
"4 4
\"
柜员
\"
100 1 0:2 1 "
,
"5 5
\"
日期
\"
150 4 7:2 1 "
,
"6 6
\"
申报类型
\"
120 1 0:2 1 CFATYP"
,
// "6 6 \"申报类型\" 120 1 0:2 1 CFATYP",
{
index
:
6
,
position
:
6
,
width
:
120
,
pattern
:
'code'
,
label
:
'申报类型'
,
code
:
this
.
codes
.
cfatyp1
},
"7 7
\"
信息类型
\"
100 1 0:2 1 "
,
"8 8
\"
操作类型
\"
100 1 0:2 1 "
,
"9 9
\"
状态
\"
80 1 20:0 1 TransCFASTA"
,
// "9 9 \"状态\" 80 1 20:0 1 TransCFASTA",
{
index
:
9
,
position
:
9
,
width
:
80
,
pattern
:
'code'
,
label
:
'状态'
,
code
:
this
.
codes
.
staflg1
},
],
data
:
[],
},
...
...
@@ -235,18 +227,51 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'查询结束日期必输!'
});
return
;
}
let
rtnmsg
=
await
this
.
executeRule
(
"
infbut.searow
"
)
let
rtnmsg
=
await
this
.
executeRule
(
"
serbut
"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
stmData
.
data
=
rtnmsg
.
data
.
eblstm
.
rows
;
// this.updateModel(rtnmsg.data);
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
console
.
log
(
this
.
stmData
.
data
);
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
getTrnInfo
(
idx
,
row
)
{
// this.model.infcon.objinr = row["INR"];
// this.model.bodgrp.rec.inr = row["INR"];
// this.model.infcon.chksubcon = "X";
// console.log(row);
// console.log(row.申报类型);
// let url = row.申报类型.toLowerCase() + "inf";
// this.$router.history.push("/business/" + url);
console
.
log
(
row
);
let
business
=
row
.
申报类型
.
toLowerCase
()
+
"inf"
;
let
viewurl
=
"/business/"
+
business
;
const
selIds
=
[
idx
+
1
];
const
selDst
=
"eblstm"
//列表对应后台模型中的stream
let
params
=
{
selDst
,
selIds
};
console
.
log
(
params
);
this
.
executeRule
(
"dtlbut"
,
params
).
then
((
res
)
=>
{
if
((
res
.
respCode
==
SUCCESS
))
{
Utils
.
copyValueFromVO
(
this
.
model
,
res
.
data
);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this
.
$router
.
push
({
path
:
viewurl
,
query
:
{}
});
}
else
{
const
h
=
this
.
$createElement
;
const
msg
=
res
.
respMsg
||
'请求执行失败!'
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
h
(
'p'
,
{
style
:
'word-break:break-all;'
},
msg
)
})
}
});
// let rtnmsg = await this.executeDefault("dtlbut");
// // if ((rtnmsg.respCode = SUCCESS)) {
// this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
// console.log(this.trnData.data);
// }
}
},
created
:
function
()
{
...
...
src/views/Business/Cfasel/index.vue
View file @
4f7fa659
...
...
@@ -55,6 +55,7 @@ export default {
pattern
:
Pattern
,
rules
:
null
,
codes
:
{
...
CodeTable
,
},
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment