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
bcedd047
Commit
bcedd047
authored
May 20, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改刀模板具
parent
390895e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
index.vue
src/views/mes/tm/toolrequest/index.vue
+1
-1
itemIndex.vue
src/views/mes/tm/toolrequest/itemIndex.vue
+6
-6
index.vue
src/views/mes/tm/toolrequestuse/index.vue
+3
-2
selectSn.vue
src/views/mes/tm/toolrequestuse/selectSn.vue
+3
-0
No files found.
src/views/mes/tm/toolrequest/index.vue
View file @
bcedd047
...
...
@@ -494,7 +494,7 @@ export default {
return
}
this
.
$refs
.
line
.
tmToolRequestItemList
.
forEach
(
item
=>
{
sum
+=
Number
(
item
.
allQ
uantity
)
sum
+=
Number
(
item
.
q
uantity
)
}
)
this
.
form
.
requestNum
=
sum
}
,
...
...
src/views/mes/tm/toolrequest/itemIndex.vue
View file @
bcedd047
...
...
@@ -15,13 +15,13 @@
<el-table-column
label=
"刀模版申请单id"
align=
"center"
prop=
"toolRequestId"
/>
-->
<el-table-column
label=
"刀模版物料名称"
align=
"center"
prop=
"itemName"
/>
<el-table-column
width=
"
80px"
v-if=
"$attrs.optType === 'add'"
label=
"数量"
align=
"center"
prop=
"allQ
uantity"
>
<el-table-column
width=
"
120px"
v-if=
"$attrs.optType === 'add'"
label=
"数量"
align=
"center"
prop=
"q
uantity"
>
<template
slot-scope=
"scope"
>
<el-input
v-model=
"scope.row.
allQ
uantity"
@
blur=
"$emit('sum')"
placeholder=
"请输入数量"
/>
<el-input
v-model=
"scope.row.
q
uantity"
@
blur=
"$emit('sum')"
placeholder=
"请输入数量"
/>
</
template
>
</el-table-column>
<el-table-column
width=
"120px"
v-else
label=
"数量"
align=
"center"
prop=
"
allQ
uantity"
/>
<el-table-column
width=
"120px"
label=
"预计使用寿命"
align=
"center"
prop=
"
nextMaintenPeriod
"
/>
<el-table-column
width=
"120px"
v-else
label=
"数量"
align=
"center"
prop=
"
q
uantity"
/>
<el-table-column
width=
"120px"
label=
"预计使用寿命"
align=
"center"
prop=
"
estimatedLifeTime
"
/>
<el-table-column
width=
"100px"
v-if=
"$attrs.optType === 'add'"
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -133,8 +133,8 @@ export default {
return
{
itemId
:
item
.
itemId
,
itemName
:
item
.
itemName
,
allQ
uantity
:
1
,
nextMaintenPeriod
:
Number
(
this
.
$attrs
.
quantity
)
q
uantity
:
1
,
estimatedLifeTime
:
Number
(
this
.
$attrs
.
quantity
)
||
0
}
})
this
.
tmToolRequestItemList
=
this
.
detailList
.
concat
(
this
.
addList
)
...
...
src/views/mes/tm/toolrequestuse/index.vue
View file @
bcedd047
...
...
@@ -208,6 +208,7 @@
<
/el-input
>
<
/el-form-item
>
<
ToolRequestSelect
v
-
if
=
"open"
ref
=
"ToolRequestSelectRef"
@
onSelected
=
"onToolRequestSelected"
><
/ToolRequestSelect
>
...
...
@@ -306,8 +307,8 @@
<
el
-
divider
content
-
position
=
"left"
>
申请单刀模版具数据
<
/el-divider
>
<
el
-
table
:
data
=
"tmToolRequestList"
>
<
el
-
table
-
column
label
=
"物料"
prop
=
"itemName"
/>
<
el
-
table
-
column
label
=
"数量"
prop
=
"
allQ
uantity"
/>
<
el
-
table
-
column
label
=
"预计使用寿命"
prop
=
"
nextMaintenPeriod
"
/>
<
el
-
table
-
column
label
=
"数量"
prop
=
"
q
uantity"
/>
<
el
-
table
-
column
label
=
"预计使用寿命"
prop
=
"
estimatedLifeTime
"
/>
<
el
-
table
-
column
label
=
"SN码"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
input
v
-
model
=
"scope.row.toolCode"
placeholder
=
"请选择关联台账信息"
...
...
src/views/mes/tm/toolrequestuse/selectSn.vue
View file @
bcedd047
...
...
@@ -182,6 +182,9 @@ export default {
},
// 单选选中数据
handleRowDbClick
(
row
)
{
if
(
row
.
disabled
)
{
return
}
if
(
row
)
{
this
.
selectedRows
=
row
;
this
.
selectedItemId
=
row
.
taskId
...
...
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