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
3d71feab
Commit
3d71feab
authored
Oct 28, 2024
by
李少勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收报查询功能修改
parent
7c9ac51c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
115 deletions
+101
-115
index.vue
src/page/Frontend/Msgrtm/views/index.vue
+1
-1
index.js
src/page/Frontend/Rcvselblk/event/index.js
+90
-88
Schpnl.vue
src/page/Frontend/Rcvselblk/views/Schpnl.vue
+10
-26
No files found.
src/page/Frontend/Msgrtm/views/index.vue
View file @
3d71feab
...
@@ -24,7 +24,7 @@ import Schpnl from "./Schpnl.vue"
...
@@ -24,7 +24,7 @@ import Schpnl from "./Schpnl.vue"
export
default
{
export
default
{
name
:
"
Sndsel
"
,
name
:
"
Msgrtm
"
,
components
:{
components
:{
"m-schpnl"
:
Schpnl
,
"m-schpnl"
:
Schpnl
,
...
...
src/page/Frontend/Rcvselblk/event/index.js
View file @
3d71feab
import
Api
from
"~/service/Api"
;
import
Api
from
"~/service/Api"
;
import
getSubtyp
from
'~/page/Frontend/Rcvsel/event/getSubtyp.js'
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
export
default
{
export
default
{
methods
:
{
mixins
:
[
getSubtyp
],
async
handleSearch
()
{
methods
:
{
let
rcvdatsta
=
this
.
model
.
rcvp
.
rcvdatsta
;
async
handleSearch
()
{
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
let
rcvdatsta
=
this
.
model
.
rcvp
.
rcvdatsta
;
this
.
$notify
.
error
({
if
(
!
rcvdatsta
||
rcvdatsta
==
""
)
{
title
:
this
.
$t
(
"financing.错误"
),
this
.
$notify
.
error
({
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
title
:
this
.
$t
(
"financing.错误"
),
});
message
:
this
.
$t
(
"financing.查询开始日期必输!"
),
return
;
});
}
return
;
let
rcvdatend
=
this
.
model
.
rcvp
.
rcvdatend
;
}
if
(
!
rcvdatend
||
rcvdatend
==
""
)
{
let
rcvdatend
=
this
.
model
.
rcvp
.
rcvdatend
;
this
.
$notify
.
error
({
if
(
!
rcvdatend
||
rcvdatend
==
""
)
{
title
:
this
.
$t
(
"financing.错误"
),
this
.
$notify
.
error
({
message
:
this
.
$t
(
"financing.查询结束日期必输!"
),
title
:
this
.
$t
(
"financing.错误"
),
});
message
:
this
.
$t
(
"financing.查询结束日期必输!"
),
return
;
});
}
return
;
}
this
.
load
=
true
;
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel/query"
,
{
...
this
.
model
.
rcvp
,
dir
:
"<"
,
querytyp
:
"rcvblk"
,
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
;
list
.
forEach
(
v
=>
{
let
rtnmsg
=
await
Api
.
post
(
"/frontend/msgsel/query"
,
{
for
(
let
i
in
sta1
)
{
...
this
.
model
.
rcvp
,
if
(
sta1
[
i
].
value
==
v
.
sta
)
{
dir
:
"<"
,
v
.
sta
=
sta1
[
i
].
label
;
querytyp
:
"rcvblk"
,
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.服务请求失败!"
),
});
}
}
this
.
load
=
false
;
}
},
})
async
handleReset
()
{
this
.
stmData
.
data
=
list
;
this
.
model
.
rcvp
.
msgtyp
=
""
;
this
.
pagination
=
{
this
.
model
.
rcvp
.
rcvdatsta
=
new
Date
();
pageNum
:
rtnmsg
.
data
.
pageNum
||
1
,
this
.
model
.
rcvp
.
rcvdatend
=
new
Date
();
pageSize
:
rtnmsg
.
data
.
pageSize
||
10
,
this
.
model
.
rcvp
.
subtyp
=
""
;
total
:
parseInt
(
rtnmsg
.
data
.
total
),
this
.
model
.
rcvp
.
sndbak
=
""
;
};
this
.
model
.
rcvp
.
revbak
=
""
;
}
else
{
this
.
model
.
rcvp
.
actbic
=
""
;
this
.
$notify
.
error
({
this
.
model
.
rcvp
.
othref
=
""
;
title
:
this
.
$t
(
"financing.错误"
),
this
.
model
.
rcvp
.
ownref
=
""
;
message
:
this
.
$t
(
"financing.服务请求失败!"
),
this
.
model
.
rcvp
.
cur
=
""
;
});
this
.
model
.
rcvp
.
act
=
""
;
}
this
.
model
.
rcvp
.
amtmin
=
""
;
this
.
load
=
false
;
this
.
model
.
rcvp
.
amtmax
=
""
;
},
this
.
model
.
rcvp
.
chnipt
=
""
;
async
handleReset
()
{
this
.
model
.
rcvp
.
rspsta
=
""
;
this
.
model
.
rcvp
.
msgtyp
=
""
;
this
.
model
.
rcvp
.
dtlchg
=
""
;
this
.
model
.
rcvp
.
rcvdatsta
=
new
Date
();
this
.
model
.
rcvp
.
sta
=
""
;
this
.
model
.
rcvp
.
rcvdatend
=
new
Date
();
this
.
model
.
rcvp
.
gpi
=
""
;
this
.
model
.
rcvp
.
subtyp
=
""
;
},
this
.
model
.
rcvp
.
sndbak
=
""
;
// pageSize改变
this
.
model
.
rcvp
.
revbak
=
""
;
handleSizeChange
(
val
)
{
this
.
model
.
rcvp
.
actbic
=
""
;
this
.
pagination
.
pageNum
=
1
;
this
.
model
.
rcvp
.
othref
=
""
;
this
.
pagination
.
pageSize
=
val
;
this
.
model
.
rcvp
.
ownref
=
""
;
this
.
handleSearch
();
this
.
model
.
rcvp
.
cur
=
""
;
},
this
.
model
.
rcvp
.
act
=
""
;
// 页码改变
this
.
model
.
rcvp
.
amtmin
=
""
;
handleCurrentChange
(
val
)
{
this
.
model
.
rcvp
.
amtmax
=
""
;
this
.
pagination
.
pageNum
=
val
;
this
.
model
.
rcvp
.
chnipt
=
""
;
this
.
handleSearch
();
this
.
model
.
rcvp
.
rspsta
=
""
;
},
this
.
model
.
rcvp
.
dtlchg
=
""
;
handleSelectionChange
(
val
){
this
.
model
.
rcvp
.
sta
=
""
;
this
.
multipleSelection
=
val
;
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/Rcvselblk/views/Schpnl.vue
View file @
3d71feab
...
@@ -7,11 +7,19 @@
...
@@ -7,11 +7,19 @@
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-col
:span=
"8"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文标准"
prop=
"msgtyp"
style=
"width: 100%"
>
<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>
</c-select>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"8"
>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文类型"
prop=
"subtype"
style=
"width: 100%"
>
<el-select
v-model=
"model.rcvp.subtyp"
placeholder=
"请选择报文类型"
>
<el-option
v-for=
"code in subtypCodes"
:key=
"code.label"
:label=
"code.label"
:value=
"code.value"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"开立日期"
prop=
"rcvdatsta"
style=
"width: 100%"
>
<el-form-item
label=
"开立日期"
prop=
"rcvdatsta"
style=
"width: 100%"
>
<c-col
:span=
"11"
>
<c-col
:span=
"11"
>
<c-date-picker
type=
"date"
v-model=
"model.rcvp.rcvdatsta"
style=
"width: 100%"
></c-date-picker>
<c-date-picker
type=
"date"
v-model=
"model.rcvp.rcvdatsta"
style=
"width: 100%"
></c-date-picker>
...
@@ -24,14 +32,6 @@
...
@@ -24,14 +32,6 @@
</c-col>
</c-col>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"8"
>
<el-form-item
label=
"报文类型"
prop=
"subtype"
style=
"width: 100%"
>
<el-select
v-model=
"model.rcvp.subtyp"
placeholder=
"请选择报文类型"
>
<el-option
v-for=
"code in subtypCodes"
:key=
"code.label"
:label=
"code.label"
:value=
"code.value"
>
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</el-row>
</el-row>
<!-- 可控展示区 -->
<!-- 可控展示区 -->
...
@@ -306,23 +306,7 @@ export default {
...
@@ -306,23 +306,7 @@ export default {
}
}
},
},
watch
:
{
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
:
{
methods
:
{
dbClickRow
(
row
)
{
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