Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gavel-hafms-vue
Project
Project
Details
Activity
Releases
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
李苏
gavel-hafms-vue
Commits
3bdb8700
Commit
3bdb8700
authored
Dec 07, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分字段展示
parent
4ff0159a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
360 additions
and
296 deletions
+360
-296
index.vue
src/views/sbysjsp/yssq/index.vue
+178
-146
index.vue
src/views/sbysjsp/yssqtz/index.vue
+182
-150
No files found.
src/views/sbysjsp/yssq/index.vue
View file @
3bdb8700
...
...
@@ -7,13 +7,13 @@
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.start'
></el-date-picker>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.start'
></el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
截止日期:
</span>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.end'
></el-date-picker>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.end'
></el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
...
...
@@ -23,13 +23,13 @@
:match=
"
{value:'id',label:'name'}" v-model='queryParams.flid'>
</RelSelect>
</div>
</el-col>
<!--
<el-col
:span=
"6"
class=
"search-col"
>
-->
<!--
<div
class=
"search-item"
>
-->
<!--
<span
class=
"search-span"
>
状态:
</span>
-->
<!--
<RelSelect
style=
"width: 100%;"
src=
'hafms/yssq/init/zt'
filterable
clearable--
>
<!-- :match="
{value:'id',label:'name'}" v-model='queryParams.zt'>
</RelSelect>
-->
<!--
</div>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"6"
class=
"search-col"
>
-->
<!--
<div
class=
"search-item"
>
-->
<!--
<span
class=
"search-span"
>
状态:
</span>
-->
<!--
<RelSelect
style=
"width: 100%;"
src=
'hafms/yssq/init/zt'
filterable
clearable--
>
<!-- :match="
{value:'id',label:'name'}" v-model='queryParams.zt'>
</RelSelect>
-->
<!--
</div>
-->
<!--
</el-col>
-->
</el-row>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
...
...
@@ -64,7 +64,7 @@
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<!--
<el-button
size=
'mini'
@
click=
"yssqsp()"
type=
"primary"
>
预算申请审批
</el-button>
-->
<!--
<el-button
size=
'mini'
@
click=
"yssqsp()"
type=
"primary"
>
预算申请审批
</el-button>
-->
<!--
<PageDetail
@
created=
'created'
:page=
'page'
style=
"margin-left: 10px;"
/>
-->
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<!-- 额外按钮-->
...
...
@@ -76,8 +76,7 @@
<!-- 多选数组转 -->
<TablePager
:multipleTrans=
"[
'sjbmids','chooseBmids'
]"
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
]"
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
...
...
@@ -107,7 +106,7 @@
},
data
()
{
return
{
page
:
yssqtz
,
page
:
yssqtz
,
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
...
...
@@ -117,13 +116,13 @@
baseUrl
:
'hafms/yssq'
,
/* 查询参数*/
queryParams
:
{
start
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
start
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
end
:
new
Date
().
getTime
(),
flid
:
''
,
zt
:
''
,
djid
:
''
,
sjbmids
:[],
chooseBmids
:[]
flid
:
''
,
zt
:
''
,
djid
:
''
,
sjbmids
:
[],
chooseBmids
:
[]
},
/* 表格标题对应参数*/
tableTitle
:
[
...
...
@@ -133,28 +132,62 @@
// label: 'name',
// value: 'id'
// }},
{
title
:
"申请单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"申请单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
100
},
// {title: "公司编码", field: "sjbmcode", fieldType: "ftString",width:140},
{
title
:
"公司名称"
,
field
:
"sjbmName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"公司名称"
,
field
:
"sjbmName"
,
fieldType
:
"ftString"
,
width
:
140
},
// {title: "部门编码", field: "bmcode", fieldType: "ftString",width:140},
{
title
:
"部门名称"
,
field
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"填报日期"
,
field
:
"tbrq"
,
fieldType
:
"ftDate"
},
{
title
:
"部门名称"
,
field
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"填报日期"
,
field
:
"tbrq"
,
fieldType
:
"ftDate"
},
// {title: "填报人编码", field: "tbrid", fieldType: "ftString",width:192},
{
title
:
"填报人"
,
field
:
"tbr"
,
fieldType
:
"ftString"
,
width
:
180
},
// {title: "申请金额", field: "sqje", fieldType: "float"},
// {title: "联系电话", field: "lxfs1", fieldType: "ftString",width:200},
{
title
:
"填报人"
,
field
:
"tbr"
,
fieldType
:
"ftString"
,
width
:
180
},
{
title
:
"申请金额(万元)"
,
field
:
"sqje"
,
fieldType
:
"float"
,
width
:
150
},
{
title
:
"联系电话"
,
field
:
"lxfs1"
,
fieldType
:
"ftString"
,
width
:
200
}
// {title: "内部短号", field: "lxfs2", fieldType: "ftString",width:120}
]
}
},
methods
:
{
created
(
vdom
){
vdom
.
queryParams
.
djid
=
123
created
(
vdom
)
{
vdom
.
queryParams
.
djid
=
123
},
yssqsp
(){
yssqsp
()
{
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
submit
(
this
.
singleItem
).
then
(
res
=>
{
if
(
res
.
success
)
{
submit
(
this
.
singleItem
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
);
this
.
$refs
[
'TablePager'
].
pageQuery
()
}
...
...
@@ -173,7 +206,7 @@
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
queryDetail
:
yssqmx
queryDetail
:
yssqmx
},
components
:
{
Edit
,
...
...
@@ -182,8 +215,7 @@
</
script
>
<
style
scoped
>
.search-col
{
.search-col
{
max-width
:
350px
;
}
</
style
>
\ No newline at end of file
src/views/sbysjsp/yssqtz/index.vue
View file @
3bdb8700
...
...
@@ -7,13 +7,13 @@
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.start'
></el-date-picker>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.start'
></el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
截止日期:
</span>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.end'
></el-date-picker>
<el-date-picker
value-format=
"timestamp"
v-model=
'queryParams.end'
></el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
...
...
@@ -23,13 +23,13 @@
:match=
"
{value:'id',label:'name'}" v-model='queryParams.flid'>
</RelSelect>
</div>
</el-col>
<!--
<el-col
:span=
"6"
class=
"search-col"
>
-->
<!--
<div
class=
"search-item"
>
-->
<!--
<span
class=
"search-span"
>
状态:
</span>
-->
<!--
<RelSelect
style=
"width: 100%;"
src=
'hafms/yssq/init/zt'
filterable
clearable--
>
<!-- :match="
{value:'id',label:'name'}" v-model='queryParams.zt'>
</RelSelect>
-->
<!--
</div>
-->
<!--
</el-col>
-->
<!--
<el-col
:span=
"6"
class=
"search-col"
>
-->
<!--
<div
class=
"search-item"
>
-->
<!--
<span
class=
"search-span"
>
状态:
</span>
-->
<!--
<RelSelect
style=
"width: 100%;"
src=
'hafms/yssq/init/zt'
filterable
clearable--
>
<!-- :match="
{value:'id',label:'name'}" v-model='queryParams.zt'>
</RelSelect>
-->
<!--
</div>
-->
<!--
</el-col>
-->
</el-row>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
...
...
@@ -77,8 +77,7 @@
<!-- 多选数组转 -->
<TablePager
:multipleTrans=
"[
'sjbmids','chooseBmids'
]"
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
]"
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
...
...
@@ -102,7 +101,7 @@
}
from
'common'
import
cycle
from
'common/src/mixin/cycle.js'
export
default
{
mixins
:
[
tableMixin
,
cycle
],
mixins
:
[
tableMixin
,
cycle
],
/* 初始额外赋值*/
async
mounted
()
{
console
.
log
(
'pageQuery'
)
...
...
@@ -120,13 +119,13 @@
baseUrl
:
'hafms/ystz'
,
/* 查询参数*/
queryParams
:
{
start
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
start
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
end
:
new
Date
().
getTime
(),
flid
:
''
,
zt
:
''
,
djid
:
''
,
sjbmids
:[],
chooseBmids
:[]
flid
:
''
,
zt
:
''
,
djid
:
''
,
sjbmids
:
[],
chooseBmids
:
[]
},
/* 表格标题对应参数*/
tableTitle
:
[
...
...
@@ -136,16 +135,50 @@
// label: 'name',
// value: 'id'
// }},
{
title
:
"申请单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
100
},
{
title
:
"申请单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
100
},
// {title: "公司编码", field: "sjbmcode", fieldType: "ftString",width:140},
{
title
:
"公司名称"
,
field
:
"sjbmName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"公司名称"
,
field
:
"sjbmName"
,
fieldType
:
"ftString"
,
width
:
140
},
// {title: "部门编码", field: "bmcode", fieldType: "ftString",width:140},
{
title
:
"部门名称"
,
field
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"填报日期"
,
field
:
"tbrq"
,
fieldType
:
"ftDate"
},
{
title
:
"部门名称"
,
field
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"填报日期"
,
field
:
"tbrq"
,
fieldType
:
"ftDate"
},
// {title: "填报人编码", field: "tbrid", fieldType: "ftString",width:192},
{
title
:
"填报人"
,
field
:
"tbr"
,
fieldType
:
"ftString"
,
width
:
180
},
// {title: "申请金额", field: "sqje", fieldType: "float"},
// {title: "联系电话", field: "lxfs1", fieldType: "ftString",width:200},
{
title
:
"填报人"
,
field
:
"tbr"
,
fieldType
:
"ftString"
,
width
:
180
},
{
title
:
"申请金额(万元)"
,
field
:
"sqje"
,
fieldType
:
"float"
,
width
:
150
},
{
title
:
"联系电话"
,
field
:
"lxfs1"
,
fieldType
:
"ftString"
,
width
:
200
},
// {title: "内部短号", field: "lxfs2", fieldType: "ftString",width:120}
]
}
...
...
@@ -154,10 +187,10 @@
dcmb
()
{
download
(
'hafms/yssq/ystz/model/export'
,
{},
'预算申请导出.xlsx'
)
},
yssqsp
(){
yssqsp
()
{
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
submit
(
this
.
singleItem
).
then
(
res
=>
{
if
(
res
.
success
)
{
submit
(
this
.
singleItem
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
);
this
.
$refs
[
'TablePager'
].
pageQuery
()
}
...
...
@@ -176,7 +209,7 @@
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
queryDetail
:
ystzmx
queryDetail
:
ystzmx
},
components
:
{
Edit
,
...
...
@@ -185,8 +218,7 @@
</
script
>
<
style
scoped
>
.search-col
{
.search-col
{
max-width
:
350px
;
}
</
style
>
\ No newline at end of file
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