Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-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
mes
mes-ui
Commits
493b7037
Commit
493b7037
authored
Nov 06, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产排产
parent
048d7c4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
index.vue
src/views/mes/pro/scheduleList/index.vue
+21
-3
index.vue
src/views/mes/tm/tool/index.vue
+1
-1
No files found.
src/views/mes/pro/scheduleList/index.vue
View file @
493b7037
...
@@ -505,7 +505,17 @@
...
@@ -505,7 +505,17 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<el-table
:data=
"AssignList"
>
<el-table-column
type=
"index"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"编排单号"
width=
"120"
prop=
"arrangeCode"
/>
<el-table-column
label=
"排产数量"
width=
"120"
prop=
"quantity"
/>
<el-table-column
label=
"工作单元"
width=
"120"
prop=
"workunitName"
/>
</el-table>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"handleCheckJobAssignment"
>
检 查
</el-button>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"handleSubmitJobAssignment"
@
click=
"handleSubmitJobAssignment"
...
@@ -630,9 +640,10 @@ export default {
...
@@ -630,9 +640,10 @@ export default {
workshopId
:
null
,
workshopId
:
null
,
workstationId
:
null
workstationId
:
null
},
},
AssignList
:
[],
taskId
:
null
,
taskId
:
null
,
Assignform
:
{
Assignform
:
{
quantity
:
1
,
quantity
:
0
,
workunitName
:
''
workunitName
:
''
},
},
scheduleBtnDis
:
false
,
scheduleBtnDis
:
false
,
...
@@ -712,8 +723,10 @@ export default {
...
@@ -712,8 +723,10 @@ export default {
this
.
arrangCodeVisible
=
true
this
.
arrangCodeVisible
=
true
},
},
handleSubmitJobAssignment
()
{
handleSubmitJobAssignment
()
{
if
(
!
this
.
Assignform
.
quantity
||
this
.
Assignform
.
quantity
===
0
)
return
this
.
$modal
.
msgError
(
"分派任务数量不可为0"
)
if
(
!
this
.
AssignList
||
this
.
AssignList
.
length
===
0
)
return
this
.
$modal
.
msgError
(
"请先点击检查按钮,检查数据"
)
let
datas
=
Object
.
assign
({},
this
.
selectedRows
[
0
]);
let
datas
=
Object
.
assign
({},
this
.
selectedRows
[
0
]);
datas
.
taskWorkunit
=
this
.
Assign
form
;
datas
.
taskWorkunit
=
this
.
Assign
List
[
0
]
;
delete
datas
.
proWorkorderList
;
delete
datas
.
proWorkorderList
;
putProtaskSplit
(
datas
).
then
((
res
)
=>
{
putProtaskSplit
(
datas
).
then
((
res
)
=>
{
// console.log(res, 'res333')
// console.log(res, 'res333')
...
@@ -723,6 +736,10 @@ export default {
...
@@ -723,6 +736,10 @@ export default {
}
}
});
});
},
},
handleCheckJobAssignment
()
{
if
(
!
this
.
Assignform
.
quantity
||
this
.
Assignform
.
quantity
===
0
)
return
this
.
$modal
.
msgError
(
"分派任务数量不可为0"
)
this
.
AssignList
=
[
JSON
.
parse
(
JSON
.
stringify
(
this
.
Assignform
))]
},
handleSubmitSplit
()
{
handleSubmitSplit
()
{
let
datas
=
Object
.
assign
({},
this
.
splitform
);
let
datas
=
Object
.
assign
({},
this
.
splitform
);
datas
[
'taskId'
]
=
this
.
selectedRows
[
0
].
taskId
datas
[
'taskId'
]
=
this
.
selectedRows
[
0
].
taskId
...
@@ -780,8 +797,9 @@ export default {
...
@@ -780,8 +797,9 @@ export default {
this
.
workstationList
=
response
.
rows
this
.
workstationList
=
response
.
rows
},
},
handleJobAssignment
()
{
handleJobAssignment
()
{
this
.
AssignList
=
[]
this
.
Assignform
=
{
this
.
Assignform
=
{
quantity
:
1
,
quantity
:
0
,
workunitName
:
null
,
workunitName
:
null
,
workunitId
:
null
workunitId
:
null
};
};
...
...
src/views/mes/tm/tool/index.vue
View file @
493b7037
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"刀模版具类型"
prop=
"toolTypeId"
>
<el-form-item
label=
"刀模版具类型"
prop=
"toolTypeId"
>
<el-select
v-model=
"queryParams.toolTypeId"
placeholder=
"请选择类型"
>
<el-select
v-model=
"queryParams.toolTypeId"
placeholder=
"请选择类型"
clearable
>
<el-option
<el-option
v-for=
"dict in toolTypeOptions"
v-for=
"dict in toolTypeOptions"
:key=
"dict.toolTypeId"
:key=
"dict.toolTypeId"
...
...
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