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
326aec3f
Commit
326aec3f
authored
Mar 23, 2024
by
赵汉亭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产版本修改,工单字段添加
parent
286aaeee
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
964 additions
and
91 deletions
+964
-91
ProogingProcess.vue
...mes/pro/productionSolution/components/ProogingProcess.vue
+25
-77
ProogingSpecificationSheet.vue
...ductionSolution/components/ProogingSpecificationSheet.vue
+877
-0
proofingInfo.vue
src/views/mes/pro/productionSolution/proofingInfo.vue
+34
-4
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+28
-10
No files found.
src/views/mes/pro/productionSolution/components/ProogingProcess.vue
View file @
326aec3f
...
@@ -194,6 +194,23 @@
...
@@ -194,6 +194,23 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"副单位"
prop=
"deputyUnitOfMeasure"
>
<el-input
v-model=
"form.deputyUnitOfMeasure"
placeholder=
"请输入副单位"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位转换比例"
prop=
"unitConvert"
>
<el-input
type=
"number"
v-model=
"form.unitConvert"
placeholder=
"请输入主副单位转换比例"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"雇员数量"
prop=
"employeesNum"
>
<el-form-item
label=
"雇员数量"
prop=
"employeesNum"
>
<el-input
<el-input
...
@@ -292,68 +309,11 @@
...
@@ -292,68 +309,11 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"吹膜宽度"
prop=
"blownFilmWidth"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<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
<el-input
type=
"
number
"
type=
"
textarea
"
v-model=
"form.
printWidth
"
v-model=
"form.
remark
"
placeholder=
"请输入
印张宽度
"
placeholder=
"请输入
工序备注
"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -421,19 +381,13 @@ export default {
...
@@ -421,19 +381,13 @@ export default {
stdWorkingTime
:
""
,
stdWorkingTime
:
""
,
lineBreakTime
:
""
,
lineBreakTime
:
""
,
stdWorkingTimeUom
:
""
,
stdWorkingTimeUom
:
""
,
controlCode
:
""
,
procurementInformationId
:
""
,
procurementInformationId
:
""
,
vendorSubjectId
:
""
,
vendorSubjectId
:
""
,
netPrice
:
""
,
netPrice
:
""
,
procurementOrganization
:
""
,
procurementOrganization
:
""
,
remark
:
""
,
remark
:
""
,
blownFilmWidth
:
""
,
deputyUnitOfMeasure
:
""
,
blownFilmThickness
:
""
,
unitConvert
:
""
,
printingWidth
:
""
,
shape
:
""
,
inlay
:
""
,
printLength
:
""
,
printWidth
:
""
,
},
},
currentRow
:
{},
currentRow
:
{},
currentRowIndex
:
undefined
,
currentRowIndex
:
undefined
,
...
@@ -536,19 +490,13 @@ export default {
...
@@ -536,19 +490,13 @@ export default {
stdWorkingTime
:
""
,
stdWorkingTime
:
""
,
lineBreakTime
:
""
,
lineBreakTime
:
""
,
stdWorkingTimeUom
:
""
,
stdWorkingTimeUom
:
""
,
controlCode
:
""
,
procurementInformationId
:
""
,
procurementInformationId
:
""
,
vendorSubjectId
:
""
,
vendorSubjectId
:
""
,
netPrice
:
""
,
netPrice
:
""
,
procurementOrganization
:
""
,
procurementOrganization
:
""
,
remark
:
""
,
remark
:
""
,
blownFilmWidth
:
""
,
deputyUnitOfMeasure
:
""
,
blownFilmThickness
:
""
,
unitConvert
:
""
,
printingWidth
:
""
,
shape
:
""
,
inlay
:
""
,
printLength
:
""
,
printWidth
:
""
,
};
};
},
},
/**重置组件状态 */
/**重置组件状态 */
...
...
src/views/mes/pro/productionSolution/components/ProogingSpecificationSheet.vue
0 → 100644
View file @
326aec3f
This diff is collapsed.
Click to expand it.
src/views/mes/pro/productionSolution/proofingInfo.vue
View file @
326aec3f
...
@@ -59,6 +59,15 @@
...
@@ -59,6 +59,15 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"生产用途"
prop=
"usageName"
>
<el-input
v-model=
"form.usageName"
disabled
placeholder
></el-input>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"产品名称"
prop=
"itemName"
>
<el-form-item
label=
"产品名称"
prop=
"itemName"
>
<el-input
v-model=
"form.itemName"
disabled
placeholder
></el-input>
<el-input
v-model=
"form.itemName"
disabled
placeholder
></el-input>
...
@@ -74,8 +83,8 @@
...
@@ -74,8 +83,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"
生产用途"
prop=
"u
sageId"
>
<el-form-item
label=
"
SAP生产用途"
prop=
"sapU
sageId"
>
<el-select
v-model=
"form.
usageId"
placeholder=
"请选择
用途"
>
<el-select
v-model=
"form.
sapUsageId"
placeholder=
"请选择SAP
用途"
>
<el-option
<el-option
v-for=
"dict in dict.type.production_solution_usage"
v-for=
"dict in dict.type.production_solution_usage"
:key=
"dict.value"
:key=
"dict.value"
...
@@ -159,15 +168,22 @@
...
@@ -159,15 +168,22 @@
<el-tab-pane
label=
"工艺"
>
<el-tab-pane
label=
"工艺"
>
<ProogingProcess
ref=
"ProogingProcessRef"
:bomList=
"bomList"
/>
<ProogingProcess
ref=
"ProogingProcessRef"
:bomList=
"bomList"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"规格书"
>
<ProogingSpecificationSheet
ref=
"ProogingSpecificationSheetRef"
:specificationSheet=
"specificationSheet"
/>
</el-tab-pane>
</el-tabs>
</el-tabs>
</PageWrapper>
</PageWrapper>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
genCode
}
from
"@/api/system/autocode/rule"
;
//
import { genCode } from "@/api/system/autocode/rule";
import
ProogingBom
from
"./components/ProogingBom.vue"
;
import
ProogingBom
from
"./components/ProogingBom.vue"
;
import
ProogingProcess
from
"./components/ProogingProcess.vue"
;
import
ProogingProcess
from
"./components/ProogingProcess.vue"
;
import
ProogingSpecificationSheet
from
"./components/ProogingSpecificationSheet.vue"
;
import
ItemSelect
from
"@/components/itemSelect/single.vue"
;
import
ItemSelect
from
"@/components/itemSelect/single.vue"
;
import
RoutesProcessSelect
from
"@/components/routesProcessSelect/index.vue"
;
import
RoutesProcessSelect
from
"@/components/routesProcessSelect/index.vue"
;
import
{
listRouteprocess
}
from
"@/api/mes/pro/routeprocess"
;
import
{
listRouteprocess
}
from
"@/api/mes/pro/routeprocess"
;
...
@@ -181,7 +197,13 @@ import {
...
@@ -181,7 +197,13 @@ import {
}
from
"@/api/mes/pro/productionSolution"
;
}
from
"@/api/mes/pro/productionSolution"
;
export
default
{
export
default
{
components
:
{
ProogingBom
,
ProogingProcess
,
ItemSelect
,
RoutesProcessSelect
},
components
:
{
ProogingBom
,
ProogingProcess
,
ItemSelect
,
RoutesProcessSelect
,
ProogingSpecificationSheet
,
},
dicts
:
[
"production_solution_type"
,
"production_solution_usage"
],
dicts
:
[
"production_solution_type"
,
"production_solution_usage"
],
provide
()
{
provide
()
{
return
{
return
{
...
@@ -216,6 +238,7 @@ export default {
...
@@ -216,6 +238,7 @@ export default {
status
:
""
,
status
:
""
,
sapItemCode
:
""
,
sapItemCode
:
""
,
factoryCode
:
""
,
factoryCode
:
""
,
sapUsageId
:
""
,
remark
:
""
,
remark
:
""
,
createBy
:
""
,
createBy
:
""
,
createTime
:
""
,
createTime
:
""
,
...
@@ -261,6 +284,8 @@ export default {
...
@@ -261,6 +284,8 @@ export default {
this
.
$refs
[
"ProogingBomRef"
].
form2
=
data
.
bomHead
;
this
.
$refs
[
"ProogingBomRef"
].
form2
=
data
.
bomHead
;
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
data
.
bomHead
.
bomItemList
;
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
data
.
bomHead
.
bomItemList
;
this
.
$refs
[
"ProogingProcessRef"
].
tableData
=
data
.
processList
;
this
.
$refs
[
"ProogingProcessRef"
].
tableData
=
data
.
processList
;
this
.
$refs
[
"ProogingSpecificationSheetRef"
].
form
=
data
.
specificationSheet
;
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -305,10 +330,13 @@ export default {
...
@@ -305,10 +330,13 @@ export default {
saveForm
()
{
saveForm
()
{
const
bomHead
=
this
.
$refs
.
ProogingBomRef
.
getComData
();
const
bomHead
=
this
.
$refs
.
ProogingBomRef
.
getComData
();
const
processList
=
this
.
$refs
.
ProogingProcessRef
.
getComData
();
const
processList
=
this
.
$refs
.
ProogingProcessRef
.
getComData
();
const
specificationSheet
=
this
.
$refs
.
ProogingSpecificationSheetRef
.
getComData
();
const
params
=
{
const
params
=
{
...
this
.
form
,
...
this
.
form
,
bomHead
,
bomHead
,
processList
,
processList
,
specificationSheet
,
};
};
this
.
loading
=
true
;
this
.
loading
=
true
;
if
(
this
.
mode
==
"apply"
)
{
if
(
this
.
mode
==
"apply"
)
{
...
@@ -364,9 +392,11 @@ export default {
...
@@ -364,9 +392,11 @@ export default {
createTime
:
""
,
createTime
:
""
,
updateBy
:
""
,
updateBy
:
""
,
updateTime
:
""
,
updateTime
:
""
,
sapUsageId
:
""
,
};
};
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
this
.
$refs
[
"ProogingProcessRef"
].
resetState
();
this
.
$refs
[
"ProogingProcessRef"
].
resetState
();
this
.
$refs
[
"ProogingSpecificationSheetRef"
].
resetState
();
this
.
gCode
();
this
.
gCode
();
},
},
},
},
...
...
src/views/mes/pro/workorder/proofingInfo.vue
View file @
326aec3f
...
@@ -196,10 +196,10 @@
...
@@ -196,10 +196,10 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"
按指令包装"
prop=
"packByDirectiv
e"
>
<el-form-item
label=
"
包装类型"
prop=
"packTyp
e"
>
<el-select
v-model=
"form.pack
ByDirectiv
e"
placeholder=
"请选择类型"
>
<el-select
v-model=
"form.pack
Typ
e"
placeholder=
"请选择类型"
>
<el-option
<el-option
v-for=
"dict in dict.type.
sys_yes_no
"
v-for=
"dict in dict.type.
pro_pack_type
"
:key=
"dict.value"
:key=
"dict.value"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
...
@@ -208,10 +208,24 @@
...
@@ -208,10 +208,24 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"按size包装"
prop=
"packBySize"
>
<el-form-item
label=
"包装单位"
prop=
"packUnitOfMeasure"
>
<el-select
v-model=
"form.packBySize"
placeholder=
"请选择类型"
>
<el-input
v-model=
"form.packUnitOfMeasure"
placeholder=
"请输入包装单位"
/>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"LOSS数是否单独包装"
prop=
"lossIndividuallyWrap"
>
<el-select
v-model=
"form.lossIndividuallyWrap"
placeholder=
"请选择是否单独包装"
>
<el-option
<el-option
v-for=
"dict in dict.type.s
ys
_yes_no"
v-for=
"dict in dict.type.s
ap
_yes_no"
:key=
"dict.value"
:key=
"dict.value"
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
...
@@ -297,6 +311,8 @@ export default {
...
@@ -297,6 +311,8 @@ export default {
"mes_workorder_sourcetype"
,
"mes_workorder_sourcetype"
,
"mes_workorder_type"
,
"mes_workorder_type"
,
"sys_yes_no"
,
"sys_yes_no"
,
"pro_pack_type"
,
"sap_yes_no"
,
],
],
provide
()
{
provide
()
{
return
{
return
{
...
@@ -345,8 +361,9 @@ export default {
...
@@ -345,8 +361,9 @@ export default {
createTime
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateBy
:
null
,
updateTime
:
null
,
updateTime
:
null
,
packBySize
:
null
,
packType
:
null
,
packByDirective
:
null
,
packUnitOfMeasure
:
null
,
lossIndividuallyWrap
:
null
,
packNum
:
null
,
packNum
:
null
,
},
},
// 表单校验
// 表单校验
...
@@ -626,8 +643,9 @@ export default {
...
@@ -626,8 +643,9 @@ export default {
createTime
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateBy
:
null
,
updateTime
:
null
,
updateTime
:
null
,
packBySize
:
null
,
packType
:
null
,
packByDirective
:
null
,
packUnitOfMeasure
:
null
,
lossIndividuallyWrap
:
null
,
packNum
:
null
,
packNum
:
null
,
};
};
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
...
...
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