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
aa49c528
Commit
aa49c528
authored
Jun 28, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预算申请联动
明细事项部分 功能
parent
96116852
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
612 additions
and
281 deletions
+612
-281
mxsx.js
src/api/sbysjsp/mxsx.js
+18
-3
dialog.vue
src/views/sbysjsp/mxsx/dialog.vue
+0
-45
edit.vue
src/views/sbysjsp/mxsx/edit.vue
+274
-37
index.vue
src/views/sbysjsp/mxsx/index.vue
+126
-59
treeIndex.vue
src/views/sbysjsp/mxsx/treeIndex.vue
+0
-136
xzsxList.vue
src/views/sbysjsp/mxsx/xzsxList.vue
+187
-0
index.vue
src/views/sbysjsp/yssq/index.vue
+7
-1
No files found.
src/api/sbysjsp/mxsx.js
View file @
aa49c528
...
@@ -8,26 +8,41 @@ export function doQuery(query) {
...
@@ -8,26 +8,41 @@ export function doQuery(query) {
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
export
function
doQuery1
(
query
)
{
return
request
({
url
:
'/budgetms/yssq/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
export
function
doAdd
(
query
)
{
return
request
({
return
request
({
url
:
'/budgetms/yssq
sp
/add'
,
url
:
'/budgetms/yssq/add'
,
method
:
'post'
,
method
:
'post'
,
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
export
function
doUpdate
(
query
)
{
export
function
doUpdate
(
query
)
{
return
request
({
return
request
({
url
:
'/budgetms/yssq
sp
/update'
,
url
:
'/budgetms/yssq/update'
,
method
:
'post'
,
method
:
'post'
,
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
export
function
doDelete
(
query
)
{
export
function
doDelete
(
query
)
{
return
request
({
return
request
({
url
:
'/budgetms/yssq
sp
/delete'
,
url
:
'/budgetms/yssq/delete'
,
method
:
'post'
,
method
:
'post'
,
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
export
function
mxsxmx
(
query
)
{
return
request
({
url
:
'/budgetms/yssqmx/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/sbysjsp/mxsx/dialog.vue
deleted
100644 → 0
View file @
96116852
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
DialogTitle:'新增',
showDialog:false,
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/sbysjsp/mxsx/edit.vue
View file @
aa49c528
This diff is collapsed.
Click to expand it.
src/views/sbysjsp/mxsx/index.vue
View file @
aa49c528
This diff is collapsed.
Click to expand it.
src/views/sbysjsp/mxsx/treeIndex.vue
deleted
100644 → 0
View file @
96116852
<
template
>
<div
style=
"display: flex;"
>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;"
>
<TreeBase
:dgtype=
'5'
:app=
'app'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"width: calc(100% - 200px)"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
信息:
</span>
<el-input
v-model=
"queryParams.info"
></el-input>
</div>
</el-col>
<el-col
:span=
"4"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
选择:
</span>
<RelSelect
style=
"width: 100%;"
src=
'jcsj/common/bm/queryGs'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.gsid'>
</RelSelect>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<ToolButton
:app=
'app'
></ToolButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
apiTreeQuery
// doQuery,
// doAdd,
// doUpdate,
// doDelete
}
from
'common/src/api/documentManagement/folder.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'功能名称'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/* 树的标题 */
treeTitle
:
'文件管理'
,
treeDefaultProps
:
{
/* 构建递归的children */
children
:
'children'
,
/* 展示的参数 */
label
:
'name'
,
/* 父id */
fatherId
:
'pid'
,
/* 子id */
sonId
:
'id'
,
/* 无父节点构建root 的属性 type=5生效 */
rootName
:
"根节点"
,
rootId
:
'root'
},
treeQueryParams
:
{
},
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'请填写'
,
/* 查询参数*/
queryParams
:
{
info
:
''
,
gsid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
}]
}
},
methods
:
{
selectedTree
(
e
)
{
console
.
log
(
e
)
// this.queryParams.bmid=e.id||'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
// /* 基础查询*/
query
:
apiTreeQuery
,
// /* 基础增*/
// apiAdd: doAdd,
// /* 基础更新*/
// apiUpdate: doUpdate,
// /* 删除操作*/
// apiDelete: doDelete,
apiTreeQuery
:
apiTreeQuery
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/views/sbysjsp/mxsx/xzsxList.vue
0 → 100644
View file @
aa49c528
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 500px;padding-left: 35px;"
>
<!-- 开始 -->
<div
style=
"display: flex;height: 500px;width: 100%;"
>
<!--
<Power
:app=
'app'
v-if=
"(showDialog&&DialogName=='doPower')"
></Power>
<SetRole
:app=
'app'
v-if=
"(showDialog&&DialogName=='SetRole')"
></SetRole>
<CopyPower
:app=
'app'
v-if=
"(showDialog&&DialogName=='copyPower')"
></CopyPower>
-->
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;overflow: hidden;height: 500px;"
>
<TreeBase
style=
"height: 500px;"
:dgtype=
'3'
:app=
'this'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"width: calc(100% - 200px);height: 500px;"
>
<!-- 查询条件-->
<div
class=
"search"
>
<SearchButton
:app=
'this'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
条件:
</span>
<el-input
v-model=
"queryParams.condition"
size=
"small"
class=
"search-input"
></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<!-- 权限-->
<!--
<el-button
size=
'mini'
@
click
.
native=
"setLogin"
class=
"margin-right-10"
type=
"primary"
>
切换登录状态
</el-button>
<el-button
size=
'mini'
@
click
.
native=
"resetPassWord"
style=
"margin-left: 0px;"
type=
"primary"
>
重置密码
</el-button>
<el-button
size=
'mini'
@
click
.
native=
"setRole"
style=
"margin-left: 10px;"
type=
"primary"
>
分配角色
</el-button>
-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
showSelection
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</div>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
queryroot
,
query
}
from
'@/api/sbysjsp/yssq.js'
;
import
{
tableMixin_noapp
}
from
'common'
export
default
{
mixins
:
[
tableMixin_noapp
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
name
:
'wlList'
,
data
()
{
return
{
treeTitle
:
'选择事项'
,
treeDefaultProps
:
{
children
:
'children'
,
label
:
'name'
},
queryParams
:
{
flbm
:
''
,
condition
:
''
},
treeQueryParams
:
{
},
/* 表格标题对应参数*/
tableTitle
:
[{
label
:
"成本预算科目"
,
prop
:
"showname"
,
fieldType
:
"ftString"
,
width
:
140
},
{
label
:
"需求事项"
,
prop
:
"xqsx"
,
fieldType
:
"ftString"
,
width
:
140
},
{
label
:
"税率(%)"
,
prop
:
"sl"
,
fieldType
:
"ftString"
,
width
:
140
},
{
label
:
"实施责任人"
,
prop
:
"zrr"
,
fieldType
:
"ftString"
,
width
:
140
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
140
},
{
label
:
"需求事项"
,
prop
:
"xqsx"
,
fieldType
:
"ftString"
,
width
:
140
},
{
label
:
"维护人"
,
prop
:
"whr"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
}
]
}
},
watch
:
{
},
methods
:
{
apiTreeQuery
:
queryroot
,
// /* 基础查询*/
query
:
query
,
// /* 基础增*/
// apiAdd: AddUser,
// /* 基础更新*/
// apiUpdate: UpdateUser,
// /* 删除操作*/
// apiDelete: DeleteUser,
selectedTree
(
e
)
{
this
.
queryParams
.
flbm
=
e
.
id
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
save
()
{
/* 保存操作 */
const
{
length
}
=
this
.
selectList
if
(
length
==
0
)
{
this
.
$warning
(
'请至少选中一条进行保存'
)
}
else
{
/* 删除id */
let
selectList
=
this
.
selectList
.
map
(
item
=>
{
item
.
fysx
=
item
.
id
item
.
sdfyxmid
=
item
.
fyxmid
delete
item
.
id
item
.
fysxdesc
=
item
.
xqsx
return
item
})
this
.
app
.
formDetail
=
[...
this
.
app
.
formDetail
,
...
selectList
]
this
.
app
.
showDialog
=
false
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/sbysjsp/yssq/index.vue
View file @
aa49c528
...
@@ -49,7 +49,9 @@
...
@@ -49,7 +49,9 @@
<el-col
:span=
"8"
class=
"search-col"
>
<el-col
:span=
"8"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
申请部门:
</span>
<span
class=
"search-span"
>
申请部门:
</span>
<RelSelect
collapse-tags
multiple
style=
"width: 100%;"
src=
'budgetms/common/bm/query'
filterable
clearable
<RelSelect
linkage
:linkParams=
"
{sjbmids:queryParams.sjbmids}" :params="{
pids:queryParams.sjbmids.join()
}" collapse-tags multiple style="width: 100%;" src='budgetms/common/bm/query' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.chooseBmids'>
</RelSelect>
:match="{value:'id',label:'bmmc'}" v-model='queryParams.chooseBmids'>
</RelSelect>
</div>
</div>
</el-col>
</el-col>
...
@@ -99,6 +101,7 @@
...
@@ -99,6 +101,7 @@
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -175,5 +178,8 @@
...
@@ -175,5 +178,8 @@
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.search-col
{
max-width
:
350px
;
}
</
style
>
</
style
>
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