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
23110077
Commit
23110077
authored
Mar 27, 2025
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批提交1
parent
7ff1a596
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
31 deletions
+102
-31
drawerShow.vue
pages/approval_detail/drawerShow.vue
+102
-31
No files found.
pages/approval_detail/drawerShow.vue
View file @
23110077
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
所属产线
所属产线
</view>
</view>
<view
class=
"subContent"
>
<view
class=
"subContent"
>
{{
instanceDetail
.
toolCheck
Dto
.
lineName
||
'-'
}}
{{
instanceDetail
.
material
Dto
.
lineName
||
'-'
}}
</view>
</view>
</view>
</view>
<view
class=
"subRow"
>
<view
class=
"subRow"
>
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
详细信息
详细信息
</view>
</view>
<view
class=
"remark-container"
>
<view
class=
"remark-container"
>
<view
class=
"rmark-card"
v-for=
"(item,
key
) in instanceDetailList"
:key=
"index"
>
<view
class=
"rmark-card"
v-for=
"(item,
index
) in instanceDetailList"
:key=
"index"
>
<
template
v-if=
"getProcessType() === '工具'"
>
<
template
v-if=
"getProcessType() === '工具'"
>
<view
class=
"subRow"
>
<view
class=
"subRow"
>
<view
class=
"subTitle"
>
<view
class=
"subTitle"
>
...
@@ -232,9 +232,8 @@
...
@@ -232,9 +232,8 @@
</view>
</view>
<view
:class=
"[
<view
:class=
"[
item.surplusDay
<
=
0
?
'
expire-color
'
:
null
item.surplusDay
<
=
0
?
'
expire-color
'
:
null
,'
subContent
']"
>
,
'
subContent
']"
>
{{
item
.
surplusDay
<=
0
?
'到期'
:
(
item
.
surplusDay
+
'天'
)
}}
{{
item
.
surplusDay
<=
0
?
'到期'
:
(
item
.
surplusDay
+
'天'
)
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
template
v-if=
"getProcessType() === '辅材'"
>
<
template
v-if=
"getProcessType() === '辅材'"
>
...
@@ -259,7 +258,7 @@
...
@@ -259,7 +258,7 @@
有效期截止日期
有效期截止日期
</view>
</view>
<view
class=
"subContent"
>
<view
class=
"subContent"
>
{{
item
.
expirationDate
?
item
.
expirationDate
.
substring
(
0
,
10
)
:
'-'
}}
{{
item
.
expirationDate
?
item
.
expirationDate
.
substring
(
0
,
10
)
:
'-'
}}
</view>
</view>
</view>
</view>
<view
class=
"subRow"
>
<view
class=
"subRow"
>
...
@@ -276,9 +275,9 @@
...
@@ -276,9 +275,9 @@
</view>
</view>
<view
:class=
"[
<view
:class=
"[
item.surplusDay
<
=
0
?
'
expire-color
'
:
null
item.surplusDay
<
=
0
?
'
expire-color
'
:
null
,
'
subContent
']"
>
,
'
subContent
']"
>
{{
item
.
theRemainingCurrentValidityPeriod
<=
0
?
'到期'
:
(
item
.
theRemainingCurrentValidityPeriod
+
'天'
)
}}
{{
item
.
theRemainingCurrentValidityPeriod
<=
0
?
'到期'
:
</view>
(
item
.
theRemainingCurrentValidityPeriod
+
'天'
)
}}
</view>
</view>
</view>
</
template
>
</
template
>
<
template
v-if=
"getProcessType() === '标定'"
>
<
template
v-if=
"getProcessType() === '标定'"
>
...
@@ -295,7 +294,7 @@
...
@@ -295,7 +294,7 @@
标定时间
标定时间
</view>
</view>
<view
class=
"subContent"
>
<view
class=
"subContent"
>
{{
item
.
calibrationTime
?
item
.
calibrationTime
.
substring
(
0
,
10
)
:
'-'
}}
{{
item
.
calibrationTime
?
item
.
calibrationTime
.
substring
(
0
,
10
)
:
'-'
}}
</view>
</view>
</view>
</view>
<view
class=
"subRow"
>
<view
class=
"subRow"
>
...
@@ -312,9 +311,8 @@
...
@@ -312,9 +311,8 @@
</view>
</view>
<view
:class=
"[
<view
:class=
"[
item.surplusDay
<
=
0
?
'
expire-color
'
:
null
item.surplusDay
<
=
0
?
'
expire-color
'
:
null
,'
subContent
']"
>
,
'
subContent
']"
>
{{
item
.
surplusDay
<=
0
?
'到期'
:
(
item
.
surplusDay
+
'天'
)
}}
{{
item
.
surplusDay
<=
0
?
'到期'
:
(
item
.
surplusDay
+
'天'
)
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
template
v-if=
"getProcessType() === 'TPM'"
>
<
template
v-if=
"getProcessType() === 'TPM'"
>
...
@@ -331,7 +329,7 @@
...
@@ -331,7 +329,7 @@
定检时间
定检时间
</view>
</view>
<view
class=
"subContent"
>
<view
class=
"subContent"
>
{{
item
.
fixcheckDate
?
item
.
fixcheckDate
.
substring
(
0
,
10
)
:
'-'
}}
{{
item
.
fixcheckDate
?
item
.
fixcheckDate
.
substring
(
0
,
10
)
:
'-'
}}
</view>
</view>
</view>
</view>
<view
class=
"subRow"
>
<view
class=
"subRow"
>
...
@@ -348,9 +346,8 @@
...
@@ -348,9 +346,8 @@
</view>
</view>
<view
:class=
"[
<view
:class=
"[
item.validityDay
<
=
0
?
'
expire-color
'
:
null
item.validityDay
<
=
0
?
'
expire-color
'
:
null
,'
subContent
']"
>
,
'
subContent
']"
>
{{
item
.
validityDay
<=
0
?
'到期'
:
(
item
.
validityDay
+
'天'
)
}}
{{
item
.
validityDay
<=
0
?
'到期'
:
(
item
.
validityDay
+
'天'
)
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
...
@@ -358,14 +355,69 @@
...
@@ -358,14 +355,69 @@
<!-- 备注区完成 -->
<!-- 备注区完成 -->
<!-- 变更内容区 -->
<!-- 变更内容区 -->
<view
class=
"title"
>
<view
class=
"title"
>
变更内容
提交信息
</view>
</view>
<view
class=
"change-container"
>
<view
class=
"change-container"
>
<view
class=
"change-item"
>
<u-form
:model=
"approve"
labelWidth=
"120"
>
请登录PC端查看变更详情
<
template
v-for=
"(item, index) in instanceDetail.approves"
>
</view>
<!-- TPM日期选择 -->
<u-form-item
v-if=
"index !== instanceDetail.approves.length - 1
&& processCode === '00006'
&& item.currentNode === '1'
&& processStatus
&& isUpdate"
key=
"tpm-date"
borderBottom
@
click=
"showFormResultOne = true; hideKeyboard()"
label=
"计划TPM日期"
>
<u--input
v-model=
"approve.formResultOne"
disabled
disabledColor=
"#ffffff"
placeholder=
"请选择计划TPM日期"
border=
"none"
></u--input>
<u-icon
slot=
"right"
name=
"arrow-right"
></u-icon>
</u-form-item>
<!-- 点检日期选择 -->
<u-form-item
v-if=
"index !== instanceDetail.approves.length - 1
&& processCode === '00010'
&& item.currentNode === '1'
&& processStatus
&& isUpdate"
key=
"check-date"
@
click=
"showFormResultOne = true; hideKeyboard()"
borderBottom
label=
"计划点检日期"
>
<u--input
v-model=
"approve.formResultOne"
disabled
disabledColor=
"#ffffff"
placeholder=
"请选择计划点检日期"
border=
"none"
></u--input>
<u-icon
slot=
"right"
name=
"arrow-right"
></u-icon>
</u-form-item>
<!-- 处理结果下拉 -->
<u-form-item
v-if=
"processCode === '00004'
&& index === instanceDetail.approves.length - 1
&& item.currentNode === '1'"
key=
"handle-result"
label=
"处理结果"
>
<u-select
v-model=
"approve.selectOption"
:options=
"selectOptions"
:disabled=
"!isUpdate || item.approveStatus !== '0'"
/>
</u-form-item>
</
template
>
</u-form>
</view>
</view>
<u-datetime-picker
:show=
"showFormResultOne"
:value=
"formResultOne"
mode=
"date"
closeOnClickOverlay
@
confirm=
"formResultOneConfirm"
@
cancel=
"formResultOneClose"
@
close=
"formResultOneClose"
></u-datetime-picker>
<!-- 按钮区域 -->
<!-- 按钮区域 -->
<view
v-if=
"isView === '0' && status === 'true'"
class=
"btns-container"
>
<view
v-if=
"isView === '0' && status === 'true'"
class=
"btns-container"
>
<view
class=
"btn reject-btn"
@
click=
"approveByAdmin('REJECT')"
>
<view
class=
"btn reject-btn"
@
click=
"approveByAdmin('REJECT')"
>
...
@@ -400,6 +452,13 @@ export default {
...
@@ -400,6 +452,13 @@ export default {
components
:
{
VerticalSteps
},
components
:
{
VerticalSteps
},
data
()
{
data
()
{
return
{
return
{
selectOptions
:[
{
label
:
'本次强制开机'
,
value
:
'本次强制开机'
},
{
label
:
'本次禁止开机'
,
value
:
'本次禁止开机'
},
{
label
:
'改正后开机'
,
value
:
'改正后开机'
}
],
formResultOne
:
null
,
showFormResultOne
:
false
,
isLoading
:
false
,
isLoading
:
false
,
processId
:
''
,
processId
:
''
,
processCode
:
''
,
processCode
:
''
,
...
@@ -545,6 +604,16 @@ export default {
...
@@ -545,6 +604,16 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
formResultOneConfirm
(
e
)
{
this
.
showFormResultOne
=
false
;
this
.
approve
.
formResultOne
=
uni
.
$u
.
timeFormat
(
e
.
value
,
'yyyy-mm-dd'
)
},
formResultOneClose
()
{
this
.
showFormResultOne
=
false
},
hideKeyboard
()
{
uni
.
hideKeyboard
()
},
getProcessType
()
{
getProcessType
()
{
if
(
if
(
this
.
processCode
===
'00002'
||
this
.
processCode
===
'00002'
||
...
@@ -784,8 +853,9 @@ export default {
...
@@ -784,8 +853,9 @@ export default {
padding
:
28rpx
46rpx
0
48rpx
;
padding
:
28rpx
46rpx
0
48rpx
;
// 新增卡片间距
// 新增卡片间距
&
>
view
{
&
>
view
{
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
&
:last-child
{
&
:last-child
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
...
@@ -844,6 +914,7 @@ export default {
...
@@ -844,6 +914,7 @@ export default {
text-transform
:
none
;
text-transform
:
none
;
}
}
.expire-color
{
.expire-color
{
color
:
red
!
important
;
color
:
red
!
important
;
}
}
...
...
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