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
ec328461
Commit
ec328461
authored
Jun 29, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预算汇总审批部分
parent
aa49c528
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
410 additions
and
2 deletions
+410
-2
mxsx.js
src/api/sbysjsp/mxsx.js
+16
-1
edit.vue
src/views/sbysjsp/mxsx/edit.vue
+1
-1
index.vue
src/views/sbysjsp/mxsx/index.vue
+43
-0
sdxx.vue
src/views/sbysjsp/mxsx/sdxx.vue
+135
-0
tzys.vue
src/views/sbysjsp/mxsx/tzys.vue
+137
-0
zbjewh.vue
src/views/sbysjsp/mxsx/zbjewh.vue
+78
-0
No files found.
src/api/sbysjsp/mxsx.js
View file @
ec328461
...
@@ -43,6 +43,21 @@ export function mxsxmx(query) {
...
@@ -43,6 +43,21 @@ export function mxsxmx(query) {
data
:
query
||
{}
data
:
query
||
{}
})
})
}
}
/* 调整预算保存 */
export
function
tzyssq
(
query
)
{
return
request
({
url
:
'/budgetms/yssqsp/tzyssq'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 审定信息 */
export
function
sdyssq
(
query
)
{
return
request
({
url
:
'/budgetms/yssqsp/sdyssq'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/sbysjsp/mxsx/edit.vue
View file @
ec328461
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
mainMethod
:
doQuery1
,
mainMethod
:
doQuery1
,
/* */
/* */
spanArr
:[],
spanArr
:[],
baseUrl
:
'budgetms/yssq/
edit
'
,
baseUrl
:
'budgetms/yssq/
mxsx
'
,
/* 弹框管理 */
/* 弹框管理 */
/* 额外初始化,根据需求*/
/* 额外初始化,根据需求*/
...
...
src/views/sbysjsp/mxsx/index.vue
View file @
ec328461
<
template
>
<
template
>
<div
class=
"min_full"
>
<div
class=
"min_full"
>
<!-- 页面-->
<Tzys
:app=
'this'
v-if=
"showDialog&&DialogName=='tzys'"
></Tzys>
<Sdxx
:app=
'this'
v-if=
"showDialog&&DialogName=='sdxx'"
></Sdxx>
<Zbjewh
:app=
'this'
v-if=
"showDialog&&DialogName=='zbjewh'"
></Zbjewh>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
...
@@ -96,6 +100,9 @@
...
@@ -96,6 +100,9 @@
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<WorkFlowButton
:app=
'app'
/>
<WorkFlowButton
:app=
'app'
/>
<AttachFileShow
:app=
'app'
/>
<AttachFileShow
:app=
'app'
/>
<el-button
size=
'mini'
@
click=
"tzys()"
type=
"primary"
>
调整预算
</el-button>
<el-button
size=
'mini'
@
click=
"sdxx()"
type=
"primary"
>
审定信息
</el-button>
<el-button
size=
'mini'
@
click=
"zbjewh()"
type=
"primary"
>
中标金额维护
</el-button>
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<!-- 额外按钮-->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 表头设置 -->
...
@@ -121,6 +128,9 @@
...
@@ -121,6 +128,9 @@
}
from
'@/api/sbysjsp/mxsx.js'
;
}
from
'@/api/sbysjsp/mxsx.js'
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
Tzys
from
'./tzys'
import
Sdxx
from
'./sdxx'
import
Zbjewh
from
'./zbjewh'
import
{
import
{
tableMixin
tableMixin
}
from
'common'
}
from
'common'
...
@@ -202,6 +212,36 @@
...
@@ -202,6 +212,36 @@
}
}
},
},
methods
:
{
methods
:
{
/* 调整预算*/
tzys
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
showDialog
=
true
this
.
DialogName
=
'tzys'
this
.
DialogTitle
=
'调整预算'
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
sdxx
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
showDialog
=
true
this
.
DialogName
=
'sdxx'
this
.
DialogTitle
=
'审定信息'
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
zbjewh
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
showDialog
=
true
this
.
DialogName
=
'zbjewh'
this
.
DialogTitle
=
'中标金额维护'
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
/* 基础查询*/
/* 基础查询*/
query
:
doQuery
,
query
:
doQuery
,
/* 基础增*/
/* 基础增*/
...
@@ -216,6 +256,9 @@
...
@@ -216,6 +256,9 @@
},
},
components
:
{
components
:
{
Edit
,
Edit
,
Tzys
,
Sdxx
,
Zbjewh
}
}
}
}
</
script
>
</
script
>
...
...
src/views/sbysjsp/mxsx/sdxx.vue
0 → 100644
View file @
ec328461
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: auto;"
>
<!-- -->
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="审定成本预算科目" ref="sdfyxmid" prop="sdfyxmid">
<RelSelect
style=
"width: 100%;"
src=
'budgetms/fyxm/query'
filterable
clearable
:match=
"
{value:'id',label:'showname'}" v-model='form.sdfyxmid'>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="审定需求事项" ref="sdfysx" prop="sdfysx">
<RelSelect
linkage
:linkParams=
"
{flbm:form.sdfyxmid}" style="width: 100%;" src='budgetms/fysx/query' filterable clearable
:match="{value:'id',label:'csyj'}" v-model='form.sdfysx'>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="审定含税金额" ref="sdxqje" prop="sdxqje">
<el-input
type=
"number"
v-model=
"form.sdxqje"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"税率(%)"
ref=
"sl"
prop=
"sl"
>
<el-input
type=
"number"
v-model=
"form.sl"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"审定不含税金额"
ref=
"wssdxqje"
prop=
"wssdxqje"
>
<el-input
type=
"number"
v-model=
"form.wssdxqje"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"项目编码"
ref=
"sdxmid"
prop=
"sdxmid"
>
<RelSelect
:params=
'
{
showThisYear:"Y",tybz:"N"
}' style="width: 100%;" src='budgetms/sggcxm/query' filterable clearable
:match="{value:'id',label:'showname'}" v-model='form.sdxmid'>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"中标不含税金额"
ref=
"sdextra1"
prop=
"sdextra1"
>
<el-input
type=
"number"
v-model=
"form.sdextra1"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"审定描述"
ref=
"sdextra2"
prop=
"sdextra2"
>
<el-input
v-model=
"form.sdextra2"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</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=
"confirm()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
import
{
sdyssq
}
from
'@/api/sbysjsp/mxsx.js'
;
export
default
{
mixins
:
[
editMixin
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
this
.
form
=
this
.
app
.
singleItem
},
data
()
{
return
{
form
:
{
sdfyxmid
:
''
,
fysx
:
''
,
sdxqje
:
''
,
sl
:
''
,
wssdxqje
:
''
,
sdextra2
:
''
,
sdxmid
:
''
,
sdextra1
:
''
,
}
}
},
methods
:
{
confirm
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
params
=
this
.
form
params
.
flag
=
'U'
sdyssq
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'调整成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
[
'TablePager'
].
pageQuery
()
}
})
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
}
});
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/sbysjsp/mxsx/tzys.vue
0 → 100644
View file @
ec328461
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: auto;"
>
<!-- -->
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="成本预算科目" ref="fyxmid" prop="fyxmid">
<RelSelect
style=
"width: 100%;"
src=
'budgetms/fyxm/query'
filterable
clearable
:match=
"
{value:'id',label:'showname'}" v-model='form.fyxmid'>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="需求事项" ref="fysx" prop="fysx">
<RelSelect
linkage
:linkParams=
"
{flbm:form.fyxmid}" style="width: 100%;" src='budgetms/fysx/query' filterable clearable
:match="{value:'id',label:'xqsx'}" v-model='form.fysx'>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="测算依据" ref="csyj" prop="csyj">
<el-input
v-model=
"form.csyj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="含税金额" ref="xqje" prop="xqje">
<el-input
v-model=
"form.xqje"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"税率(%)"
ref=
"sl"
prop=
"sl"
>
<el-input
v-model=
"form.sl"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"不含税金额"
ref=
"wsxqje"
prop=
"wsxqje"
>
<el-input
v-model=
"form.wsxqje"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="实施责任人" ref="zrr" prop="zrr">
<el-input
v-model=
"form.zrr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</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=
"confirm()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
import
{
tzyssq
}
from
'@/api/sbysjsp/mxsx.js'
;
export
default
{
mixins
:
[
editMixin
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
this
.
form
=
this
.
app
.
singleItem
},
data
()
{
return
{
form
:
{
fyxmid
:
''
,
fysx
:
''
,
csyj
:
''
,
xqje
:
''
,
sl
:
''
,
wsxqje
:
''
,
zrr
:
''
,
bz
:
''
}
}
},
methods
:
{
confirm
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
params
=
this
.
form
params
.
flag
=
'U'
tzyssq
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'调整成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
[
'TablePager'
].
pageQuery
()
}
})
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
}
});
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/sbysjsp/mxsx/zbjewh.vue
0 → 100644
View file @
ec328461
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: auto;"
>
<!-- -->
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"中标金额维护"
ref=
"sdextra1"
prop=
"sdextra1"
>
<el-input
type=
"number"
v-model=
"form.sdextra1"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</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=
"confirm()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
import
{
sdyssq
}
from
'@/api/sbysjsp/mxsx.js'
;
export
default
{
mixins
:
[
editMixin
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
this
.
form
=
this
.
app
.
singleItem
},
data
()
{
return
{
form
:
{
sdextra1
:
''
}
}
},
methods
:
{
confirm
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
params
=
{}
params
.
id
=
this
.
form
.
id
params
.
sdextra1
=
this
.
form
.
sdextra1
params
.
flag
=
'U'
sdyssq
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'调整成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
$refs
[
'TablePager'
].
pageQuery
()
}
})
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
}
});
}
}
}
</
script
>
<
style
scoped
>
</
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