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
96d529a2
Commit
96d529a2
authored
Apr 25, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生产版本和生产工单的修改
parent
1aa6851d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
100 deletions
+85
-100
index.vue
src/components/productionSolution/index.vue
+57
-70
proofingApply.vue
src/views/mes/pro/productionSolution/proofingApply.vue
+24
-27
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+4
-3
No files found.
src/components/productionSolution/index.vue
View file @
96d529a2
<
template
>
<
template
>
<el-dialog
<el-dialog
title=
"工艺路线选择"
v-if=
"showFlag"
:visible
.
sync=
"showFlag"
:modal=
"true"
width=
"80%"
append-to-body
center
>
title=
"工艺路线选择"
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline
v-show=
"showSearch"
label-width=
"110px"
>
v-if=
"showFlag"
<el-form-item
label=
"成品物料号"
prop=
"itemCode"
>
:visible
.
sync=
"showFlag"
<el-input
v-model=
"queryParams.itemCode"
clearable
placeholder=
"请输入成品物名称"
@
keyup
.
enter
.
native=
"handleQuery"
>
:modal=
"true"
</el-input>
width=
"80%"
append-to-body
center
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
inline
v-show=
"showSearch"
label-width=
"110px"
>
<el-form-item
label=
"生产版本编码"
prop=
"productionSolutionCode"
>
<el-input
v-model=
"queryParams.productionSolutionCode"
placeholder=
"请输入生产版本编码"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"生产用途"
prop=
"productionSolutionName"
>
<el-form-item
label=
"成品物名称"
prop=
"itemName"
>
<el-input
<el-input
v-model=
"queryParams.itemName"
clearable
placeholder=
"请输入成品物名称"
@
keyup
.
enter
.
native=
"handleQuery"
>
v-model=
"queryParams.productionSolutionName"
</el-input>
placeholder=
"请输入生产用途"
</el-form-item>
clearable
<el-form-item
label=
"组件号"
prop=
"groupCounter"
>
@
keyup
.
enter
.
native=
"handleQuery"
<el-input
v-model=
"queryParams.groupCounter"
clearable
placeholder=
"请输入组件号"
@
keyup
.
enter
.
native=
"handleQuery"
>
/>
</el-input>
</el-form-item>
<el-form-item
label=
"打样订单号"
prop=
"sapPrototypeMakeCode"
>
<el-input
v-model=
"queryParams.sapPrototypeMakeCode"
clearable
placeholder=
"请输入打样订单号"
@
keyup
.
enter
.
native=
"handleQuery"
>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
type=
"primary"
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
<el-table
v-loading=
"loading"
:data=
"processRoutesList"
highlight-current-row
@
current-change=
"handleCurrent"
v-loading=
"loading"
@
row-dblclick=
"handleRowDbClick"
height=
"400"
>
:data=
"processRoutesList"
highlight-current-row
@
current-change=
"handleCurrent"
@
row-dblclick=
"handleRowDbClick"
height=
"400"
>
<el-table-column
width=
"50"
align=
"center"
>
<el-table-column
width=
"50"
align=
"center"
>
<template
v-slot=
"scope"
>
<template
v-slot=
"scope"
>
<el-radio
<el-radio
v-model=
"selectedRouteId"
:label=
"scope.row.productionSolutionId"
v-model=
"selectedRouteId"
@
change=
"handleRowChange(scope.row)"
>
{{
""
}}
</el-radio>
:label=
"scope.row.productionSolutionId"
@
change=
"handleRowChange(scope.row)"
>
{{
""
}}
</el-radio
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"生产版本编码"
align=
"center"
prop=
"productionSolutionCode"
/>
<el-table-column
label=
"生产版本编码"
align=
"center"
prop=
"productionSolutionCode"
/>
<el-table-column
label=
"组件号"
align=
"center"
prop=
"groupCounter"
/>
<el-table-column
label=
"组件号"
align=
"center"
prop=
"groupCounter"
/>
<el-table-column
label=
"产品版本名称"
align=
"center"
prop=
"productionSolutionName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"成品物料编码"
align=
"center"
prop=
"itemCode"
/>
<el-table-column
label=
"成品物料名称"
align=
"center"
prop=
"itemName"
/>
<el-table-column
label=
"生产用途"
align=
"center"
prop=
"usageName"
/>
<el-table-column
label=
"生产用途"
align=
"center"
prop=
"usageName"
/>
<el-table-column
label=
"打样订单"
align=
"center"
prop=
"sapPrototypeMakeCode"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
v-show=
"total > 0"
@
pagination=
"getList"
/>
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<el-tabs
type=
"border-card"
style=
"margin-top: 30px"
>
<el-tab-pane
label=
"工序"
>
<el-table
v-loading=
"processLoading"
:data=
"processList"
>
<el-table-column
label=
"工序编码"
width=
"120px"
fixed
align=
"center"
prop=
"processCode"
/>
<el-table-column
label=
"工序名称"
width=
"150px"
fixed
align=
"center"
prop=
"processName"
/>
<el-table-column
label=
"标准工时"
width=
"150px"
align=
"center"
prop=
"stdWorkingTime"
/>
<el-table-column
label=
"工作中心"
width=
"150px"
align=
"center"
prop=
"workstationName"
/>
<el-table-column
label=
"工序总量"
width=
"100px"
align=
"center"
prop=
"keyFlag"
/>
<el-table-column
label=
"换型时间"
prop=
"lineBreakTime"
align=
"center"
/>
<el-table-column
label=
"工时单位"
prop=
"stdWorkingTimeUom"
align=
"center"
/>
<el-table-column
label=
"工序总数量"
prop=
"quantity"
align=
"center"
/>
</el-table>
</el-tab-pane>
</el-tabs>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"confirmSelect"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"confirmSelect"
>
确 定
</el-button>
<el-button
@
click=
"showFlag = false"
>
取 消
</el-button>
<el-button
@
click=
"showFlag = false"
>
取 消
</el-button>
...
@@ -89,8 +69,9 @@
...
@@ -89,8 +69,9 @@
<
script
>
<
script
>
import
{
import
{
listProductionSolution
,
listProductionSolution
,
}
from
"@/api/mes/pro/productionSolution"
;
}
from
"@/api/mes/pro/productionSolution"
;
import
{
listProductionSolutionProcess
}
from
"@/api/mes/pro/productionSolutionProcess"
;
export
default
{
export
default
{
name
:
"RoutesProcessSelectSingle"
,
name
:
"RoutesProcessSelectSingle"
,
components
:
{},
components
:
{},
...
@@ -127,6 +108,9 @@ export default {
...
@@ -127,6 +108,9 @@ export default {
productionSolutionName
:
null
,
productionSolutionName
:
null
,
statsu
:
"PREPARE"
,
statsu
:
"PREPARE"
,
itemId
:
null
,
itemId
:
null
,
groupCounter
:
null
,
itemCode
:
null
,
itemName
:
null
,
routeId
:
null
,
routeId
:
null
,
usageId
:
null
,
usageId
:
null
,
remark
:
null
,
remark
:
null
,
...
@@ -163,10 +147,10 @@ export default {
...
@@ -163,10 +147,10 @@ export default {
const
params
=
{
const
params
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1000
,
pageSize
:
1000
,
route
Id
:
row
.
productionSolutionId
,
productionSolution
Id
:
row
.
productionSolutionId
,
};
};
this
.
processLoading
=
true
;
this
.
processLoading
=
true
;
listProductionSolution
(
params
)
listProductionSolution
Process
(
params
)
.
then
(({
rows
})
=>
{
.
then
(({
rows
})
=>
{
this
.
processList
=
rows
;
this
.
processList
=
rows
;
this
.
processLoading
=
false
;
this
.
processLoading
=
false
;
...
@@ -178,7 +162,7 @@ export default {
...
@@ -178,7 +162,7 @@ export default {
this
.
selectedRows
=
row
;
this
.
selectedRows
=
row
;
}
}
},
},
getProcess
()
{},
getProcess
()
{
},
// 单选选中数据
// 单选选中数据
handleRowChange
(
row
)
{
handleRowChange
(
row
)
{
if
(
row
)
{
if
(
row
)
{
...
@@ -194,15 +178,18 @@ export default {
...
@@ -194,15 +178,18 @@ export default {
}
}
},
},
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
productionSolutionId
:
null
,
productionSolutionId
:
null
,
productionSolutionCode
:
null
,
productionSolutionCode
:
null
,
productionSolutionName
:
null
,
productionSolutionName
:
null
,
itemId
:
null
,
itemId
:
null
,
groupCounter
:
null
,
routeId
:
null
,
routeId
:
null
,
usageId
:
null
,
usageId
:
null
,
itemCode
:
null
,
itemName
:
null
,
remark
:
null
,
remark
:
null
,
createBy
:
null
,
createBy
:
null
,
createTime
:
null
,
createTime
:
null
,
...
...
src/views/mes/pro/productionSolution/proofingApply.vue
View file @
96d529a2
...
@@ -8,43 +8,40 @@
...
@@ -8,43 +8,40 @@
v-show=
"showSearch"
v-show=
"showSearch"
label-width=
"100px"
label-width=
"100px"
>
>
<el-form-item
label=
"
生产版本名称"
prop=
"productionSolutionNam
e"
>
<el-form-item
label=
"
成品物料号"
prop=
"itemCod
e"
>
<el-input
<el-input
v-model=
"queryParams.item
Nam
e"
v-model=
"queryParams.item
Cod
e"
placeholder=
"请输入
版本名称
"
placeholder=
"请输入
成品物料号
"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
生产用途"
prop=
"usage
Name"
>
<el-form-item
label=
"
成品物名称"
prop=
"item
Name"
>
<el-
selec
t
<el-
inpu
t
v-model=
"queryParams.
usage
Name"
v-model=
"queryParams.
item
Name"
clearable
clearable
placeholder=
"请输入生产用途"
placeholder=
"请输入成品物名称"
@
keyup
.
enter
.
native=
"handleQuery"
>
>
<el-option
</el-input>
v-for=
"item in usageNames"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
单据状态"
prop=
"status
"
>
<el-form-item
label=
"
组件号"
prop=
"groupCounter
"
>
<el-
selec
t
<el-
inpu
t
v-model=
"queryParams.
status
"
v-model=
"queryParams.
groupCounter
"
clearable
clearable
placeholder=
"请选择单据状态"
placeholder=
"请输入组件号"
@
keyup
.
enter
.
native=
"handleQuery"
>
>
<el-option
</el-input>
v-for=
"item in options"
</el-form-item>
:key=
"item.value"
<el-form-item
label=
"打样订单号"
prop=
"sapPrototypeMakeCode"
>
:label=
"item.label"
<el-input
:value=
"item.value"
v-model=
"queryParams.sapPrototypeMakeCode"
>
clearable
</el-option>
placeholder=
"请输入打样订单号"
</el-select>
@
keyup
.
enter
.
native=
"handleQuery"
>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
...
...
src/views/mes/pro/workorder/proofingInfo.vue
View file @
96d529a2
...
@@ -309,7 +309,8 @@ import ItemSelect from "@/components/itemSelect/single.vue";
...
@@ -309,7 +309,8 @@ import ItemSelect from "@/components/itemSelect/single.vue";
import
ClientSelect
from
"@/components/clientSelect/single.vue"
;
import
ClientSelect
from
"@/components/clientSelect/single.vue"
;
import
VendorSelect
from
"@/components/vendorSelect/single.vue"
;
import
VendorSelect
from
"@/components/vendorSelect/single.vue"
;
import
RoutesProcessSelect
from
"@/components/productionSolution/index.vue"
;
import
RoutesProcessSelect
from
"@/components/productionSolution/index.vue"
;
import
{
listRouteprocess
}
from
"@/api/mes/pro/routeprocess"
;
// import { listRouteprocess } from "@/api/mes/pro/routeprocess";
import
{
listProductionSolutionProcess
}
from
"@/api/mes/pro/productionSolutionProcess"
;
import
tabPlugins
from
"@/plugins/tab"
;
import
tabPlugins
from
"@/plugins/tab"
;
import
{
import
{
addPrototypeRequest
,
addPrototypeRequest
,
...
@@ -633,9 +634,9 @@ export default {
...
@@ -633,9 +634,9 @@ export default {
const
params
=
{
const
params
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1000
,
pageSize
:
1000
,
route
Id
:
row
.
productionSolutionId
,
productionSolution
Id
:
row
.
productionSolutionId
,
};
};
list
Routep
rocess
(
params
).
then
(({
rows
})
=>
{
list
ProductionSolutionP
rocess
(
params
).
then
(({
rows
})
=>
{
this
.
$refs
[
"ProogingProcessRef"
].
setList
(
rows
);
this
.
$refs
[
"ProogingProcessRef"
].
setList
(
rows
);
});
});
}
}
...
...
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