Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
首开风险隐患双控平台
BCDH-APP
Commits
38c4edca
Commit
38c4edca
authored
Oct 29, 2021
by
王李辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整改审批
parent
7e679160
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
251 additions
and
3 deletions
+251
-3
src/router/index.js
src/router/index.js
+23
-3
src/views/danger/changeDanger/delayInfo.vue
src/views/danger/changeDanger/delayInfo.vue
+91
-0
src/views/danger/changeDanger/index.vue
src/views/danger/changeDanger/index.vue
+15
-0
src/views/danger/delayApproval/index.vue
src/views/danger/delayApproval/index.vue
+14
-0
src/views/danger/delayApproval/ratifyInfo.vue
src/views/danger/delayApproval/ratifyInfo.vue
+108
-0
No files found.
src/router/index.js
View file @
38c4edca
...
@@ -323,11 +323,20 @@ const routes = [{
...
@@ -323,11 +323,20 @@ const routes = [{
path
:
'
/change-info
'
,
path
:
'
/change-info
'
,
name
:
'
change-info
'
,
name
:
'
change-info
'
,
meta
:
{
meta
:
{
title
:
'
隐患整改
表单
'
,
title
:
'
隐患整改
保存
'
,
index
:
1
index
:
1
},
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/changeDanger/changeInfo
'
),
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/changeDanger/changeInfo
'
),
},
},
{
path
:
'
/delay-info
'
,
name
:
'
delay-info
'
,
meta
:
{
title
:
'
隐患整改延期
'
,
index
:
1
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/changeDanger/delayInfo
'
),
},
{
{
path
:
'
/review-danger
'
,
path
:
'
/review-danger
'
,
...
@@ -402,7 +411,7 @@ const routes = [{
...
@@ -402,7 +411,7 @@ const routes = [{
path
:
'
/major-survey
'
,
path
:
'
/major-survey
'
,
name
:
'
major-survey
'
,
name
:
'
major-survey
'
,
meta
:
{
meta
:
{
title
:
'
重大隐患
'
,
title
:
'
重大隐患
审批
'
,
index
:
1
index
:
1
},
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/majorDanger/majorSurvey
'
),
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/majorDanger/majorSurvey
'
),
...
@@ -410,7 +419,7 @@ const routes = [{
...
@@ -410,7 +419,7 @@ const routes = [{
// 延期审批
// 延期审批
列表
{
{
path
:
'
/delay-approval
'
,
path
:
'
/delay-approval
'
,
name
:
'
delay-approval
'
,
name
:
'
delay-approval
'
,
...
@@ -420,6 +429,17 @@ const routes = [{
...
@@ -420,6 +429,17 @@ const routes = [{
},
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/delayApproval
'
),
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/delayApproval
'
),
},
},
// 延期审批确定
{
path
:
'
/ratify-info
'
,
name
:
'
ratify-info
'
,
meta
:
{
title
:
'
延期审批
'
,
index
:
1
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/delayApproval/ratifyInfo
'
),
},
// 项目经理督办列表
// 项目经理督办列表
{
{
path
:
'
/manager-danger
'
,
path
:
'
/manager-danger
'
,
...
...
src/views/danger/changeDanger/delayInfo.vue
0 → 100644
View file @
38c4edca
<
template
>
<div>
<LHeader
:text=
"text"
></LHeader>
<van-form
@
submit=
"onSubmit"
:show-error=
"false"
:scroll-to-error=
"true"
validate-trigger=
"onSubmit"
>
<van-field
readonly
clickable
name=
"delayTime"
:value=
"delayTime"
label=
"延期时间"
placeholder=
"点击选择日期"
@
click=
"showDelayTime = true"
:rules=
"[
{ required: true, message: '延期时间不能为空' }]"
/>
<van-popup
v-model=
"showDelayTime"
position=
"bottom"
>
<van-datetime-picker
type=
"datetime"
@
confirm=
"onConDelayTime"
@
cancel=
"showDelayTime = false"
/>
</van-popup>
<van-field
v-model=
"delayApply"
label=
"延期理由"
name=
"delayApply"
rows=
"3"
type=
"textarea"
placeholder=
"请输入"
:rules=
"[
{ required: true, message: '延期理由不能为空' }]"
/>
<div
style=
"margin: 16px;"
>
<van-button
round
block
type=
"info"
native-type=
"submit"
>
保存
</van-button
>
</div>
</van-form>
<div
style=
"margin:10px 16px 0px;padding-bottom:16px"
>
<van-button
round
block
type=
"warning"
@
click.native=
"cancel"
>
取消
</van-button
>
</div>
</div>
</
template
>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
{
timestampToTime
}
from
"
@/utils/format
"
;
export
default
{
components
:
{
LHeader
},
data
()
{
return
{
text
:
"
延期申请
"
,
taskId
:
""
,
delayTime
:
""
,
// 延迟时间
showDelayTime
:
false
,
delayApply
:
""
,
// 延迟理由
};
},
created
()
{
this
.
taskId
=
this
.
$route
.
params
.
taskId
;
},
methods
:
{
onSubmit
(
values
)
{
console
.
log
(
"
submit
"
,
values
);
},
// 延期时间
onConDelayTime
(
date
)
{
this
.
delayTime
=
timestampToTime
(
date
,
"
DT1
"
,
true
);
this
.
showDelayTime
=
false
;
},
cancel
()
{
this
.
$router
.
go
(
-
1
);
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
/* @import url(); 引入css类 */
</
style
>
src/views/danger/changeDanger/index.vue
View file @
38c4edca
...
@@ -51,6 +51,9 @@
...
@@ -51,6 +51,9 @@
<van-button
round
type=
"info"
@
touchstart=
"goConfirm(item)"
<van-button
round
type=
"info"
@
touchstart=
"goConfirm(item)"
>
确认
</van-button
>
确认
</van-button
>
>
<van-button
round
type=
"info"
@
touchstart=
"goDelay(item)"
>
延期
</van-button
>
</div>
</div>
</van-overlay>
</van-overlay>
</van-cell-group>
</van-cell-group>
...
@@ -134,6 +137,18 @@ export default {
...
@@ -134,6 +137,18 @@ export default {
}
}
});
});
this
.
showIndex
=
null
;
this
.
showIndex
=
null
;
},
// 延期
goDelay
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
({
name
:
"
delay-info
"
,
params
:{
"
taskId
"
:
data
.
taskId
,
"
taskName
"
:
data
.
taskName
}
});
this
.
showIndex
=
null
;
}
}
},
},
filters
:{
filters
:{
...
...
src/views/danger/delayApproval/index.vue
View file @
38c4edca
...
@@ -39,6 +39,9 @@
...
@@ -39,6 +39,9 @@
<van-button
round
type=
"primary"
@
touchstart=
"goDetail(item)"
<van-button
round
type=
"primary"
@
touchstart=
"goDetail(item)"
>
详情
</van-button
>
详情
</van-button
>
>
<van-button
round
type=
"info"
@
touchstart=
"goConfirm(item)"
>
审批
</van-button
>
</div>
</div>
</van-overlay>
</van-overlay>
</van-cell-group>
</van-cell-group>
...
@@ -103,6 +106,17 @@ export default {
...
@@ -103,6 +106,17 @@ export default {
});
});
this
.
showIndex
=
null
;
this
.
showIndex
=
null
;
},
},
// 审批
goConfirm
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
({
name
:
"
ratify-info
"
,
params
:{
"
taskId
"
:
data
.
taskId
}
});
this
.
showIndex
=
null
;
}
}
}
};
};
</
script
>
</
script
>
...
...
src/views/danger/delayApproval/ratifyInfo.vue
0 → 100644
View file @
38c4edca
<
template
>
<div>
<LHeader
:text=
"text"
></LHeader>
<van-form
@
submit=
"onSubmit"
:show-error=
"false"
:scroll-to-error=
"true"
validate-trigger=
"onSubmit"
>
<van-field
v-model=
"delayTime"
name=
"delayTime"
label=
"延期时间"
placeholder=
"请输入"
:rules=
"[
{ required: true, message: '延期时间不能为空' }]"
/>
<van-field
v-model=
"delayApply"
readonly
label=
"延期理由"
name=
"delayApply"
rows=
"1"
autosize
type=
"textarea"
/>
<van-field
name=
"isAgree"
label=
"延期是否通过"
>
<template
#input
>
<van-radio-group
v-model=
"isAgree"
direction=
"horizontal"
@
change=
"selectResult"
>
<van-radio
name=
"1"
>
通过
</van-radio>
<van-radio
name=
"0"
>
退回
</van-radio>
</van-radio-group>
</
template
>
</van-field>
<van-field
v-model=
"opinion"
label=
"理由或者意见"
name=
"opinion"
rows=
"3"
type=
"textarea"
placeholder=
"请输入"
:rules=
"[{ required: true, message: '理由或者意见不能为空' }]"
/>
<div
style=
"margin: 16px;"
>
<van-button
round
block
type=
"info"
native-type=
"submit"
>
保存
</van-button
>
</div>
</van-form>
<div
style=
"margin:10px 16px 0px;padding-bottom:16px"
>
<van-button
round
block
type=
"warning"
@
click.native=
"cancel"
>
取消
</van-button
>
</div>
</div>
</template>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
{
timestampToTime
}
from
"
@/utils/format
"
;
export
default
{
components
:
{
LHeader
},
data
()
{
return
{
text
:
"
延期审批
"
,
taskId
:
""
,
delayTime
:
""
,
// 延迟时间
showDelayTime
:
false
,
delayApply
:
""
,
// 延迟理由
isAgree
:
1
,
// 延期是否通过
opinion
:
""
,
//理由或者意见
};
},
created
()
{
this
.
taskId
=
this
.
$route
.
params
.
taskId
;
},
methods
:
{
onSubmit
(
values
)
{
console
.
log
(
"
submit
"
,
values
);
},
selectResult
(
val
)
{
this
.
isAgree
=
val
;
},
cancel
()
{
this
.
$router
.
go
(
-
1
);
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
/* @import url(); 引入css类 */
</
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