Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
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
TFMOM
TF-MOM-WEB
Commits
1c37b50f
Commit
1c37b50f
authored
Nov 01, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改工时分配
parent
614a06ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
index.vue
...ateComponents/components/workAllocationEditList/index.vue
+13
-5
No files found.
applications/dee-mes/src/privateComponents/components/workAllocationEditList/index.vue
View file @
1c37b50f
...
...
@@ -18,7 +18,7 @@
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"
basicData.joExecutePlan.state==='Pending_Review'
"
prop=
"workHourOPercent"
label=
"工时占比(%)"
>
<el-table-column
v-if=
"
flag
"
prop=
"workHourOPercent"
label=
"工时占比(%)"
>
<
template
slot-scope=
"scope"
>
<el-input-number
v-if=
"scope.row.id === tabClickIndex"
...
...
@@ -55,6 +55,10 @@ export default {
itemObj
:
{
type
:
Object
,
default
:
null
},
form
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
...
...
@@ -65,8 +69,12 @@ export default {
}
},
computed
:
{
contentTypeOptions
()
{
return
this
.
basicData
.
joExecutePlan
.
prodTask
flag
()
{
if
(
this
.
itemObj
.
isProcess
)
{
return
!
this
.
itemObj
.
readOnly
}
else
{
return
this
.
basicData
.
joExecutePlan
.
state
===
'Pending_Review'
||
this
.
form
.
state
===
'Pending_Review'
}
}
},
watch
:
{
...
...
@@ -96,7 +104,7 @@ export default {
{
'fieldName'
:
'joExecutePlanId'
,
'operator'
:
'EQ'
,
'value'
:
this
.
basicData
.
joExecutePlanId
'value'
:
this
.
basicData
.
joExecutePlanId
||
this
.
basicData
.
id
},
{
'fieldName'
:
'subTypeName'
,
...
...
@@ -127,7 +135,7 @@ export default {
this
.
tableData
=
[]
if
(
res
.
items
&&
res
.
items
.
content
)
{
res
.
items
.
content
.
forEach
(
element
=>
{
element
.
allWorkHour
=
this
.
basicData
.
joExecutePlan
.
allWorkHour
element
.
allWorkHour
=
this
.
form
.
allWorkHour
||
this
.
basicData
.
joExecutePlan
.
allWorkHour
if
(
element
.
workHour
!==
null
)
{
element
.
workHourOPercent
=
this
.
oPercent
(
element
.
workHour
,
element
.
allWorkHour
)
}
else
{
...
...
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