Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mocp-uniapp
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
pangchong
mocp-uniapp
Commits
ab7c93be
Commit
ab7c93be
authored
Jun 05, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 布置工作收尾
parent
8ee315d4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
11 deletions
+91
-11
src/mocp/components/global-date/global-date.vue
+2
-2
src/mocp/store/assign-work.js
+67
-0
src/pages.json
+1
-1
src/pages/modules/mocp/panel/assign-work/details.vue
+19
-7
src/pages/modules/mocp/panel/assign-work/edit-decompose.vue
+2
-1
No files found.
src/mocp/components/global-date/global-date.vue
View file @
ab7c93be
...
@@ -134,8 +134,8 @@ const confirm = (e) => {
...
@@ -134,8 +134,8 @@ const confirm = (e) => {
show
.
value
=
false
show
.
value
=
false
labelValue
.
value
=
e
.
value
labelValue
.
value
=
e
.
value
defaultValue
.
value
=
e
.
value
defaultValue
.
value
=
e
.
value
es
(
'update:modelValue'
,
String
(
defaultValue
.
value
)
)
es
(
'update:modelValue'
,
defaultValue
.
value
)
es
(
'change'
,
String
(
defaultValue
.
value
)
)
es
(
'change'
,
defaultValue
.
value
)
}
}
//点击清空按钮
//点击清空按钮
const
clear
=
()
=>
{
const
clear
=
()
=>
{
...
...
src/mocp/store/assign-work.js
View file @
ab7c93be
import
{
getArrangeWorkDetailApi
}
from
'mocp/api/assign-work'
import
{
getArrangeWorkDetailApi
}
from
'mocp/api/assign-work'
import
{
defineStore
}
from
'pinia'
import
{
defineStore
}
from
'pinia'
import
useUserStore
from
'mocp/store/user'
const
userStore
=
useUserStore
()
const
arrangeWorkExtendRouter
=
[
{
name
:
'工作反馈'
,
path
:
'/panel/assign-work/edit-work'
},
{
name
:
'领导批示'
,
path
:
'/panel/assign-work/edit-approval'
},
{
name
:
'跟踪反馈'
,
path
:
'/panel/assign-work/edit-gzFeedback'
},
{
name
:
'跟踪批示'
,
path
:
'/panel/assign-work/edit-gzApproval'
},
{
name
:
'后续措施反馈'
,
path
:
'/panel/assign-work/edit-followUpFeedback'
},
{
name
:
'工作验证'
,
path
:
'/panel/assign-work/edit-validate'
}
]
const
useAssignWorkStore
=
defineStore
(
'assignWork'
,
{
const
useAssignWorkStore
=
defineStore
(
'assignWork'
,
{
state
:
()
=>
{
state
:
()
=>
{
return
{
return
{
...
@@ -11,9 +21,66 @@ const useAssignWorkStore = defineStore('assignWork', {
...
@@ -11,9 +21,66 @@ const useAssignWorkStore = defineStore('assignWork', {
}
}
},
},
getters
:
{
getters
:
{
//获取当前选中的责任单位的index
getArrangeWorkExtendIndex
(
state
)
{
return
state
.
arrangeWorkExtendList
.
findIndex
((
item
)
=>
item
.
id
==
state
.
arrangeWorkExtend
.
id
)
},
//是否创建人
isCreateUser
(
state
)
{
return
state
.
details
.
createUserId
==
userStore
.
userInfo
.
id
},
//是否回复人
isReplyUser
(
state
)
{
const
replyIds
=
JSON
.
parse
(
state
.
details
.
reply
)[
this
.
getArrangeWorkExtendIndex
].
map
((
item
)
=>
item
.
userId
)
return
replyIds
.
includes
(
userStore
.
userInfo
.
id
)
},
//是否领导
isPresenterUser
(
state
)
{
return
state
.
details
.
presenterId
==
userStore
.
userInfo
.
id
},
//获取分解计划
//获取分解计划
getDecompose
(
state
)
{
getDecompose
(
state
)
{
return
JSON
.
parse
(
state
.
arrangeWorkExtend
?.
decompose
||
'[]'
)
||
[]
return
JSON
.
parse
(
state
.
arrangeWorkExtend
?.
decompose
||
'[]'
)
||
[]
},
//获取详情页底部按钮的内容
getDetailsFooterBtn
(
state
)
{
if
(
!
state
.
arrangeWorkExtend
)
return
false
if
(
state
.
arrangeWorkExtend
.
feedbackTime
==
'0'
)
{
if
(
this
.
isReplyUser
)
{
return
arrangeWorkExtendRouter
[
0
]
}
}
else
{
if
(
state
.
arrangeWorkExtend
.
approvalTime
==
'0'
)
{
if
(
this
.
isPresenterUser
)
{
return
arrangeWorkExtendRouter
[
1
]
}
}
else
{
if
(
state
.
arrangeWorkExtend
.
gzFeedbackTime
==
'0'
)
{
if
(
this
.
isReplyUser
&&
state
.
arrangeWorkExtend
.
leaderState
!=
''
&&
state
.
arrangeWorkExtend
.
leaderState
!=
'1'
)
{
return
arrangeWorkExtendRouter
[
2
]
}
}
else
{
if
(
state
.
arrangeWorkExtend
.
gzApprovalTime
==
'0'
)
{
if
(
this
.
isPresenterUser
&&
state
.
arrangeWorkExtend
.
leaderState
!=
''
&&
state
.
arrangeWorkExtend
.
leaderState
!=
'1'
)
{
return
arrangeWorkExtendRouter
[
3
]
}
}
else
{
if
(
state
.
arrangeWorkExtend
.
followUpFeedbackTime
==
'0'
)
{
if
(
this
.
isReplyUser
&&
state
.
arrangeWorkExtend
.
followUpFeedback
==
'1'
)
{
return
arrangeWorkExtendRouter
[
4
]
}
}
else
{
if
(
state
.
arrangeWorkExtend
.
eventType
==
''
)
{
if
(
this
.
isCreateUser
)
{
return
arrangeWorkExtendRouter
[
5
]
}
}
}
}
}
}
}
return
false
}
}
},
},
actions
:
{
actions
:
{
...
...
src/pages.json
View file @
ab7c93be
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
{
{
"path"
:
"pages/modules/mocp/panel/assign-work/edit-work"
,
"path"
:
"pages/modules/mocp/panel/assign-work/edit-work"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
编辑早会工作详情
"
"navigationBarTitleText"
:
"
添加工作反馈
"
}
}
},
},
{
{
...
...
src/pages/modules/mocp/panel/assign-work/details.vue
View file @
ab7c93be
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
:title=
"arrangeWorkExtend?.companyFullName"
:title=
"arrangeWorkExtend?.companyFullName"
:showNavRight=
"arrangeWorkExtendList.length > 1"
:showNavRight=
"arrangeWorkExtendList.length > 1"
navRightType=
"icon"
navRightType=
"icon"
showFooterBtn
:showFooterBtn=
"!!assignWorkStore.getDetailsFooterBtn"
footerBtnText=
"领导批示
"
:footerBtnText=
"assignWorkStore.getDetailsFooterBtn?.name
"
@
handleRightClick=
"handleRightClick"
@
handleRightClick=
"handleRightClick"
@
handleFooterClick=
"handleFooterClick"
@
handleFooterClick=
"handleFooterClick"
>
>
...
@@ -103,7 +103,11 @@
...
@@ -103,7 +103,11 @@
:rightValue=
"timeStampFormat(arrangeWorkExtend.approvalTime) || '-'"
:rightValue=
"timeStampFormat(arrangeWorkExtend.approvalTime) || '-'"
></card-details-footer>
></card-details-footer>
</card-details>
</card-details>
<card-details
title=
"跟踪反馈"
:showEmpty=
"arrangeWorkExtend.gzFeedbackTime == '0'"
>
<card-details
title=
"跟踪反馈"
:showEmpty=
"arrangeWorkExtend.gzFeedbackTime == '0'"
v-if=
"arrangeWorkExtend.leaderApprovalComments != '' && arrangeWorkExtend.leaderApprovalComments != '1'"
>
<card-details-item
title=
"跟踪反馈"
:content=
"arrangeWorkExtend.gzFeedbackContent"
></card-details-item>
<card-details-item
title=
"跟踪反馈"
:content=
"arrangeWorkExtend.gzFeedbackContent"
></card-details-item>
<card-details-footer
<card-details-footer
leftLabel=
"反馈人:"
leftLabel=
"反馈人:"
...
@@ -112,7 +116,11 @@
...
@@ -112,7 +116,11 @@
:rightValue=
"timeStampFormat(arrangeWorkExtend.gzFeedbackTime)"
:rightValue=
"timeStampFormat(arrangeWorkExtend.gzFeedbackTime)"
></card-details-footer>
></card-details-footer>
</card-details>
</card-details>
<card-details
title=
"跟踪批示"
:showEmpty=
"arrangeWorkExtend.gzApprovalTime == '0'"
>
<card-details
title=
"跟踪批示"
:showEmpty=
"arrangeWorkExtend.gzApprovalTime == '0'"
v-if=
"arrangeWorkExtend.leaderApprovalComments != '' && arrangeWorkExtend.leaderApprovalComments != '1'"
>
<card-details-item
<card-details-item
title=
"领导批示意见"
title=
"领导批示意见"
:content=
"useGetDictByValue('leaderState', arrangeWorkExtend.gzApprovalComments)"
:content=
"useGetDictByValue('leaderState', arrangeWorkExtend.gzApprovalComments)"
...
@@ -125,7 +133,11 @@
...
@@ -125,7 +133,11 @@
:rightValue=
"timeStampFormat(arrangeWorkExtend.gzApprovalTime) || '-'"
:rightValue=
"timeStampFormat(arrangeWorkExtend.gzApprovalTime) || '-'"
></card-details-footer>
></card-details-footer>
</card-details>
</card-details>
<card-details
title=
"后续措施反馈"
:showEmpty=
"arrangeWorkExtend.followUpFeedbackTime == '0'"
>
<card-details
title=
"后续措施反馈"
:showEmpty=
"arrangeWorkExtend.followUpFeedbackTime == '0'"
v-if=
"arrangeWorkExtend.followUpFeedback == '1'"
>
<card-details-item
:borderBottom=
"false"
title=
"反馈内容"
:content=
"arrangeWorkExtend.followUpFeedbackContent"
></card-details-item>
<card-details-item
:borderBottom=
"false"
title=
"反馈内容"
:content=
"arrangeWorkExtend.followUpFeedbackContent"
></card-details-item>
<card-details-item
<card-details-item
:borderBottom=
"false"
:borderBottom=
"false"
...
@@ -173,7 +185,7 @@
...
@@ -173,7 +185,7 @@
</template>
</template>
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
computed
,
ref
}
from
'vue'
import
CardDetails
from
'./components/card-details.vue'
import
CardDetails
from
'./components/card-details.vue'
import
CardDetailsItem
from
'./components/card-details-item.vue'
import
CardDetailsItem
from
'./components/card-details-item.vue'
import
CardDetailsFooter
from
'./components/card-details-footer.vue'
import
CardDetailsFooter
from
'./components/card-details-footer.vue'
...
@@ -200,7 +212,7 @@ const handleRightClick = () => {
...
@@ -200,7 +212,7 @@ const handleRightClick = () => {
}
}
//新增
//新增
const
handleFooterClick
=
()
=>
{
const
handleFooterClick
=
()
=>
{
uni
.
$mocpJump
.
navigateTo
(
'/panel/assign-work/edit-approval'
)
uni
.
$mocpJump
.
navigateTo
(
assignWorkStore
.
getDetailsFooterBtn
?.
path
)
}
}
onUnload
(()
=>
{
onUnload
(()
=>
{
assignWorkStore
.
$reset
()
assignWorkStore
.
$reset
()
...
...
src/pages/modules/mocp/panel/assign-work/edit-decompose.vue
View file @
ab7c93be
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
></up-textarea>
></up-textarea>
</up-form-item>
</up-form-item>
<up-form-item
label=
"完成时限"
:borderBottom=
"true"
>
<up-form-item
label=
"完成时限"
:borderBottom=
"true"
>
<global-date
pickAlign=
"right"
clearable
placeholder=
"请选择日期"
v-model=
"item.time"
emptyValue=
"null"
></global-date>
<global-date
pickAlign=
"right"
clearable
placeholder=
"请选择日期"
v-model=
"item.time"
:
emptyValue=
"null"
></global-date>
</up-form-item>
</up-form-item>
</view>
</view>
</
template
>
</
template
>
...
@@ -84,6 +84,7 @@ const handleSave = async () => {
...
@@ -84,6 +84,7 @@ const handleSave = async () => {
return
uni
.
$mocpMessage
.
showToast
(
`请输入分解计划的内容`
)
return
uni
.
$mocpMessage
.
showToast
(
`请输入分解计划的内容`
)
}
}
}
}
console
.
log
(
formData
.
value
)
uni
.
$emit
(
'changeDecompose'
,
formData
.
value
)
uni
.
$emit
(
'changeDecompose'
,
formData
.
value
)
uni
.
$mocpJump
.
navigateBack
()
uni
.
$mocpJump
.
navigateBack
()
}
}
...
...
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