Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db_qms_wx
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
刘怀志
db_qms_wx
Commits
b277aaba
Commit
b277aaba
authored
Mar 20, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(审批): 审批列表接口对接4
parent
53da51cb
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
178 additions
and
18 deletions
+178
-18
base-data-approval.vue
components/home-approval/base-data-approval.vue
+2
-2
base-data-start.vue
components/home-approval/base-data-start.vue
+146
-9
production-approval.vue
components/home-approval/production-approval.vue
+2
-2
pages.json
pages.json
+7
-0
baseDetail.vue
pages/approval_detail/baseDetail.vue
+16
-0
index.vue
pages/index.vue
+5
-5
leftIconOne.png
static/images/leftIconOne.png
+0
-0
leftIconTwo.png
static/images/leftIconTwo.png
+0
-0
No files found.
components/base-data-approval.vue
→
components/
home-approval/
base-data-approval.vue
View file @
b277aaba
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
queryInstanceListAeByPage
}
from
'../api/system/approve'
import
{
queryInstanceListAeByPage
}
from
'../
../
api/system/approve'
import
{
parseTime
}
from
'../api/utils/ruoyi'
import
{
parseTime
}
from
'../
../
api/utils/ruoyi'
export
default
{
export
default
{
data
()
{
data
()
{
...
...
components/base-data-start.vue
→
components/
home-approval/
base-data-start.vue
View file @
b277aaba
...
@@ -6,14 +6,50 @@
...
@@ -6,14 +6,50 @@
:scroll-with-animation=
"true"
>
:scroll-with-animation=
"true"
>
<view
v-for=
"(item,key) in noticeList"
:key=
"key"
style=
"display: flex;background-color: #ffffff"
>
<view
v-for=
"(item,key) in noticeList"
:key=
"key"
style=
"display: flex;background-color: #ffffff"
>
<!-- 原消息卡片模板 -->
<!-- 原消息卡片模板 -->
<view
class=
"noticeCard"
>
<view
class=
"noticeCard"
@
click=
"goDetail"
>
<view
class=
"noticeTop"
>
<view
class=
"noticeTop"
>
<view
class=
"titleClass"
>
基础数据审批
</view>
<view
class=
"titleClass"
>
<view
class=
"timeClass"
>
<img
:src=
"leftIconOne"
/>
{{
parseTimeA
(
item
.
createDate
,
'{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
{{
getLabelByValue
(
tableUserFormList
,
item
.
processType
)
}}
</view>
<view
class=
"statusText"
:style=
"
{color: statusMap[item.status].color}">
{{
statusMap
[
item
.
status
].
text
}}
</view>
</view>
<view
class=
"subTitleClass"
>
<view
class=
"subRow"
>
<view
class=
"subTitle"
>
发起时间
</view>
<view
class=
"subContent"
>
{{
parseTimeA
(
item
.
createDate
,
'YYYY/MM/DD {h
}
:{i
}
:{s
}
'
)
}}
<
/view
>
<
/view
>
<
view
class
=
"subRow"
>
<
view
class
=
"subTitle"
>
发起人
<
/view
>
<
view
class
=
"subContent"
>
{{
item
.
initiateUserName
||
'-'
}}
{{
item
.
initiateDeptName
?
'·'
+
item
.
initiateDeptName
:
''
}}
<
/view
>
<
/view
>
<
view
class
=
"subRow"
>
<
view
class
=
"subTitle"
>
审批人
<
/view
>
<
view
class
=
"subContent"
>
{{
item
.
configApproveUserName
||
'-'
}}
<
/view
>
<
/view
>
<
view
class
=
"subRow"
>
<
view
class
=
"subTitle"
>
结束时间
<
/view
>
<
view
class
=
"subContent"
>
{{
parseTimeA
(
item
.
endDate
,
'YYYY/MM/DD {h
}
:{i
}
:{s
}
'
)
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"subTitleClass"
>
{{
item
.
message
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<!--
底部加载
-->
<!--
底部加载
-->
...
@@ -32,12 +68,47 @@
...
@@ -32,12 +68,47 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
queryInstanceListAeByPage
}
from
'../api/system/approve'
import
{
queryInstanceListAeByPage
}
from
'../../api/system/approve'
import
{
parseTime
}
from
'../api/utils/ruoyi'
import
{
parseTime
}
from
'../../api/utils/ruoyi'
import
leftIconOne
from
'../../static/images/leftIconOne.png'
import
leftIconTwo
from
'../../static/images/leftIconTwo.png'
import
{
getDicts
}
from
"../../api/system/baseConfig"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
statusMap
:
{
'2'
:
{
text
:
'已通过'
,
color
:
'#2B9603'
,
}
,
'0'
:
{
text
:
'草稿'
,
color
:
'grey'
,
}
,
'6'
:
{
text
:
'异常结束'
,
color
:
'#FF5F5F'
,
}
,
'7'
:
{
text
:
'已失效'
,
color
:
'#FF5F5F'
,
}
,
'10'
:
{
text
:
'待审批'
,
color
:
'#333399'
,
}
,
'5'
:
{
text
:
'已驳回'
,
color
:
'#FF5F5F'
,
}
,
'3'
:
{
text
:
'已驳回'
,
color
:
'#FF5F5F'
,
}
,
}
,
leftIconOne
,
leftIconTwo
,
queryNotice
:
{
queryNotice
:
{
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
...
@@ -53,10 +124,14 @@ export default {
...
@@ -53,10 +124,14 @@ export default {
nomore
:
'没有更多了'
nomore
:
'没有更多了'
}
,
}
,
noticeList
:
[],
noticeList
:
[],
tableUserFormList
:
[],
loading
:
true
,
loading
:
true
,
total
:
0
,
total
:
0
,
}
}
}
,
}
,
created
()
{
this
.
getList
()
}
,
mounted
()
{
mounted
()
{
this
.
loadData
()
this
.
loadData
()
}
,
}
,
...
@@ -69,6 +144,32 @@ export default {
...
@@ -69,6 +144,32 @@ export default {
}
,
}
,
}
,
}
,
methods
:
{
methods
:
{
goDetail
()
{
uni
.
navigateTo
({
url
:
'/pages/approval_detail/baseDetail?id=1'
}
)
}
,
/**
* 指定列表,根据值,取label
*/
getLabelByValue
(
list
,
value
,
key
=
'value'
,
label
=
'label'
)
{
const
item
=
list
.
find
(
item
=>
item
[
key
]
===
value
)
return
item
?
item
[
label
]
:
'-'
}
,
/** 查询字典数据列表 */
getList
()
{
getDicts
(
'table_user_from'
).
then
(
response
=>
{
// console.log("查询数据字段狗",response)
const
tableUserForm
=
response
.
data
for
(
const
item
of
tableUserForm
)
{
const
result
=
{
value
:
item
.
dictValue
,
label
:
item
.
dictLabel
}
this
.
tableUserFormList
.
push
(
result
)
}
}
)
}
,
async
loadData
()
{
async
loadData
()
{
this
.
loading
=
true
this
.
loading
=
true
const
res
=
await
queryInstanceListAeByPage
({
const
res
=
await
queryInstanceListAeByPage
({
...
@@ -166,16 +267,29 @@ export default {
...
@@ -166,16 +267,29 @@ export default {
display
:
flex
;
display
:
flex
;
justify
-
content
:
space
-
between
;
justify
-
content
:
space
-
between
;
border
-
bottom
:
2
rpx
solid
#
F2F2F2
;
border
-
bottom
:
2
rpx
solid
#
F2F2F2
;
padding
:
22
rpx
34
rpx
24
rpx
32
rpx
;
padding
:
22
rpx
34
rpx
24
rpx
0
;
}
}
.
titleClass
{
.
titleClass
{
display
:
flex
;
align
-
items
:
center
;
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
weight
:
500
;
font
-
weight
:
500
;
font
-
size
:
30
rpx
;
font
-
size
:
30
rpx
;
color
:
#
333399
;
color
:
#
111111
;
text
-
align
:
left
;
text
-
align
:
left
;
font
-
style
:
normal
;
font
-
style
:
normal
;
text
-
transform
:
none
;
text
-
transform
:
none
;
img
{
margin
-
right
:
22
rpx
;
}
}
.
statusText
{
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
weight
:
500
;
font
-
size
:
28
rpx
;
text
-
align
:
right
;
font
-
style
:
normal
;
text
-
transform
:
none
;
}
}
.
subTitleClass
{
.
subTitleClass
{
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
family
:
PingFangSC
,
PingFang
SC
;
...
@@ -187,6 +301,29 @@ export default {
...
@@ -187,6 +301,29 @@ export default {
text
-
transform
:
none
;
text
-
transform
:
none
;
padding
:
28
rpx
32
rpx
0
32
rpx
;
padding
:
28
rpx
32
rpx
0
32
rpx
;
}
}
.
subRow
{
display
:
flex
;
justify
-
content
:
space
-
between
;
margin
-
bottom
:
12
rpx
;
.
subTitle
{
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
weight
:
400
;
font
-
size
:
28
rpx
;
color
:
#
9
A9A9A
;
text
-
align
:
left
;
font
-
style
:
normal
;
text
-
transform
:
none
;
}
.
subContent
{
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
weight
:
400
;
font
-
size
:
28
rpx
;
color
:
#
222222
;
text
-
align
:
center
;
font
-
style
:
normal
;
text
-
transform
:
none
;
}
}
.
timeClass
{
.
timeClass
{
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
family
:
PingFangSC
,
PingFang
SC
;
font
-
weight
:
400
;
font
-
weight
:
400
;
...
...
components/production-approval.vue
→
components/
home-approval/
production-approval.vue
View file @
b277aaba
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
queryInstanceByPage
}
from
'../api/system/approve'
import
{
queryInstanceByPage
}
from
'../
../
api/system/approve'
import
{
parseTime
}
from
'../api/utils/ruoyi'
import
{
parseTime
}
from
'../
../
api/utils/ruoyi'
export
default
{
export
default
{
props
:
[
'queryParams'
],
props
:
[
'queryParams'
],
...
...
pages.json
View file @
b277aaba
...
@@ -14,6 +14,13 @@
...
@@ -14,6 +14,13 @@
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
"path"
:
"pages/approval_detail/baseDetail"
,
"style"
:
{
"navigationBarTitleText"
:
"DHEC QMS"
,
"navigationStyle"
:
"custom"
}
},
{
{
"path"
:
"pages/mine/setting/aboutUs"
,
"path"
:
"pages/mine/setting/aboutUs"
,
"style"
:
{
"style"
:
{
...
...
pages/approval_detail/baseDetail.vue
0 → 100644
View file @
b277aaba
<
template
>
<view>
详情
</view>
</
template
>
<
script
>
export
default
{
name
:
"baseDetail"
,
onLoad
:
function
(
option
)
{
//option为object类型,会序列化上个页面传递的参数
console
.
log
(
'id'
,
option
.
id
);
//打印出上个页面传递的参数。
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
pages/index.vue
View file @
b277aaba
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
<
script
>
<
script
>
// 新增子组件导入
// 新增子组件导入
import
BaseDataApproval
from
'../components/base-data-approval'
import
BaseDataApproval
from
'../components/
home-approval/
base-data-approval'
import
BaseDataStart
from
'../components/base-data-start'
import
BaseDataStart
from
'../components/
home-approval/
base-data-start'
import
ProductionApproval
from
'../components/production-approval'
import
ProductionApproval
from
'../components/
home-approval/
production-approval'
import
MineNavbar
from
"../components/mine-navbar/mineNavbar"
;
import
MineNavbar
from
"../components/mine-navbar/mineNavbar"
;
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
...
@@ -42,8 +42,8 @@ export default {
...
@@ -42,8 +42,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
mesTypeMap
:
{
mesTypeMap
:
{
'1'
:
'BaseData
Approval
'
,
'1'
:
'BaseData
Start
'
,
'2'
:
'BaseData
Start
'
,
'2'
:
'BaseData
Approval
'
,
'3'
:
'ProductionApproval'
'3'
:
'ProductionApproval'
},
},
list1
:
[{
list1
:
[{
...
...
static/images/leftIconOne.png
0 → 100644
View file @
b277aaba
118 Bytes
static/images/leftIconTwo.png
0 → 100644
View file @
b277aaba
117 Bytes
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