Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kd_control
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhanglw
kd_control
Commits
0e463b9e
Commit
0e463b9e
authored
Apr 12, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏生产计划每日采集概览
parent
54b8f717
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
index.vue
src/views/productionPlanManagement/productionPlan/index.vue
+7
-7
No files found.
src/views/productionPlanManagement/productionPlan/index.vue
View file @
0e463b9e
...
...
@@ -33,11 +33,11 @@
</div>
</div>
<!--
<div
style=
"width:100%;font-size:12px;padding-left:5px;"
>
采点分配概览:
</div>
-->
<div
class=
"fbListBox"
>
<div
v-for=
"item in day.sumList"
:style=
"
{width:item.pv+'%',height:'2px',margin:'2px',background:'#8fbc8f'}"
>
<div
:style=
"
{width:item.av+'%',height:'2px',background:'#00a0e9'}">
</div
>
</div
>
</div
>
<!--
<div
class=
"fbListBox"
>
--
>
<!--
<div
v-for=
"item in day.sumList"
:style=
"
{width:item.pv+'%',height:'2px',margin:'2px',background:'#8fbc8f'}">--
>
<!--
<div
:style=
"
{width:item.av+'%',height:'2px',background:'#00a0e9'}">
</div>
--
>
<!--
</div>
--
>
<!--
</div>
--
>
</div>
<div
v-else
>
<div
style=
"width: 100%;display:flex"
>
...
...
@@ -157,9 +157,9 @@ export default {
},
submitPlanView
(){
const
This
=
this
;
let
d
=
new
Date
(
this
.
planSDate
);
// this.planSDate = this.planSDate.toJSON?this.planSDate.toJSON().substr(0,10):this.planSDate;
// this.planEDate = this.planEDate.toJSON?this.planEDate.toJSON().substr(0,10):this.planEDate;
let
d
=
new
Date
(
this
.
planSDate
);
this
.
planSDate
=
`
${
d
.
getFullYear
()}
-
${(
'
0
'
+
(
d
.
getMonth
()
+
1
)).
substr
(
-
2
)}
-
${(
'
0
'
+
(
d
.
getDate
())).
substr
(
-
2
)}
`
;
d
=
new
Date
(
this
.
planEDate
);
this
.
planEDate
=
`
${
d
.
getFullYear
()}
-
${(
'
0
'
+
(
d
.
getMonth
()
+
1
)).
substr
(
-
2
)}
-
${(
'
0
'
+
(
d
.
getDate
())).
substr
(
-
2
)}
`
;
...
...
@@ -286,7 +286,7 @@ export default {
let
maxVal
=
resData
.
maxSite
||
1
;
dayObj
.
totalPlan
=
resData
.
totalPlan
;
dayObj
.
totalProduce
=
resData
.
totalProduce
;
dayObj
.
sumList
=
resData
.
sumList
;
dayObj
.
sumList
=
resData
.
sumList
||
[]
;
dayObj
.
sumList
.
forEach
((
item
)
=>
{
item
.
pv
=
Math
.
round
(
item
.
plan
/
maxVal
*
100
);
item
.
av
=
Math
.
min
(
100
,
Math
.
round
(
item
.
actualProduction
/
item
.
plan
*
100
));
...
...
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