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
5205bbac
Commit
5205bbac
authored
Oct 29, 2024
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msgsel 交易优化修改
parent
ecdd524f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
135 additions
and
237 deletions
+135
-237
index.js
src/page/Frontend/Msgsel/event/index.js
+74
-70
Check.js
src/page/Frontend/Msgsel/model/Check.js
+53
-19
Default.js
src/page/Frontend/Msgsel/model/Default.js
+0
-10
Event.js
src/page/Frontend/Msgsel/model/Event.js
+0
-55
Pattern.js
src/page/Frontend/Msgsel/model/Pattern.js
+0
-71
index.js
src/page/Frontend/Msgsel/model/index.js
+0
-2
Msgpnl.vue
src/page/Frontend/Msgsel/views/Msgpnl.vue
+0
-0
index.vue
src/page/Frontend/Msgsel/views/index.vue
+8
-10
No files found.
src/page/Frontend/Msgsel/event/index.js
View file @
5205bbac
import
Api
from
"~/service/Api"
;
import
moment
from
"moment"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
Msgsel
from
'../model'
;
import
Utils
from
"~/utils"
;
export
default
{
methods
:
{
async
handleSearch
()
{
let
rcvdatsta
=
this
.
model
.
sndp
.
rcvdatsta
;
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
});
return
;
}
let
rcvdatend
=
this
.
model
.
sndp
.
rcvdatend
;
if
(
!
rcvdatend
||
rcvdatend
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询结束日期必输!"
),
});
return
;
}
mixins
:
[
getSubtyp
],
methods
:
{
async
handleSearch
()
{
let
rcvdatsta
=
this
.
model
.
sndp
.
rcvdatsta
;
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
});
return
;
}
let
rcvdatend
=
this
.
model
.
sndp
.
rcvdatend
;
if
(
!
rcvdatend
||
rcvdatend
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询结束日期必输!"
),
});
return
;
}
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel/query"
,
{
...
this
.
model
.
sndp
,
dir
:
"<"
,
pageNum
:
this
.
pagination
.
pageNum
,
pageSize
:
this
.
pagination
.
pageSize
,
rcvdatsta
:
moment
(
rcvdatsta
).
format
(
"YYYY-MM-DD"
),
rcvdatend
:
moment
(
rcvdatend
).
format
(
"YYYY-MM-DD"
),
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
load
=
false
;
this
.
stmData
.
data
=
[];
const
{
list
}
=
rtnmsg
.
data
;
const
{
codes
:{
stacod
}
}
=
this
;
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel/query"
,
{
...
this
.
model
.
sndp
,
dir
:
"<"
,
pageNum
:
this
.
pagination
.
pageNum
,
pageSize
:
this
.
pagination
.
pageSize
,
rcvdatsta
:
moment
(
rcvdatsta
).
format
(
"YYYY-MM-DD"
),
rcvdatend
:
moment
(
rcvdatend
).
format
(
"YYYY-MM-DD"
),
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
load
=
false
;
this
.
stmData
.
data
=
[];
const
{
list
}
=
rtnmsg
.
data
;
const
{
codes
:
{
stacod
}
}
=
this
;
list
.
forEach
(
v
=>
{
for
(
let
i
in
stacod
){
if
(
stacod
[
i
].
value
==
v
.
sta
){
v
.
sta
=
stacod
[
i
].
label
;
}
}
})
this
.
stmData
.
data
=
list
;
this
.
pagination
=
{
pageNum
:
rtnmsg
.
data
.
pageNum
||
1
,
pageSize
:
rtnmsg
.
data
.
pageSize
||
10
,
total
:
parseInt
(
rtnmsg
.
data
.
total
),
};
}
else
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.服务请求失败!"
),
});
list
.
forEach
(
v
=>
{
for
(
let
i
in
stacod
)
{
if
(
stacod
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
stacod
[
i
].
label
;
}
this
.
load
=
false
;
},
async
handleReset
()
{
this
.
model
=
new
Msgsel
().
data
;
},
// pageSize改变
handleSizeChange
(
val
)
{
this
.
pagination
.
pageNum
=
1
;
this
.
pagination
.
pageSize
=
val
;
this
.
handleSearch
();
},
// 页码改变
handleCurrentChange
(
val
)
{
this
.
pagination
.
pageNum
=
val
;
this
.
handleSearch
();
},
handleSelectionChange
(
val
){
this
.
multipleSelection
=
val
;
}
}
})
this
.
stmData
.
data
=
list
;
this
.
pagination
=
{
pageNum
:
rtnmsg
.
data
.
pageNum
||
1
,
pageSize
:
rtnmsg
.
data
.
pageSize
||
10
,
total
:
parseInt
(
rtnmsg
.
data
.
total
),
};
}
else
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.服务请求失败!"
),
});
}
this
.
load
=
false
;
},
async
handleReset
()
{
let
resetModel
=
new
Msgsel
().
data
Utils
.
copyValueFromVoData
(
this
.
model
,
resetModel
);
this
.
handleSearch
();
},
// pageSize改变
handleSizeChange
(
val
)
{
this
.
pagination
.
pageNum
=
1
;
this
.
pagination
.
pageSize
=
val
;
this
.
handleSearch
();
},
// 页码改变
handleCurrentChange
(
val
)
{
this
.
pagination
.
pageNum
=
val
;
this
.
handleSearch
();
},
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
}
},
};
src/page/Frontend/Msgsel/model/Check.js
View file @
5205bbac
import
Utils
from
"~/utils"
export
default
{
"sndp.rcvdatsta"
:
[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"sndp.rcvdatend"
:
[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"sndp.sndbak"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.revbak"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.actbic"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.ownref"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.othref"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.uetr"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
/**
* Msgsel Check规则
*/
let
checkObj
=
{
"sndp.othref"
:
null
,
"sndp.msgtyp"
:
null
,
"sndp.ownref"
:
null
,
"sndp.uetr"
:
null
,
"sndp.revbak"
:
null
,
"sndp.sndbak"
:
null
,
"sndp.actbic"
:
null
,
}
"sndp.act"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.lcnb"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
for
(
const
key
in
checkObj
)
{
if
(
Object
.
hasOwnProperty
.
call
(
checkObj
,
key
))
{
checkObj
[
key
]
=
checkObj
[
key
]
?
checkObj
[
key
]
:
Utils
.
reflectCheck
(
key
)
}
}
export
default
checkObj
"sndp.amtmin"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"长度不能超过18"
}
],
"sndp.amtmax"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"长度不能超过18"
}
],
"sndp.usrnam"
:
[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
}
\ No newline at end of file
src/page/Frontend/Msgsel/model/Default.js
deleted
100644 → 0
View file @
ecdd524f
/**
* Msgsel Default规则
*/
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
export
default
{
}
//你可以添加自动default处理
src/page/Frontend/Msgsel/model/Event.js
deleted
100644 → 0
View file @
ecdd524f
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
export
default
{
async
onSndpSchbtn
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sndp.schbtn"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSndpClrbtn
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sndp.clrbtn"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSndpNewmsg
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sndp.newmsg"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSndpRtn
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sndp.rtn"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/page/Frontend/Msgsel/model/Pattern.js
deleted
100644 → 0
View file @
ecdd524f
export
default
{
"sndp.rcvdatsta"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"sndp.rcvdatend"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"sndp.sndbak"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.revbak"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.actbic"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.ownref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.othref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.uetr"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.act"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.lcnb"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"sndp.amtmin"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"长度不能超过18"
}
],
"sndp.amtmax"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"长度不能超过18"
}
],
"sndp.usrnam"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
}
\ No newline at end of file
src/page/Frontend/Msgsel/model/index.js
View file @
5205bbac
...
...
@@ -34,7 +34,6 @@ export default class Msgsel {
msggrp
:
{
rcvlst
:
[],
// .msggrp.rcvlst
},
pageId
:
""
// ctx的key
}
}
}
\ No newline at end of file
src/page/Frontend/Msgsel/views/Msgpnl.vue
View file @
5205bbac
This diff is collapsed.
Click to expand it.
src/page/Frontend/Msgsel/views/index.vue
View file @
5205bbac
<
template
>
<div
class=
"eContainer-search"
>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"120px"
label-position=
"right"
size=
"small"
:validate-on-rule-change=
"false"
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"120px"
label-position=
"right"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-content>
<m-msgpnl
:model=
"model"
:codes=
"codes"
ref=
"msgpnl"
/>
...
...
@@ -22,19 +22,17 @@
import
event
from
"../event"
import
Msgpnl
from
"./Msgpnl.vue"
export
default
{
name
:
"Msgsel"
,
components
:{
"m-msgpnl"
:
Msgpnl
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
event
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
event
],
data
(){
return
{
tabVal
:
"msgpnl"
,
...
...
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