Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-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
pda
pda-ui
Commits
24c6802b
Commit
24c6802b
authored
Jun 19, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产管理->生产工单
parent
f8046a21
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
9 deletions
+21
-9
single.vue
src/components/qctemplateSelect/single.vue
+1
-1
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+5
-1
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+15
-7
No files found.
src/components/qctemplateSelect/single.vue
View file @
24c6802b
...
...
@@ -48,7 +48,7 @@
<el-table
v-loading=
"loading"
:data=
"qctemplateList"
@
current-change=
"handleCurrent"
@
row-dblclick=
"handleRowDbClick"
>
<el-table-column
width=
"50"
align=
"center"
>
<template
v-slot=
"scope"
>
<el-radio
v-model=
"selectedIndexId"
:label=
"scope.row.
templateI
d"
@
change=
"handleRowChange(scope.row)"
>
{{
""
}}
</el-radio>
<el-radio
v-model=
"selectedIndexId"
:label=
"scope.row.
i
d"
@
change=
"handleRowChange(scope.row)"
>
{{
""
}}
</el-radio>
</
template
>
</el-table-column>
<el-table-column
label=
"检测模板编号"
align=
"center"
prop=
"templateCode"
>
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
24c6802b
...
...
@@ -1007,6 +1007,9 @@ export default {
}
,
}
;
}
,
activated
()
{
this
.
getList
();
}
,
created
()
{
this
.
getList
();
}
,
...
...
@@ -1290,7 +1293,7 @@ export default {
handleSelectionChange(selection) {
// this.selectedRows = val;
this.selectedRows = selection;
this.ids = selection.map(item => item.
tool
Id)
this.ids = selection.map(item => item.
workorder
Id)
this.single = selection.length !== 1
this.multiple = !selection.length
}
,
...
...
@@ -1313,6 +1316,7 @@ export default {
this.reset();
const workorderId = row.workorderId || this.ids;
console.log('workorderId', workorderId, this.ids)
this.$router.push("/mes/pro/workorder/edit?workorderId=" + workorderId);
// this.reset();
...
...
src/views/mes/pro/workorder/proofingInfo.vue
View file @
24c6802b
...
...
@@ -35,7 +35,7 @@
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"
申请
单编码"
prop=
"workorderCode"
>
<el-form-item
label=
"
工
单编码"
prop=
"workorderCode"
>
<el-input
disabled
v-model=
"form.workorderCode"
...
...
@@ -64,9 +64,9 @@
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"生产版本"
prop=
"
productionSolutionCode
"
>
<el-form-item
label=
"生产版本"
prop=
"
group
"
>
<el-input
v-model=
"form.
productionSolutionCode
"
v-model=
"form.
group
"
readonly
:disabled=
"mode == 'make'"
placeholder=
"请选择工艺路线"
...
...
@@ -365,6 +365,8 @@ export default {
workorderCode
:
null
,
workorderName
:
null
,
routeName
:
null
,
groupKey
:
null
,
groupCounter
:
null
,
workorderType
:
"product"
,
orderSource
:
null
,
sourceCode
:
null
,
...
...
@@ -401,6 +403,7 @@ export default {
packNum
:
null
,
productionSolutionId
:
null
,
productionSolutionCode
:
null
,
group
:
null
,
productionSolutionName
:
null
,
},
// 表单校验
...
...
@@ -469,7 +472,6 @@ export default {
this
.
bomList
=
[]
const
bomList
=
this
.
currentData
.
bomList
.
map
((
item
,
index
)
=>
{
// console.log(item, 'items')
console
.
log
(
this
.
currentData
.
quantity
,
'this.currentData.quantity'
)
let
quantity
=
parseInt
(
this
.
form
.
quantity
*
item
.
quantity
*
100
/
this
.
currentData
.
quantity
)
// console.log(quantity, 'quantity')
return
{
...
...
@@ -477,7 +479,6 @@ export default {
quantity
:
quantity
/
100
}
})
console
.
log
(
bomList
,
'bomList'
)
this
.
bomList
=
bomList
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
bomList
}
...
...
@@ -507,7 +508,6 @@ export default {
});
}
else
if
(
this
.
mode
===
'make'
)
{
getMakeWorkorderCode
(
this
.
form
.
parentCode
).
then
(
res
=>
{
console
.
log
(
res
,
88899
)
if
(
res
.
code
===
200
)
{
this
.
form
.
workorderCode
=
res
.
data
.
code
}
...
...
@@ -577,7 +577,9 @@ export default {
this
.
loading
=
true
;
getWorkorder
(
id
)
.
then
(({
data
})
=>
{
Object
.
assign
(
this
.
form
,
data
);
this
.
form
.
group
=
`
${
this
.
form
.
groupCounter
?
this
.
form
.
groupCounter
:
''
}
-
${
this
.
form
.
groupKey
?
this
.
form
.
groupKey
:
''
}
`
this
.
currentData
=
{}
if
(
this
.
mode
==
'make'
)
{
this
.
currentData
=
data
...
...
@@ -630,11 +632,13 @@ export default {
//物料选择弹出框
onRoutesProcessSelect
(
row
)
{
console
.
log
(
row
,
'rows444'
)
if
(
row
!=
undefined
&&
row
!=
null
)
{
this
.
form
.
productionSolutionId
=
row
.
productionSolutionId
;
this
.
form
.
productionSolutionCode
=
row
.
productionSolutionCode
;
this
.
form
.
group
=
`
${
row
.
groupCounter
?
row
.
groupCounter
:
''
}
-
${
row
.
groupKey
?
row
.
groupKey
:
''
}
`
this
.
form
.
productCode
=
row
.
itemCode
;
this
.
form
.
groupCounter
=
row
.
groupCounter
;
this
.
form
.
groupKey
=
row
.
groupKey
;
this
.
form
.
productName
=
row
.
itemName
;
const
params
=
{
pageNum
:
1
,
...
...
@@ -659,6 +663,7 @@ export default {
saleList
,
sizeList
,
};
delete
params
.
group
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
loading
=
true
;
...
...
@@ -731,6 +736,8 @@ export default {
quantityChanged
:
null
,
quantityScheduled
:
null
,
clientId
:
null
,
groupKey
:
null
,
groupCounter
:
null
,
clientCode
:
null
,
clientName
:
null
,
vendorId
:
null
,
...
...
@@ -747,6 +754,7 @@ export default {
packType
:
null
,
packUnitOfMeasure
:
null
,
lossIndividuallyWrap
:
null
,
group
:
null
,
packNum
:
null
,
};
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