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
541f4c37
Commit
541f4c37
authored
Mar 13, 2024
by
赵汉亭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产版本命名修改,生产版本工序字段添加
parent
b384308d
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1487 additions
and
661 deletions
+1487
-661
productionSolution.js
src/api/mes/pro/productionSolution.js
+32
-24
productionSolutionBom.js
src/api/mes/pro/productionSolutionBom.js
+24
-24
productionSolutionProcess.js
src/api/mes/pro/productionSolutionProcess.js
+24
-24
productionSolutionProcessItem.js
src/api/mes/pro/productionSolutionProcessItem.js
+34
-26
productionPlan.vue
src/views/mes/md/product/components/productionPlan.vue
+14
-12
index.vue
src/views/mes/md/product/index.vue
+114
-47
ProcessProd.vue
...ews/mes/pro/productionSolution/components/ProcessProd.vue
+77
-12
ProcessQcindex.vue
.../mes/pro/productionSolution/components/ProcessQcindex.vue
+52
-20
ProcessTool.vue
...ews/mes/pro/productionSolution/components/ProcessTool.vue
+211
-147
ProogingBom.vue
...ews/mes/pro/productionSolution/components/ProogingBom.vue
+273
-73
ProogingProcess.vue
...mes/pro/productionSolution/components/ProogingProcess.vue
+399
-48
proofingApply.vue
src/views/mes/pro/productionSolution/proofingApply.vue
+97
-164
proofingInfo.vue
src/views/mes/pro/productionSolution/proofingInfo.vue
+136
-40
No files found.
src/api/mes/pro/productionSolution.js
View file @
541f4c37
import
request
from
'@/utils/request'
import
request
from
"@/utils/request"
;
// 查询生产
方案
列表
// 查询生产
版本
列表
export
function
listProductionSolution
(
query
)
{
export
function
listProductionSolution
(
query
)
{
return
request
({
return
request
({
url
:
'pro/productionSolution/list'
,
url
:
"pro/productionSolution/list"
,
method
:
'get'
,
method
:
"get"
,
params
:
query
params
:
query
,
})
})
;
}
}
// 查询生产
方案
详细
// 查询生产
版本
详细
export
function
getProductionSolution
(
productionSolutionId
)
{
export
function
getProductionSolution
(
productionSolutionId
)
{
return
request
({
return
request
({
url
:
'pro/productionSolution/'
+
productionSolutionId
,
url
:
"pro/productionSolution/"
+
productionSolutionId
,
method
:
'get'
method
:
"get"
,
})
})
;
}
}
// 新增生产
方案
// 新增生产
版本
export
function
addProductionSolution
(
data
)
{
export
function
addProductionSolution
(
data
)
{
return
request
({
return
request
({
url
:
'pro/productionSolution'
,
url
:
"pro/productionSolution"
,
method
:
'post'
,
method
:
"post"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 修改生产
方案
// 修改生产
版本
export
function
updateProductionSolution
(
data
)
{
export
function
updateProductionSolution
(
data
)
{
return
request
({
return
request
({
url
:
'pro/productionSolution'
,
url
:
"pro/productionSolution"
,
method
:
'put'
,
method
:
"put"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 删除生产
方案
// 删除生产
版本
export
function
delProductionSolution
(
productionSolutionId
)
{
export
function
delProductionSolution
(
productionSolutionId
)
{
return
request
({
return
request
({
url
:
'pro/productionSolution/'
+
productionSolutionId
,
url
:
"pro/productionSolution/"
+
productionSolutionId
,
method
:
'delete'
method
:
"delete"
,
})
});
}
// 提交生产版本
export
function
submitProductionSolution
(
data
)
{
return
request
({
url
:
"pro/productionSolution/submit"
,
method
:
"put"
,
data
:
data
,
});
}
}
src/api/mes/pro/productionSolutionBom.js
View file @
541f4c37
import
request
from
'@/utils/request'
import
request
from
"@/utils/request"
;
// 查询生产
方案
BOM列表
// 查询生产
版本
BOM列表
export
function
listProductionSolutionBom
(
query
)
{
export
function
listProductionSolutionBom
(
query
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionBom/list'
,
url
:
"/mes/pro/productionSolutionBom/list"
,
method
:
'get'
,
method
:
"get"
,
params
:
query
params
:
query
,
})
})
;
}
}
// 查询生产
方案
BOM详细
// 查询生产
版本
BOM详细
export
function
getProductionSolutionBom
(
bomItemId
)
{
export
function
getProductionSolutionBom
(
bomItemId
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionBom/'
+
bomItemId
,
url
:
"/mes/pro/productionSolutionBom/"
+
bomItemId
,
method
:
'get'
method
:
"get"
,
})
})
;
}
}
// 新增生产
方案
BOM
// 新增生产
版本
BOM
export
function
addProductionSolutionBom
(
data
)
{
export
function
addProductionSolutionBom
(
data
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionBom'
,
url
:
"/mes/pro/productionSolutionBom"
,
method
:
'post'
,
method
:
"post"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 修改生产
方案
BOM
// 修改生产
版本
BOM
export
function
updateProductionSolutionBom
(
data
)
{
export
function
updateProductionSolutionBom
(
data
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionBom'
,
url
:
"/mes/pro/productionSolutionBom"
,
method
:
'put'
,
method
:
"put"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 删除生产
方案
BOM
// 删除生产
版本
BOM
export
function
delProductionSolutionBom
(
bomItemId
)
{
export
function
delProductionSolutionBom
(
bomItemId
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionBom/'
+
bomItemId
,
url
:
"/mes/pro/productionSolutionBom/"
+
bomItemId
,
method
:
'delete'
method
:
"delete"
,
})
})
;
}
}
src/api/mes/pro/productionSolutionProcess.js
View file @
541f4c37
import
request
from
'@/utils/request'
import
request
from
"@/utils/request"
;
// 查询生产
方案
工序列表
// 查询生产
版本
工序列表
export
function
listProductionSolutionProcess
(
query
)
{
export
function
listProductionSolutionProcess
(
query
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcess/list'
,
url
:
"/mes/pro/productionSolutionProcess/list"
,
method
:
'get'
,
method
:
"get"
,
params
:
query
params
:
query
,
})
})
;
}
}
// 查询生产
方案
工序详细
// 查询生产
版本
工序详细
export
function
getProductionSolutionProcess
(
productionSolutionProcessId
)
{
export
function
getProductionSolutionProcess
(
productionSolutionProcessId
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcess/'
+
productionSolutionProcessId
,
url
:
"/mes/pro/productionSolutionProcess/"
+
productionSolutionProcessId
,
method
:
'get'
method
:
"get"
,
})
})
;
}
}
// 新增生产
方案
工序
// 新增生产
版本
工序
export
function
addProductionSolutionProcess
(
data
)
{
export
function
addProductionSolutionProcess
(
data
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcess'
,
url
:
"/mes/pro/productionSolutionProcess"
,
method
:
'post'
,
method
:
"post"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 修改生产
方案
工序
// 修改生产
版本
工序
export
function
updateProductionSolutionProcess
(
data
)
{
export
function
updateProductionSolutionProcess
(
data
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcess'
,
url
:
"/mes/pro/productionSolutionProcess"
,
method
:
'put'
,
method
:
"put"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 删除生产
方案
工序
// 删除生产
版本
工序
export
function
delProductionSolutionProcess
(
productionSolutionProcessId
)
{
export
function
delProductionSolutionProcess
(
productionSolutionProcessId
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcess/'
+
productionSolutionProcessId
,
url
:
"/mes/pro/productionSolutionProcess/"
+
productionSolutionProcessId
,
method
:
'delete'
method
:
"delete"
,
})
})
;
}
}
src/api/mes/pro/productionSolutionProcessItem.js
View file @
541f4c37
import
request
from
'@/utils/request'
import
request
from
"@/utils/request"
;
// 查询生产
方案
工序物料列表
// 查询生产
版本
工序物料列表
export
function
listProductionSolutionProcessItem
(
query
)
{
export
function
listProductionSolutionProcessItem
(
query
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcessItem/list'
,
url
:
"/mes/pro/productionSolutionProcessItem/list"
,
method
:
'get'
,
method
:
"get"
,
params
:
query
params
:
query
,
})
})
;
}
}
// 查询生产方案工序物料详细
// 查询生产版本工序物料详细
export
function
getProductionSolutionProcessItem
(
productionSolutionProcessItemId
)
{
export
function
getProductionSolutionProcessItem
(
productionSolutionProcessItemId
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcessItem/'
+
productionSolutionProcessItemId
,
url
:
method
:
'get'
"/mes/pro/productionSolutionProcessItem/"
+
})
productionSolutionProcessItemId
,
method
:
"get"
,
});
}
}
// 新增生产
方案
工序物料
// 新增生产
版本
工序物料
export
function
addProductionSolutionProcessItem
(
data
)
{
export
function
addProductionSolutionProcessItem
(
data
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcessItem'
,
url
:
"/mes/pro/productionSolutionProcessItem"
,
method
:
'post'
,
method
:
"post"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 修改生产
方案
工序物料
// 修改生产
版本
工序物料
export
function
updateProductionSolutionProcessItem
(
data
)
{
export
function
updateProductionSolutionProcessItem
(
data
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcessItem'
,
url
:
"/mes/pro/productionSolutionProcessItem"
,
method
:
'put'
,
method
:
"put"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 删除生产方案工序物料
// 删除生产版本工序物料
export
function
delProductionSolutionProcessItem
(
productionSolutionProcessItemId
)
{
export
function
delProductionSolutionProcessItem
(
productionSolutionProcessItemId
)
{
return
request
({
return
request
({
url
:
'/mes/pro/productionSolutionProcessItem/'
+
productionSolutionProcessItemId
,
url
:
method
:
'delete'
"/mes/pro/productionSolutionProcessItem/"
+
})
productionSolutionProcessItemId
,
method
:
"delete"
,
});
}
}
src/views/mes/md/product/components/productionPlan.vue
View file @
541f4c37
<!--客户loss信息-->
<!--客户loss信息-->
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-table
<el-table
v-loading=
"loading"
:data=
"productionPlanList"
>
v-loading=
"loading"
:data=
"productionPlanList"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"生产方案编码"
align=
"center"
prop=
"productionSolutionCode"
/>
<el-table-column
<el-table-column
label=
"生产方案名称"
align=
"center"
prop=
"productionSolutionName"
/>
label=
"生产版本编码"
align=
"center"
prop=
"productionSolutionCode"
/>
<el-table-column
label=
"生产版本名称"
align=
"center"
prop=
"productionSolutionName"
/>
<el-table-column
label=
"工艺路线编码"
align=
"center"
prop=
"routeCode"
/>
<el-table-column
label=
"工艺路线编码"
align=
"center"
prop=
"routeCode"
/>
<el-table-column
label=
"工艺路线名称"
align=
"center"
prop=
"routeName"
/>
<el-table-column
label=
"工艺路线名称"
align=
"center"
prop=
"routeName"
/>
<el-table-column
label=
"用途编码"
align=
"center"
prop=
"usageCode"
/>
<el-table-column
label=
"用途编码"
align=
"center"
prop=
"usageCode"
/>
...
@@ -24,13 +29,10 @@
...
@@ -24,13 +29,10 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
listProductionSolution
}
from
"@/api/mes/pro/productionSolution"
;
listProductionSolution
,
}
from
"@/api/mes/pro/productionSolution"
;
export
default
{
export
default
{
name
:
"ProductionPlan"
,
name
:
"ProductionPlan"
,
components
:
{
components
:
{},
},
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
@@ -45,7 +47,7 @@ export default {
...
@@ -45,7 +47,7 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
// 总条数
// 总条数
total
:
0
,
total
:
0
,
// 产品生产
方案
表格数据
// 产品生产
版本
表格数据
productionPlanList
:
[],
productionPlanList
:
[],
// 弹出层标题
// 弹出层标题
title
:
""
,
title
:
""
,
...
...
src/views/mes/md/product/index.vue
View file @
541f4c37
...
@@ -127,7 +127,8 @@
...
@@ -127,7 +127,8 @@
icon=
"el-icon-upload2"
icon=
"el-icon-upload2"
size=
"mini"
size=
"mini"
@
click=
"handleImport"
@
click=
"handleImport"
>
导入
</el-button>
>
导入
</el-button
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
...
@@ -136,7 +137,8 @@
...
@@ -136,7 +137,8 @@
icon=
"el-icon-download"
icon=
"el-icon-download"
size=
"mini"
size=
"mini"
@
click=
"handleExport"
@
click=
"handleExport"
>
导出
</el-button>
>
导出
</el-button
>
</el-col>
</el-col>
<right-toolbar
<right-toolbar
:showSearch
.
sync=
"showSearch"
:showSearch
.
sync=
"showSearch"
...
@@ -362,7 +364,6 @@
...
@@ -362,7 +364,6 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位"
prop=
"unitOfMeasure"
>
<el-form-item
label=
"单位"
prop=
"unitOfMeasure"
>
<el-select
<el-select
v-model=
"form.unitOfMeasure"
v-model=
"form.unitOfMeasure"
disabled
disabled
v-if=
"optType == 'view'"
v-if=
"optType == 'view'"
...
@@ -522,10 +523,7 @@
...
@@ -522,10 +523,7 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"SAP物料编码"
>
<el-form-item
label=
"SAP物料编码"
>
<el-input
<el-input
v-model=
"form.sapItemCode"
readonly
></el-input>
v-model=
"form.sapItemCode"
readonly
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -541,18 +539,39 @@
...
@@ -541,18 +539,39 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<el-tabs
type=
"border-card"
v-model=
"activeName"
@
tab-click=
"onTabClick"
v-if=
"form.itemId != null && form.itemOrProduct == 'PRODUCT'"
>
<el-tabs
type=
"border-card"
v-model=
"activeName"
@
tab-click=
"onTabClick"
v-if=
"form.itemId != null && form.itemOrProduct == 'PRODUCT'"
>
<el-tab-pane
label=
"基本信息"
name=
"BaseInfo"
>
<el-tab-pane
label=
"基本信息"
name=
"BaseInfo"
>
<BaseInfo
ref=
"BaseInfo"
:optType=
"optType"
:itemId=
"form.itemId"
></BaseInfo>
<BaseInfo
ref=
"BaseInfo"
:optType=
"optType"
:itemId=
"form.itemId"
></BaseInfo>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"产品特性"
name=
"SpecProperty"
>
<el-tab-pane
label=
"产品特性"
name=
"SpecProperty"
>
<SpecProperty
ref=
"SpecProperty"
:optType=
"optType"
:itemId=
"form.itemId"
></SpecProperty>
<SpecProperty
ref=
"SpecProperty"
:optType=
"optType"
:itemId=
"form.itemId"
></SpecProperty>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"销售单位转换"
name=
"SaleUnit"
>
<el-tab-pane
label=
"销售单位转换"
name=
"SaleUnit"
>
<SaleUnit
ref=
"SaleUnit"
:optType=
"optType"
:itemId=
"form.itemId"
></SaleUnit>
<SaleUnit
ref=
"SaleUnit"
:optType=
"optType"
:itemId=
"form.itemId"
></SaleUnit>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"工厂信息"
name=
"Factory"
>
<el-tab-pane
label=
"工厂信息"
name=
"Factory"
>
<Factory
ref=
"Factory"
:optType=
"optType"
:itemId=
"form.itemId"
></Factory>
<Factory
ref=
"Factory"
:optType=
"optType"
:itemId=
"form.itemId"
></Factory>
</el-tab-pane>
</el-tab-pane>
<!-- <el-tab-pane label="客户信息">
<!-- <el-tab-pane label="客户信息">
<Customer :optType="optType" :itemId="form.itemId"></Customer>
<Customer :optType="optType" :itemId="form.itemId"></Customer>
...
@@ -560,8 +579,12 @@
...
@@ -560,8 +579,12 @@
<el-tab-pane
label=
"产品外观"
name=
"Look"
>
<el-tab-pane
label=
"产品外观"
name=
"Look"
>
<Look
ref=
"Look"
:optType=
"optType"
:itemId=
"form.itemId"
></Look>
<Look
ref=
"Look"
:optType=
"optType"
:itemId=
"form.itemId"
></Look>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"生产方案"
name=
"ProductionPlan"
>
<el-tab-pane
label=
"生产版本"
name=
"ProductionPlan"
>
<ProductionPlan
ref=
"ProductionPlan"
:optType=
"optType"
:itemId=
"form.itemId"
></ProductionPlan>
<ProductionPlan
ref=
"ProductionPlan"
:optType=
"optType"
:itemId=
"form.itemId"
></ProductionPlan>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"排版参数"
name=
"PublishedConf"
>
<el-tab-pane
label=
"排版参数"
name=
"PublishedConf"
>
<PublishedConf
<PublishedConf
...
@@ -571,34 +594,46 @@
...
@@ -571,34 +594,46 @@
></PublishedConf>
></PublishedConf>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"正面颜色"
name=
"FaceColor"
>
<el-tab-pane
label=
"正面颜色"
name=
"FaceColor"
>
<FaceColor
ref=
"FaceColor"
:optType=
"optType"
:itemId=
"form.itemId"
></FaceColor>
<FaceColor
ref=
"FaceColor"
:optType=
"optType"
:itemId=
"form.itemId"
></FaceColor>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"反面颜色"
name=
"BackFaceColor"
>
<el-tab-pane
label=
"反面颜色"
name=
"BackFaceColor"
>
<BackFaceColor
ref=
"BackFaceColor"
:optType=
"optType"
:itemId=
"form.itemId"
></BackFaceColor>
<BackFaceColor
ref=
"BackFaceColor"
:optType=
"optType"
:itemId=
"form.itemId"
></BackFaceColor>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"客户loss"
name=
"CustomerLoss"
>
<el-tab-pane
label=
"客户loss"
name=
"CustomerLoss"
>
<CustomerLoss
ref=
"CustomerLoss"
:optType=
"optType"
:itemId=
"form.itemId"
></CustomerLoss>
<CustomerLoss
ref=
"CustomerLoss"
:optType=
"optType"
:itemId=
"form.itemId"
></CustomerLoss>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SAP基本信息"
name=
"SapBaseInfoProperty"
>
<el-tab-pane
label=
"SAP基本信息"
name=
"SapBaseInfoProperty"
>
<SapPropertyData
ref=
"SapBaseInfoProperty"
/>
<SapPropertyData
ref=
"SapBaseInfoProperty"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SAP销售特性"
name=
"SapSaleProperty"
>
<el-tab-pane
label=
"SAP销售特性"
name=
"SapSaleProperty"
>
<SapPropertyData
ref=
"SapSaleProperty"
/>
<SapPropertyData
ref=
"SapSaleProperty"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SAP采购特性"
name=
"SapPurchaseProperty"
>
<el-tab-pane
label=
"SAP采购特性"
name=
"SapPurchaseProperty"
>
<SapPropertyData
ref=
"SapPurchaseProperty"
/>
<SapPropertyData
ref=
"SapPurchaseProperty"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SAP物控特性"
name=
"SapPMCProperty"
>
<el-tab-pane
label=
"SAP物控特性"
name=
"SapPMCProperty"
>
<SapPropertyData
ref=
"SapPMCProperty"
/>
<SapPropertyData
ref=
"SapPMCProperty"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SAP仓储特性"
name=
"SapStorageProperty"
>
<el-tab-pane
label=
"SAP仓储特性"
name=
"SapStorageProperty"
>
<SapPropertyData
ref=
"SapStorageProperty"
/>
<SapPropertyData
ref=
"SapStorageProperty"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SAP品控特性"
name=
"SapQAProperty"
>
<el-tab-pane
label=
"SAP品控特性"
name=
"SapQAProperty"
>
<SapPropertyData
ref=
"SapQAProperty"
/>
<SapPropertyData
ref=
"SapQAProperty"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SAP财务特性"
name=
"SapFinanceProperty"
>
<el-tab-pane
label=
"SAP财务特性"
name=
"SapFinanceProperty"
>
<SapPropertyData
ref=
"SapFinanceProperty"
/>
<SapPropertyData
ref=
"SapFinanceProperty"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"SOP"
name=
"SOP"
>
<el-tab-pane
label=
"SOP"
name=
"SOP"
>
<SOPTab
ref=
"SOP"
:itemId=
"form.itemId"
:optType=
"optType"
></SOPTab>
<SOPTab
ref=
"SOP"
:itemId=
"form.itemId"
:optType=
"optType"
></SOPTab>
...
@@ -705,11 +740,11 @@ export default {
...
@@ -705,11 +740,11 @@ export default {
BackFaceColor
,
BackFaceColor
,
CustomerLoss
,
CustomerLoss
,
ItemBom
,
ItemBom
,
SOPTab
SOPTab
,
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'BaseInfo'
,
activeName
:
"BaseInfo"
,
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 选中数组
// 选中数组
...
@@ -904,11 +939,11 @@ export default {
...
@@ -904,11 +939,11 @@ export default {
handleAdd
()
{
handleAdd
()
{
this
.
reset
();
this
.
reset
();
this
.
getTreeselect
();
this
.
getTreeselect
();
this
.
handleAutoGenChange
(
true
)
this
.
handleAutoGenChange
(
true
)
;
if
(
this
.
queryParams
.
itemTypeId
!=
0
)
{
if
(
this
.
queryParams
.
itemTypeId
!=
0
)
{
this
.
form
.
itemTypeId
=
this
.
queryParams
.
itemTypeId
;
this
.
form
.
itemTypeId
=
this
.
queryParams
.
itemTypeId
;
}
}
this
.
activeName
=
'BaseInfo'
this
.
activeName
=
"BaseInfo"
;
this
.
optType
=
"add"
;
this
.
optType
=
"add"
;
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"新增物料/产品"
;
this
.
title
=
"新增物料/产品"
;
...
@@ -917,7 +952,7 @@ export default {
...
@@ -917,7 +952,7 @@ export default {
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
();
this
.
getTreeselect
();
this
.
getTreeselect
();
this
.
activeName
=
'BaseInfo'
this
.
activeName
=
"BaseInfo"
;
const
itemId
=
row
.
itemId
||
this
.
ids
;
const
itemId
=
row
.
itemId
||
this
.
ids
;
getMdItem
(
itemId
).
then
((
response
)
=>
{
getMdItem
(
itemId
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
...
@@ -939,7 +974,9 @@ export default {
...
@@ -939,7 +974,9 @@ export default {
lookData
.
itemId
=
this
.
form
.
itemId
;
lookData
.
itemId
=
this
.
form
.
itemId
;
//产品参数配置保存 publishedConf
//产品参数配置保存 publishedConf
const
publishedConfData
=
await
this
.
$refs
[
"PublishedConf"
].
getPublishedConfData
();
const
publishedConfData
=
await
this
.
$refs
[
"PublishedConf"
].
getPublishedConfData
();
publishedConfData
.
itemId
=
this
.
form
.
itemId
;
publishedConfData
.
itemId
=
this
.
form
.
itemId
;
//销售单位转换保存
//销售单位转换保存
...
@@ -984,7 +1021,7 @@ export default {
...
@@ -984,7 +1021,7 @@ export default {
.
catch
(()
=>
{});
.
catch
(()
=>
{});
},
},
/** 临时产品转正式按钮操作 */
/** 临时产品转正式按钮操作 */
handBecomeFormalProduct
(
row
){
handBecomeFormalProduct
(
row
)
{
const
itemIds
=
row
.
itemId
||
this
.
ids
;
const
itemIds
=
row
.
itemId
||
this
.
ids
;
this
.
$modal
this
.
$modal
.
confirm
(
"确认转正式产品?"
)
.
confirm
(
"确认转正式产品?"
)
...
@@ -1053,22 +1090,52 @@ export default {
...
@@ -1053,22 +1090,52 @@ export default {
}
}
},
},
onTabClick
()
{
onTabClick
()
{
if
(
this
.
activeName
===
'SapBaseInfoProperty'
)
{
if
(
this
.
activeName
===
"SapBaseInfoProperty"
)
{
this
.
$refs
.
SapBaseInfoProperty
.
init
(
2
,
"sapBaseInfo"
,
this
.
form
.
itemId
,
this
.
form
)
this
.
$refs
.
SapBaseInfoProperty
.
init
(
}
else
if
(
this
.
activeName
===
'SapSaleProperty'
)
{
2
,
this
.
$refs
.
SapSaleProperty
.
init
(
2
,
"sapSale"
,
this
.
form
.
itemId
,
this
.
form
)
"sapBaseInfo"
,
}
else
if
(
this
.
activeName
===
'SapPurchaseProperty'
)
{
this
.
form
.
itemId
,
this
.
$refs
.
SapPurchaseProperty
.
init
(
2
,
'sapPurchase'
,
this
.
form
.
itemId
,
this
.
form
)
this
.
form
}
else
if
(
this
.
activeName
===
'SapPMCProperty'
){
);
this
.
$refs
.
SapPMCProperty
.
init
(
2
,
'sapPMC'
,
this
.
form
.
itemId
,
this
.
form
)
}
else
if
(
this
.
activeName
===
"SapSaleProperty"
)
{
}
else
if
(
this
.
activeName
===
'SapStorageProperty'
)
{
this
.
$refs
.
SapSaleProperty
.
init
(
this
.
$refs
.
SapStorageProperty
.
init
(
2
,
'sapStorage'
,
this
.
form
.
itemId
,
this
.
form
)
2
,
}
else
if
(
this
.
activeName
===
'SapQAProperty'
)
{
"sapSale"
,
this
.
$refs
.
SapQAProperty
.
init
(
2
,
'sapQA'
,
this
.
form
.
itemId
,
this
.
form
)
this
.
form
.
itemId
,
}
else
if
(
this
.
activeName
===
'SapFinanceProperty'
)
{
this
.
form
this
.
$refs
.
SapFinanceProperty
.
init
(
2
,
'sapFinance'
,
this
.
form
.
itemId
,
this
.
form
)
);
}
else
if
(
this
.
activeName
===
"SapPurchaseProperty"
)
{
this
.
$refs
.
SapPurchaseProperty
.
init
(
2
,
"sapPurchase"
,
this
.
form
.
itemId
,
this
.
form
);
}
else
if
(
this
.
activeName
===
"SapPMCProperty"
)
{
this
.
$refs
.
SapPMCProperty
.
init
(
2
,
"sapPMC"
,
this
.
form
.
itemId
,
this
.
form
);
}
else
if
(
this
.
activeName
===
"SapStorageProperty"
)
{
this
.
$refs
.
SapStorageProperty
.
init
(
2
,
"sapStorage"
,
this
.
form
.
itemId
,
this
.
form
);
}
else
if
(
this
.
activeName
===
"SapQAProperty"
)
{
this
.
$refs
.
SapQAProperty
.
init
(
2
,
"sapQA"
,
this
.
form
.
itemId
,
this
.
form
);
}
else
if
(
this
.
activeName
===
"SapFinanceProperty"
)
{
this
.
$refs
.
SapFinanceProperty
.
init
(
2
,
"sapFinance"
,
this
.
form
.
itemId
,
this
.
form
);
}
//else this.$refs[this.activeName].init && this.$refs[this.activeName].init(this.form)
}
//else this.$refs[this.activeName].init && this.$refs[this.activeName].init(this.form)
}
}
,
},
},
};
};
</
script
>
</
script
>
src/views/mes/pro/productionSolution/components/ProcessProd.vue
View file @
541f4c37
...
@@ -25,8 +25,13 @@
...
@@ -25,8 +25,13 @@
<el-table-column
label=
"单位"
prop=
"unitOfMeasure"
align=
"center"
/>
<el-table-column
label=
"单位"
prop=
"unitOfMeasure"
align=
"center"
/>
<el-table-column
label=
"数量"
prop=
"quantity"
align=
"center"
/>
<el-table-column
label=
"数量"
prop=
"quantity"
align=
"center"
/>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"操作"
align=
"center"
width=
"150"
>
<el-table-column
<!--
<template
slot-scope=
"
{ row, $index }">
label=
"操作"
align=
"center"
width=
"150"
v-if=
"!(optType === 'detail')"
>
<template
slot-scope=
"
{ row, $index }">
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
...
@@ -41,7 +46,23 @@
...
@@ -41,7 +46,23 @@
@
click=
"deleteRow($index)"
@
click=
"deleteRow($index)"
>
删除
</el-button
>
删除
</el-button
>
>
</
template
>
-->
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"150"
v-if=
"optType === 'detail'"
>
<
template
slot-scope=
"{ row, $index }"
>
<el-button
type=
"text"
icon=
"el-icon-search"
size=
"small"
@
click=
"searchRow(row, $index)"
>
查看详情
</el-button
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -74,12 +95,19 @@
...
@@ -74,12 +95,19 @@
>
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"物料名称"
prop=
"itemName"
/>
<el-table-column
label=
"项目号"
prop=
"idx"
/>
<el-table-column
label=
"物料名称"
prop=
"sapItemName"
/>
<el-table-column
label=
"组件数量"
prop=
"quantity"
/>
<el-table-column
label=
"单位"
prop=
"unitOfMeasure"
/>
<el-table-column
label=
"单位"
prop=
"unitOfMeasure"
/>
<el-table-column
label=
"用料比例"
prop=
"quantity"
/>
<el-table-column
label=
"副单位"
prop=
"deputyUnitOfMeasure"
/>
<el-table-column
label=
"主副单位转换比例"
prop=
"unitConvert"
/>
<el-table-column
label=
"备注"
prop=
"remark"
/>
<el-table-column
label=
"反冲"
prop=
"recoil"
/>
</el-table>
</el-table>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
@
click=
"configmSelect"
>
确认
</el-button>
<el-button
@
click=
"configmSelect"
v-if=
"!(optType === 'detail')"
>
确认
</el-button
>
<el-button
@
click=
"showFlag = false"
>
取消
</el-button>
<el-button
@
click=
"showFlag = false"
>
取消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -92,20 +120,33 @@
...
@@ -92,20 +120,33 @@
>
>
<el-form
:model=
"form"
inline
size=
"small"
label-width=
"80px"
>
<el-form
:model=
"form"
inline
size=
"small"
label-width=
"80px"
>
<el-form-item
label=
"物料名称"
>
<el-form-item
label=
"物料名称"
>
<el-input
disabled
v-model=
"form.itemName"
></el-input>
<el-input
disabled
v-model=
"form.sapItemName"
></el-input>
</el-form-item>
<el-form-item
label=
"数量"
>
<el-input
type=
"number"
v-model=
"form.quantity"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"单位"
>
<el-form-item
label=
"单位"
>
<el-input
disabled
v-model=
"form.unitOfMeasure"
></el-input>
<el-input
disabled
v-model=
"form.unitOfMeasure"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"数量"
>
<el-form-item
label=
"副单位"
>
<el-input
type=
"number"
v-model=
"form.quantity"
></el-input>
<el-input
v-model=
"form.deputyUnitOfMeasure"
></el-input>
</el-form-item>
<el-form-item
label=
"主副单位转换比例"
>
<el-input
type=
"number"
v-model=
"form.unitConvert"
></el-input>
</el-form-item>
<el-form-item
label=
"反冲"
>
<el-input
v-model=
"form.idx"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-form-item
label=
"备注"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
:rows=
"3"
></el-input>
<el-input
v-model=
"form.remark"
type=
"textarea"
:rows=
"3"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"submitEditConnect"
<el-button
type=
"primary"
size=
"small"
@
click=
"submitEditConnect"
v-if=
"!(optType === 'detail')"
>
确认
</el-button
>
确认
</el-button
>
>
<el-button
size=
"small"
@
click=
"editConnectVisible = false"
<el-button
size=
"small"
@
click=
"editConnectVisible = false"
...
@@ -131,10 +172,18 @@ export default {
...
@@ -131,10 +172,18 @@ export default {
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
itemName
:
""
,
productionSolutionProcessItemId
:
""
,
productionSolutionProcessId
:
""
,
sapItemCode
:
""
,
sapItemName
:
""
,
usageCode
:
""
,
unitOfMeasure
:
""
,
unitOfMeasure
:
""
,
deputyUnitOfMeasure
:
""
,
unitConvert
:
""
,
quantity
:
""
,
quantity
:
""
,
remark
:
""
,
remark
:
""
,
idx
:
""
,
recoil
:
""
,
},
},
currentRowIdx
:
undefined
,
currentRowIdx
:
undefined
,
tableData
:
[],
tableData
:
[],
...
@@ -208,10 +257,18 @@ export default {
...
@@ -208,10 +257,18 @@ export default {
/**重置表单 */
/**重置表单 */
resetForm
()
{
resetForm
()
{
this
.
form
=
{
this
.
form
=
{
itemName
:
""
,
productionSolutionProcessItemId
:
""
,
productionSolutionProcessId
:
""
,
sapItemCode
:
""
,
sapItemName
:
""
,
usageCode
:
""
,
unitOfMeasure
:
""
,
unitOfMeasure
:
""
,
deputyUnitOfMeasure
:
""
,
unitConvert
:
""
,
quantity
:
""
,
quantity
:
""
,
remark
:
""
,
remark
:
""
,
idx
:
""
,
recoil
:
""
,
};
};
},
},
/** 提交编辑关联信息 */
/** 提交编辑关联信息 */
...
@@ -221,6 +278,14 @@ export default {
...
@@ -221,6 +278,14 @@ export default {
});
});
this
.
editConnectVisible
=
false
;
this
.
editConnectVisible
=
false
;
},
},
/**查看 */
searchRow
(
row
,
idx
)
{
this
.
resetForm
();
Object
.
assign
(
this
.
form
,
row
);
this
.
currentRowIdx
=
idx
;
this
.
optType
=
"detail"
;
this
.
editConnectVisible
=
true
;
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/mes/pro/productionSolution/components/ProcessQcindex.vue
View file @
541f4c37
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
append-to-body
append-to-body
title=
"设置检验项"
title=
"设置检验项"
>
>
<
!--
<
el-row
:gutter=
"10"
class=
"mb8"
>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -16,10 +16,11 @@
...
@@ -16,10 +16,11 @@
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
@
click=
"handleAdd"
@
click=
"handleAdd"
v-if=
"!(optType === 'detail')"
>
新增
</el-button
>
新增
</el-button
>
>
</el-col>
</el-col>
</el-row>
-->
</el-row>
<el-table
:data=
"tableData"
>
<el-table
:data=
"tableData"
>
<el-table-column
label=
"检测项编码"
align=
"center"
prop=
"indexCode"
/>
<el-table-column
label=
"检测项编码"
align=
"center"
prop=
"indexCode"
/>
<el-table-column
label=
"检测项名称"
align=
"center"
prop=
"indexName"
/>
<el-table-column
label=
"检测项名称"
align=
"center"
prop=
"indexName"
/>
...
@@ -30,7 +31,12 @@
...
@@ -30,7 +31,12 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"检测工具"
align=
"center"
prop=
"qcTool"
/>
<el-table-column
label=
"检测工具"
align=
"center"
prop=
"qcTool"
/>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"操作"
align=
"center"
width=
"150"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"150"
v-if=
"!(optType === 'detail')"
>
<
template
slot-scope=
"{ row, $index }"
>
<
template
slot-scope=
"{ row, $index }"
>
<el-button
<el-button
type=
"text"
type=
"text"
...
@@ -48,6 +54,22 @@
...
@@ -48,6 +54,22 @@
>
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"150"
v-if=
"optType === 'detail'"
>
<
template
slot-scope=
"{ row, $index }"
>
<el-button
type=
"text"
icon=
"el-icon-edit"
size=
"small"
@
click=
"SearchRow(row, $index)"
>
查看详情
</el-button
>
</
template
>
</el-table-column>
</el-table>
</el-table>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
...
@@ -61,7 +83,7 @@
...
@@ -61,7 +83,7 @@
<el-dialog
<el-dialog
:visible
.
sync=
"editConnectVisible"
:visible
.
sync=
"editConnectVisible"
width=
"800px"
width=
"800px"
title=
"
编辑
检验项关联信息"
title=
"检验项关联信息"
>
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-row>
<el-row>
...
@@ -89,6 +111,7 @@
...
@@ -89,6 +111,7 @@
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addOrEditubmit"
<el-button
type=
"primary"
size=
"small"
@
click=
"addOrEditubmit"
v-if=
"!(optType === 'detail')"
>
确认
</el-button
>
确认
</el-button
>
>
<el-button
size=
"small"
@
click=
"editConnectVisible = false"
<el-button
size=
"small"
@
click=
"editConnectVisible = false"
...
@@ -112,6 +135,7 @@
...
@@ -112,6 +135,7 @@
dicts
:
[
'mes_index_type'
],
dicts
:
[
'mes_index_type'
],
data
()
{
data
()
{
return
{
return
{
optType
:
"add"
,
form
:
{
form
:
{
indexCode
:
""
,
indexCode
:
""
,
indexName
:
""
,
indexName
:
""
,
...
@@ -159,7 +183,7 @@
...
@@ -159,7 +183,7 @@
/**新增按钮 */
/**新增按钮 */
handleAdd
()
{
handleAdd
()
{
this
.
resetForm
();
this
.
resetForm
();
this
.
optType
=
'add'
;
this
.
optType
=
"add"
;
this
.
editConnectVisible
=
true
;
this
.
editConnectVisible
=
true
;
},
},
/**编辑 */
/**编辑 */
...
@@ -167,7 +191,15 @@
...
@@ -167,7 +191,15 @@
this
.
resetForm
();
this
.
resetForm
();
Object
.
assign
(
this
.
form
,
row
);
Object
.
assign
(
this
.
form
,
row
);
this
.
currentRowIdx
=
idx
;
this
.
currentRowIdx
=
idx
;
this
.
optType
=
'edit'
;
this
.
optType
=
"edit"
;
this
.
editConnectVisible
=
true
;
},
/**查看详情 */
SearchRow
(
row
,
idx
)
{
this
.
resetForm
();
Object
.
assign
(
this
.
form
,
row
);
this
.
currentRowIdx
=
idx
;
this
.
optType
=
"detail"
;
this
.
editConnectVisible
=
true
;
this
.
editConnectVisible
=
true
;
},
},
/**新增 */
/**新增 */
...
...
src/views/mes/pro/productionSolution/components/ProcessTool.vue
View file @
541f4c37
...
@@ -16,21 +16,70 @@
...
@@ -16,21 +16,70 @@
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
@
click=
"handleAdd"
@
click=
"handleAdd"
v-if=
"!(optType === 'detail')"
>
新增
</el-button
>
新增
</el-button
>
>
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
:data=
"tableData"
>
<el-table
:data=
"tableData"
>
<el-table-column
label=
"编号"
align=
"center"
prop=
"itemCode"
>
<el-table-column
label=
"编号"
align=
"center"
prop=
"itemCode"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"名称"
align=
"center"
prop=
"itemName"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"名称"
align=
"center"
prop=
"itemName"
:show-overflow-tooltip=
"true"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"型号"
align=
"center"
prop=
"specification"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"型号"
align=
"center"
prop=
"specification"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"类型"
align=
"center"
prop=
"itemTypeName"
/>
<el-table-column
label=
"类型"
align=
"center"
prop=
"itemTypeName"
/>
<el-table-column
label=
"要求数量"
align=
"center"
prop=
"quantity"
/>
<el-table-column
label=
"要求数量"
align=
"center"
prop=
"quantity"
/>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"备注"
prop=
"remark"
align=
"center"
/>
<el-table-column
label=
"操作"
align=
"center"
width=
"150"
v-if=
"!(optType === 'detail')"
>
<template
slot-scope=
"
{ row, $index }">
<el-button
type=
"text"
icon=
"el-icon-edit"
size=
"small"
@
click=
"updateRow(row, $index)"
>
修改
</el-button
>
<el-button
type=
"text"
icon=
"el-icon-delete"
size=
"small"
@
click=
"deleteRow($index)"
>
删除
</el-button
>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"150"
v-if=
"optType === 'detail'"
>
<
template
slot-scope=
"{ row, $index }"
>
<el-button
type=
"text"
icon=
"el-icon-edit"
size=
"small"
@
click=
"searchRow(row, $index)"
>
查看详情
</el-button
>
</
template
>
</el-table-column>
</el-table>
</el-table>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"cancleConnect"
<el-button
type=
"primary"
size=
"small"
@
click=
"cancleConnect"
>
关闭
</el-button
>
关闭
</el-button
...
@@ -42,14 +91,17 @@
...
@@ -42,14 +91,17 @@
<el-dialog
<el-dialog
:visible
.
sync=
"editConnectVisible"
:visible
.
sync=
"editConnectVisible"
width=
"800px"
width=
"800px"
title=
"
编辑
工装量具关联信息"
title=
"工装量具关联信息"
>
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"工装量具编码"
prop=
"toolCode"
>
<el-form-item
label=
"工装量具编码"
prop=
"toolCode"
>
<el-input
v-model=
"form.itemCode"
placeholder=
"请选择数据"
<el-input
disabled
>
v-model=
"form.itemCode"
placeholder=
"请选择数据"
disabled
>
<el-button
<el-button
slot=
"append"
slot=
"append"
icon=
"el-icon-search"
icon=
"el-icon-search"
...
@@ -61,11 +113,7 @@
...
@@ -61,11 +113,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"工装量具名称"
prop=
"itemName"
>
<el-form-item
label=
"工装量具名称"
prop=
"itemName"
>
<el-input
<el-input
type=
"text"
v-model=
"form.itemName"
disabled
></el-input>
type=
"text"
v-model=
"form.itemName"
disabled
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -81,13 +129,21 @@
...
@@ -81,13 +129,21 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
:rows=
"3"
></el-input>
<el-input
v-model=
"form.remark"
type=
"textarea"
:rows=
"3"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addOrEditubmit"
<el-button
type=
"primary"
size=
"small"
@
click=
"addOrEditubmit"
v-if=
"!(optType === 'detail')"
>
确认
</el-button
>
确认
</el-button
>
>
<el-button
size=
"small"
@
click=
"editConnectVisible = false"
<el-button
size=
"small"
@
click=
"editConnectVisible = false"
...
@@ -99,8 +155,8 @@
...
@@ -99,8 +155,8 @@
</template>
</template>
<
script
>
<
script
>
import
ItemSelect
from
"@/components/itemSelect/single.vue"
;
import
ItemSelect
from
"@/components/itemSelect/single.vue"
;
export
default
{
export
default
{
props
:
{
props
:
{
process
:
{
process
:
{
type
:
Object
,
type
:
Object
,
...
@@ -108,24 +164,25 @@
...
@@ -108,24 +164,25 @@
},
},
},
},
components
:
{
ItemSelect
},
components
:
{
ItemSelect
},
dicts
:
[
'mes_index_type'
],
dicts
:
[
"mes_index_type"
],
data
()
{
data
()
{
return
{
return
{
optType
:
"add"
,
form
:
{
form
:
{
itemCode
:
""
,
itemCode
:
""
,
itemName
:
""
,
itemName
:
""
,
specification
:
""
,
specification
:
""
,
itemTypeName
:
""
,
itemTypeName
:
""
,
remark
:
""
,
remark
:
""
,
quantity
:
""
,
quantity
:
""
,
toolId
:
""
,
toolId
:
""
,
},
},
currentRowIdx
:
undefined
,
currentRowIdx
:
undefined
,
tableData
:
[],
tableData
:
[],
selectedItemId
:
undefined
,
selectedItemId
:
undefined
,
selectedRows
:
null
,
selectedRows
:
null
,
showFlag
:
false
,
showFlag
:
false
,
optType
:
null
,
optType
:
null
,
showProcessProd
:
false
,
showProcessProd
:
false
,
editConnectVisible
:
false
,
editConnectVisible
:
false
,
};
};
...
@@ -159,7 +216,7 @@
...
@@ -159,7 +216,7 @@
/**新增按钮 */
/**新增按钮 */
handleAdd
()
{
handleAdd
()
{
this
.
resetForm
();
this
.
resetForm
();
this
.
optType
=
'add'
;
this
.
optType
=
"add"
;
this
.
editConnectVisible
=
true
;
this
.
editConnectVisible
=
true
;
},
},
/**编辑 */
/**编辑 */
...
@@ -167,7 +224,15 @@
...
@@ -167,7 +224,15 @@
this
.
resetForm
();
this
.
resetForm
();
Object
.
assign
(
this
.
form
,
row
);
Object
.
assign
(
this
.
form
,
row
);
this
.
currentRowIdx
=
idx
;
this
.
currentRowIdx
=
idx
;
this
.
optType
=
'edit'
;
this
.
optType
=
"edit"
;
this
.
editConnectVisible
=
true
;
},
/**查看 */
searchRow
(
row
,
idx
)
{
this
.
resetForm
();
Object
.
assign
(
this
.
form
,
row
);
this
.
currentRowIdx
=
idx
;
this
.
optType
=
"detail"
;
this
.
editConnectVisible
=
true
;
this
.
editConnectVisible
=
true
;
},
},
/**新增 */
/**新增 */
...
@@ -178,7 +243,6 @@
...
@@ -178,7 +243,6 @@
this
.
tableData
.
unshift
({
this
.
tableData
.
unshift
({
...
this
.
form
,
...
this
.
form
,
processId
:
this
.
process
.
processId
,
processId
:
this
.
process
.
processId
,
});
});
this
.
editConnectVisible
=
false
;
this
.
editConnectVisible
=
false
;
},
},
...
@@ -189,10 +253,10 @@
...
@@ -189,10 +253,10 @@
});
});
this
.
editConnectVisible
=
false
;
this
.
editConnectVisible
=
false
;
},
},
addOrEditubmit
()
{
addOrEditubmit
()
{
if
(
this
.
optType
==
'add'
)
{
if
(
this
.
optType
==
"add"
)
{
this
.
configmSelect
();
this
.
configmSelect
();
}
else
{
}
else
{
this
.
submitEditConnect
();
this
.
submitEditConnect
();
}
}
},
},
...
@@ -213,14 +277,14 @@
...
@@ -213,14 +277,14 @@
this
.
form
=
{
this
.
form
=
{
itemCode
:
""
,
itemCode
:
""
,
itemName
:
""
,
itemName
:
""
,
specification
:
""
,
specification
:
""
,
itemTypeName
:
""
,
itemTypeName
:
""
,
remark
:
""
,
remark
:
""
,
quantity
:
""
,
quantity
:
""
,
toolId
:
""
,
toolId
:
""
,
};
};
},
},
onItemSelect
(
row
)
{
onItemSelect
(
row
)
{
if
(
row
!=
undefined
&&
row
!=
null
)
{
if
(
row
!=
undefined
&&
row
!=
null
)
{
this
.
form
.
itemCode
=
row
.
itemCode
;
this
.
form
.
itemCode
=
row
.
itemCode
;
this
.
form
.
itemName
=
row
.
itemName
;
this
.
form
.
itemName
=
row
.
itemName
;
...
@@ -228,13 +292,13 @@
...
@@ -228,13 +292,13 @@
this
.
form
.
itemTypeName
=
row
.
itemTypeName
;
this
.
form
.
itemTypeName
=
row
.
itemTypeName
;
this
.
form
.
toolId
=
row
.
itemId
;
this
.
form
.
toolId
=
row
.
itemId
;
}
}
}
},
},
};
},
};
</
script
>
</
script
>
<
style
>
<
style
>
.process-prod
{
.process-prod
{
padding
:
0
20px
;
padding
:
0
20px
;
}
}
</
style
>
</
style
>
src/views/mes/pro/productionSolution/components/ProogingBom.vue
View file @
541f4c37
<
template
>
<
template
>
<div>
<div>
<el-row
:gutter=
"10"
class=
"mb8"
v-if=
"mode != 'info'"
>
<el-form
<el-col
:span=
"1.5"
>
class=
"page-form"
<!--
<el-button
:model=
"form2"
type=
"primary"
ref=
"form"
plain
size=
"small"
icon=
"el-icon-plus"
:inline=
"true"
size=
"mini"
label-width=
"8em"
@
click=
"handleAdd"
>
>
新增
</el-button
<el-row>
>
-->
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"基本数量"
prop=
"quantity"
>
<el-input-number
:min=
"1"
v-model=
"form2.quantity"
placeholder=
"请输入基本数量"
/>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-button
<el-form-item
label=
"基本计量单位"
prop=
"unitOfMeasure"
>
type=
"danger"
<el-input
plain
v-model=
"form2.unitOfMeasure"
icon=
"el-icon-delete"
placeholder=
"请输入物料清单的基本计量单位"
size=
"mini"
/>
@
click=
"handleDelete"
</el-form-item>
>
删除
</el-button
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"物料清单授权组"
prop=
"billOfMaterialsAuthorizationGroup"
>
>
<el-input
v-model=
"form2.billOfMaterialsAuthorizationGroup"
placeholder=
"请输入物料清单授权组"
/>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"抬头文本描述"
prop=
"remark"
>
<el-input
v-model=
"form2.remark"
placeholder=
"抬头文本描述"
/>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
<el-divider></el-divider>
<el-table
:data=
"tableData"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"tableData"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"idx"
/>
<el-table-column
label=
"组件名称"
align=
"center"
prop=
"itemName"
/>
<el-table-column
label=
"项目类别"
align=
"center"
prop=
"itemClass"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sap_item_type"
:value=
"scope.row.itemClass"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"组件数量"
align=
"center"
prop=
"quantity"
/>
<el-table-column
label=
"计量单位"
align=
"center"
prop=
"unitOfMeasure"
/>
<el-table-column
<el-table-column
label=
"
物料名称
"
label=
"
成本核算
"
align=
"center"
align=
"center"
prop=
"itemName"
prop=
"costAccountingMarking"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.bom_cost_accounting_marking"
:value=
"scope.row.costAccountingMarking"
/>
/>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
label=
"
组件数量
"
label=
"
报废百分比
"
align=
"center"
align=
"center"
prop=
"quantity"
prop=
"scrapPercentage"
/>
<el-table-column
label=
"特殊获取"
align=
"center"
prop=
"specialAccess"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.bom_special_access"
:value=
"scope.row.specialAccess"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"物料供应"
align=
"center"
prop=
"itemSupplyMarking"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.item_supply_marking"
:value=
"scope.row.itemSupplyMarking"
/>
/>
</
template
>
</el-table-column>
<el-table-column
label=
"替代组"
align=
"center"
prop=
"alternativeGroup"
/>
<el-table-column
<el-table-column
label=
"
计量单位
"
label=
"
替代优先级
"
align=
"center"
align=
"center"
prop=
"unitOfMeasure"
prop=
"alternativePriorities"
/>
/>
<el-table-column
label=
"策略"
align=
"center"
prop=
"alternativeStrategy"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.bom_alternative_strategy"
:value=
"scope.row.alternativeStrategy"
/>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
label=
"
替代组
"
label=
"
使用概率
"
align=
"center"
align=
"center"
prop=
"alternativeGroup"
prop=
"alternativeProbability"
/>
/>
<el-table-column
label=
"BOM行备注"
align=
"center"
prop=
"bomItemRemark"
/>
<el-table-column
label=
"物料备注"
align=
"center"
prop=
"itemRemark"
/>
<el-table-column
label=
"固定数量"
align=
"center"
prop=
"isFixed"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.isFixed"
/>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
v-if=
"mode
!
= 'edit'"
v-if=
"mode
=
= 'edit'"
label=
"操作"
label=
"操作"
align=
"center"
align=
"center"
fixed=
"right"
>
>
<
!--
<
template
slot-scope=
"
{ row, $index }">
<
template
slot-scope=
"{ row, $index }"
>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
...
@@ -62,20 +135,29 @@
...
@@ -62,20 +135,29 @@
@
click=
"updateRow(row, $index)"
@
click=
"updateRow(row, $index)"
>
修改
</el-button
>
修改
</el-button
>
>
</
template
>
</el-table-column>
<el-table-column
v-if=
"mode == 'info'"
label=
"操作"
align=
"center"
width=
"120"
>
<
template
slot-scope=
"{ row, $index }"
>
<el-button
<el-button
type=
"text"
type=
"text"
icon=
"el-icon-
delete
"
icon=
"el-icon-
search
"
size=
"small"
size=
"small"
@
click=
"
deleteRow(
$index)"
@
click=
"
searchRow(row,
$index)"
>
删除
</el-button
>
查看详情
</el-button
>
>
</
template
>
-->
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-dialog
:visible
.
sync=
"showFlag"
width=
"700px"
title=
"添加BOM"
>
<el-dialog
:visible
.
sync=
"showFlag"
width=
"700px"
title=
"添加BOM"
>
<el-form
<el-form
ref=
"form"
ref=
"
page-
form"
:model=
"form"
:model=
"form"
:rules=
"rules"
:rules=
"rules"
inline
inline
...
@@ -83,7 +165,7 @@
...
@@ -83,7 +165,7 @@
size=
"small"
size=
"small"
>
>
<el-row>
<el-row>
<el-col
:
span=
"24
"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12
"
>
<el-form-item
label=
"物料"
prop=
"itemId"
>
<el-form-item
label=
"物料"
prop=
"itemId"
>
<el-input
<el-input
v-model=
"form.itemName"
v-model=
"form.itemName"
...
@@ -99,9 +181,24 @@
...
@@ -99,9 +181,24 @@
<ItemSelect
ref=
"ItemSelectRef"
@
onSelected=
"onItemSelect"
/>
<ItemSelect
ref=
"ItemSelectRef"
@
onSelected=
"onItemSelect"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-row>
<el-form-item
label=
"项目类别"
prop=
"itemClass"
>
<el-col
:span=
"12"
>
<el-select
v-model=
"form.itemClass"
clearable
placeholder=
"请选择项目类别"
>
<el-option
v-for=
"dict in dict.type.sap_item_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"组件数量"
prop=
"quantity"
>
<el-form-item
label=
"组件数量"
prop=
"quantity"
>
<el-input
<el-input
type=
"number"
type=
"number"
...
@@ -110,7 +207,7 @@
...
@@ -110,7 +207,7 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
span
=
"12"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm=
"12"
:xs
=
"12"
>
<el-form-item
label=
"计量单位"
prop=
"unitOfMeasure"
>
<el-form-item
label=
"计量单位"
prop=
"unitOfMeasure"
>
<el-input
<el-input
v-model=
"form.unitOfMeasure"
v-model=
"form.unitOfMeasure"
...
@@ -118,7 +215,7 @@
...
@@ -118,7 +215,7 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
span
=
"12"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm=
"12"
:xs
=
"12"
>
<el-form-item
label=
"报废百分比"
prop=
"scrapPercentage"
>
<el-form-item
label=
"报废百分比"
prop=
"scrapPercentage"
>
<el-input
<el-input
v-model=
"form.scrapPercentage"
v-model=
"form.scrapPercentage"
...
@@ -126,7 +223,55 @@
...
@@ -126,7 +223,55 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"特殊获取"
prop=
"specialAccess"
>
<el-select
v-model=
"form.specialAccess"
placeholder=
"请选择特殊获取"
>
<el-option
v-for=
"dict in dict.type.bom_special_access"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"物料供应"
prop=
"itemSupplyMarking"
>
<el-select
v-model=
"form.itemSupplyMarking"
placeholder=
"请选择物料供应标识"
>
<el-option
v-for=
"dict in dict.type.item_supply_marking"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"成本核算"
prop=
"costAccountingMarking"
>
<el-select
v-model=
"form.costAccountingMarking"
placeholder=
"请选择是否与成本核算相关"
>
<el-option
v-for=
"dict in dict.type.bom_cost_accounting_marking"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"替代组"
prop=
"alternativeGroup"
>
<el-form-item
label=
"替代组"
prop=
"alternativeGroup"
>
<el-input
<el-input
v-model=
"form.alternativeGroup"
v-model=
"form.alternativeGroup"
...
@@ -134,7 +279,7 @@
...
@@ -134,7 +279,7 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
span
=
"12"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm=
"12"
:xs
=
"12"
>
<el-form-item
label=
"替代优先级"
prop=
"alternativePriorities"
>
<el-form-item
label=
"替代优先级"
prop=
"alternativePriorities"
>
<el-input
<el-input
v-model=
"form.alternativePriorities"
v-model=
"form.alternativePriorities"
...
@@ -142,15 +287,23 @@
...
@@ -142,15 +287,23 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
span
=
"12"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm=
"12"
:xs
=
"12"
>
<el-form-item
label=
"策略"
prop=
"alternativeStrategy"
>
<el-form-item
label=
"策略"
prop=
"alternativeStrategy"
>
<el-
inpu
t
<el-
selec
t
v-model=
"form.alternativeStrategy"
v-model=
"form.alternativeStrategy"
placeholder=
"请输入策略"
placeholder=
"请选择策略"
></el-input>
>
<el-option
v-for=
"dict in dict.type.bom_alternative_strategy"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
span
=
"12"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm=
"12"
:xs
=
"12"
>
<el-form-item
label=
"使用概率"
prop=
"alternativeProbability"
>
<el-form-item
label=
"使用概率"
prop=
"alternativeProbability"
>
<el-input
<el-input
v-model=
"form.alternativeProbability"
v-model=
"form.alternativeProbability"
...
@@ -158,7 +311,23 @@
...
@@ -158,7 +311,23 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"是否固定数量"
prop=
"isFixed"
>
<el-select
v-model=
"form.isFixed"
placeholder=
"请选择是否固定数量"
>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"BOM行备注"
prop=
"bomItemRemark"
>
<el-form-item
label=
"BOM行备注"
prop=
"bomItemRemark"
>
<el-input
<el-input
v-model=
"form.bomItemRemark"
v-model=
"form.bomItemRemark"
...
@@ -166,7 +335,7 @@
...
@@ -166,7 +335,7 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
span
=
"12"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm=
"12"
:xs
=
"12"
>
<el-form-item
label=
"物料备注"
prop=
"itemRemark"
>
<el-form-item
label=
"物料备注"
prop=
"itemRemark"
>
<el-input
<el-input
v-model=
"form.itemRemark"
v-model=
"form.itemRemark"
...
@@ -177,7 +346,12 @@
...
@@ -177,7 +346,12 @@
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
v-if=
"!(optType === 'detail')"
>
确定
</el-button
>
<el-button
type=
"default"
@
click=
"showFlag = false"
>
取消
</el-button>
<el-button
type=
"default"
@
click=
"showFlag = false"
>
取消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -190,6 +364,14 @@ import ItemSelect from "@/components/itemSelect/single.vue";
...
@@ -190,6 +364,14 @@ import ItemSelect from "@/components/itemSelect/single.vue";
export
default
{
export
default
{
components
:
{
ItemBomSelect
,
ItemSelect
},
components
:
{
ItemBomSelect
,
ItemSelect
},
inject
:
[
"mode"
],
inject
:
[
"mode"
],
dicts
:
[
"bom_cost_accounting_marking"
,
"item_supply_marking"
,
"sys_yes_no"
,
"sap_item_type"
,
"bom_alternative_strategy"
,
"bom_special_access"
,
],
data
()
{
data
()
{
return
{
return
{
/**弹窗状态 */
/**弹窗状态 */
...
@@ -202,18 +384,33 @@ export default {
...
@@ -202,18 +384,33 @@ export default {
selection
:
[],
selection
:
[],
optType
:
"add"
,
optType
:
"add"
,
/**表单初始化数据 */
/**表单初始化数据 */
form
:
{
form
2
:
{
quantity
:
""
,
quantity
:
""
,
unitOfMeasure
:
""
,
remark
:
""
,
billOfMaterialsAuthorizationGroup
:
""
,
},
form
:
{
bomItemId
:
""
,
bomHeadId
:
""
,
idx
:
""
,
sapItemCode
:
""
,
itemName
:
""
,
itemName
:
""
,
itemId
:
""
,
itemClass
:
""
,
itemType
:
""
,
unitOfMeasure
:
""
,
unitOfMeasure
:
""
,
quantity
:
""
,
costAccountingMarking
:
""
,
scrapPercentage
:
""
,
scrapPercentage
:
""
,
specialAccess
:
""
,
itemSupplyMarking
:
""
,
alternativeGroup
:
""
,
alternativeGroup
:
""
,
alternativePriorities
:
""
,
alternativePriorities
:
""
,
alternativeStrategy
:
""
,
alternativeStrategy
:
""
,
alternativeProbability
:
""
,
alternativeProbability
:
""
,
bomItemRemark
:
""
,
bomItemRemark
:
""
,
itemRemark
:
""
,
itemRemark
:
""
,
isFixed
:
""
,
},
},
currentRowIdx
:
undefined
,
currentRowIdx
:
undefined
,
};
};
...
@@ -263,7 +460,7 @@ export default {
...
@@ -263,7 +460,7 @@ export default {
if
(
this
.
optType
==
"add"
)
{
if
(
this
.
optType
==
"add"
)
{
this
.
tableData
.
unshift
({
...
this
.
form
});
this
.
tableData
.
unshift
({
...
this
.
form
});
}
else
{
}
else
{
this
.
tableData
.
splice
(
this
.
currentRowIdx
,
1
,
this
.
form
);
this
.
tableData
.
splice
(
this
.
currentRowIdx
,
1
,
{
...
this
.
form
}
);
}
}
this
.
showFlag
=
false
;
this
.
showFlag
=
false
;
}
}
...
@@ -272,17 +469,10 @@ export default {
...
@@ -272,17 +469,10 @@ export default {
/**重置表单 */
/**重置表单 */
resetForm
()
{
resetForm
()
{
this
.
form
=
{
this
.
form
=
{
itemName
:
""
,
itemId
:
""
,
quantity
:
""
,
quantity
:
""
,
unitOfMeasure
:
""
,
unitOfMeasure
:
""
,
scrapPercentage
:
""
,
remark
:
""
,
alternativeGroup
:
""
,
billOfMaterialsAuthorizationGroup
:
""
,
alternativePriorities
:
""
,
alternativeStrategy
:
""
,
alternativeProbability
:
""
,
bomItemRemark
:
""
,
itemRemark
:
""
,
};
};
},
},
/**重置组件状态 */
/**重置组件状态 */
...
@@ -292,7 +482,17 @@ export default {
...
@@ -292,7 +482,17 @@ export default {
},
},
/**获取组件数据 */
/**获取组件数据 */
getComData
()
{
getComData
()
{
return
this
.
tableData
;
return
{
...
this
.
form2
,
bomItemList
:
this
.
tableData
,
};
},
/**查看行 */
searchRow
(
row
,
idx
)
{
this
.
form
=
Object
.
assign
(
this
.
form
,
row
);
this
.
currentRowIdx
=
idx
;
this
.
optType
=
"detail"
;
this
.
showFlag
=
true
;
},
},
},
},
};
};
...
...
src/views/mes/pro/productionSolution/components/ProogingProcess.vue
View file @
541f4c37
<
template
>
<
template
>
<div>
<div>
<el-table
:data=
"tableData"
>
<el-table
:data=
"tableData"
>
<el-table-column
label=
"序号"
prop=
"idx"
align=
"center"
/>
<el-table-column
label=
"工序名称"
prop=
"processName"
align=
"center"
/>
<el-table-column
label=
"工序名称"
prop=
"processName"
align=
"center"
/>
<el-table-column
label=
"工序编码"
prop=
"processCode"
align=
"center"
/>
<el-table-column
label=
"工作站"
prop=
"workstationName"
align=
"center"
/>
<el-table-column
label=
"标准工时"
prop=
"stdWorkingTime"
align=
"center"
/>
<el-table-column
label=
"换行时间"
prop=
"lineBreakTime"
align=
"center"
/>
<el-table-column
<el-table-column
label=
"
与下一道工序关系
"
label=
"
工时单位
"
prop=
"
linkType
"
prop=
"
stdWorkingTimeUom
"
align=
"center"
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
<el-table-column
label=
"加工方式"
prop=
"controlCode"
align=
"center"
width=
"215"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.process_control_code"
:value=
"scope.row.controlCode"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"基本数量"
prop=
"quantity"
align=
"center"
/>
<el-table-column
label=
"计量单位"
prop=
"unitOfMeasure"
align=
"center"
/>
<el-table-column
label=
"雇员数量"
prop=
"employeesNum"
align=
"center"
/>
<el-table-column
label=
"关键工序"
prop=
"keyFlag"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.keyFlag"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"是否质检"
prop=
"isCheck"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.isCheck"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"工序备注"
prop=
"processRemark"
align=
"center"
/>
<el-table-column
v-if=
"mode != 'info'"
label=
"操作"
label=
"操作"
align=
"center"
align=
"center"
width=
"300"
width=
"300"
fixed=
"right"
fixed=
"right"
>
>
<
template
slot-scope=
"{ row, $index }"
>
<
template
slot-scope=
"{ row, $index }"
>
<el-button
type=
"text"
size=
"small"
@
click=
"openSetProd(row, $index)"
>
设置物料
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"openSetProd(row, $index)"
@
click=
"openSetQrindex(row, $index)"
>
设置检验项
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"openSetTool(row, $index)"
>
设置工装量具
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"updateRow(row, $index)"
>
修改
</el-button
>
</
template
>
</el-table-column>
<el-table-column
v-if=
"mode == 'info'"
label=
"操作"
align=
"center"
width=
"310"
fixed=
"right"
>
>
<
template
slot-scope=
"{ row, $index }"
>
<el-button
type=
"text"
size=
"small"
@
click=
"SearchProd(row, $index)"
>
查看物料
查看物料
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
type=
"text"
size=
"small"
size=
"small"
@
click=
"
openSet
Qrindex(row, $index)"
@
click=
"
search
Qrindex(row, $index)"
>
>
查看检验项
查看检验项
</el-button>
</el-button>
<el-button
<el-button
type=
"text"
size=
"small"
@
click=
"searchTool(row, $index)"
>
type=
"text"
size=
"small"
@
click=
"openSetTool(row, $index)"
>
查看工装量具
查看工装量具
</el-button>
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"searchRow(row, $index)"
>
查看工序信息
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -49,28 +104,22 @@
...
@@ -49,28 +104,22 @@
ref=
"ProcessProdRef"
ref=
"ProcessProdRef"
@
updateItem=
"updateItem"
@
updateItem=
"updateItem"
/>
/>
<ProcessQcindex
<ProcessQcindex
:process=
"currentRow"
ref=
"ProcessQcindexRef"
/>
:process=
"currentRow"
<ProcessTool
:process=
"currentRow"
ref=
"ProcessToolRef"
/>
ref=
"ProcessQcindexRef"
/>
<ProcessTool
:process=
"currentRow"
ref=
"ProcessToolRef"
/>
<el-dialog
<el-dialog
v-dialogDrag
v-dialogDrag
:visible
.
sync=
"showFlag"
:visible
.
sync=
"showFlag"
width=
"800px"
width=
"800px"
title=
"工序
修改
"
title=
"工序
设置
"
>
>
<el-form
<el-form
ref=
"form"
ref=
"form"
class=
"page-form"
:model=
"form"
:model=
"form"
:rules=
"rules"
inline
label-width=
"100px"
size=
"small"
size=
"small"
:inline=
"true"
label-width=
"8em"
>
>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -102,6 +151,212 @@
...
@@ -102,6 +151,212 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"换型时间"
prop=
"lineBreakTime"
>
<el-input
type=
"number"
v-model=
"form.lineBreakTime"
placeholder=
"请输入换型时间"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"工时单位"
prop=
"stdWorkingTimeUom"
>
<el-select
v-model=
"form.stdWorkingTimeUom"
clearable
placeholder=
"请选择工时单位"
>
<el-option
v-for=
"dict in dict.type.mes_time_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"基本数量"
prop=
"quantity"
>
<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=
"employeesNum"
>
<el-input
type=
"number"
v-model=
"form.employeesNum"
placeholder=
"请输入雇员数量"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"加工方式"
prop=
"controlCode"
>
<el-select
v-model=
"form.controlCode"
placeholder=
"请选择加工方式"
clearable
style=
"width: 150px"
>
<el-option
v-for=
"dict in dict.type.process_control_code"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<
template
v-if=
"form.controlCode == 'PP02'"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"采购信息记录号"
prop=
"procurementInformationId"
>
<el-input
v-model=
"form.procurementInformationId"
placeholder=
"请输入采购信息记录号"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"供应商科目编号"
prop=
"vendorSubjectId"
>
<el-input
v-model=
"form.vendorSubjectId"
placeholder=
"请输入供应商科目编号"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"净价"
prop=
"netPrice"
>
<el-input
v-model=
"form.netPrice"
placeholder=
"请输入净价"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"采购组织"
prop=
"procurementOrganization"
>
<el-input
v-model=
"form.procurementOrganization"
placeholder=
"请输入采购组织"
></el-input>
</el-form-item>
</el-col>
</
template
>
<el-col
:span=
"12"
>
<el-form-item
label=
"关键工序"
prop=
"keyFlag"
>
<el-select
v-model=
"form.keyFlag"
placeholder=
"请选择是否为关键工序"
clearable
style=
"width: 150px"
>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"是否质检"
prop=
"isCheck"
>
<el-select
v-model=
"form.isCheck"
placeholder=
"请选择是否质检"
clearable
style=
"width: 150px"
>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"吹膜宽度"
prop=
"blownFilmWidth"
>
<el-input
type=
"number"
v-model=
"form.blownFilmWidth"
placeholder=
"请输入吹膜宽度"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"吹膜厚度"
prop=
"blownFilmThickness"
>
<el-input
type=
"number"
v-model=
"form.blownFilmThickness"
placeholder=
"请输入吹膜厚度"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"印数宽度"
prop=
"printingWidth"
>
<el-input
type=
"number"
v-model=
"form.printingWidth"
placeholder=
"请输入印数宽度"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"形状"
prop=
"shape"
>
<el-select
v-model=
"form.shape"
clearable
placeholder=
"请选择形状"
>
<el-option
v-for=
"dict in dict.type.product_shape"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"Inlay"
prop=
"inlay"
>
<el-input
v-model=
"form.inlay"
placeholder=
"Inlay"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"印张长度"
prop=
"printLength"
>
<el-input
type=
"number"
v-model=
"form.printLength"
placeholder=
"请输入印张长度"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"印张宽度"
prop=
"printWidth"
>
<el-input
type=
"number"
v-model=
"form.printWidth"
placeholder=
"请输入印张宽度"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
...
@@ -115,12 +370,24 @@
...
@@ -115,12 +370,24 @@
<
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
ProcessQcindex
from
"./ProcessQcindex.vue"
;
import
ProcessQcindex
from
"./ProcessQcindex.vue"
;
import
ProcessTool
from
"./ProcessTool.vue"
;
import
ProcessTool
from
"./ProcessTool.vue"
;
import
WorkstationSelect
from
"@/components/workstationSelect/simpletableSingle.vue"
;
import
WorkstationSelect
from
"@/components/workstationSelect/simpletableSingle.vue"
;
export
default
{
export
default
{
components
:
{
ItemBomSelect
,
ProcessProd
,
ProcessQcindex
,
ProcessTool
,
WorkstationSelect
},
components
:
{
ItemBomSelect
,
ProcessProd
,
ProcessQcindex
,
ProcessTool
,
WorkstationSelect
,
},
inject
:
[
"mode"
],
inject
:
[
"mode"
],
dicts
:
[
"process_control_code"
,
"sys_yes_no"
,
"mes_time_type"
,
"product_shape"
,
],
props
:
{
props
:
{
bomList
:
{
bomList
:
{
type
:
Array
,
type
:
Array
,
...
@@ -137,9 +404,36 @@ export default {
...
@@ -137,9 +404,36 @@ export default {
rules
:
{},
rules
:
{},
/**表单初始化数据 */
/**表单初始化数据 */
form
:
{
form
:
{
stdWorkingTime
:
""
,
productionSolutionId
:
""
,
recordId
:
""
,
processId
:
""
,
workstationId
:
""
,
workstationId
:
""
,
workstationName
:
""
,
keyFlag
:
""
,
isCheck
:
""
,
idx
:
""
,
workstationCode
:
""
,
processingMethod
:
""
,
processName
:
""
,
processRemark
:
""
,
quantity
:
""
,
unitOfMeasure
:
""
,
employeesNum
:
""
,
stdWorkingTime
:
""
,
lineBreakTime
:
""
,
stdWorkingTimeUom
:
""
,
controlCode
:
""
,
procurementInformationId
:
""
,
vendorSubjectId
:
""
,
netPrice
:
""
,
procurementOrganization
:
""
,
remark
:
""
,
blownFilmWidth
:
""
,
blownFilmThickness
:
""
,
printingWidth
:
""
,
shape
:
""
,
inlay
:
""
,
printLength
:
""
,
printWidth
:
""
,
},
},
currentRow
:
{},
currentRow
:
{},
currentRowIndex
:
undefined
,
currentRowIndex
:
undefined
,
...
@@ -149,6 +443,8 @@ export default {
...
@@ -149,6 +443,8 @@ export default {
setList
(
rows
)
{
setList
(
rows
)
{
this
.
tableData
=
rows
.
map
((
item
)
=>
{
this
.
tableData
=
rows
.
map
((
item
)
=>
{
item
.
processItemList
=
[];
item
.
processItemList
=
[];
item
.
qcindexList
=
[];
item
.
toolList
=
[];
return
item
;
return
item
;
});
});
},
},
...
@@ -171,6 +467,34 @@ export default {
...
@@ -171,6 +467,34 @@ export default {
this
.
currentRowIndex
=
idx
;
this
.
currentRowIndex
=
idx
;
this
.
$refs
[
"ProcessToolRef"
].
showProcessProd
=
true
;
this
.
$refs
[
"ProcessToolRef"
].
showProcessProd
=
true
;
},
},
/**查看物料 */
SearchProd
(
row
,
idx
)
{
this
.
currentRow
=
row
;
this
.
currentRowIndex
=
idx
;
this
.
$refs
[
"ProcessProdRef"
].
optType
=
"detail"
;
this
.
$refs
[
"ProcessProdRef"
].
showProcessProd
=
true
;
},
/**查看行 */
searchRow
(
row
,
idx
)
{
this
.
form
=
Object
.
assign
(
this
.
form
,
row
);
this
.
currentRowIdx
=
idx
;
this
.
optType
=
"detail"
;
this
.
showFlag
=
true
;
},
/**查看质检 */
searchQrindex
(
row
,
idx
)
{
this
.
currentRow
=
row
;
this
.
currentRowIndex
=
idx
;
this
.
$refs
[
"ProcessQcindexRef"
].
optType
=
"detail"
;
this
.
$refs
[
"ProcessQcindexRef"
].
showProcessProd
=
true
;
},
/**查看工装 */
searchTool
(
row
,
idx
)
{
this
.
currentRow
=
row
;
this
.
currentRowIndex
=
idx
;
this
.
$refs
[
"ProcessToolRef"
].
optType
=
"detail"
;
this
.
$refs
[
"ProcessToolRef"
].
showProcessProd
=
true
;
},
/**更新行 */
/**更新行 */
updateRow
(
row
,
idx
)
{
updateRow
(
row
,
idx
)
{
Object
.
assign
(
this
.
form
,
row
);
Object
.
assign
(
this
.
form
,
row
);
...
@@ -195,9 +519,36 @@ export default {
...
@@ -195,9 +519,36 @@ export default {
/**重置表单 */
/**重置表单 */
resetForm
()
{
resetForm
()
{
this
.
form
=
{
this
.
form
=
{
stdWorkingTime
:
""
,
productionSolutionId
:
""
,
recordId
:
""
,
processId
:
""
,
workstationId
:
""
,
workstationId
:
""
,
workstationName
:
""
,
keyFlag
:
""
,
isCheck
:
""
,
idx
:
""
,
workstationCode
:
""
,
processingMethod
:
""
,
processName
:
""
,
processRemark
:
""
,
quantity
:
""
,
unitOfMeasure
:
""
,
employeesNum
:
""
,
stdWorkingTime
:
""
,
lineBreakTime
:
""
,
stdWorkingTimeUom
:
""
,
controlCode
:
""
,
procurementInformationId
:
""
,
vendorSubjectId
:
""
,
netPrice
:
""
,
procurementOrganization
:
""
,
remark
:
""
,
blownFilmWidth
:
""
,
blownFilmThickness
:
""
,
printingWidth
:
""
,
shape
:
""
,
inlay
:
""
,
printLength
:
""
,
printWidth
:
""
,
};
};
},
},
/**重置组件状态 */
/**重置组件状态 */
...
...
src/views/mes/pro/productionSolution/proofingApply.vue
View file @
541f4c37
...
@@ -8,50 +8,44 @@
...
@@ -8,50 +8,44 @@
v-show=
"showSearch"
v-show=
"showSearch"
label-width=
"100px"
label-width=
"100px"
>
>
<el-form-item
label=
"生产
方案
名称"
prop=
"productionSolutionName"
>
<el-form-item
label=
"生产
版本
名称"
prop=
"productionSolutionName"
>
<el-input
<el-input
v-model=
"queryParams.itemName"
v-model=
"queryParams.itemName"
placeholder=
"请输入
方案
名称"
placeholder=
"请输入
版本
名称"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"生产用途"
prop=
"usageName"
>
<el-form-item
label=
"生产用途"
prop=
"usageName"
>
<el-
inpu
t
<el-
selec
t
v-model=
"queryParams.usageName"
v-model=
"queryParams.usageName"
placeholder=
"请输入生产用途"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
placeholder=
"请输入生产用途"
/>
>
<el-option
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=
"usageName"
>
<el-select
<el-select
v-model=
"queryParams.prototypeRequestStatus"
v-model=
"queryParams.status"
clearable
placeholder=
"请输入生产用途"
@
keyup
.
enter
.
native=
"usageName"
/>
</el-form-item>
-->
<!--
<el-form-item
label=
"样品名称"
prop=
"abbreviation"
>
<el-input
v-model=
"queryParams.itemName"
placeholder=
"请输入样品名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
-->
<!--
<el-date-picker
clearable
clearable
v-model=
"queryParams.abbreviation"
placeholder=
"请选择单据状态"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择申请日期"
>
>
</el-date-picker>
-->
<el-option
<!--
</el-form-item>
-->
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -66,124 +60,60 @@
...
@@ -66,124 +60,60 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<!--
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-table
<el-col
:span=
"1.5"
>
v-loading=
"loading"
<el-button
:data=
"productionSolutionList"
type=
"primary"
row-key=
"productionSolutionId"
plain
default-expand-all
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['mes:pro:prototypeRequest:add']"
>
新增
</el-button
>
</el-col>
-->
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['mes:pro:prototypeRequest:edit']"
>
修改
</el-button
>
</el-col>
-->
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['mes:pro:prototypeRequest:remove']"
>
删除
</el-button
>
</el-col>
-->
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
v-hasPermi=
"['mes:pro:prototypeRequest:export']"
>
导出
</el-button
>
>
</el-col>
-->
<el-table-column
label=
"生产版本编码"
prop=
"productionSolutionCode"
>
<!--
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
-->
<el-table
v-loading=
"loading"
:data=
"productionSolutionList"
row-key=
"productionSolutionId"
default-expand-all
>
<el-table-column
label=
"生产方案编码"
prop=
"productionSolutionCode"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
@
click=
"handleView(scope.row)"
@
click=
"handleView(scope.row)"
v-hasPermi=
"['
mes:
pro:productionSolutionCode:query']"
v-hasPermi=
"['pro:productionSolutionCode:query']"
>
{{
scope
.
row
.
productionSolutionCode
}}
</el-button
>
{{
scope
.
row
.
productionSolutionCode
}}
</el-button
>
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"产品方案名称"
align=
"center"
prop=
"productionSolutionName"
:show-overflow-tooltip=
"true"
<el-table-column
label=
"产品版本名称"
align=
"center"
prop=
"productionSolutionName"
:show-overflow-tooltip=
"true"
/>
/>
<el-table-column
label=
"生产用途"
align=
"center"
prop=
"usageName"
/>
<el-table-column
label=
"生产用途"
align=
"center"
prop=
"usageName"
/>
<el-table-column
label=
"状态"
align=
"center"
width=
"100"
prop=
"status"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.production_solution_status"
:value=
"scope.row.status"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
<!-- <el-table-column label="备注" align="center" prop="usageName" width="180"/> -->
<!-- <el-table-column label="备注" align="center" prop="usageName" width="180"/> -->
<el-table-column
<!-- <el-table-column
label=
"操作"
label=
"操作"
width=
"200px"
width=
"200px"
align=
"center"
align=
"center"
fixed=
"right"
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
/> -->
>
<
template
slot-scope=
"scope"
>
<!-- <template slot-scope="scope">
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
v-if="scope.row.
prototypeRequestStatus == '0
'"
v-if=
"scope.row.
status == 'PREPARE
'"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:edit']"
v-hasPermi=
"['pro:productionSolution:edit']"
>修改</el-button
>
确认
</el-button
> -->
>
<!-- <el-button
</
template
>
size="mini"
</el-table-column>
type="text"
icon="el-icon-circle-check"
v-if="scope.row.prototypeRequestStatus == '0'"
@click="handleFinish(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:update']"
>通过</el-button
> -->
<!-- <el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:remove']"
>删除</el-button
> -->
<!-- <el-button
size="mini"
type="text"
icon="el-icon-edit"
v-if="scope.row.prototypeRequestStatus == '1'"
@click="generatea(scope.row)"
v-hasPermi="['mes:pro:prototypeRequest:edit']"
>生成制作单</el-button
> -->
<!-- </template> -->
<!-- </el-table-column>-->
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total > 0"
v-show=
"total > 0"
...
@@ -193,23 +123,22 @@
...
@@ -193,23 +123,22 @@
@
pagination=
"getList"
@
pagination=
"getList"
/>
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
import
{
// listPrototypeRequest,
// listPrototypeRequest,
// getPrototypeRequest,
// getPrototypeRequest,
// delPrototypeRequest,
// delPrototypeRequest,
// addPrototypeRequest,
// addPrototypeRequest,
// updatePrototypeRequest,
// updatePrototypeRequest,
// dofinish,
// dofinish,
listProductionSolution
,
listProductionSolution
,
getProductionSolution
,
getProductionSolution
,
addProductionSolution
,
addProductionSolution
,
updateProductionSolution
,
updateProductionSolution
,
delProductionSolution
,
delProductionSolution
,
}
from
"@/api/mes/pro/productionSolution"
;
}
from
"@/api/mes/pro/productionSolution"
;
import
ItemSelect
from
"@/components/itemSelect/single.vue"
;
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"
;
...
@@ -222,6 +151,7 @@ export default {
...
@@ -222,6 +151,7 @@ export default {
"mes_pr_status"
,
"mes_pr_status"
,
"mes_prototypeRequest_sourcetype"
,
"mes_prototypeRequest_sourcetype"
,
"mes_prototypeRequest_type"
,
"mes_prototypeRequest_type"
,
"production_solution_status"
,
],
],
components
:
{
components
:
{
Treeselect
,
Treeselect
,
...
@@ -261,6 +191,7 @@ export default {
...
@@ -261,6 +191,7 @@ export default {
productionSolutionId
:
null
,
// 可以查简称与英文名
productionSolutionId
:
null
,
// 可以查简称与英文名
productionSolutionCode
:
null
,
productionSolutionCode
:
null
,
productionSolutionName
:
null
,
productionSolutionName
:
null
,
statsu
:
"PREPARE"
,
itemId
:
null
,
itemId
:
null
,
routeId
:
null
,
routeId
:
null
,
usageId
:
null
,
usageId
:
null
,
...
@@ -271,13 +202,14 @@ export default {
...
@@ -271,13 +202,14 @@ export default {
updateTime
:
null
,
updateTime
:
null
,
},
},
options
:
[
options
:
[
// { value: null, label: "全部订单" },
{
value
:
"PREPARE"
,
label
:
"待确认"
},
{
value
:
0
,
label
:
"审批中"
},
{
value
:
"FINISH"
,
label
:
"已完成"
},
{
value
:
1
,
label
:
"待制作"
},
],
{
value
:
2
,
label
:
"打样中"
},
usageNames
:
[
{
value
:
3
,
label
:
"待质检"
},
{
value
:
"打样"
,
label
:
"打样"
},
{
value
:
4
,
label
:
"待确认"
},
{
value
:
"量产"
,
label
:
"量产"
},
{
value
:
5
,
label
:
"已完成"
},
{
value
:
"销售"
,
label
:
"销售"
},
{
value
:
"特定"
,
label
:
"特定"
},
],
],
// 表单参数
// 表单参数
...
@@ -359,7 +291,8 @@ export default {
...
@@ -359,7 +291,8 @@ export default {
this
.
reset
();
this
.
reset
();
const
productionSolutionId
=
row
.
productionSolutionId
||
this
.
ids
;
const
productionSolutionId
=
row
.
productionSolutionId
||
this
.
ids
;
this
.
$router
.
push
(
this
.
$router
.
push
(
"/mes/pro/productionSolution/info?productionSolutionId="
+
productionSolutionId
"/mes/pro/productionSolution/info?productionSolutionId="
+
productionSolutionId
);
);
// getprototypeRequest(prototypeRequestId).then((response) => {
// getprototypeRequest(prototypeRequestId).then((response) => {
// this.form = response.data;
// this.form = response.data;
...
@@ -371,9 +304,10 @@ export default {
...
@@ -371,9 +304,10 @@ export default {
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
();
const
pro
totypeRequestId
=
row
.
prototypeRequest
Id
||
this
.
ids
;
const
pro
ductionSolutionId
=
row
.
productionSolution
Id
||
this
.
ids
;
this
.
$router
.
push
(
this
.
$router
.
push
(
"/mes/proofing/edit?prototypeRequestId="
+
prototypeRequestId
"/mes/pro/productionSolution/edit?productionSolutionId="
+
productionSolutionId
);
);
// getPrototypeRequest(prototypeRequestId).then((response) => {
// getPrototypeRequest(prototypeRequestId).then((response) => {
// // this.form = response.data;
// // this.form = response.data;
...
@@ -438,6 +372,5 @@ export default {
...
@@ -438,6 +372,5 @@ export default {
return
;
return
;
},
},
},
},
};
};
</
script
>
</
script
>
src/views/mes/pro/productionSolution/proofingInfo.vue
View file @
541f4c37
...
@@ -10,12 +10,13 @@
...
@@ -10,12 +10,13 @@
<!-- 修改 按钮显示 -->
<!-- 修改 按钮显示 -->
<
template
slot=
"buttons"
v-if=
"mode == 'edit'"
>
<
template
slot=
"buttons"
v-if=
"mode == 'edit'"
>
<
!--
<el-button
size=
"mini"
type=
"primary"
@
click=
"saveForm"
>
提交
</el-button>
--
>
<
el-button
size=
"mini"
type=
"primary"
@
click=
"saveForm"
>
提交
</el-button
>
</
template
>
</
template
>
</PageTitle>
</PageTitle>
<PageWrapper>
<PageWrapper>
<el-form
<el-form
class=
"page-form"
:model=
"form"
:model=
"form"
ref=
"form"
ref=
"form"
size=
"small"
size=
"small"
...
@@ -23,8 +24,8 @@
...
@@ -23,8 +24,8 @@
label-width=
"8em"
label-width=
"8em"
>
>
<el-row>
<el-row>
<el-col
:md
=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm
=
"12"
:xs=
"12"
>
<el-form-item
label=
"生产
方法
编码"
prop=
"productionSolutionCode"
>
<el-form-item
label=
"生产
版本
编码"
prop=
"productionSolutionCode"
>
<el-input
<el-input
v-model=
"form.productionSolutionCode"
v-model=
"form.productionSolutionCode"
disabled
disabled
...
@@ -32,8 +33,8 @@
...
@@ -32,8 +33,8 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:
md
=
"12"
:xs=
"12"
>
<el-col
:
lg=
"6"
:md=
"8"
:sm
=
"12"
:xs=
"12"
>
<el-form-item
label=
"生产
方法
名称"
prop=
"productionSolutionName"
>
<el-form-item
label=
"生产
版本
名称"
prop=
"productionSolutionName"
>
<el-input
<el-input
v-model=
"form.productionSolutionName"
v-model=
"form.productionSolutionName"
disabled
disabled
...
@@ -41,18 +42,29 @@
...
@@ -41,18 +42,29 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:md=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"生产版本类型"
prop=
"productionSolutionType"
>
<el-select
v-model=
"form.productionSolutionType"
clearable
placeholder=
"请选择项目类别"
>
<el-option
v-for=
"dict in dict.type.production_solution_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"产品名称"
prop=
"itemName"
>
<el-form-item
label=
"产品名称"
prop=
"itemName"
>
<el-input
<el-input
v-model=
"form.itemName"
disabled
placeholder
></el-input>
v-model=
"form.itemName"
disabled
placeholder
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-row>
<el-col
:md=
"12"
:xs=
"12"
>
<el-form-item
label=
"工艺路线"
prop=
"routeName"
>
<el-form-item
label=
"工艺路线"
prop=
"routeName"
>
<el-input
<el-input
v-model=
"form.routeName"
v-model=
"form.routeName"
...
@@ -61,26 +73,78 @@
...
@@ -61,26 +73,78 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:md=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"生产用途"
prop=
"usageName"
>
<el-form-item
label=
"生产用途"
prop=
"usageId"
>
<el-select
v-model=
"form.usageId"
placeholder=
"请选择用途"
>
<el-option
v-for=
"dict in dict.type.production_solution_usage"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"有效起始日期"
prop=
"startDate"
>
<el-date-picker
clearable
v-model=
"form.startDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择有效起始日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"有效期截止日期"
prop=
"expiryDate"
>
<el-date-picker
clearable
v-model=
"form.expiryDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择有效期截止日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"最小批量"
prop=
"minLot"
>
<el-input-number
:min=
"1"
v-model=
"form.minLot"
placeholder=
"请输入最小批量"
/>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"最大批量"
prop=
"maxLot"
>
<el-input-number
:min=
"1"
v-model=
"form.maxLot"
placeholder=
"请输入最大批量"
/>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"单位"
prop=
"unitOfMeasure"
>
<el-input
<el-input
v-model=
"form.u
sageNam
e"
v-model=
"form.u
nitOfMeasur
e"
disabled
disabled
placeholder
placeholder
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-row>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-col
:md=
"24"
:xs=
"12"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
<el-input
type=
"textarea"
type=
"textarea"
:rows=
"3"
:rows=
"3"
v-model=
"form.remark"
v-model=
"form.remark"
disabled
placeholder
placeholder
></el-input>
></el-input>
</el-form-item>
</el-form-item>
...
@@ -112,12 +176,13 @@ import {
...
@@ -112,12 +176,13 @@ import {
// addPrototypeRequest,
// addPrototypeRequest,
// getPrototypeRequest,
// getPrototypeRequest,
// updatePrototypeRequest,
// updatePrototypeRequest,
getProductionSolution
getProductionSolution
,
submitProductionSolution
,
}
from
"@/api/mes/pro/productionSolution"
;
}
from
"@/api/mes/pro/productionSolution"
;
export
default
{
export
default
{
components
:
{
ProogingBom
,
ProogingProcess
,
ItemSelect
,
RoutesProcessSelect
},
components
:
{
ProogingBom
,
ProogingProcess
,
ItemSelect
,
RoutesProcessSelect
},
dicts
:
[],
dicts
:
[
"production_solution_type"
,
"production_solution_usage"
],
provide
()
{
provide
()
{
return
{
return
{
mode
:
this
.
mode
,
mode
:
this
.
mode
,
...
@@ -132,11 +197,25 @@ export default {
...
@@ -132,11 +197,25 @@ export default {
productionSolutionId
:
""
,
productionSolutionId
:
""
,
productionSolutionCode
:
""
,
productionSolutionCode
:
""
,
productionSolutionName
:
""
,
productionSolutionName
:
""
,
productionSolutionType
:
""
,
itemId
:
""
,
itemId
:
""
,
itemName
:
""
,
itemName
:
""
,
routeId
:
""
,
routeId
:
""
,
routeName
:
""
,
routeName
:
""
,
usageId
:
""
,
usageId
:
""
,
usageName
:
""
,
startDate
:
""
,
expiryDate
:
""
,
maxLot
:
""
,
minLot
:
""
,
unitOfMeasure
:
""
,
materialsGroupBill
:
""
,
alternativeBill
:
""
,
groupCounter
:
""
,
groupKey
:
""
,
status
:
""
,
sapItemCode
:
""
,
factoryCode
:
""
,
remark
:
""
,
remark
:
""
,
createBy
:
""
,
createBy
:
""
,
createTime
:
""
,
createTime
:
""
,
...
@@ -155,9 +234,9 @@ export default {
...
@@ -155,9 +234,9 @@ export default {
},
},
pageTitle
()
{
pageTitle
()
{
const
titles
=
{
const
titles
=
{
edit
:
"
打样单修改
"
,
edit
:
"
生产版本确认
"
,
info
:
"生产
方案
详情"
,
info
:
"生产
版本
详情"
,
apply
:
"
打样单
申请"
,
apply
:
"
生产版本
申请"
,
};
};
return
titles
[
this
.
mode
];
return
titles
[
this
.
mode
];
},
},
...
@@ -177,9 +256,10 @@ export default {
...
@@ -177,9 +256,10 @@ export default {
getProductionSolution
(
id
)
getProductionSolution
(
id
)
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
Object
.
assign
(
this
.
form
,
data
);
Object
.
assign
(
this
.
form
,
data
);
this
.
bomList
=
data
.
bomList
;
this
.
bomList
=
data
.
bom
Head
.
bomItem
List
;
// 设置组件数据
// 设置组件数据
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
data
.
bomList
;
this
.
$refs
[
"ProogingBomRef"
].
form2
=
data
.
bomHead
;
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
data
.
bomHead
.
bomItemList
;
this
.
$refs
[
"ProogingProcessRef"
].
tableData
=
data
.
processList
;
this
.
$refs
[
"ProogingProcessRef"
].
tableData
=
data
.
processList
;
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
...
@@ -223,11 +303,11 @@ export default {
...
@@ -223,11 +303,11 @@ export default {
},
},
/**提交 */
/**提交 */
saveForm
()
{
saveForm
()
{
const
bom
List
=
this
.
$refs
.
ProogingBomRef
.
getComData
();
const
bom
Head
=
this
.
$refs
.
ProogingBomRef
.
getComData
();
const
processList
=
this
.
$refs
.
ProogingProcessRef
.
getComData
();
const
processList
=
this
.
$refs
.
ProogingProcessRef
.
getComData
();
const
params
=
{
const
params
=
{
...
this
.
form
,
...
this
.
form
,
bom
List
,
bom
Head
,
processList
,
processList
,
};
};
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -244,7 +324,7 @@ export default {
...
@@ -244,7 +324,7 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
}
else
{
}
else
{
updatePrototypeRequest
(
params
)
submitProductionSolution
(
params
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
$modal
.
msgSuccess
(
"提交成功!"
);
this
.
$modal
.
msgSuccess
(
"提交成功!"
);
...
@@ -260,9 +340,25 @@ export default {
...
@@ -260,9 +340,25 @@ export default {
productionSolutionId
:
""
,
productionSolutionId
:
""
,
productionSolutionCode
:
""
,
productionSolutionCode
:
""
,
productionSolutionName
:
""
,
productionSolutionName
:
""
,
productionSolutionType
:
""
,
itemId
:
""
,
itemId
:
""
,
itemName
:
""
,
routeId
:
""
,
routeId
:
""
,
routeName
:
""
,
usageId
:
""
,
usageId
:
""
,
usageName
:
""
,
startDate
:
""
,
expiryDate
:
""
,
maxLot
:
""
,
minLot
:
""
,
unitOfMeasure
:
""
,
materialsGroupBill
:
""
,
alternativeBill
:
""
,
groupCounter
:
""
,
groupKey
:
""
,
status
:
""
,
sapItemCode
:
""
,
factoryCode
:
""
,
remark
:
""
,
remark
:
""
,
createBy
:
""
,
createBy
:
""
,
createTime
:
""
,
createTime
:
""
,
...
...
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