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
c66109e0
Commit
c66109e0
authored
Feb 28, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
7ef7b1a4
5f131562
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
17 deletions
+50
-17
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+15
-2
index.vue
src/views/mes/tm/tool/index.vue
+35
-15
No files found.
src/views/mes/pro/workorder/indexApply.vue
View file @
c66109e0
...
@@ -167,6 +167,7 @@
...
@@ -167,6 +167,7 @@
plain
plain
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
:disabled=
"single"
@
click=
"handleDofinish"
@
click=
"handleDofinish"
v-hasPermi=
"['mes:pro:workorder:dofinish']"
v-hasPermi=
"['mes:pro:workorder:dofinish']"
>
生成任务单
</el-button
>
生成任务单
</el-button
...
@@ -178,6 +179,7 @@
...
@@ -178,6 +179,7 @@
plain
plain
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
:disabled=
"single"
@
click=
"handleToolNumCheck"
@
click=
"handleToolNumCheck"
v-hasPermi=
"['mes:pro:workorder:dofinish']"
v-hasPermi=
"['mes:pro:workorder:dofinish']"
>
工装量具齐套检查
</el-button
>
工装量具齐套检查
</el-button
...
@@ -953,6 +955,7 @@
...
@@ -953,6 +955,7 @@
handleQuery
()
{
handleQuery
()
{
this
.
getList
();
this
.
getList
();
}
,
}
,
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
resetForm
(
"queryForm"
);
...
@@ -1014,9 +1017,19 @@
...
@@ -1014,9 +1017,19 @@
// this.optType = "view";
// this.optType = "view";
//
}
);
//
}
);
}
,
}
,
handleSelectionChange
(
val
)
{
handleSelectionChange
(
selection
)
{
this
.
selectedRows
=
val
;
// this.selectedRows = val;
this
.
selectedRows
=
selection
;
this
.
ids
=
selection
.
map
(
item
=>
item
.
toolId
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
}
,
// // 多选框选中数据
// handleSelectionChange(selection)
{
// this.ids = selection.map(item => item.toolId)
// this.single = selection.length!==1
// this.multiple = !selection.length
//
}
,
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
();
...
...
src/views/mes/tm/tool/index.vue
View file @
c66109e0
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"工装夹具名称"
prop
=
"toolName"
>
<
el
-
form
-
item
label
=
"工装夹具名称"
prop
=
"toolName"
>
<
el
-
input
v
-
model
=
"form.toolName"
placeholder
=
"请输入工装夹具名称"
/>
<
el
-
input
v
-
model
=
"form.toolName"
readonly
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
...
@@ -253,17 +253,25 @@
...
@@ -253,17 +253,25 @@
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"型号"
prop
=
"spec"
>
<
el
-
form
-
item
label
=
"型号"
prop
=
"spec"
>
<
el
-
input
v
-
model
=
"form.spec"
placeholder
=
"请输入型号"
/>
<
el
-
input
v
-
model
=
"form.spec"
readonly
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
el
-
row
>
<
el
-
row
>
<
el
-
col
:
span
=
"
8
"
>
<
el
-
col
:
span
=
"
12
"
>
<
el
-
form
-
item
label
=
"SN码"
prop
=
"toolCode"
>
<
!--
<
el
-
form
-
item
label
=
"SN码"
prop
=
"toolCode"
>
<
el
-
input
v
-
model
=
"form.toolCode"
placeholder
=
"请输入SN码"
/>
<
el
-
input
v
-
model
=
"form.toolCode"
placeholder
=
"请输入SN码"
/>
<
/el-form-item> --
>
<
el
-
form
-
item
prop
=
"toolCode"
>
<
template
slot
=
"label"
>
SN
码
<
/template
>
<
el
-
input
disabled
v
-
model
=
"form.toolCode"
placeholder
=
"自动生成"
><
/el-input
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"4"
>
<
!--
<
el
-
col
:
span
=
"4"
>
<
el
-
form
-
item
label
-
width
=
"80"
>
<
el
-
form
-
item
label
-
width
=
"80"
>
<
el
-
switch
v
-
model
=
"autoGenFlag"
<
el
-
switch
v
-
model
=
"autoGenFlag"
active
-
color
=
"#13ce66"
active
-
color
=
"#13ce66"
...
@@ -271,7 +279,7 @@
...
@@ -271,7 +279,7 @@
@
change
=
"handleAutoGenChange(autoGenFlag)"
v
-
if
=
"optType != 'view'"
>
@
change
=
"handleAutoGenChange(autoGenFlag)"
v
-
if
=
"optType != 'view'"
>
<
/el-switch
>
<
/el-switch
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col>
--
>
<
el
-
col
:
span
=
"12"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"数量"
prop
=
"quantity"
>
<
el
-
form
-
item
label
=
"数量"
prop
=
"quantity"
>
<!--
<
el
-
input
v
-
if
=
"form.codeFlag=='Y'"
readonly
v
-
model
=
"form.quantity"
/>
-->
<!--
<
el
-
input
v
-
if
=
"form.codeFlag=='Y'"
readonly
v
-
model
=
"form.quantity"
/>
-->
...
@@ -428,6 +436,9 @@ export default {
...
@@ -428,6 +436,9 @@ export default {
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
this
.
getTypeList
();
this
.
getTypeList
();
if
(
this
.
mode
==
"add"
)
{
this
.
gCode
();
}
}
,
}
,
methods
:
{
methods
:
{
/** 查询工装夹具清单列表 */
/** 查询工装夹具清单列表 */
...
@@ -477,6 +488,7 @@ export default {
...
@@ -477,6 +488,7 @@ export default {
}
;
}
;
this
.
autoGenFlag
=
false
;
this
.
autoGenFlag
=
false
;
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
this
.
gCode
();
}
,
}
,
onToolTypeChanged
(){
onToolTypeChanged
(){
var
types
=
this
.
toolTypeOptions
.
filter
((
item
)
=>
{
var
types
=
this
.
toolTypeOptions
.
filter
((
item
)
=>
{
...
@@ -579,16 +591,24 @@ export default {
...
@@ -579,16 +591,24 @@ export default {
...
this
.
queryParams
...
this
.
queryParams
}
,
`tool_${new Date().getTime()
}
.xlsx`
)
}
,
`tool_${new Date().getTime()
}
.xlsx`
)
}
,
}
,
// //自动生成编码
// handleAutoGenChange(autoGenFlag)
{
// debugger;
// if(autoGenFlag)
{
// genCode('TOOL_CODE').then(response =>
{
// this.form.toolCode = response;
//
}
);
//
}
else
{
// this.form.toolCode = null;
//
}
//
}
,
//自动生成编码
//自动生成编码
handleAutoGenChange
(
autoGenFlag
){
gCode
()
{
debugger
;
genCode
(
"TOOL_CODE"
).
then
((
response
)
=>
{
if
(
autoGenFlag
){
this
.
form
.
toolCode
=
response
;
genCode
(
'TOOL_CODE'
).
then
(
response
=>
{
}
);
this
.
form
.
toolCode
=
response
;
}
);
}
else
{
this
.
form
.
toolCode
=
null
;
}
}
,
}
,
handleBrandSelect
(){
handleBrandSelect
(){
this
.
$refs
.
brSelect
.
showFlag
=
true
;
this
.
$refs
.
brSelect
.
showFlag
=
true
;
...
...
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