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
308f0169
Commit
308f0169
authored
Nov 28, 2024
by
tanjunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 对刀模版功能进行优化
parent
67fee88e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
9 deletions
+46
-9
index.vue
src/views/mes/tm/toolrequestuse/index.vue
+44
-7
index.vue
src/views/mes/tm/warehouse/index.vue
+2
-2
No files found.
src/views/mes/tm/toolrequestuse/index.vue
View file @
308f0169
...
...
@@ -35,7 +35,7 @@
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<
!--
<
el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
...
...
@@ -69,7 +69,7 @@
v-hasPermi=
"['tm:tmToolRequestUse:remove']"
>
删除
</el-button
>
</el-col>
</el-col>
-->
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
...
...
@@ -144,6 +144,14 @@
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-view"
@
click
=
"handleView(scope.row)"
v
-
hasPermi
=
"['tm:tmToolRequestUse:view']"
>
查看
<
/el-butto
n
>
<!--
<
el
-
button
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
...
...
@@ -158,7 +166,7 @@
@
click
=
"handleDelete(scope.row)"
v
-
hasPermi
=
"['tm:tmToolRequestUse:remove']"
>
删除
<
/el-butto
n
>
>
-->
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -187,16 +195,18 @@
readonly
style
=
"width: 220px;"
v
-
model
=
"form.toolRequestUseCode"
:
disabled
=
"title == '查看刀模版领用单'"
placeholder
=
"请输入领用单编码"
/>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"8"
>
<
el
-
form
-
item
label
=
"申请单"
prop
=
"toolRequestId"
>
<
el
-
input
style
=
"width: 220px;"
v
-
model
=
"form.toolRequestCode"
readonly
>
<
el
-
input
style
=
"width: 220px;"
v
-
model
=
"form.toolRequestCode"
readonly
>
<
el
-
button
slot
=
"append"
icon
=
"el-icon-search"
:
disabled
=
"title == '查看刀模版领用单'"
@
click
=
"$refs.ToolRequestSelectRef.showFlag = true"
><
/el-button
>
<
/el-input
>
...
...
@@ -232,7 +242,7 @@
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"8"
>
<
el
-
col
:
span
=
"8"
v
-
if
=
"title != '查看刀模版领用单'"
>
<
el
-
form
-
item
label
=
"申请时间"
prop
=
"requestDate"
>
<
el
-
date
-
picker
disabled
...
...
@@ -274,7 +284,7 @@
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"8"
>
<
el
-
col
:
span
=
"8"
v
-
if
=
"title != '查看刀模版领用单'"
>
<
el
-
form
-
item
label
=
"申请数量"
prop
=
"requestNum"
>
<
el
-
input
disabled
...
...
@@ -298,7 +308,7 @@
<
/el-row
>
<
/el-form
>
<
el
-
divider
content
-
position
=
"left"
>
申请单刀模版具数据
<
/el-divider
>
<
el
-
divider
content
-
position
=
"left"
>
{{
`${title == '查看刀模版领用单' ? '' : '申请单'
}
刀模版具数据`
}}
<
/el-divider
>
<
el
-
table
:
data
=
"tmToolRequestList"
>
<
el
-
table
-
column
label
=
"物料"
prop
=
"itemName"
/>
<
el
-
table
-
column
label
=
"数量"
prop
=
"quantity"
/>
...
...
@@ -473,6 +483,33 @@ export default {
this
.
title
=
"添加刀模版领用单"
;
this
.
handleAutoGenChange
(
true
);
}
,
/** 查看按钮操作 */
handleView
(
row
)
{
this
.
reset
();
const
toolRequestUseId
=
row
.
toolRequestUseId
||
this
.
ids
;
getTmToolRequestUse
(
toolRequestUseId
).
then
((
response
)
=>
{
const
tmToolRequestUseItemList
=
response
.
data
.
tmToolRequestUseItemList
;
this
.
form
=
response
.
data
;
this
.
tmToolRequestList
=
response
.
data
.
tmToolRequestUseItemList
.
map
(
item
=>
{
return
{
...
item
,
allQuantity
:
item
.
allQuantity
||
1
}
}
)
// 请求申请单
// this.queryToolList(this.form.toolRequestId, () =>
{
this
.
tmToolRequestList
.
forEach
((
item
)
=>
{
const
flag
=
tmToolRequestUseItemList
.
find
(
(
v
)
=>
v
.
itemId
==
item
.
itemId
);
flag
&&
(
item
.
isCheck
=
flag
.
toolId
);
}
);
console
.
log
(
this
.
tmToolRequestList
,
'this.tmToolRequestList'
)
//
}
);
this
.
open
=
true
;
this
.
title
=
"查看刀模版领用单"
;
}
);
}
,
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
...
...
src/views/mes/tm/warehouse/index.vue
View file @
308f0169
...
...
@@ -41,7 +41,7 @@
</el-form>
-->
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<
!--
<
el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
...
...
@@ -50,7 +50,7 @@
@
click=
"handleAdd"
v-hasPermi=
"['tm:toolmachinesrecord:add']"
>
新增
</el-button>
</el-col>
</el-col>
-->
</el-row>
<el-table
v-loading=
"loading"
:data=
"recordList"
@
selection-change=
"handleSelectionChange"
>
...
...
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