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
daddefc1
Commit
daddefc1
authored
Mar 06, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工装夹具台账添加打印二维码
parent
ba078303
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
11 deletions
+37
-11
index.vue
src/views/mes/tm/tool/index.vue
+37
-11
No files found.
src/views/mes/tm/tool/index.vue
View file @
daddefc1
...
...
@@ -120,6 +120,17 @@
v-hasPermi=
"['mes:tm:tool:export']"
>
导出
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"print"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"printQrCode"
v-hasPermi=
"['tm:tmToolRequestUse:export']"
>
打印二维码
</el-button
>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -137,14 +148,14 @@
</el-table-column>
<el-table-column
label=
"编号"
width=
"80"
align=
"center"
prop=
"toolCode"
>
</el-table-column>
<el-table-column
label=
"品牌"
width=
"80"
align=
"center"
prop=
"brand"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"型号"
width=
"80"
align=
"center"
prop=
"spec"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"类型"
width=
"80"
align=
"center"
prop=
"toolTypeName"
/>
<el-table-column
label=
"可用数量"
width=
"100"
align=
"center"
prop=
"quantityAvail"
/>
<el-table-column
label=
"保养维护类型"
width=
"120"
align=
"center"
prop=
"maintenType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.mes_mainten_type"
:value=
"scope.row.maintenType"
/>
...
...
@@ -198,9 +209,9 @@
<!--
添加或修改工装夹具清单对话框
-->
<
el
-
dialog
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"960px"
append
-
to
-
body
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
:
disabled
=
"form.toolId&&optType!='edit'"
label
-
width
=
"120px"
>
<
el
-
row
>
...
...
@@ -231,7 +242,7 @@
><
/BrandSelect
>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
...
...
@@ -360,6 +371,7 @@
<
script
>
import
{
listTool
,
getTool
,
delTool
,
addTool
,
updateTool
}
from
"@/api/mes/tm/tool"
;
import
{
listAllTooltype
}
from
"@/api/mes/tm/tooltype"
import
{
postPrintPdf
}
from
"@/utils/ruoyi"
import
{
genCode
}
from
"@/api/system/autocode/rule"
import
BrandSelect
from
"@/components/itemSelect/single.vue"
;
export
default
{
...
...
@@ -375,6 +387,7 @@ export default {
loading
:
true
,
// 选中数组
ids
:
[],
selectRow
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
...
...
@@ -429,7 +442,7 @@ export default {
{
required
:
true
,
message
:
"最低寿命不能为空"
,
trigger
:
"blur"
}
],
lifeTime
:
[
{
required
:
true
,
message
:
"剩余寿命不能为空"
,
trigger
:
"blur"
}
],
],
}
}
;
}
,
...
...
@@ -522,7 +535,8 @@ export default {
}
,
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
toolId
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
toolId
);
this
.
selectRow
=
selection
;
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
...
...
@@ -591,6 +605,18 @@ export default {
...
this
.
queryParams
}
,
`tool_${new Date().getTime()
}
.xlsx`
)
}
,
printQrCode
()
{
const
qrArr
=
[];
this
.
selectRow
.
forEach
(
s
=>
{
qrArr
.
push
({
"qrcode"
:
s
.
toolCode
}
);
}
);
postPrintPdf
({
"reportName"
:
"mysql:qrcode-100*100"
,
"values"
:{
"detail"
:
qrArr
}
}
);
}
,
// //自动生成编码
// handleAutoGenChange(autoGenFlag)
{
// debugger;
...
...
@@ -623,7 +649,7 @@ export default {
this
.
form
.
unitOfMeasure
=
row
.
unitOfMeasure
;
}
}
,
}
...
...
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