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
ec4fcb2d
Commit
ec4fcb2d
authored
Jul 18, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刀模版、到模板申请单、刀模版入库完善
parent
e6b73f6c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
index.vue
src/views/mes/tm/tool/index.vue
+6
-3
index.vue
src/views/mes/tm/toolrequestuse/index.vue
+5
-1
selectmachinesrecord.vue
src/views/mes/tm/warehouse/selectmachinesrecord.vue
+12
-3
No files found.
src/views/mes/tm/tool/index.vue
View file @
ec4fcb2d
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"刀模
版具编码
"
prop=
"toolCode"
>
<el-form-item
label=
"刀模
SN
"
prop=
"toolCode"
>
<el-input
v-model=
"queryParams.toolCode"
placeholder=
"请输入刀模版具编码"
...
...
@@ -128,7 +128,7 @@
>
{{
scope
.
row
.
toolName
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"
编号
"
width=
"80"
align=
"center"
prop=
"toolCode"
>
<el-table-column
label=
"
刀模SN
"
width=
"80"
align=
"center"
prop=
"toolCode"
>
</el-table-column>
...
...
@@ -368,6 +368,7 @@ export default {
loading
:
true
,
// 选中数组
ids
:
[],
codes
:
[],
selectRow
:
[],
// 非单个禁用
single
:
true
,
...
...
@@ -515,6 +516,7 @@ export default {
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
toolId
);
this
.
codes
=
selection
.
map
(
item
=>
item
.
toolCode
);
this
.
selectRow
=
selection
;
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
...
...
@@ -572,7 +574,8 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
toolIds
=
row
.
toolId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除刀模版具清单编号为"'
+
toolIds
+
'"的数据项?'
).
then
(
function
()
{
const
toolCodes
=
row
.
toolCode
||
this
.
codes
;
this
.
$modal
.
confirm
(
'是否确认删除刀模版具清单SN为"'
+
toolCodes
+
'"的数据项?'
).
then
(
function
()
{
return
delTool
(
toolIds
);
}
).
then
(()
=>
{
this
.
getList
();
...
...
src/views/mes/tm/toolrequestuse/index.vue
View file @
ec4fcb2d
...
...
@@ -355,6 +355,8 @@ export default {
loading
:
true
,
// 选中数组
ids
:
[],
codes
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
...
...
@@ -456,6 +458,7 @@ export default {
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
toolRequestUseId
);
this
.
codes
=
selection
.
map
((
item
)
=>
item
.
toolRequestUseCode
);
this
.
single
=
selection
.
length
!==
1
;
this
.
multiple
=
!
selection
.
length
;
}
,
...
...
@@ -527,9 +530,10 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
toolRequestUseIds
=
row
.
toolRequestUseId
||
this
.
ids
;
const
toolRequestUseCodes
=
row
.
toolRequestUseCode
||
this
.
codes
;
this
.
$modal
.
confirm
(
'是否确认删除刀模版领用单编号为"'
+
toolRequestUse
Id
s
+
'"的数据项?'
'是否确认删除刀模版领用单编号为"'
+
toolRequestUse
Code
s
+
'"的数据项?'
)
.
then
(
function
()
{
return
delTmToolRequestUse
(
toolRequestUseIds
);
...
...
src/views/mes/tm/warehouse/selectmachinesrecord.vue
View file @
ec4fcb2d
<
template
>
<el-dialog
title=
"请选择
下机
的刀模版"
title=
"请选择
要退
的刀模版"
v-if=
"showFlag"
:visible
.
sync=
"showFlag"
:modal=
"true"
...
...
@@ -12,13 +12,22 @@
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"工作单元名称"
prop=
"workunitName"
>
<el-input
v-model=
"queryParams.
taskid
"
v-model=
"queryParams.
workunitName
"
placeholder=
"请输入工作单元名称"
style=
"width:220px;"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"刀模SN"
prop=
"toolCode"
>
<el-input
v-model=
"queryParams.toolCode"
placeholder=
"请输入刀模SN"
style=
"width:220px;"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
...
@@ -89,7 +98,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
typeStr
:
'
2
'
,
typeStr
:
''
,
warehouseStr
:
'1'
},
};
...
...
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