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
7f4a5bf7
Commit
7f4a5bf7
authored
Oct 19, 2024
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化处理报文类型联动获取码表的问题
parent
64fcf3f9
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
776 additions
and
808 deletions
+776
-808
index.js
src/page/Frontend/Cpsmgs/event/index.js
+100
-85
Mainmgs.vue
src/page/Frontend/Cpsmgs/views/Mainmgs.vue
+25
-53
index.js
src/page/Frontend/Cpysel/event/index.js
+33
-18
Mainp.vue
src/page/Frontend/Cpysel/views/Mainp.vue
+6
-5
index.js
src/page/Frontend/Cpzsel/event/index.js
+33
-18
Mainp.vue
src/page/Frontend/Cpzsel/views/Mainp.vue
+6
-2
index.js
src/page/Frontend/Msgrtm/event/index.js
+88
-86
Schpnl.vue
src/page/Frontend/Msgrtm/views/Schpnl.vue
+2
-18
index.js
src/page/Frontend/Msgsep/event/index.js
+87
-85
Mainp.vue
src/page/Frontend/Msgsep/views/Mainp.vue
+2
-18
getSubtyp.js
src/page/Frontend/Rcvsel/event/getSubtyp.js
+30
-0
index.js
src/page/Frontend/Rcvsel/event/index.js
+89
-87
Schpnl.vue
src/page/Frontend/Rcvsel/views/Schpnl.vue
+2
-18
index.js
src/page/Frontend/Rcvselcop/event/index.js
+90
-88
Schpnl.vue
src/page/Frontend/Rcvselcop/views/Schpnl.vue
+2
-18
index.js
src/page/Frontend/Sndsel/event/index.js
+88
-86
Schpnl.vue
src/page/Frontend/Sndsel/views/Schpnl.vue
+2
-18
index.js
src/page/Frontend/Sndselcop/event/index.js
+89
-87
Schpnl.vue
src/page/Frontend/Sndselcop/views/Schpnl.vue
+2
-18
No files found.
src/page/Frontend/Cpsmgs/event/index.js
View file @
7f4a5bf7
...
...
@@ -2,93 +2,108 @@ import Api from "~/service/Api";
import
moment
from
"moment"
;
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
;
methods
:
{
async
getSubtyp
()
{
let
rtnmsg
=
await
Api
.
post
(
"/frontend/common/subtyp "
,
{
mty
:
'CIPS'
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
data
&&
rtnmsg
.
data
.
length
>
0
)
{
this
.
subtypCodes
=
rtnmsg
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
,
value
:
item
}
})
}
}
},
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
:
{
sta1
}
}
=
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
:{
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
.
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
sta1
)
{
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
sta1
[
i
].
label
;
}
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
=
""
;
},
// 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
()
{
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
=
""
;
},
// 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/Cpsmgs/views/Mainmgs.vue
View file @
7f4a5bf7
...
...
@@ -5,54 +5,42 @@
<template
v-slot=
"searchSlot"
>
<el-row>
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"系统名称"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.subtyp"
/>
<c-select
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.subtyp"
/>
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文类型"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.subtyp"
/>
<c-select
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
placeholder=
"请选择报文标准"
>
<el-option
v-for=
"code in subtypCodes"
:key=
"code.label"
:label=
"code.label"
:value=
"code.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"起始日期"
prop=
"rcvdatsta"
style=
"width: 100%"
>
<c-date-picker
type=
"date"
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
></c-date-picker>
<c-date-picker
type=
"date"
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row
v-show=
"searchSlot.searchToggle"
>
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-row
v-show=
"searchSlot.searchToggle"
>
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"截止日期"
prop=
"rcvdatsta"
style=
"width: 100%"
>
<c-date-picker
type=
"date"
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
></c-date-picker>
<c-date-picker
type=
"date"
v-model=
"model.mgsp.stadat"
style=
"width: 100%"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
</el-row>
</el-row>
</
template
>
</c-list-search>
<el-col
:span=
"24"
style=
"margin-top: 2px; margin-bottom: 1px"
>
<c-button
class=
"medium_bcs"
size=
"medium"
style=
"margin-left: 0"
type=
"primary"
>
{{ $t("public.导出") }}
<c-button
class=
"medium_bcs"
size=
"medium"
style=
"margin-left: 0"
type=
"primary"
>
{{ $t("public.导出") }}
</c-button>
</el-col>
...
...
@@ -61,36 +49,18 @@
<c-col
:span=
"24"
>
<el-tabs
v-model=
"activeTab"
class=
"y-tabs"
>
<el-tab-pane
label=
"汇总查询"
name=
"fb"
>
<el-table
:data=
"stmData.data"
:columns=
"stmData.columns"
v-loading=
"load"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
size=
"small"
:border=
"true"
height=
"calc(100vh - 480px)"
:highlight-current-row=
"true"
>
<el-table
:data=
"stmData.data"
:columns=
"stmData.columns"
v-loading=
"load"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
size=
"small"
:border=
"true"
height=
"calc(100vh - 480px)"
:highlight-current-row=
"true"
>
<!-- <el-table-column type="selection" width="55"> </el-table-column> -->
<el-table-column
v-for=
"(item, key) in stmData.columns"
:key=
"key"
:label=
"item.label"
:prop=
"item.prop"
:min-width=
"item.width"
>
<el-table-column
v-for=
"(item, key) in stmData.columns"
:key=
"key"
:label=
"item.label"
:prop=
"item.prop"
:min-width=
"item.width"
>
</el-table-column>
</el-table>
<el-pagination
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"pagination.total"
:page-size=
"pagination.pageSize"
:current-page
.
sync=
"pagination.pageNum"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
>
<el-pagination
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"pagination.total"
:page-size=
"pagination.pageSize"
:current-page
.
sync=
"pagination.pageNum"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
>
</el-pagination>
</el-tab-pane>
</el-tabs>
...
...
@@ -173,7 +143,9 @@ export default {
},
},
methods
:
{},
mounted
:
function
()
{},
mounted
()
{
this
.
getSubtyp
()
},
};
</
script
>
<
style
lang=
"less"
scoped
>
...
...
src/page/Frontend/Cpysel/event/index.js
View file @
7f4a5bf7
...
...
@@ -2,24 +2,39 @@ import Api from "~/service/Api";
import
moment
from
"moment"
;
export
default
{
methods
:
{
async
handleSearch
()
{
},
async
handleReset
()
{
},
// 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
;
methods
:
{
async
getSubtyp
()
{
let
rtnmsg
=
await
Api
.
post
(
"/frontend/common/subtyp "
,
{
mty
:
'CIPS'
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
data
&&
rtnmsg
.
data
.
length
>
0
)
{
this
.
subtypCodes
=
rtnmsg
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
,
value
:
item
}
})
}
}
},
async
handleSearch
()
{
},
async
handleReset
()
{
},
// 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/Cpysel/views/Mainp.vue
View file @
7f4a5bf7
...
...
@@ -16,12 +16,12 @@
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文类型:"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.cpyp.subtyp"
style=
"width: 100%"
placeholder=
"请选择报文类型:"
:code=
"codes.subtyp"
/>
<el-form-item
label=
"报文类型"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.cpyp.subtyp"
style=
"width: 100%"
placeholder=
"请选择报文类型"
>
<el-option
v-for=
"code in subtypCodes"
:key=
"code.label"
:label=
"code.label"
:value=
"code.value"
></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
...
...
@@ -147,7 +147,8 @@ export default {
}
},
methods
:
{},
mounted
:
function
()
{
mounted
()
{
this
.
getSubtyp
()
},
};
</
script
>
...
...
src/page/Frontend/Cpzsel/event/index.js
View file @
7f4a5bf7
...
...
@@ -2,24 +2,39 @@ import Api from "~/service/Api";
import
moment
from
"moment"
;
export
default
{
methods
:
{
async
handleSearch
()
{
},
async
handleReset
()
{
},
// 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
;
methods
:
{
async
getSubtyp
()
{
let
rtnmsg
=
await
Api
.
post
(
"/frontend/common/subtyp "
,
{
mty
:
'CIPS'
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
data
&&
rtnmsg
.
data
.
length
>
0
)
{
this
.
subtypCodes
=
rtnmsg
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
,
value
:
item
}
})
}
}
},
async
handleSearch
()
{
},
async
handleReset
()
{
},
// 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/Cpzsel/views/Mainp.vue
View file @
7f4a5bf7
...
...
@@ -12,7 +12,10 @@
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文类型"
prop=
""
style=
"width: 100%"
>
<c-select
v-model=
"model.cpzp.subtyp"
style=
"width: 100%"
placeholder=
"请选择报文类型"
:code=
"codes.subtyp"
/>
<c-select
v-model=
"model.cpzp.subtyp"
style=
"width: 100%"
placeholder=
"请选择报文类型"
>
<el-option
v-for=
"code in subtypCodes"
:key=
"code.label"
:label=
"code.label"
:value=
"code.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
...
...
@@ -153,7 +156,8 @@ export default {
},
methods
:
{
},
mounted
:
function
()
{
mounted
()
{
this
.
getSubtyp
()
},
};
</
script
>
...
...
src/page/Frontend/Msgrtm/event/index.js
View file @
7f4a5bf7
import
Api
from
"~/service/Api"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
moment
from
"moment"
;
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
:
{
sta1
}
}
=
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
:{
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
.
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
sta1
)
{
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
sta1
[
i
].
label
;
}
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
=
""
;
},
// 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
()
{
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
=
""
;
},
// 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/Msgrtm/views/Schpnl.vue
View file @
7f4a5bf7
...
...
@@ -7,7 +7,7 @@
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文标准"
prop=
"msgtyp"
style=
"width: 100%"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择货押标识"
:code=
"codes.msgtyp3"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择货押标识"
:code=
"codes.msgtyp3"
@
change=
"getSubtyp(model.sndp.msgtyp, 'sndp.subtyp')"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -291,23 +291,7 @@ export default {
}
},
watch
:
{
'model.sndp.msgtyp'
:
{
handler
:
function
(
newTyp
,
oldTyp
)
{
// 把已经选择的 subtyp 重置
this
.
model
.
sndp
.
subtyp
=
''
;
const
{
codes
}
=
this
;
if
(
newTyp
===
'sf2'
)
{
this
.
subtypCodes
=
codes
.
mttyp
;
}
else
if
(
newTyp
===
'iso'
)
{
this
.
subtypCodes
=
codes
.
isotyp
;
}
else
if
(
newTyp
===
'txt'
)
{
this
.
subtypCodes
=
codes
.
fmttyp
;
}
else
{
this
.
subtypCodes
=
codes
.
cipstyp
;
}
},
deep
:
true
}
},
methods
:
{
},
...
...
src/page/Frontend/Msgsep/event/index.js
View file @
7f4a5bf7
import
Api
from
"@/service/Api"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
moment
from
"moment"
;
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
:{
sta1
}
}
=
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
:
{
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
.
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
sta1
)
{
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
sta1
[
i
].
label
;
}
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
=
""
;
},
// 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
()
{
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
=
""
;
},
// 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/Msgsep/views/Mainp.vue
View file @
7f4a5bf7
...
...
@@ -7,7 +7,7 @@
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文标准"
prop=
"msgtyp"
style=
"width: 100%"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择货押标识"
:code=
"codes.msgtyp3"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择货押标识"
:code=
"codes.msgtyp3"
@
change=
"getSubtyp(model.sndp.msgtyp, 'sndp.subtyp')"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -291,23 +291,7 @@ export default {
}
},
watch
:
{
'model.sndp.msgtyp'
:
{
handler
:
function
(
newTyp
,
oldTyp
)
{
// 把已经选择的 subtyp 重置
this
.
model
.
sndp
.
subtyp
=
''
;
const
{
codes
}
=
this
;
if
(
newTyp
===
'sf2'
)
{
this
.
subtypCodes
=
codes
.
mttyp
;
}
else
if
(
newTyp
===
'iso'
)
{
this
.
subtypCodes
=
codes
.
isotyp
;
}
else
if
(
newTyp
===
'txt'
)
{
this
.
subtypCodes
=
codes
.
fmttyp
;
}
else
{
this
.
subtypCodes
=
codes
.
cipstyp
;
}
},
deep
:
true
}
},
methods
:
{
},
...
...
src/page/Frontend/Rcvsel/event/getSubtyp.js
0 → 100644
View file @
7f4a5bf7
import
Api
from
"~/service/Api"
;
import
moment
from
"moment"
;
import
_
from
'lodash'
;
export
default
{
methods
:
{
async
getSubtyp
(
firstKey
,
currentKey
)
{
let
mapData
=
{
sf2
:
'MT'
,
iso
:
'MX'
,
txt
:
'FXPS'
,
xml
:
'CIPS'
,
}
let
rtnmsg
=
await
Api
.
post
(
"/frontend/common/subtyp "
,
{
mty
:
mapData
[
firstKey
]
});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
_
.
set
(
this
.
model
,
currentKey
,
''
)
if
(
rtnmsg
.
data
&&
rtnmsg
.
data
.
length
>
0
)
{
this
.
subtypCodes
=
rtnmsg
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
,
value
:
item
}
})
}
}
},
},
};
src/page/Frontend/Rcvsel/event/index.js
View file @
7f4a5bf7
import
Api
from
"~/service/Api"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
moment
from
"moment"
;
export
default
{
methods
:
{
async
handleSearch
()
{
let
rcvdatsta
=
this
.
model
.
rcvp
.
rcvdatsta
;
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
});
return
;
}
let
rcvdatend
=
this
.
model
.
rcvp
.
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
.
rcvp
.
rcvdatsta
;
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
});
return
;
}
let
rcvdatend
=
this
.
model
.
rcvp
.
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
.
rcvp
,
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
:
{
sta1
}
}
=
this
;
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel/query"
,
{
...
this
.
model
.
rcvp
,
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
:{
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
.
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
sta1
)
{
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
sta1
[
i
].
label
;
}
this
.
load
=
false
;
},
async
handleReset
()
{
this
.
model
.
rcvp
.
msgtyp
=
""
;
this
.
model
.
rcvp
.
rcvdatsta
=
new
Date
();
this
.
model
.
rcvp
.
rcvdatend
=
new
Date
();
this
.
model
.
rcvp
.
subtyp
=
""
;
this
.
model
.
rcvp
.
sndbak
=
""
;
this
.
model
.
rcvp
.
revbak
=
""
;
this
.
model
.
rcvp
.
actbic
=
""
;
this
.
model
.
rcvp
.
othref
=
""
;
this
.
model
.
rcvp
.
ownref
=
""
;
this
.
model
.
rcvp
.
cur
=
""
;
this
.
model
.
rcvp
.
act
=
""
;
this
.
model
.
rcvp
.
amtmin
=
""
;
this
.
model
.
rcvp
.
amtmax
=
""
;
this
.
model
.
rcvp
.
chnipt
=
""
;
this
.
model
.
rcvp
.
rspsta
=
""
;
this
.
model
.
rcvp
.
dtlchg
=
""
;
this
.
model
.
rcvp
.
sta
=
""
;
this
.
model
.
rcvp
.
gpi
=
""
;
},
// 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
()
{
this
.
model
.
rcvp
.
msgtyp
=
""
;
this
.
model
.
rcvp
.
rcvdatsta
=
new
Date
();
this
.
model
.
rcvp
.
rcvdatend
=
new
Date
();
this
.
model
.
rcvp
.
subtyp
=
""
;
this
.
model
.
rcvp
.
sndbak
=
""
;
this
.
model
.
rcvp
.
revbak
=
""
;
this
.
model
.
rcvp
.
actbic
=
""
;
this
.
model
.
rcvp
.
othref
=
""
;
this
.
model
.
rcvp
.
ownref
=
""
;
this
.
model
.
rcvp
.
cur
=
""
;
this
.
model
.
rcvp
.
act
=
""
;
this
.
model
.
rcvp
.
amtmin
=
""
;
this
.
model
.
rcvp
.
amtmax
=
""
;
this
.
model
.
rcvp
.
chnipt
=
""
;
this
.
model
.
rcvp
.
rspsta
=
""
;
this
.
model
.
rcvp
.
dtlchg
=
""
;
this
.
model
.
rcvp
.
sta
=
""
;
this
.
model
.
rcvp
.
gpi
=
""
;
},
// 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/Rcvsel/views/Schpnl.vue
View file @
7f4a5bf7
...
...
@@ -7,7 +7,7 @@
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文标准"
prop=
"msgtyp"
style=
"width: 100%"
>
<c-select
v-model=
"model.rcvp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
>
<c-select
v-model=
"model.rcvp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
@
change=
"getSubtyp(model.rcvp.msgtyp, 'rcvp.subtyp')"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -306,23 +306,7 @@ export default {
}
},
watch
:
{
'model.rcvp.msgtyp'
:
{
handler
:
function
(
newTyp
,
oldTyp
)
{
// 把已经选择的 subtyp 重置
this
.
model
.
rcvp
.
subtyp
=
''
;
const
{
codes
}
=
this
;
if
(
newTyp
===
'sf2'
)
{
this
.
subtypCodes
=
codes
.
mttyp
;
}
else
if
(
newTyp
===
'iso'
)
{
this
.
subtypCodes
=
codes
.
isotyp
;
}
else
if
(
newTyp
===
'txt'
)
{
this
.
subtypCodes
=
codes
.
fmttyp
;
}
else
{
this
.
subtypCodes
=
codes
.
cipstyp
;
}
},
deep
:
true
}
},
methods
:
{
dbClickRow
(
row
)
{
...
...
src/page/Frontend/Rcvselcop/event/index.js
View file @
7f4a5bf7
import
Api
from
"~/service/Api"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
moment
from
"moment"
;
export
default
{
methods
:
{
async
handleSearch
()
{
let
rcvdatsta
=
this
.
model
.
rcvp
.
rcvdatsta
;
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
});
return
;
}
let
rcvdatend
=
this
.
model
.
rcvp
.
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
.
rcvp
.
rcvdatsta
;
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
this
.
$notify
.
error
({
title
:
this
.
$t
(
"financing.错误"
),
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
});
return
;
}
let
rcvdatend
=
this
.
model
.
rcvp
.
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
.
rcvp
,
dir
:
">"
,
querytyp
:
"rsm"
,
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
:
{
sta1
}
}
=
this
;
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel/query"
,
{
...
this
.
model
.
rcvp
,
dir
:
">"
,
querytyp
:
"rsm"
,
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
:{
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
.
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
sta1
)
{
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
sta1
[
i
].
label
;
}
this
.
load
=
false
;
},
async
handleReset
()
{
this
.
model
.
rcvp
.
msgtyp
=
""
;
this
.
model
.
rcvp
.
rcvdatsta
=
new
Date
();
this
.
model
.
rcvp
.
rcvdatend
=
new
Date
();
this
.
model
.
rcvp
.
subtyp
=
""
;
this
.
model
.
rcvp
.
sndbak
=
""
;
this
.
model
.
rcvp
.
revbak
=
""
;
this
.
model
.
rcvp
.
actbic
=
""
;
this
.
model
.
rcvp
.
othref
=
""
;
this
.
model
.
rcvp
.
ownref
=
""
;
this
.
model
.
rcvp
.
cur
=
""
;
this
.
model
.
rcvp
.
act
=
""
;
this
.
model
.
rcvp
.
amtmin
=
""
;
this
.
model
.
rcvp
.
amtmax
=
""
;
this
.
model
.
rcvp
.
chnipt
=
""
;
this
.
model
.
rcvp
.
rspsta
=
""
;
this
.
model
.
rcvp
.
dtlchg
=
""
;
this
.
model
.
rcvp
.
sta
=
""
;
this
.
model
.
rcvp
.
gpi
=
""
;
},
// 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
()
{
this
.
model
.
rcvp
.
msgtyp
=
""
;
this
.
model
.
rcvp
.
rcvdatsta
=
new
Date
();
this
.
model
.
rcvp
.
rcvdatend
=
new
Date
();
this
.
model
.
rcvp
.
subtyp
=
""
;
this
.
model
.
rcvp
.
sndbak
=
""
;
this
.
model
.
rcvp
.
revbak
=
""
;
this
.
model
.
rcvp
.
actbic
=
""
;
this
.
model
.
rcvp
.
othref
=
""
;
this
.
model
.
rcvp
.
ownref
=
""
;
this
.
model
.
rcvp
.
cur
=
""
;
this
.
model
.
rcvp
.
act
=
""
;
this
.
model
.
rcvp
.
amtmin
=
""
;
this
.
model
.
rcvp
.
amtmax
=
""
;
this
.
model
.
rcvp
.
chnipt
=
""
;
this
.
model
.
rcvp
.
rspsta
=
""
;
this
.
model
.
rcvp
.
dtlchg
=
""
;
this
.
model
.
rcvp
.
sta
=
""
;
this
.
model
.
rcvp
.
gpi
=
""
;
},
// 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/Rcvselcop/views/Schpnl.vue
View file @
7f4a5bf7
...
...
@@ -7,7 +7,7 @@
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文标准"
prop=
"msgtyp"
style=
"width: 100%"
>
<c-select
v-model=
"model.rcvp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
>
<c-select
v-model=
"model.rcvp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
@
change=
"getSubtyp(model.rcvp.msgtyp, 'rcvp.subtyp')"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -306,23 +306,7 @@ export default {
}
},
watch
:
{
'model.rcvp.msgtyp'
:
{
handler
:
function
(
newTyp
,
oldTyp
)
{
// 把已经选择的 subtyp 重置
this
.
model
.
rcvp
.
subtyp
=
''
;
const
{
codes
}
=
this
;
if
(
newTyp
===
'sf2'
)
{
this
.
subtypCodes
=
codes
.
mttyp
;
}
else
if
(
newTyp
===
'iso'
)
{
this
.
subtypCodes
=
codes
.
isotyp
;
}
else
if
(
newTyp
===
'txt'
)
{
this
.
subtypCodes
=
codes
.
fmttyp
;
}
else
{
this
.
subtypCodes
=
codes
.
cipstyp
;
}
},
deep
:
true
}
},
methods
:
{
dbClickRow
(
row
)
{
...
...
src/page/Frontend/Sndsel/event/index.js
View file @
7f4a5bf7
import
Api
from
"~/service/Api"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
moment
from
"moment"
;
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
:
{
sta1
}
}
=
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
:{
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
.
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
sta1
)
{
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
sta1
[
i
].
label
;
}
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
=
""
;
},
// 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
()
{
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
=
""
;
},
// 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/Sndsel/views/Schpnl.vue
View file @
7f4a5bf7
...
...
@@ -7,7 +7,7 @@
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文标准"
prop=
"msgtyp"
style=
"width: 100%"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
@
change=
"getSubtyp(model.sndp.msgtyp, 'sndp.subtyp')"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -292,23 +292,7 @@ export default {
}
},
watch
:
{
'model.sndp.msgtyp'
:
{
handler
:
function
(
newTyp
,
oldTyp
)
{
// 把已经选择的 subtyp 重置
this
.
model
.
sndp
.
subtyp
=
''
;
const
{
codes
}
=
this
;
if
(
newTyp
===
'sf2'
)
{
this
.
subtypCodes
=
codes
.
mttyp
;
}
else
if
(
newTyp
===
'iso'
)
{
this
.
subtypCodes
=
codes
.
isotyp
;
}
else
if
(
newTyp
===
'txt'
)
{
this
.
subtypCodes
=
codes
.
fmttyp
;
}
else
{
this
.
subtypCodes
=
codes
.
cipstyp
;
}
},
deep
:
true
}
},
methods
:
{
dbClickRow
(
row
)
{
...
...
src/page/Frontend/Sndselcop/event/index.js
View file @
7f4a5bf7
import
Api
from
"~/service/Api"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
moment
from
"moment"
;
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
:
"<"
,
querytyp
:
"rsm"
,
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
:
{
sta1
}
}
=
this
;
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel/query"
,
{
...
this
.
model
.
sndp
,
dir
:
"<"
,
querytyp
:
"rsm"
,
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
:{
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
.
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
sta1
)
{
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
v
.
sta
=
sta1
[
i
].
label
;
}
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
=
""
;
},
// 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
()
{
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
=
""
;
},
// 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/Sndselcop/views/Schpnl.vue
View file @
7f4a5bf7
...
...
@@ -7,7 +7,7 @@
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文标准"
prop=
"msgtyp"
style=
"width: 100%"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
>
<c-select
v-model=
"model.sndp.msgtyp"
style=
"width: 100%"
placeholder=
"请选择报文标准"
:code=
"codes.msgtyp3"
@
change=
"getSubtyp(model.sndp.msgtyp, 'sndp.subtyp')"
>
</c-select>
</el-form-item>
</c-col>
...
...
@@ -292,23 +292,7 @@ export default {
}
},
watch
:
{
'model.sndp.msgtyp'
:
{
handler
:
function
(
newTyp
,
oldTyp
)
{
// 把已经选择的 subtyp 重置
this
.
model
.
sndp
.
subtyp
=
''
;
const
{
codes
}
=
this
;
if
(
newTyp
===
'sf2'
)
{
this
.
subtypCodes
=
codes
.
mttyp
;
}
else
if
(
newTyp
===
'iso'
)
{
this
.
subtypCodes
=
codes
.
isotyp
;
}
else
if
(
newTyp
===
'txt'
)
{
this
.
subtypCodes
=
codes
.
fmttyp
;
}
else
{
this
.
subtypCodes
=
codes
.
cipstyp
;
}
},
deep
:
true
}
},
methods
:
{
dbClickRow
(
row
)
{
...
...
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