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
8cfe3502
Commit
8cfe3502
authored
Jan 24, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
量产申请、制作基础流程通过
parent
a04bcf3d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
134 deletions
+83
-134
ProcessProd.vue
src/views/mes/pro/productionMake/components/ProcessProd.vue
+6
-4
ProogingBom.vue
src/views/mes/pro/productionMake/components/ProogingBom.vue
+2
-2
ProogingProcess.vue
...ews/mes/pro/productionMake/components/ProogingProcess.vue
+59
-93
productionMakeApply.vue
src/views/mes/pro/productionMake/productionMakeApply.vue
+6
-26
productionMakeInfo.vue
src/views/mes/pro/productionMake/productionMakeInfo.vue
+1
-0
requestApply.vue
src/views/mes/pro/productiorequest/requestApply.vue
+9
-9
No files found.
src/views/mes/pro/productionMake/components/ProcessProd.vue
View file @
8cfe3502
...
@@ -146,9 +146,9 @@ export default {
...
@@ -146,9 +146,9 @@ export default {
};
};
},
},
computed
:
{
computed
:
{
title
()
{
title
()
{
return
'设置'
+
this
.
process
.
itemName
+
'物料'
return
"设置"
+
this
.
process
.
itemName
+
"物料"
;
}
}
,
},
},
watch
:
{
watch
:
{
process
:
{
process
:
{
...
@@ -216,7 +216,9 @@ export default {
...
@@ -216,7 +216,9 @@ export default {
},
},
/** 提交编辑关联信息 */
/** 提交编辑关联信息 */
submitEditConnect
()
{
submitEditConnect
()
{
this
.
tableData
.
splice
(
this
.
currentRowIdx
,
1
,
this
.
form
);
this
.
tableData
.
splice
(
this
.
currentRowIdx
,
1
,
{
...
this
.
form
,
});
this
.
editConnectVisible
=
false
;
this
.
editConnectVisible
=
false
;
},
},
},
},
...
...
src/views/mes/pro/productionMake/components/ProogingBom.vue
View file @
8cfe3502
...
@@ -298,10 +298,10 @@ export default {
...
@@ -298,10 +298,10 @@ export default {
let
thisObj
=
this
;
let
thisObj
=
this
;
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
thisObj
.
optType
==
"add"
)
{
if
(
thisObj
.
optType
==
'add'
)
{
thisObj
.
tableData
.
unshift
({
...
thisObj
.
form
});
thisObj
.
tableData
.
unshift
({
...
thisObj
.
form
});
}
else
{
}
else
{
thisObj
.
tableData
.
splice
(
thisObj
.
currentRowIdx
,
1
,
thisObj
.
form
)
;
thisObj
.
tableData
.
splice
(
thisObj
.
currentRowIdx
,
1
,
thisObj
.
form
)
}
}
thisObj
.
showFlag
=
false
;
thisObj
.
showFlag
=
false
;
}
}
...
...
src/views/mes/pro/productionMake/components/ProogingProcess.vue
View file @
8cfe3502
...
@@ -8,9 +8,15 @@
...
@@ -8,9 +8,15 @@
prop=
"linkType"
prop=
"linkType"
align=
"center"
align=
"center"
/>
/>
<el-table-column
label=
"工作站"
prop=
"workstationId"
align=
"center"
/>
<el-table-column
label=
"工作站"
prop=
"workstationName"
align=
"center"
/>
<el-table-column
label=
"标准工时"
prop=
"stdWorkingTime"
align=
"center"
/>
<el-table-column
label=
"甘特图显示颜色"
prop=
"colorCode"
align=
"center"
/>
<el-table-column
label=
"甘特图显示颜色"
prop=
"colorCode"
align=
"center"
/>
<el-table-column
v-if=
"mode != 'info'"
label=
"操作"
align=
"center"
width=
"150"
>
<el-table-column
v-if=
"mode != 'info'"
label=
"操作"
align=
"center"
width=
"150"
>
<template
slot-scope=
"
{ row, $index }">
<template
slot-scope=
"
{ row, $index }">
<el-button
<el-button
type=
"text"
type=
"text"
...
@@ -42,7 +48,7 @@
...
@@ -42,7 +48,7 @@
v-dialogDrag
v-dialogDrag
:visible
.
sync=
"showFlag"
:visible
.
sync=
"showFlag"
width=
"800px"
width=
"800px"
title=
"
添加工序
"
title=
"
工序修改
"
>
>
<el-form
<el-form
ref=
"form"
ref=
"form"
...
@@ -54,75 +60,31 @@
...
@@ -54,75 +60,31 @@
>
>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"组件数量"
prop=
"quantity"
>
<el-form-item
label=
"工作站"
prop=
"workstationId"
>
<el-input
type=
"number"
v-model=
"form.quantity"
placeholder=
"请输入组件数量"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"计量单位"
prop=
"unitOfMeasure"
>
<el-input
v-model=
"form.unitOfMeasure"
placeholder=
"请输入计量单位"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"报废百分比"
prop=
"scrapPercentage"
>
<el-input
v-model=
"form.scrapPercentage"
placeholder=
"请输入报废百分比"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"替代组"
prop=
"alternativeGroup"
>
<el-input
v-model=
"form.alternativeGroup"
placeholder=
"请输入替代组"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"替代优先级"
prop=
"alternativePriorities"
>
<el-input
v-model=
"form.alternativePriorities"
placeholder=
"请输入替代优先级"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"策略"
prop=
"alternativeStrategy"
>
<el-input
v-model=
"form.alternativeStrategy"
placeholder=
"请输入策略"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"使用概率"
prop=
"alternativeProbability"
>
<el-input
<el-input
v-model=
"form.alternativeProbability"
v-model=
"form.workstationName"
placeholder=
"请输入使用概率"
disabled
></el-input>
placeholder=
"请选择工作站信息"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"handleWorkstationSelect"
></el-button>
</el-input>
<WorkstationSelect
ref=
"WorkstationSelect"
:processId=
"form.processId"
@
onSelected=
"onWorkstationSelected"
></WorkstationSelect>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"
BOM行备注"
prop=
"bomItemRemark
"
>
<el-form-item
label=
"
标准工时"
prop=
"stdWorkingTime
"
>
<el-input
<el-input
v-model=
"form.bomItemRemark"
type=
"number"
placeholder=
"请输入BOM行备注"
v-model=
"form.stdWorkingTime"
></el-input>
placeholder=
"请输入标准工时"
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"物料备注"
prop=
"itemRemark"
>
<el-input
v-model=
"form.itemRemark"
placeholder=
"请输入物料备注"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -139,9 +101,10 @@
...
@@ -139,9 +101,10 @@
<
script
>
<
script
>
import
ItemBomSelect
from
"@/components/itemBomSelect/single.vue"
;
import
ItemBomSelect
from
"@/components/itemBomSelect/single.vue"
;
import
ProcessProd
from
"./ProcessProd.vue"
;
import
ProcessProd
from
"./ProcessProd.vue"
;
import
WorkstationSelect
from
"@/components/workstationSelect/simpletableSingle.vue"
;
export
default
{
export
default
{
components
:
{
ItemBomSelect
,
ProcessProd
},
components
:
{
ItemBomSelect
,
ProcessProd
,
WorkstationSelect
},
inject
:
[
'mode'
],
inject
:
[
"mode"
],
props
:
{
props
:
{
bomList
:
{
bomList
:
{
type
:
Array
,
type
:
Array
,
...
@@ -158,15 +121,9 @@ export default {
...
@@ -158,15 +121,9 @@ export default {
rules
:
{},
rules
:
{},
/**表单初始化数据 */
/**表单初始化数据 */
form
:
{
form
:
{
quantity
:
""
,
stdWorkingTime
:
""
,
unitOfMeasure
:
""
,
workstationId
:
""
,
scrapPercentage
:
""
,
workstationName
:
""
,
alternativeGroup
:
""
,
alternativePriorities
:
""
,
alternativeStrategy
:
""
,
alternativeProbability
:
""
,
bomItemRemark
:
""
,
itemRemark
:
""
,
},
},
currentRow
:
{},
currentRow
:
{},
currentRowIndex
:
undefined
,
currentRowIndex
:
undefined
,
...
@@ -174,9 +131,9 @@ export default {
...
@@ -174,9 +131,9 @@ export default {
},
},
methods
:
{
methods
:
{
setList
(
rows
)
{
setList
(
rows
)
{
this
.
tableData
=
rows
.
map
(
item
=>
{
this
.
tableData
=
rows
.
map
(
(
item
)
=>
{
item
.
processItemList
=
[]
item
.
processItemList
=
[]
;
return
item
return
item
;
});
});
},
},
/** 更新工序的物料信息 */
/** 更新工序的物料信息 */
...
@@ -199,6 +156,10 @@ export default {
...
@@ -199,6 +156,10 @@ export default {
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
showFlag
=
false
;
this
.
showFlag
=
false
;
this
.
tableData
.
splice
(
this
.
currentRowIndex
,
1
,
{
...
this
.
currentRow
,
...
this
.
form
,
});
}
}
});
});
},
},
...
@@ -208,22 +169,27 @@ export default {
...
@@ -208,22 +169,27 @@ export default {
/**重置表单 */
/**重置表单 */
resetForm
()
{
resetForm
()
{
this
.
form
=
{
this
.
form
=
{
quantity
:
""
,
stdWorkingTime
:
""
,
unitOfMeasure
:
""
,
workstationId
:
""
,
scrapPercentage
:
""
,
workstationName
:
""
,
alternativeGroup
:
""
,
alternativePriorities
:
""
,
alternativeStrategy
:
""
,
alternativeProbability
:
""
,
bomItemRemark
:
""
,
itemRemark
:
""
,
};
};
},
},
/**重置组件状态 */
/**重置组件状态 */
resetState
()
{
resetState
()
{
this
.
resetForm
()
this
.
resetForm
();
this
.
tableData
=
[]
this
.
tableData
=
[];
}
},
// 查询工作站信息
handleWorkstationSelect
()
{
this
.
$refs
.
WorkstationSelect
.
showFlag
=
true
;
},
onWorkstationSelected
(
row
)
{
if
(
row
!=
undefined
&&
row
!=
null
)
{
this
.
form
.
workstationId
=
row
.
workstationId
;
this
.
form
.
workstationName
=
row
.
workstationName
;
this
.
form
.
stdWorkingTime
=
row
.
stdWorkingTime
;
}
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/mes/pro/productionMake/productionMakeApply.vue
View file @
8cfe3502
...
@@ -32,17 +32,6 @@
...
@@ -32,17 +32,6 @@
</el-form>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['mes:pro:productionMake:add']"
>
新增
</el-button
>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"success"
type=
"success"
...
@@ -169,15 +158,6 @@
...
@@ -169,15 +158,6 @@
v-hasPermi=
"['mes:pro:productionMake:remove']"
v-hasPermi=
"['mes:pro:productionMake:remove']"
>
删除
</el-button
>
删除
</el-button
>
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-circle-check"
v-if=
"scope.row.productionMakeStatus == 1"
@
click=
"handleStartMake(scope.row)"
v-hasPermi=
"['mes:pro:productionMake:update']"
>
开始制作
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -247,12 +227,12 @@ export default {
...
@@ -247,12 +227,12 @@ export default {
productionMakeStatus
:
null
,
productionMakeStatus
:
null
,
},
},
options
:
[
options
:
[
{
value
:
"
审批中"
,
label
:
"审批中
"
},
{
value
:
"
0"
,
label
:
"待检查
"
},
{
value
:
"
待制作
"
,
label
:
"待制作"
},
{
value
:
"
1
"
,
label
:
"待制作"
},
{
value
:
"
制造中
"
,
label
:
"制造中"
},
{
value
:
"
2
"
,
label
:
"制造中"
},
{
value
:
"
待质检
"
,
label
:
"待质检"
},
{
value
:
"
3
"
,
label
:
"待质检"
},
{
value
:
"
待确认
"
,
label
:
"待确认"
},
{
value
:
"
4
"
,
label
:
"待确认"
},
{
value
:
"
已完成
"
,
label
:
"已完成"
},
{
value
:
"
5
"
,
label
:
"已完成"
},
],
],
// 表单参数
// 表单参数
...
...
src/views/mes/pro/productionMake/productionMakeInfo.vue
View file @
8cfe3502
...
@@ -287,6 +287,7 @@ export default {
...
@@ -287,6 +287,7 @@ export default {
const
processList
=
this
.
$refs
.
ProogingProcessRef
.
getComData
();
const
processList
=
this
.
$refs
.
ProogingProcessRef
.
getComData
();
const
params
=
{
const
params
=
{
...
this
.
form
,
...
this
.
form
,
'productionRequestId'
:
this
.
$route
.
query
.
productionRequestId
,
bomList
,
bomList
,
processList
,
processList
,
};
};
...
...
src/views/mes/pro/productiorequest/requestApply.vue
View file @
8cfe3502
...
@@ -487,15 +487,15 @@
...
@@ -487,15 +487,15 @@
return
'否'
;
return
'否'
;
}
}
},
},
},
// 生成制作单
// 生成制作单
generate
(
row
)
{
generate
(
row
)
{
// 跳转到制作单界面
// 跳转到制作单界面
const
prototypeRequestId
=
row
.
productionRequestId
||
this
.
ids
;
const
prototypeRequestId
=
row
.
productionRequestId
||
this
.
ids
;
this
.
$router
.
push
(
this
.
$router
.
push
(
"/mes/pro/productionMake/apply?productionRequestId="
+
prototypeRequestId
"/mes/pro/productionMake/apply?productionRequestId="
+
prototypeRequestId
);
)
;
return
;
return
;
},
},
},
};
};
</
script
>
</
script
>
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