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
ximai
mes-ui
Commits
581f216e
Commit
581f216e
authored
Nov 05, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产版本
parent
7092f429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
22 deletions
+27
-22
ProogingProcess.vue
...mes/pro/productionSolution/components/ProogingProcess.vue
+27
-22
No files found.
src/views/mes/pro/productionSolution/components/ProogingProcess.vue
View file @
581f216e
...
@@ -41,27 +41,42 @@
...
@@ -41,27 +41,42 @@
{{
((
scope
.
$index
+
1
)
*
10
).
toString
().
padStart
(
4
,
'0'
)
}}
{{
((
scope
.
$index
+
1
)
*
10
).
toString
().
padStart
(
4
,
'0'
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('工序编码')"
prop=
"processId"
align=
"center"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<el-select
v-model=
"scope.row.processId"
filterable
:disabled=
"mode == 'info'"
@
change=
"(v) => chooseprocessName(v, scope.row, scope.$index)"
>
<el-option
v-for=
"item in processOptions"
:key=
"item.processId"
:label=
"item.processCode"
:value=
"item.processId"
></el-option>
</el-select>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('工序名称')"
prop=
"processName"
align=
"center"
width=
"160"
>
<el-table-column
:label=
"$t('工序名称')"
prop=
"processName"
align=
"center"
width=
"160"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-select
v-model=
"scope.row.process
Name
"
filterable
:disabled=
"mode == 'info'"
<el-select
v-model=
"scope.row.process
Id
"
filterable
:disabled=
"mode == 'info'"
@
change=
"(v) => chooseprocessName(v, scope.row, scope.$index)"
>
@
change=
"(v) => chooseprocessName(v, scope.row, scope.$index)"
>
<el-option
<el-option
v-for=
"item in processOptions"
v-for=
"item in processOptions"
:key=
"item.processId"
:key=
"item.processId"
:label=
"item.processName"
:label=
"item.processName"
:value=
"item.process
Name
"
:value=
"item.process
Id
"
></el-option>
></el-option>
</el-select>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('
工序编码')"
prop=
"processCode"
align=
"center"
width=
"14
0"
>
<el-table-column
:label=
"$t('
common.workstation_code')"
prop=
"workstationCode"
align=
"center"
width=
"13
0"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
<el-select
v-model=
"scope.row.workstationId"
:disabled=
"mode == 'info'"
filterable
@
change=
"(v) => chooseworkstationName(v, scope.row, scope.$index)"
>
v-model=
"scope.row.processCode"
<el-option
v-for=
"dict in workstationList"
disabled
:key=
"dict.workstationId"
clearable
:label=
"dict.workstationCode"
/>
:value=
"dict.workstationId"
/>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('common.workstation')"
prop=
"workstationId"
align=
"center"
width=
"140"
>
<el-table-column
:label=
"$t('common.workstation')"
prop=
"workstationId"
align=
"center"
width=
"140"
>
...
@@ -76,16 +91,6 @@
...
@@ -76,16 +91,6 @@
</el-select>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('common.workstation_code')"
prop=
"workstationCode"
align=
"center"
width=
"130"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.workstationCode"
disabled
clearable
/>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('标准工时')"
prop=
"stdWorkingTime"
align=
"center"
width=
"100"
>
<el-table-column
:label=
"$t('标准工时')"
prop=
"stdWorkingTime"
align=
"center"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-input
<el-input
...
@@ -806,10 +811,10 @@ export default {
...
@@ -806,10 +811,10 @@ export default {
};
};
},
},
chooseprocessName
(
e
,
row
,
index
)
{
chooseprocessName
(
e
,
row
,
index
)
{
const
item
=
this
.
processOptions
.
find
(
v
=>
v
.
processName
===
e
)
const
item
=
this
.
processOptions
.
find
(
v
=>
v
.
processId
===
e
)
row
[
'processId'
]
=
item
.
processId
row
[
'processCode'
]
=
item
.
processCode
row
[
'processCode'
]
=
item
.
processCode
if
(
e
&&
this
.
tableData
[
this
.
tableData
.
length
-
1
][
'processName'
])
{
row
[
'processName'
]
=
item
.
processName
if
(
e
&&
this
.
tableData
[
this
.
tableData
.
length
-
1
][
'processId'
])
{
this
.
tableData
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
breakData
)))
this
.
tableData
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
breakData
)))
}
}
},
},
...
...
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