Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
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
pda
pda-ui
Commits
6eb8c063
Commit
6eb8c063
authored
May 09, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改生产排产
parent
8889fa95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
index.vue
src/views/mes/pro/scheduleList/index.vue
+11
-14
No files found.
src/views/mes/pro/scheduleList/index.vue
View file @
6eb8c063
...
...
@@ -193,6 +193,7 @@
value-format=
"yyyy-MM-dd hh:mm:ss"
format=
"yyyy-MM-dd hh:mm:ss"
placeholder=
"请选择计划开始时间"
@
blur=
"submitForm(scope.row)"
>
</el-date-picker>
<span
v-else
>
{{
...
...
@@ -215,6 +216,7 @@
value-format=
"yyyy-MM-dd hh:mm:ss"
format=
"yyyy-MM-dd hh:mm:ss"
placeholder=
"请选择计划结束时间"
@
blur=
"submitForm(scope.row)"
>
</el-date-picker>
<span
v-else
>
{{
...
...
@@ -531,8 +533,9 @@ export default {
this
.
getList
()
},
// 获取工作单元
onWorkunitSelect
(
row
)
{
console
.
log
(
45456
,
row
);
async
onWorkunitSelect
(
row
)
{
await
this
.
submitForm
({...
this
.
currentData
,
workunitId
:
row
.
workunitId
})
this
.
$refs
[
'WorkunitSelect'
].
showFlag
=
false
},
async
hanldeGettaskWorkunitList
()
{
this
.
taskWorkunitList
=
[]
...
...
@@ -651,18 +654,12 @@ export default {
this
.
open
=
true
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
const
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
remark
}
=
this
.
form
const
params
=
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
remark
}
updateList
(
params
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
});
async
submitForm
(
row
)
{
const
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
workunitId
}
=
row
const
params
=
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
workunitId
}
await
updateList
(
params
)
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
getList
();
},
handleSumbitScheduleList
()
{
if
(
this
.
$refs
.
orderListRef
.
selectedRows
&&
this
.
$refs
.
orderListRef
.
selectedRows
.
length
>
0
)
{
...
...
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