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
f9906f4b
Commit
f9906f4b
authored
Nov 15, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作单元添加产线、序列号字段
parent
7f82e008
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
11 deletions
+59
-11
workunit.js
src/api/mes/md/workunit.js
+8
-0
th_TH.json
src/i18n/lang/th_TH.json
+3
-2
zh_CN.json
src/i18n/lang/zh_CN.json
+3
-2
index.vue
src/views/mes/md/product/index.vue
+1
-5
index.vue
src/views/mes/md/workunit/index.vue
+44
-2
No files found.
src/api/mes/md/workunit.js
View file @
f9906f4b
...
@@ -17,6 +17,14 @@ export function listWorkunits(query) {
...
@@ -17,6 +17,14 @@ export function listWorkunits(query) {
})
})
}
}
export
function
listLines
(
query
)
{
return
request
({
url
:
'/md/workunit/selectGroupLineName'
,
method
:
'get'
,
params
:
query
})
}
// 根据工作单元查询上机明细
// 根据工作单元查询上机明细
export
function
listWorkTmToolRequestList
(
query
)
{
export
function
listWorkTmToolRequestList
(
query
)
{
return
request
({
return
request
({
...
...
src/i18n/lang/th_TH.json
View file @
f9906f4b
...
@@ -2990,6 +2990,7 @@
...
@@ -2990,6 +2990,7 @@
"该工单当前状态为"
:
"สถานะปัจจุบันของใบสั่งงานคือ"
,
"该工单当前状态为"
:
"สถานะปัจจุบันของใบสั่งงานคือ"
,
", 不允许修改"
:
", ไม่อนุญาตให้แก้ไข"
,
", 不允许修改"
:
", ไม่อนุญาตให้แก้ไข"
,
"是否故障"
:
"ไม่ว่าจะเป็นความล้มเหลว"
,
"是否故障"
:
"ไม่ว่าจะเป็นความล้มเหลว"
,
"排程日期"
:
"วันที ่ กําหนดการ"
,
"排程日期"
:
"วันที ่ กําหนดการ"
,
"该工序已添加,请勿重复添加"
:
"มีการเพิ่มขั้นตอนห้ามเพิ่มซ้ำ"
"该工序已添加,请勿重复添加"
:
"มีการเพิ่มขั้นตอนห้ามเพิ่มซ้ำ"
,
"所属产线"
:
"สายการผลิต"
}
}
src/i18n/lang/zh_CN.json
View file @
f9906f4b
...
@@ -2990,6 +2990,7 @@
...
@@ -2990,6 +2990,7 @@
"该工单当前状态为"
:
"该工单当前状态为"
,
"该工单当前状态为"
:
"该工单当前状态为"
,
", 不允许修改"
:
", 不允许修改"
,
", 不允许修改"
:
", 不允许修改"
,
"是否故障"
:
"是否故障"
,
"是否故障"
:
"是否故障"
,
"排程日期"
:
"排程日期"
,
"排程日期"
:
"排程日期"
,
"该工序已添加,请勿重复添加"
:
"该工序已添加,请勿重复添加"
"该工序已添加,请勿重复添加"
:
"该工序已添加,请勿重复添加"
,
"所属产线"
:
"所属产线"
}
}
src/views/mes/md/product/index.vue
View file @
f9906f4b
...
@@ -73,11 +73,7 @@
...
@@ -73,11 +73,7 @@
<el-table-column
:label=
"$t('单位')"
align=
"center"
key=
"unitOfMeasure"
prop=
"unitOfMeasure"
v-if=
"columns[3].visible"
<el-table-column
:label=
"$t('单位')"
align=
"center"
key=
"unitOfMeasure"
prop=
"unitOfMeasure"
v-if=
"columns[3].visible"
:show-overflow-tooltip=
"true"
>
:show-overflow-tooltip=
"true"
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('物料/产品')"
align=
"center"
key=
"itemOrProduct"
prop=
"itemOrProduct"
<el-table-column
:label=
"$t('所属产线')"
align=
"center"
key=
"lineName"
prop=
"lineName"
v-if=
"columns[4].visible"
:show-overflow-tooltip=
"true"
>
v-if=
"columns[4].visible"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.mes_item_product"
:value=
"scope.row.itemOrProduct"
/>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('所属分类')"
align=
"center"
key=
"itemTypeName"
prop=
"itemTypeName"
v-if=
"columns[5].visible"
<el-table-column
:label=
"$t('所属分类')"
align=
"center"
key=
"itemTypeName"
prop=
"itemTypeName"
v-if=
"columns[5].visible"
...
...
src/views/mes/md/workunit/index.vue
View file @
f9906f4b
...
@@ -23,6 +23,16 @@
...
@@ -23,6 +23,16 @@
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('所属产线')"
prop=
"lineName"
>
<el-select
v-model=
"queryParams.lineName"
>
<el-option
v-for=
"line in lines"
:key=
"line"
:label=
"line"
:value=
"line"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
{{
$t
(
'common.search'
)
}}
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
{{
$t
(
'common.search'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
{{
$t
(
'common.reset'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
{{
$t
(
'common.reset'
)
}}
</el-button>
...
@@ -59,6 +69,8 @@
...
@@ -59,6 +69,8 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('common.workstation')"
align=
"center"
prop=
"workstationName"
/>
<el-table-column
:label=
"$t('common.workstation')"
align=
"center"
prop=
"workstationName"
/>
<el-table-column
:label=
"$t('common.workunit_name')"
align=
"center"
prop=
"workunitName"
/>
<el-table-column
:label=
"$t('common.workunit_name')"
align=
"center"
prop=
"workunitName"
/>
<el-table-column
:label=
"$t('序列号')"
align=
"center"
prop=
"serial"
/>
<el-table-column
:label=
"$t('所属产线')"
align=
"center"
prop=
"lineName"
/>
<el-table-column
:label=
"$t('是否启用')"
align=
"center"
prop=
"enableFlag"
>
<el-table-column
:label=
"$t('是否启用')"
align=
"center"
prop=
"enableFlag"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.enableFlag"
/>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.enableFlag"
/>
...
@@ -121,7 +133,25 @@
...
@@ -121,7 +133,25 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('序列号')"
label-width=
"120px"
prop=
"workunitName"
>
<el-input
v-model=
"form.serial"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('所属产线')"
label-width=
"120px"
>
<el-select
v-model=
"form.lineName"
>
<el-option
v-for=
"line in lines"
:key=
"line"
:label=
"line"
:value=
"line"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('是否故障')"
label-width=
"120px"
>
<el-form-item
:label=
"$t('是否故障')"
label-width=
"120px"
>
...
@@ -208,9 +238,10 @@
...
@@ -208,9 +238,10 @@
<
script
>
<
script
>
import
{
listWorkunit
,
getWorkunit
,
delWorkunit
,
addWorkunit
,
updateWorkunit
}
from
"@/api/mes/md/workunit"
;
import
{
listWorkunit
,
getWorkunit
,
delWorkunit
,
addWorkunit
,
updateWorkunit
,
listLines
}
from
"@/api/mes/md/workunit"
;
import
WorkstationSelect
from
"@/components/workstationSelect/simpletableSingle.vue"
;
import
WorkstationSelect
from
"@/components/workstationSelect/simpletableSingle.vue"
;
import
{
genCode
}
from
"@/api/system/autocode/rule"
import
{
genCode
}
from
"@/api/system/autocode/rule"
import
{
listAllWorkshop
}
from
"@/api/mes/md/workshop"
;
export
default
{
export
default
{
name
:
"Workunit"
,
name
:
"Workunit"
,
...
@@ -233,6 +264,7 @@ export default {
...
@@ -233,6 +264,7 @@ export default {
total
:
0
,
total
:
0
,
// 工作单元表格数据
// 工作单元表格数据
workunitList
:
[],
workunitList
:
[],
lines
:[],
autoGenFlag
:
false
,
autoGenFlag
:
false
,
// 弹出层标题
// 弹出层标题
title
:
""
,
title
:
""
,
...
@@ -293,6 +325,7 @@ export default {
...
@@ -293,6 +325,7 @@ export default {
},
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
getLines
();
},
},
methods
:
{
methods
:
{
/** 查询工作单元列表 */
/** 查询工作单元列表 */
...
@@ -324,6 +357,8 @@ export default {
...
@@ -324,6 +357,8 @@ export default {
treatingThicknessMax
:
''
,
treatingThicknessMax
:
''
,
treatingWidthMin
:
''
,
treatingWidthMin
:
''
,
treatingWidthMax
:
''
,
treatingWidthMax
:
''
,
serial
:
''
,
lineName
:
''
,
dieSunkOffsetOilTankNum
:
''
,
dieSunkOffsetOilTankNum
:
''
,
printingMethod
:
''
,
printingMethod
:
''
,
sacmForEdgeOpening
:
''
,
sacmForEdgeOpening
:
''
,
...
@@ -360,6 +395,7 @@ export default {
...
@@ -360,6 +395,7 @@ export default {
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
this
.
reset
();
this
.
reset
();
this
.
getLines
();
this
.
handleAutoGenChange
(
true
);
this
.
handleAutoGenChange
(
true
);
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
this
.
$t
(
'common.add_workunit'
);
this
.
title
=
this
.
$t
(
'common.add_workunit'
);
...
@@ -367,6 +403,7 @@ export default {
...
@@ -367,6 +403,7 @@ export default {
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
();
this
.
getLines
();
const
workunitId
=
row
.
workunitId
||
this
.
ids
const
workunitId
=
row
.
workunitId
||
this
.
ids
getWorkunit
(
workunitId
).
then
(
response
=>
{
getWorkunit
(
workunitId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
...
@@ -374,6 +411,11 @@ export default {
...
@@ -374,6 +411,11 @@ export default {
this
.
title
=
this
.
$t
(
'修改工作单元'
);
this
.
title
=
this
.
$t
(
'修改工作单元'
);
});
});
},
},
getLines
()
{
listLines
().
then
((
response
)
=>
{
this
.
lines
=
response
.
data
;
});
},
// 查询明细按钮操作
// 查询明细按钮操作
handleView
(
row
)
{
handleView
(
row
)
{
this
.
reset
();
this
.
reset
();
...
...
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