Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_OA
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
张伯涛
91isoft_OA
Commits
00fd657e
Commit
00fd657e
authored
Mar 13, 2024
by
张毅辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作流(班次提交)
parent
1a2942ac
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
579 additions
and
199 deletions
+579
-199
dict.js
api/system/dict.js
+10
-0
flowWork.js
api/system/flowWork.js
+9
-0
pages.json
pages.json
+3
-2
index.vue
pages/classes/index.vue
+2
-2
documentInfo.vue
pages/document/documentInfo.vue
+0
-167
index.vue
pages/document/index.vue
+27
-27
ApprovalProcess.vue
pages/flow/components/ApprovalProcess.vue
+37
-0
BasicData.vue
pages/flow/components/BasicData.vue
+76
-0
BusinessDocument.vue
pages/flow/components/BusinessDocument.vue
+43
-0
ReviewHistory.vue
pages/flow/components/ReviewHistory.vue
+64
-0
ClassForm.vue
pages/flow/components/form/ClassForm.vue
+107
-0
work.vue
pages/flow/work.vue
+189
-0
index.scss
static/scss/index.scss
+12
-1
No files found.
api/system/dict.js
0 → 100644
View file @
00fd657e
import
request
from
'@/utils/request'
// 获取单据详情
export
function
getDict
(
dictCode
)
{
return
request
({
url
:
`/system/dict/data/type/
${
dictCode
}
`
,
method
:
'get'
})
}
api/system/flowWork.js
0 → 100644
View file @
00fd657e
import
request
from
'@/utils/request'
// 获取单据详情
export
function
getDocumentDetails
(
businessId
)
{
return
request
({
url
:
`/wx/sysprocessinstance/getDetail/
${
businessId
}
`
,
method
:
'get'
,
})
}
pages.json
View file @
00fd657e
...
@@ -25,9 +25,10 @@
...
@@ -25,9 +25,10 @@
"navigationBarTitleText"
:
"单据"
"navigationBarTitleText"
:
"单据"
}
}
},
{
},
{
"path"
:
"pages/
document/documentInfo
"
,
"path"
:
"pages/
flow/work
"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"详情"
"navigationBarTitleText"
:
""
,
"navigationStyle"
:
"custom"
}
}
},{
},{
"path"
:
"pages/mine/index"
,
"path"
:
"pages/mine/index"
,
...
...
pages/classes/index.vue
View file @
00fd657e
...
@@ -31,7 +31,7 @@ export default{
...
@@ -31,7 +31,7 @@ export default{
}
}
},
},
created
()
{
created
()
{
//
this.getQueryAeClassesInfos()
this
.
getQueryAeClassesInfos
()
},
},
methods
:{
methods
:{
getQueryAeClassesInfos
()
{
getQueryAeClassesInfos
()
{
...
@@ -67,7 +67,7 @@ export default{
...
@@ -67,7 +67,7 @@ export default{
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.my_approval
{
.my_approval
{
.my_approval_li
{
.my_approval_li
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
...
...
pages/document/documentInfo.vue
deleted
100644 → 0
View file @
1a2942ac
<
template
>
<view
class=
"container"
>
<uni-card
:is-shadow=
"false"
is-full
>
<text
class=
"uni-h6"
>
{{
classesForm
.
classesName
}}
</text>
</uni-card>
<uni-section
title=
"班次信息"
type=
"line"
>
<view
class=
"example"
style=
"padding: 0 10px"
>
<!-- 展示不同的排列方式 -->
<uni-forms
ref=
"baseForm"
:modelValue=
"classesForm"
label-position=
"left"
label-width=
"120"
>
<uni-forms-item
label=
"部门"
required
>
<uni-data-picker
v-model=
"classesForm.deptId"
:map=
"
{value: 'deptId', text: 'deptName'}" :localdata="deptTree" popup-title="请选择部门" @change="onchange">
</uni-data-picker>
<text
class=
"beforeValue"
>
部门2
</text>
</uni-forms-item>
<uni-forms-item
label=
"产线"
required
>
<uni-data-picker
v-model=
"classesForm.productId"
:map=
"
{value: 'productId', text: 'productName'}" :localdata="productTree" popup-title="请选择产线" @change="onchange">
</uni-data-picker>
<text
class=
"beforeValue"
>
产线2
</text>
</uni-forms-item>
<uni-forms-item
label=
"是否跨天"
required
>
<uni-data-checkbox
v-model=
"classesForm.isTwodays"
style=
"float: right;margin-top: 5px;"
:localdata=
"towDayMap"
></uni-data-checkbox>
</uni-forms-item>
<uni-forms-item
label=
"开始时间"
required
>
<uni-datetime-picker
type=
"date"
:clear-icon=
"false"
v-model=
"classesForm.startDate"
placeholder=
"请选择开始时间"
/>
<text
class=
"beforeValue"
>
2024-03-01
</text>
</uni-forms-item>
<uni-forms-item
label=
"结束时间"
required
>
<uni-datetime-picker
type=
"date"
:clear-icon=
"false"
v-model=
"classesForm.endDate"
placeholder=
"请选择结束时间"
/>
<text
class=
"beforeValue"
>
2024-03-11
</text>
</uni-forms-item>
<uni-forms-item
label=
"权重"
required
>
<uni-easyinput
type=
"number"
disabled
v-model=
"classesForm.weight"
placeholder=
"请输入权重"
/>
<text
class=
"beforeValue"
>
3
</text>
</uni-forms-item>
<uni-forms-item
label=
"版本"
required
>
<uni-easyinput
v-model=
"classesForm.version"
disabled
placeholder=
"请输入版本"
/>
<text
class=
"beforeValue"
>
2
</text>
</uni-forms-item>
</uni-forms>
<button
type=
"primary"
@
click=
"submit('baseForm')"
>
提交
</button>
</view>
</uni-section>
</view>
</
template
>
<
script
>
import
{
getDocumentDetails
}
from
"../../api/system/document"
;
export
default
{
name
:
"ClassesInfo"
,
data
()
{
return
{
businessId
:
''
,
approveHistoryList
:
[],
// 审批历史
createDeptName
:
[],
// 部门名称
flowChatNodeList
:
[],
// 所有节点
newBusinessData
:
[],
// 新表单
oldBusinessData
:
[],
// 旧表单
classesForm
:
{},
deptTree
:
[
{
deptName
:
'部门1'
,
deptId
:
1
},
{
deptName
:
'部门2'
,
deptId
:
2
}
],
productTree
:
[
{
productName
:
'产线1'
,
productId
:
1
},
{
productName
:
'产线2'
,
productId
:
2
}
],
towDayMap
:
[
{
text
:
'是'
,
value
:
'1'
,
},
{
text
:
'否'
,
value
:
'0'
,
}
]
}
},
onLoad
(
options
)
{
this
.
businessId
=
options
.
businessId
this
.
getDetails
()
// 页面启动的生命周期,这里编写页面加载时的逻辑
},
methods
:
{
onchange
()
{
},
/** 获取详情*/
getDetails
()
{
getDocumentDetails
(
this
.
businessId
).
then
(
res
=>
{
this
.
approveHistoryList
=
res
.
data
.
approveHistoryList
// 审批历史
this
.
createDeptName
=
res
.
data
.
createDeptName
// 部门名称
this
.
flowChatNodeList
=
res
.
data
.
flowChatNodeList
// 所有节点
this
.
newBusinessData
=
res
.
data
.
newBusinessData
// 新表单
this
.
oldBusinessData
=
res
.
data
.
oldBusinessData
// 旧表单
})
},
switchChange
(
e
)
{
console
.
log
(
e
)
this
.
classesForm
.
isTwodays
=
e
},
submit
(
ref
)
{
this
.
$refs
[
ref
].
validate
(
res
=>
{
console
.
log
(
this
.
classesForm
)
aeclassesinfoUpdate
(
this
.
classesForm
).
then
(
res
=>
{
uni
.
showToast
({
title
:
`编辑成功`
})
setTimeout
(
_
=>
{
uni
.
navigateBack
()
},
500
)
})
}).
catch
(
err
=>
{
console
.
log
(
'err'
,
err
);
})
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.beforeValue
{
padding-left
:
10px
;
color
:
red
;
}
.example
{
padding
:
15px
;
background-color
:
#fff
;
}
.segmented-control
{
margin-bottom
:
15px
;
}
.button-group
{
margin-top
:
15px
;
display
:
flex
;
justify-content
:
space-around
;
}
.form-item
{
display
:
flex
;
align-items
:
center
;
}
.button
{
display
:
flex
;
align-items
:
center
;
height
:
35px
;
margin-left
:
10px
;
}
</
style
>
pages/document/index.vue
View file @
00fd657e
...
@@ -29,8 +29,10 @@
...
@@ -29,8 +29,10 @@
<li
v-for=
"(item,index) in myApprovalList"
:key=
"index"
class=
"my_approval_li"
>
<li
v-for=
"(item,index) in myApprovalList"
:key=
"index"
class=
"my_approval_li"
>
<uni-swipe-action-item
:right-options=
"options"
@
click=
"bindClick($event,item.eventId)"
@
change=
"swipeChange($event, index)"
>
<uni-swipe-action-item
:right-options=
"options"
@
click=
"bindClick($event,item.eventId)"
@
change=
"swipeChange($event, index)"
>
<view
class=
"my_approval_item"
@
click=
"toNav(item.businessId)"
>
<view
class=
"my_approval_item"
@
click=
"toNav(item.businessId)"
>
<h3
class=
"my_approval_title"
><text>
[
{{
item
.
businessTypeName
}}
]--
{{
item
.
createUserName
}}
</text>
<h3
class=
"my_approval_title"
>
<text
class=
"approval_info_type"
>
{{
item
.
status
===
'10'
?
'待审批'
:
item
.
status
===
'2'
?
'已审批'
:
item
.
status
===
'5'
?
'驳回'
:
''
}}
</text></h3>
<text>
[
{{
item
.
businessTypeName
}}
]--
{{
item
.
createUserName
}}
</text>
<text
class=
"approval_title_right"
>
{{
item
.
status
===
'10'
?
'待审批'
:
item
.
status
===
'2'
?
'已审批'
:
item
.
status
===
'5'
?
'驳回'
:
''
}}
</text>
</h3>
<view
class=
"my_approval_info"
>
<view
class=
"my_approval_info"
>
<text
class=
"approval_info_right"
>
{{
item
.
createDate
}}
</text>
<text
class=
"approval_info_right"
>
{{
item
.
createDate
}}
</text>
...
@@ -90,7 +92,7 @@ export default{
...
@@ -90,7 +92,7 @@ export default{
/** 详情页跳转*/
/** 详情页跳转*/
toNav
(
id
)
{
toNav
(
id
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`
documentInfo?businessId=
${
id
}
`
,
url
:
`
/pages/flow/work?businessId=
${
id
}
&type=see
`
,
success
:(
res
)
=>
{
success
:(
res
)
=>
{
},
},
fail
:(
err
)
=>
{
fail
:(
err
)
=>
{
...
@@ -155,34 +157,32 @@ export default{
...
@@ -155,34 +157,32 @@ export default{
background
:
#ffffff
;
background
:
#ffffff
;
padding
:
20rpx
;
padding
:
20rpx
;
border-radius
:
8rpx
;
border-radius
:
8rpx
;
}
.my_approval_item
{
.my_approval_item
{
.my_approval_title
{
.my_approval_title
{
display
:
flex
;
display
:
fle
x
;
font-size
:
14p
x
;
font-size
:
14px
;
.approval_title_right
{
.approval_title_right
{
font-size
:
13px
;
font-size
:
13px
;
font-weight
:
400
;
font-weight
:
400
;
flex
:
2
;
flex
:
1
;
text-align
:
right
;
text-align
:
right
;
color
:
#007aff
;
color
:
#007aff
;
}
}
}
}
.my_approval_info
{
.approval_info_type
{
height
:
60rpx
;
padding-left
:
130px
;
line-height
:
60rpx
;
}
font-size
:
12px
;
.my_approval_info
{
display
:
flex
;
height
:
60rpx
;
color
:
#999
;
line-height
:
60rpx
;
.approval_info_right
{
font-size
:
12px
;
flex
:
1
;
display
:
flex
;
text-align
:
right
;
color
:
#999
;
.approval_info_right
{
flex
:
1
;
text-align
:
right
;
}
}
}
}
}
}
}
}
}
</
style
>
</
style
>
...
...
pages/flow/components/ApprovalProcess.vue
0 → 100644
View file @
00fd657e
<
template
>
<view
style=
"padding: 10px;"
>
<uni-section
title=
"纵向排列"
type=
"line"
padding
>
<uni-steps
:options=
"flowChatNodeList"
:active-color=
"approveControl === '0' ? '#FF0000' : '#007AFF'"
:active=
"approveControlActive"
direction=
"column"
/>
</uni-section>
</view>
</
template
>
<
script
>
export
default
{
name
:
"ApprovalProcess"
,
props
:
{
flowChatNodeList
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
},
approveControl
:
{
type
:
String
,
default
:
'0'
},
approveControlActive
:
{
type
:
Number
,
default
:
1
}
},
data
()
{
return
{
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
pages/flow/components/BasicData.vue
0 → 100644
View file @
00fd657e
<
template
>
<view
style=
"padding: 10px;"
>
<uni-forms
:modelValue=
"basicDataForm"
label-width=
"120"
border
label-align=
"left"
>
<uni-forms-item
label=
"单据分组"
name=
"processGroup"
>
<view
class=
"show_form_info"
>
{{
basicDataForm
.
processGroup
===
'1'
?
'AE'
:
basicDataForm
.
processGroup
===
'2'
?
'MC'
:
basicDataForm
.
processGroup
===
'3'
?
'DC'
:
'-'
}}
</view>
</uni-forms-item>
<uni-forms-item
label=
"单据"
name=
"processType"
>
<view
class=
"show_form_info"
>
{{
tableUserFrom
.
find
(
item
=>
item
.
dictValue
===
basicDataForm
.
processType
).
dictLabel
||
'-'
}}
</view>
</uni-forms-item>
<uni-forms-item
label=
"创建时间"
name=
"createDate"
>
<view
class=
"show_form_info"
>
{{
basicDataForm
.
createDate
||
'-'
}}
</view>
</uni-forms-item>
<uni-forms-item
label=
"创建人"
name=
"createUserName"
>
<view
class=
"show_form_info"
>
{{
basicDataForm
.
createUserName
||
'-'
}}
</view>
</uni-forms-item>
<uni-forms-item
label=
"审批人"
name=
"approveUser"
>
<view
class=
"show_form_info"
>
{{
basicDataForm
.
approveUser
.
map
(
item
=>
{
return
item
.
userName
}
)
}}
<
/view
>
<
/uni-forms-item
>
<
/uni-forms
>
<
/view
>
<
/template
>
<
script
>
export
default
{
name
:
"BasicData"
,
props
:
{
basicDataForm
:
{
type
:
Object
,
default
:
()
=>
{
return
{
processGroup
:
''
,
processType
:
''
,
createDate
:
''
,
createUserId
:
''
,
createUserName
:
''
,
approveUser
:
[],
}
}
}
,
tableUserFrom
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
}
}
,
data
()
{
return
{
gender
:
'男'
,
age
:
1
,
name
:
'1'
}
}
}
<
/script
>
<
style
scoped
lang
=
"scss"
>
<
/style
>
pages/flow/components/BusinessDocument.vue
0 → 100644
View file @
00fd657e
<
template
>
<view
style=
"padding: 10px;"
>
<ClassForm
v-if=
"processType === '1001'"
:newBusinessDocument=
"newBusinessDocument"
:oldBusinessDocument=
"oldBusinessDocument"
></ClassForm>
</view>
</
template
>
<
script
>
import
ClassForm
from
'./form/ClassForm.vue'
export
default
{
name
:
"BusinessDocument"
,
props
:
{
newBusinessDocument
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
oldBusinessDocument
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
processType
:
{
type
:
String
,
default
:
'1001'
}
},
components
:
{
ClassForm
},
data
()
{
return
{
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
pages/flow/components/ReviewHistory.vue
0 → 100644
View file @
00fd657e
<
template
>
<view
style=
"padding: 10px 0;"
>
<uni-collapse
ref=
"collapse"
>
<uni-collapse-item
v-for=
"(item, index) in approveHistoryList"
:key=
"index"
:title=
"(index + 1) + '.' + item.userName"
>
<view
class=
"content"
style=
"padding: 10px 10px; font-size: 8px;text-align: center"
>
<uni-row>
<uni-col
:span=
"12"
>
审核人部门:
{{
item
.
deptName
||
'-'
}}
</uni-col>
<uni-col
:span=
"12"
>
审核时间:
{{
item
.
approveDate
||
'-'
}}
</uni-col>
</uni-row>
<uni-row>
<uni-col
:span=
"12"
>
审核结果:
{{
item
.
approveControl
===
'0'
?
'驳回'
:
item
.
approveControl
===
'1'
?
'通过'
:
item
.
approveControl
===
'2'
?
'跳过'
:
'-'
}}
</uni-col>
<uni-col
:span=
"12"
>
审核意见:
{{
item
.
remarks
||
'-'
}}
</uni-col>
</uni-row>
</view>
</uni-collapse-item>
</uni-collapse>
</view>
</
template
>
<
script
>
export
default
{
name
:
"ReviewHistory"
,
props
:
{
approveHistoryList
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
}
},
data
()
{
return
{
value
:
[
'0'
],
data
:
[
{
index
:
'1'
,
title
:
'guanliyuan'
,
aaa
:
'审核人部门'
,
bbb
:
'2024-1-1'
,
ccc
:
'通过'
,
ddd
:
'审核意见'
}
]
}
},
methods
:
{
change
(
e
)
{
console
.
log
(
e
);
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
pages/flow/components/form/ClassForm.vue
0 → 100644
View file @
00fd657e
<
template
>
<view>
<uni-forms
:modelValue=
"
{}" label-width="120" border label-align="left">
<view
v-for=
"(item, index) in dataList"
:key=
"index"
class=
"show_form"
>
<view
class=
"show_form_border"
>
<uni-forms-item
:label=
"item.label"
:name=
"item.key"
>
<view
class=
"show_form_info"
>
<view>
{{
item
.
newData
||
'-'
}}
</view>
<view
v-show=
"item.showFlag"
style=
"color: red;"
>
{{
item
.
oldData
||
'-'
}}
</view>
</view>
</uni-forms-item>
<!--
<uni-forms-item
:label=
"' '"
:name=
"item.key"
v-if=
"item.showFlag"
>
-->
<!--
<view
class=
"show_form_info"
style=
"color: red;"
>
-->
<!--
{{
item
.
oldData
||
'-'
}}
-->
<!--
</view>
-->
<!--
</uni-forms-item>
-->
</view>
</view>
</uni-forms>
</view>
</
template
>
<
script
>
export
default
{
name
:
"ClassForm"
,
props
:
{
newBusinessDocument
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
oldBusinessDocument
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
data
()
{
return
{
dataList
:
[]
}
},
created
()
{
this
.
initData
()
},
methods
:
{
initData
()
{
const
list
=
[
{
label
:
'备注'
,
key
:
'remarks'
},
{
label
:
'班次名称'
,
key
:
'classesName'
},
{
label
:
'部门id'
,
key
:
'deptId'
},
{
label
:
'产品id'
,
key
:
'productId'
},
{
label
:
'是否跨天'
,
key
:
'isTwoDays'
},
{
label
:
'开始时间'
,
key
:
'startDate'
},
{
label
:
'结束时间'
,
key
:
'endDate'
},
{
label
:
'权重'
,
key
:
'weight'
},
]
list
.
forEach
(
item
=>
{
this
.
dataList
.
push
({
showFlag
:
this
.
oldBusinessDocument
[
item
.
key
]
!==
this
.
newBusinessDocument
[
item
.
key
],
label
:
item
.
label
,
key
:
item
.
key
,
oldData
:
this
.
oldBusinessDocument
[
item
.
key
],
newData
:
this
.
newBusinessDocument
[
item
.
key
]
})
})
console
.
log
(
this
.
dataList
)
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
pages/flow/work.vue
0 → 100644
View file @
00fd657e
<
template
>
<view
class=
"container my-flow-work"
>
<uni-nav-bar
dark
:fixed=
"true"
shadow
background-color=
"#007AFF"
status-bar
left-icon=
"left"
left-text=
"返回"
:title=
"'自定义导航栏'"
@
clickLeft=
"goBack"
/>
<view>
<ul>
<li
class=
"my_approval_li"
>
<uni-swipe-action-item>
<view
class=
"my_approval_item"
>
<h3
class=
"my_approval_title"
>
<text>
[
{{
123
}}
]--
{{
312
}}
</text>
<text
class=
"approval_title_right"
>
{{
1
===
'10'
?
'待审批'
:
1
===
'2'
?
'已审批'
:
1
===
'5'
?
'驳回'
:
'测试'
}}
</text>
</h3>
<view
class=
"my_approval_info"
>
<text
class=
"approval_info_right"
>
{{
2111
}}
</text>
</view>
</view>
</uni-swipe-action-item>
</li>
</ul>
</view>
<view>
<uni-segmented-control
style-type=
"text"
:current=
"current"
:values=
"items"
@
clickItem=
"onClickItem"
activeColor=
"#007aff"
></uni-segmented-control>
<view
class=
"content"
>
<view
v-show=
"current === 0"
>
<BasicData
:basicDataForm=
"basicDataForm"
:tableUserFrom=
"tableUserFrom"
></BasicData>
</view>
<view
v-show=
"current === 1"
>
<BusinessDocument
:processType=
"basicDataForm.processType"
:newBusinessDocument=
"newBusinessDocument"
:oldBusinessDocument=
"oldBusinessDocument"
></BusinessDocument>
</view>
<view
v-show=
"current === 2"
>
<ReviewHistory
:approveHistoryList=
"approveHistoryList"
></ReviewHistory>
</view>
<view
v-show=
"current === 3"
>
<ApprovalProcess
:flowChatNodeList=
"flowChatNodeList"
:approveControl=
"approveControl"
:approveControlActive=
"approveControlActive"
></ApprovalProcess>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
import
{
getDocumentDetails
}
from
'@/api/system/flowWork'
import
{
getDict
}
from
'@/api/system/dict'
import
BasicData
from
'./components/BasicData.vue'
import
BusinessDocument
from
'./components/BusinessDocument.vue'
import
ReviewHistory
from
'./components/ReviewHistory.vue'
import
ApprovalProcess
from
'./components/ApprovalProcess.vue'
export
default
{
name
:
"work"
,
components
:
{
BasicData
,
BusinessDocument
,
ReviewHistory
,
ApprovalProcess
},
props
:
{
},
data
()
{
return
{
businessId
:
0
,
type
:
'see'
,
items
:
[
'基本信息'
,
'业务单据'
,
'审核历史'
,
'审批流程'
],
current
:
0
,
// 基础数据
basicDataForm
:
{
processGroup
:
''
,
processType
:
''
,
createDate
:
''
,
createUserId
:
''
,
createUserName
:
''
,
approveUser
:
[],
},
// 新业务单据数据
newBusinessDocument
:
{},
// 旧业务单据数据
oldBusinessDocument
:
{},
// 审核历史数据
approveHistoryList
:
[],
// 审批流程数据
flowChatNodeList
:
[],
// 当前流程节点是否通过
approveControl
:
'0'
,
// 当前流程节点
approveControlActive
:
1
,
// 单据类型字典
tableUserFrom
:
[],
}
},
onLoad
(
option
)
{
const
{
businessId
,
type
}
=
option
this
.
businessId
=
businessId
this
.
type
=
type
this
.
getFlowData
()
},
created
()
{
this
.
getDict
()
},
methods
:
{
onClickItem
(
e
)
{
if
(
this
.
current
!=
e
.
currentIndex
)
{
this
.
current
=
e
.
currentIndex
;
}
},
getDict
()
{
getDict
(
'table_user_from'
).
then
(
res
=>
{
this
.
tableUserFrom
=
res
.
data
})
},
getFlowData
()
{
getDocumentDetails
(
this
.
businessId
).
then
(
res
=>
{
// 基础数据
this
.
basicDataForm
=
{
processGroup
:
res
.
data
.
processGroup
,
processType
:
res
.
data
.
processType
,
createDate
:
res
.
data
.
createDate
,
createUserId
:
res
.
data
.
createUserId
,
createUserName
:
res
.
data
.
createUserName
,
approveUser
:
res
.
data
.
flowChatNodeList
.
find
(
item
=>
item
.
currentNode
===
1
).
approveUser
}
// 业务单据
this
.
newBusinessDocument
=
JSON
.
parse
(
res
.
data
.
newBusinessData
.
jsonData
)
this
.
oldBusinessDocument
=
JSON
.
parse
(
res
.
data
.
oldBusinessData
.
jsonData
)
// 审核历史
this
.
approveHistoryList
=
res
.
data
.
approveHistoryList
// 审批流程
this
.
flowChatNodeList
=
res
.
data
.
flowChatNodeList
.
map
((
item
,
index
)
=>
{
if
(
item
.
currentNode
===
1
)
{
this
.
approveControl
=
item
.
approveControl
this
.
approveControlActive
=
index
}
return
{
title
:
item
.
approveName
,
desc
:
item
.
approveUser
.
map
(
userItem
=>
{
return
userItem
.
userName
})
}
})
})
},
goBack
()
{
uni
.
navigateBack
({
//uni.navigateTo跳转的返回,默认1为返回上一级
delta
:
1
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.my-flow-work
{
background
:
#ffffff
;
min-height
:
100vh
;
.my_approval_li
{
height
:
80px
;
background
:
#eee
;
padding
:
20rpx
;
border-radius
:
8rpx
;
.my_approval_item
{
.my_approval_title
{
display
:
flex
;
font-size
:
14px
;
.approval_title_right
{
font-size
:
13px
;
font-weight
:
400
;
flex
:
2
;
text-align
:
right
;
color
:
#007aff
;
}
}
.my_approval_info
{
height
:
60rpx
;
line-height
:
60rpx
;
font-size
:
12px
;
display
:
flex
;
color
:
#999
;
.approval_info_right
{
flex
:
1
;
text-align
:
right
;
}
}
}
}
}
</
style
>
static/scss/index.scss
View file @
00fd657e
...
@@ -3,4 +3,15 @@
...
@@ -3,4 +3,15 @@
// color-ui
// color-ui
@import
"@/static/scss/colorui.css"
;
@import
"@/static/scss/colorui.css"
;
// iconfont
// iconfont
@import
"@/static/font/iconfont.css"
;
@import
"@/static/font/iconfont.css"
;
\ No newline at end of file
.show_form
>
.show_form_border
{
}
.show_form_info
{
width
:
100%
;
height
:
100%
;
line-height
:
36px
;
text-align
:
right
;
padding
:
0
20px
;
}
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