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
54b8f717
Commit
54b8f717
authored
Apr 12, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
77350747
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
crud.js
src/components/Crud/crud.js
+8
-4
index.vue
src/views/productionPlanManagement/productionPlan/index.vue
+7
-3
No files found.
src/components/Crud/crud.js
View file @
54b8f717
...
...
@@ -311,12 +311,16 @@ function CRUD(options) {
if
(
!
delAll
)
{
dataStatus
.
delete
=
CRUD
.
STATUS
.
PROCESSING
}
return
crud
.
crudMethod
.
del
(
ids
).
then
(()
=>
{
return
crud
.
crudMethod
.
del
(
ids
).
then
((
res
)
=>
{
if
(
delAll
)
{
crud
.
delAllLoading
=
false
}
else
dataStatus
.
delete
=
CRUD
.
STATUS
.
PREPARED
}
else
{
dataStatus
.
delete
=
CRUD
.
STATUS
.
PREPARED
}
crud
.
dleChangePage
(
1
)
if
(
!
res
.
status
){
crud
.
delSuccessNotify
()
}
callVmHook
(
crud
,
CRUD
.
HOOK
.
afterDelete
,
data
)
crud
.
refresh
()
}).
catch
(()
=>
{
...
...
src/views/productionPlanManagement/productionPlan/index.vue
View file @
54b8f717
...
...
@@ -32,7 +32,7 @@
实际产出:
<span
style=
"font-size:18px;font-weight:400;color:#356eec"
>
{{
day
.
totalProduce
}}
</span>
吨
<br>
</div>
</div>
<div
style=
"width:100%;font-size:12px;padding-left:5px;"
>
采点分配概览:
</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>
...
...
@@ -157,8 +157,12 @@ export default {
},
submitPlanView
(){
const
This
=
this
;
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 = this.planSDate.toJSON?this.planSDate.toJSON().substr(0,10):this.planSDate;
// this.planEDate = this.planEDate.toJSON?this.planEDate.toJSON().substr(0,10):this.planEDate;
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
)}
`
;
if
(
this
.
planSDate
>
this
.
planEDate
){
This
.
$notify
({
title
:
'
注意:计划开始时间不能大于结束时间!
'
,
...
...
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