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
81885b90
Commit
81885b90
authored
Jul 30, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择工单问题和领料申请打印增加单位
parent
936914c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
13 deletions
+25
-13
printTable.vue
src/views/mes/pro/request/components/printTable.vue
+9
-9
index.vue
src/views/mes/pro/scheduleList/index.vue
+15
-4
workorderSelect.vue
src/views/mes/pro/scheduleList/workorderSelect.vue
+1
-0
No files found.
src/views/mes/pro/request/components/printTable.vue
View file @
81885b90
...
...
@@ -29,27 +29,27 @@
<div
class=
"titles text-left"
>
<div
class=
"cdbh"
>
领取类型:
{{
Table
[
0
].
applyType
}}
</div>
<div
class=
"cdbh"
>
领取日期:
{{
Table
[
0
].
createTime
}}
</div>
<div
class=
"cdbh"
style=
"padding-left:
3
0px"
>
列印时间:
{{
Table
[
0
].
printTime
}}
</div>
<div
class=
"cdbh"
style=
"padding-left:
1
0px"
>
列印时间:
{{
Table
[
0
].
printTime
}}
</div>
</div>
</div>
<table
border
class=
"form-header font-size-16"
style=
"table-layout: fixed;width: 100%;border:1px solid #000000;font-size:14px;line-height: 25px; margin: 8px 10px 5px 10px;"
>
<tr
height=
"20"
class=
"color000"
style=
"font-weight: 600"
>
<td
colspan=
"3"
align=
"center"
>
项次
</td>
<td
colspan=
"
6
"
align=
"center"
>
材料编码
</td>
<td
colspan=
"
11
"
align=
"center"
>
材料名称
</td>
<
!--
<td
colspan=
"3"
align=
"center"
>
单位
</td>
--
>
<td
colspan=
"
5
"
align=
"center"
>
材料编码
</td>
<td
colspan=
"
9
"
align=
"center"
>
材料名称
</td>
<
td
colspan=
"3"
align=
"center"
>
单位
</td
>
<td
colspan=
"4"
align=
"center"
>
申请量
</td>
</tr>
<tr
height=
"20"
v-for=
"(item,index) in Table"
:key=
"'processes' + index"
class=
"color000"
>
<td
colspan=
"3"
align=
"center"
>
{{
item
.
serialNumber
}}
</td>
<td
colspan=
"
6
"
align=
"center"
>
{{
item
.
sapItemCode
?
Number
(
item
.
sapItemCode
)
:
''
}}
</td>
<td
colspan=
"
11
"
align=
"center"
>
{{
item
.
itemName
}}
</td>
<
!--
<td
colspan=
"3"
align=
"center"
>
{{
item
.
serialNumber
}}
</td>
--
>
<td
colspan=
"
5
"
align=
"center"
>
{{
item
.
sapItemCode
?
Number
(
item
.
sapItemCode
)
:
''
}}
</td>
<td
colspan=
"
9
"
align=
"center"
>
{{
item
.
itemName
}}
</td>
<
td
colspan=
"3"
align=
"center"
>
{{
item
.
unitOfMeasure
}}
</td
>
<td
colspan=
"4"
align=
"center"
>
{{
item
.
applyNum
}}
</td>
</tr>
<tr
height=
"20"
class=
"color000"
>
<td
colspan=
"
9
"
align=
"center"
>
生产单号
<br/>
共计:
{{
Table
[
0
].
countWorkOrder
}}
份单
</td>
<td
colspan=
"1
5
"
align=
"center"
>
<td
colspan=
"
8
"
align=
"center"
>
生产单号
<br/>
共计:
{{
Table
[
0
].
countWorkOrder
}}
份单
</td>
<td
colspan=
"1
6
"
align=
"center"
>
{{
Table
[
0
].
workorderCode
}}
</td>
</tr>
...
...
src/views/mes/pro/scheduleList/index.vue
View file @
81885b90
...
...
@@ -480,6 +480,17 @@
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"分派的工单"
prop=
"splitWorkorder"
>
<el-input
v-model=
"form.splitWorkorder"
disabled
type=
"textarea"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
...
...
@@ -532,7 +543,7 @@
<el-row>
<el-col
:span=
"24"
style=
"color: red;"
>
<el-form-item
label=
"可用刀模"
prop=
"quantity"
style=
"color: red;"
>
{{availableToolCount ? availableToolCount+'套' : '无需刀模'}}
{{availableToolCount
!= -1
? availableToolCount+'套' : '无需刀模'}}
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
...
...
@@ -797,9 +808,9 @@ export default {
});
},
onWorkorderSelect
(
rows
){
if
(
rows
&&
rows
.
length
>
0
)
{
console
.
log
(
'rows'
,
rows
)
if
(
!
rows
||
rows
.
length
===
0
)
this
.
Assignform
.
splitWorkorder
=
''
this
.
Assignform
.
splitWorkorder
=
rows
.
map
(
v
=>
v
.
workorderCode
).
join
(
','
)
}
},
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
taskId
);
...
...
@@ -957,7 +968,7 @@ export default {
workunitId
:
null
};
getavailableToolCount
(
this
.
selectedRows
[
0
].
taskWorkunitId
).
then
(
res
=>
{
if
(
res
.
data
&&
Number
(
res
.
data
)
>
0
)
{
if
(
res
.
data
)
{
this
.
availableToolCount
=
res
.
data
}
else
{
this
.
availableToolCount
=
0
...
...
src/views/mes/pro/scheduleList/workorderSelect.vue
View file @
81885b90
...
...
@@ -101,6 +101,7 @@
showFlag
(){
if
(
this
.
showFlag
)
{
this
.
handleQuery
()
this
.
selectedRows
=
[]
}
}
}
,
...
...
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