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
f8204f15
Commit
f8204f15
authored
Dec 13, 2022
by
Wuyuqiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业务查询工具条
parent
5a216a30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
149 additions
and
2 deletions
+149
-2
trn.js
src/service/test/trn.js
+6
-0
index.vue
src/widget/Business/index.vue
+143
-2
No files found.
src/service/test/trn.js
0 → 100644
View file @
f8204f15
import
Api
from
"~/service/Api"
export
function
queryByPage
(
data
)
{
return
Api
.
post
(
"/manager/trn/queryByPage"
,
data
)
}
src/widget/Business/index.vue
View file @
f8204f15
<
template
>
<div></div>
<div>
<el-form
:model=
"model"
ref=
"modelForm"
label-width=
"100px"
label-position=
"right"
size=
"small"
>
<c-col
:span=
"8"
class=
"col-left"
>
<c-col
:span=
"24"
>
<!-- Account No. -->
<el-form-item
label=
"业务类型"
prop=
"objtyp"
>
<c-select
v-model=
"model.objtyp"
placeholder=
"请输入业务类型"
:code=
"getCodesByKey('objtyp')"
>
</c-select>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<!-- Holding Party -->
<el-form-item
label=
"业务编号"
prop=
"ownref"
>
<c-input
v-model=
"model.ownref"
placeholder=
"请输入业务编号"
>
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"8"
class=
"col-left col-right"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"开始时间"
prop=
"beginDate"
style=
"width: 100%"
>
<c-date-picker
type=
"date"
v-model=
"model.beginDate"
style=
"width: 95%"
placeholder=
"请输入开始时间"
></c-date-picker>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"结束时间"
prop=
"endDate"
style=
"width: 100%"
>
<c-date-picker
type=
"date"
v-model=
"model.endDate"
style=
"width: 95%"
placeholder=
"请输入结束时间"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"8"
class=
"col-right"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"创建用户 "
prop=
"iniusr"
>
<c-input
v-model=
"model.iniusr"
maxlength=
"34"
placeholder=
"请输入创建用户"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"业务状态"
prop=
"relflg"
>
<c-select
v-model=
"model.relflg"
style=
"width: 100%"
placeholder=
"请输入业务状态"
:code=
"getCodesByKey('relflg')"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
style=
"text-align: right"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"small"
@
click=
"doSearch()"
>
查询
</el-button>
</c-col>
</el-form>
<c-col
:span=
"24"
>
<c-paging-table
:data=
"tableData"
:columns=
"tableColumns"
:pageNumber=
"model.pageNum"
:pageSize=
"model.pageSize"
:total=
"model.total"
v-on:queryFunc=
"queryFunc"
:border=
"true"
>
</c-paging-table>
</c-col>
</div>
</
template
>
<
script
>
import
codes
from
"~/config/CodeTable"
;
import
{
queryByPage
}
from
"~/service/test/trn.js"
;
/**
* 业务查询
*/
export
default
{
name
:
'BusinessQuery'
name
:
'BusinessQuery'
,
data
()
{
return
{
tableData
:
[],
tableColumns
:
[
{
label
:
"业务表名称"
,
prop
:
"objtyp"
,
width
:
"200"
},
{
label
:
"交易名"
,
prop
:
"inifrm"
,
width
:
"200"
},
{
label
:
"交易名"
,
prop
:
"ininam"
,
width
:
"100"
},
{
label
:
"业务编号"
,
prop
:
"ownref"
,
width
:
"100"
},
{
label
:
"创建时间"
,
prop
:
"INIDATTIM"
,
width
:
"200"
},
{
label
:
"创建用户"
,
prop
:
"iniusr"
,
width
:
"200"
},
{
label
:
"业务状态"
,
prop
:
"relflg"
,
width
:
"200"
},
{
label
:
"交易对象描述"
,
prop
:
"objnam"
,
width
:
"200"
},
],
model
:
{
// trn,查询条件的字段
objtyp
:
""
,
ownref
:
""
,
beginDate
:
""
,
endDate
:
""
,
iniusr
:
""
,
relflg
:
""
,
page
:
1
,
pageSize
:
5
,
},
};
},
methods
:
{
handleReset
()
{
this
.
$refs
.
modelForm
.
resetFields
();
},
doSearch
()
{
queryByPage
(
this
.
model
).
then
((
res
)
=>
{
const
list
=
res
.
list
;
this
.
tableData
=
list
;
this
.
model
.
page
=
res
.
pageNumber
;
this
.
model
.
pageSize
=
res
.
pageSize
;
this
.
model
.
total
=
res
.
total
;
});
},
queryFunc
(
pageNumber
,
pageSize
)
{
this
.
model
.
page
=
pageNumber
;
this
.
model
.
pageSize
=
pageSize
;
this
.
doSearch
();
},
getCodesByKey
(
key
)
{
return
codes
[
key
]
??
[];
},
},
}
</
script
>
...
...
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