Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-web-vue
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
isc-v3.1-tmp
isc-web-vue
Commits
1cd9e78e
Commit
1cd9e78e
authored
Oct 29, 2024
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpswjz 交易优化修改
parent
0cd920d8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
80 additions
and
201 deletions
+80
-201
index.js
src/page/Frontend/Cpswjz/event/index.js
+15
-38
Check.js
src/page/Frontend/Cpswjz/model/Check.js
+8
-14
Default.js
src/page/Frontend/Cpswjz/model/Default.js
+0
-10
Event.js
src/page/Frontend/Cpswjz/model/Event.js
+0
-67
Pattern.js
src/page/Frontend/Cpswjz/model/Pattern.js
+0
-16
index.js
src/page/Frontend/Cpswjz/model/index.js
+20
-10
Mainplwjz.vue
src/page/Frontend/Cpswjz/views/Mainplwjz.vue
+33
-38
index.vue
src/page/Frontend/Cpswjz/views/index.vue
+4
-8
No files found.
src/page/Frontend/Cpswjz/event/index.js
View file @
1cd9e78e
import
Api
from
"~/service/Api"
;
import
moment
from
"moment"
;
import
Cpswjz
from
"../model"
;
import
Utils
from
"~/utils"
;
export
default
{
methods
:
{
async
handleSearch
()
{
let
rcvdatsta
=
this
.
model
.
sndp
.
rcvdatsta
;
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
let
stadat
=
this
.
model
.
wlzp
.
stadat
;
if
(
!
stadat
||
stadat
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
});
return
;
}
let
rcvdatend
=
this
.
model
.
sndp
.
rcvdatend
;
if
(
!
rcvdatend
||
rcvdatend
==
""
)
{
let
enddat
=
this
.
model
.
wlzp
.
enddat
;
if
(
!
enddat
||
enddat
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询结束日期必输!"
),
...
...
@@ -22,28 +23,18 @@ export default {
}
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel
/query"
,
{
...
this
.
model
.
snd
p
,
let
rtnmsg
=
await
Api
.
post
(
"/frontend/cpswjz
/query"
,
{
...
this
.
model
.
wlz
p
,
dir
:
">"
,
pageNum
:
this
.
pagination
.
pageNum
,
pageSize
:
this
.
pagination
.
pageSize
,
rcvdatsta
:
moment
(
rcvdatsta
).
format
(
"YYYY-MM-DD"
),
rcvdatend
:
moment
(
rcvdatend
).
format
(
"YYYY-MM-DD"
),
stadat
:
moment
(
stadat
).
format
(
"YYYY-MM-DD"
),
enddat
:
moment
(
enddat
).
format
(
"YYYY-MM-DD"
),
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
load
=
false
;
this
.
stmData
.
data
=
[];
const
{
list
}
=
rtnmsg
.
data
;
const
{
codes
:{
sta1
}}
=
this
;
list
.
forEach
(
v
=>
{
for
(
let
i
in
sta1
){
if
(
sta1
[
i
].
value
==
v
.
sta
){
v
.
sta
=
sta1
[
i
].
label
;
}
}
})
this
.
stmData
.
data
=
list
;
this
.
stmData
.
data
=
rtnmsg
.
data
.
list
;
this
.
pagination
=
{
pageNum
:
rtnmsg
.
data
.
pageNum
||
1
,
pageSize
:
rtnmsg
.
data
.
pageSize
||
10
,
...
...
@@ -58,23 +49,9 @@ export default {
this
.
load
=
false
;
},
async
handleReset
()
{
this
.
model
.
sndp
.
msgtyp
=
""
;
this
.
model
.
sndp
.
rcvdatsta
=
new
Date
();
this
.
model
.
sndp
.
rcvdatend
=
new
Date
();
this
.
model
.
sndp
.
subtyp
=
""
;
this
.
model
.
sndp
.
sndbak
=
""
;
this
.
model
.
sndp
.
revbak
=
""
;
this
.
model
.
sndp
.
actbic
=
""
;
this
.
model
.
sndp
.
othref
=
""
;
this
.
model
.
sndp
.
ownref
=
""
;
this
.
model
.
sndp
.
cur
=
""
;
this
.
model
.
sndp
.
act
=
""
;
this
.
model
.
sndp
.
amtmin
=
""
;
this
.
model
.
sndp
.
amtmax
=
""
;
this
.
model
.
sndp
.
chnipt
=
""
;
this
.
model
.
sndp
.
rspsta
=
""
;
this
.
model
.
sndp
.
dtlchg
=
""
;
this
.
model
.
sndp
.
sta
=
""
;
let
resetModel
=
new
Cpswjz
().
data
Utils
.
copyValueFromVoData
(
this
.
model
,
resetModel
);
this
.
handleSearch
();
},
// pageSize改变
handleSizeChange
(
val
)
{
...
...
@@ -87,7 +64,7 @@ export default {
this
.
pagination
.
pageNum
=
val
;
this
.
handleSearch
();
},
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
}
},
...
...
src/page/Frontend/Cpswjz/model/Check.js
View file @
1cd9e78e
import
Utils
from
"~/utils"
/**
* Cpssxf Check规则
*/
let
checkObj
=
{
export
default
{
"sxfp.stadat"
:
[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"sxfp.enddat"
:
[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
}
\ No newline at end of file
for
(
const
key
in
checkObj
)
{
if
(
Object
.
hasOwnProperty
.
call
(
checkObj
,
key
))
{
checkObj
[
key
]
=
checkObj
[
key
]
?
checkObj
[
key
]
:
Utils
.
reflectCheck
(
key
)
}
}
export
default
checkObj
src/page/Frontend/Cpswjz/model/Default.js
deleted
100644 → 0
View file @
0cd920d8
/**
* Cpssxf Default规则
*/
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
export
default
{
}
//你可以添加自动default处理
src/page/Frontend/Cpswjz/model/Event.js
deleted
100644 → 0
View file @
0cd920d8
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
export
default
{
async
onSxfpSel
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sxfp.sel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSxfpClr
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sxfp.clr"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSxfpAdd
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sxfp.add"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSxfpDvd
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sxfp.dvd"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSxfpPfa
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sxfp.pfa"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/page/Frontend/Cpswjz/model/Pattern.js
deleted
100644 → 0
View file @
0cd920d8
export
default
{
"sxfp.stadat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"sxfp.enddat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
}
\ No newline at end of file
src/page/Frontend/Cpswjz/model/index.js
View file @
1cd9e78e
import
Api
from
"~/service/Api"
import
Pts
from
"~/page/Model/Common/Pts"
export
default
class
Cps
sxf
{
constructor
()
{
export
default
class
Cps
wjz
{
constructor
()
{
this
.
data
=
{
wlzp
:{
stadat
:
""
,
// 收报日期(查询) .wlzp.stadat
enddat
:
""
,
// 发报日期(查询) .wlzp.enddat
exp
:
""
,
// 导出 .sxfp.exp
wlzp
:
{
stadat
:
""
,
enddat
:
""
,
msgtyp
:
""
,
subtyp
:
""
,
sndbic
:
""
,
rcvbic
:
""
,
bwbzh
:
""
,
glckh
:
""
,
cur
:
""
,
act
:
""
,
amtmin
:
""
,
amtmax
:
""
,
rspsta
:
""
,
chnipt
:
""
,
exp
:
""
,
},
sxfgrp
:
{
sxflst
:[],
// .sxfgrp.sxflst
sxfgrp
:
{
sxflst
:
[],
},
pageId
:
""
// ctx的key
}
}
}
\ No newline at end of file
src/page/Frontend/Cpswjz/views/Mainplwjz.vue
View file @
1cd9e78e
...
...
@@ -18,7 +18,7 @@
<el-form-item
label=
"发报日期"
prop=
"rcvdatsta"
style=
"width: 100%"
>
<c-date-picker
type=
"date"
v-model=
"model.wlzp.
sta
dat"
v-model=
"model.wlzp.
end
dat"
style=
"width: 100%"
></c-date-picker>
</el-form-item>
...
...
@@ -90,15 +90,13 @@
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"消息处理状态"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.wlzp.rspsta"
style=
"width: 100%"
:code=
"codes.rspsta"
/>
<el-form-item
label=
"处理状态"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.wlzp.rspsta"
style=
"width: 100%"
:code=
"codes.rspsta"
/>
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"行内系统"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.wlzp.chnipt"
style=
"width: 100%"
:code=
"codes.chnipt"
/>
<c-select
v-model=
"model.wlzp.chnipt"
style=
"width: 100%"
:code=
"codes.chnipt"
/>
</el-form-item>
</c-col>
</c-col>
...
...
@@ -134,10 +132,8 @@
</el-col>
<el-col
:span=
"24"
style=
"margin-top: 10px"
>
<div
style=
"height: 90%"
>
<div>
<c-col
:span=
"24"
>
<el-tabs
v-model=
"activeTab"
class=
"y-tabs"
>
<el-tab-pane
label=
"CIPS未记账记录查询"
name=
"fb"
>
<el-table
:data=
"stmData.data"
:columns=
"stmData.columns"
...
...
@@ -146,10 +142,10 @@
@
selection-change=
"handleSelectionChange"
size=
"small"
:border=
"true"
height=
"calc(100vh - 48
0px)"
height=
"calc(100vh - 31
0px)"
:highlight-current-row=
"true"
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
v-for=
"(item, key) in stmData.columns"
:key=
"key"
...
...
@@ -157,6 +153,13 @@
:prop=
"item.prop"
:min-width=
"item.width"
>
<
template
slot-scope=
"scope"
>
<c-select-value-to-label
v-if=
"item.prop == 'msgtyp'"
v-model=
"scope.row.msgtyp"
:code=
"codes.msgtyp3"
></c-select-value-to-label>
<c-select-value-to-label
v-if=
"item.prop == 'rspsta'"
v-model=
"scope.row.rspsta"
:code=
"codes.rspsta"
></c-select-value-to-label>
<c-select-value-to-label
v-if=
"item.prop == 'chnipt'"
v-model=
"scope.row.chnipt"
:code=
"codes.chnipt"
></c-select-value-to-label>
<span
v-else-if=
"item.prop == 'amt'"
>
{{
moneyFormat
(
scope
.
row
.
amt
,
scope
.
row
.
cur
)
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
prop
]
}}
</span>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -169,8 +172,6 @@
@
current-change=
"handleCurrentChange"
>
</el-pagination>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
...
...
@@ -185,7 +186,6 @@ export default {
mixins
:
[
event
],
data
()
{
return
{
activeTab
:
"fb"
,
load
:
false
,
subtypCodes
:
[],
multipleSelection
:
[],
...
...
@@ -193,82 +193,77 @@ export default {
columns
:
[
{
label
:
"起始日"
,
prop
:
"
sta
"
,
prop
:
"
valdat
"
,
width
:
"120px"
,
},
{
label
:
"报文标识号"
,
prop
:
"
amt
"
,
prop
:
"
bwbzh
"
,
width
:
"120px"
,
},
{
label
:
"关联参考号"
,
prop
:
"
stadat
"
,
prop
:
"
glckh
"
,
width
:
"120px"
,
},
{
label
:
"币种"
,
prop
:
"
enddat
"
,
width
:
"
12
0px"
,
prop
:
"
cur
"
,
width
:
"
8
0px"
,
},
{
label
:
"金额"
,
prop
:
"
endda
t"
,
prop
:
"
am
t"
,
width
:
"120px"
,
},
{
label
:
"账号"
,
prop
:
"
endda
t"
,
prop
:
"
ac
t"
,
width
:
"120px"
,
},
{
label
:
"子系统"
,
prop
:
"
endda
t"
,
prop
:
"
zx
t"
,
width
:
"120px"
,
},
{
label
:
"行内系统"
,
prop
:
"enddat"
,
width
:
"120px"
,
},
{
label
:
"收发方"
,
prop
:
"enddat"
,
prop
:
"chnipt"
,
width
:
"120px"
,
},
{
label
:
"处理状态"
,
prop
:
"
enddat
"
,
prop
:
"
rspsta
"
,
width
:
"120px"
,
},
{
label
:
"发报行BIC"
,
prop
:
"
enddat
"
,
prop
:
"
sndbic
"
,
width
:
"120px"
,
},
{
label
:
"收报行BIC"
,
prop
:
"
enddat
"
,
prop
:
"
rcvbic
"
,
width
:
"120px"
,
},
{
label
:
"报文标"
,
prop
:
"
enddat
"
,
label
:
"报文标
准
"
,
prop
:
"
msgtyp
"
,
width
:
"120px"
,
},
{
label
:
"
报文标
"
,
prop
:
"
enddat
"
,
label
:
"
GPI标识
"
,
prop
:
"
gpi
"
,
width
:
"120px"
,
},
{
label
:
"报文类"
,
prop
:
"
enddat
"
,
label
:
"报文类
型
"
,
prop
:
"
subtyp
"
,
width
:
"120px"
,
},
{
label
:
"日夜间标"
,
prop
:
"
enddat
"
,
prop
:
"
ryjb
"
,
width
:
"120px"
,
},
],
...
...
src/page/Frontend/Cpswjz/views/index.vue
View file @
1cd9e78e
...
...
@@ -16,30 +16,26 @@
</div>
</
template
>
<
script
>
import
CodeTable
from
"~/config/CodeTable"
;
import
Cps
sxf
from
"../model"
;
import
Cps
wjz
from
"../model"
;
import
event
from
"../event"
import
Mainplwjz
from
"./Mainplwjz.vue"
export
default
{
name
:
"Cpswjz"
,
components
:{
"m-mainpl"
:
Mainplwjz
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
event
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
event
],
data
(){
return
{
tabVal
:
"mainpl"
,
trnName
:
"cpssxf"
,
model
:
new
Cpssxf
().
data
,
trnName
:
"cpswjz"
,
model
:
new
Cpswjz
().
data
,
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