Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
杨硕
template_vue
Commits
70fd5f77
Commit
70fd5f77
authored
Jul 31, 2023
by
刘宇扬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备入库聚焦第一个输入框,回车换行
parent
895fbbf7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
46 deletions
+67
-46
magnagement.js
src/api/magnagement.js
+7
-0
boundManagement.vue
src/views/equipment/boundManagement.vue
+4
-4
income.vue
src/views/equipment/income.vue
+30
-9
management.vue
src/views/equipment/management.vue
+21
-18
index.vue
src/views/processManagement/basicProcessManagement/index.vue
+5
-15
No files found.
src/api/magnagement.js
View file @
70fd5f77
...
...
@@ -34,4 +34,11 @@ export function add(data) {
}
})
}
// 逻辑删除基础信息接口
export
function
deletedevice
(
id
)
{
return
request
({
url
:
'/wbwarehouse/delete/'
+
id
,
method
:
'delete'
})
}
src/views/equipment/boundManagement.vue
View file @
70fd5f77
...
...
@@ -69,9 +69,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"110px"
>
...
...
@@ -176,8 +176,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"
cre
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
cre
ateDate"
:readonly=
"true"
/>
<el-form-item
label=
" 操作时间:"
prop=
"
upd
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
upd
ateDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
</el-row>
...
...
src/views/equipment/income.vue
View file @
70fd5f77
...
...
@@ -5,47 +5,47 @@
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-form-item
label=
"pn:"
style=
"flex-basis: 50%;"
prop=
"pn"
>
<el-input
v-model=
"form.pn"
placeholder=
"请输入pn"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50
" />
<el-input
ref=
"input1"
v-model=
"form.pn"
placeholder=
"请输入pn"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(1,$event)
" />
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"lot:"
style=
"flex-basis: 50%;"
prop=
"lot"
>
<el-input
v-model=
"form.lot"
placeholder=
"请输入lot"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input2"
v-model=
"form.lot"
placeholder=
"请输入lot"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(2,$event)
" />
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-form-item
label=
"位置:"
style=
"flex-basis: 50%;"
prop=
"plocation"
>
<el-input
v-model=
"form.plocation"
placeholder=
"请输入位置"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50
" />
<el-input
ref=
"input3"
v-model=
"form.plocation"
placeholder=
"请输入位置"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(3,$event)
" />
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"厚度:"
style=
"flex-basis: 50%;"
prop=
"phd"
>
<el-input
v-model=
"form.phd"
placeholder=
"请输入厚度"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input4"
v-model=
"form.phd"
placeholder=
"请输入厚度"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(4,$event)
" />
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
<el-form-item
label=
"psm:"
style=
"flex-basis: 50%;"
prop=
"psm"
>
<el-input
v-model=
"form.psm"
placeholder=
"请输入psm"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50
" />
<el-input
ref=
"input5"
v-model=
"form.psm"
placeholder=
"请输入psm"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50" @keyup.enter.native="handelTab(5,$event)
" />
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"pzl:"
style=
"flex-basis: 50%;"
prop=
"pzl"
>
<el-input
v-model=
"form.pzl"
placeholder=
"请输入pzl"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input6"
v-model=
"form.pzl"
placeholder=
"请输入pzl"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(6,$event)
" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
style=
"padding-left: 8.6%;"
>
<el-form-item
label=
"prank:"
style=
"flex-basis: 50%;"
prop=
"prank"
>
<el-input
v-model=
"form.prank"
placeholder=
"请输入prank"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input7"
v-model=
"form.prank"
placeholder=
"请输入prank"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(7,$event)
" />
</el-form-item>
</el-col>
</el-row>
<div
class=
"button"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
</div>
</el-form>
...
...
@@ -81,10 +81,31 @@ export default {
}
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
input1
.
$refs
.
input
.
focus
()
})
},
created
()
{
this
.
init
()
},
methods
:
{
focusNextInput
(
refName
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
refName
].
$refs
.
input
.
focus
()
})
},
handelTab
(
i
,
e
)
{
const
that
=
this
if
(
!
that
.
$refs
[
'input'
+
i
])
{
return
}
that
.
$nextTick
(()
=>
{
e
.
target
.
blur
()
const
index
=
i
+
1
that
.
$refs
[
'input'
+
index
].
focus
()
})
},
// 重置
resetFrom
()
{
this
.
form
=
{
...
...
@@ -165,7 +186,7 @@ export default {
}
.button
{
margin-top
:
7%
;
margin-left
:
1
1
%
;
margin-left
:
1
5
.6
%
;
}
}
...
...
src/views/equipment/management.vue
View file @
70fd5f77
...
...
@@ -69,16 +69,22 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
8
0px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"
12
0px"
>
<
template
slot-scope=
"scope"
>
<el-button
:type=
"typeParent"
:size=
"size"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -174,8 +180,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"
cre
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
cre
ateDate"
:readonly=
"true"
/>
<el-form-item
label=
" 操作时间:"
prop=
"
upd
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
upd
ateDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -189,12 +195,11 @@ import {
addRole
,
changeRoleStatus
,
dataScope
,
delRole
,
exportRole
,
getRole
,
updateRole
}
from
'@/api/system/role'
import
{
listdevice
}
from
'@/api/magnagement'
import
{
listdevice
,
deletedevice
}
from
'@/api/magnagement'
import
{
roleMenuTreeselect
,
roleMenuTreeselectMC
,
treeselect
as
menuTreeselect
}
from
'@/api/system/menu'
import
{
roleDeptTreeselect
,
treeselect
as
deptTreeselect
}
from
'@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template'
...
...
@@ -306,7 +311,7 @@ export default {
lot
:
undefined
,
plocation
:
undefined
,
pstatus
:
0
,
ptype
:
1
,
ptype
:
2
,
delFlag
:
0
},
// 表单参数
...
...
@@ -648,20 +653,18 @@ export default {
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
roleIds
=
row
.
businessId
||
this
.
ids
this
.
$confirm
(
'是否确认操作
?
'
,
'提示'
,
{
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认操作
?
'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
delRole
(
roleIds
)
}).
then
(()
=>
{
this
.
getList
()
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
}).
then
(
res
=>
{
deletedevice
(
id
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
getList
()
}
})
}).
catch
(
function
()
{
})
},
/** 导出按钮操作 */
...
...
src/views/processManagement/basicProcessManagement/index.vue
View file @
70fd5f77
...
...
@@ -41,7 +41,7 @@
</el-form>
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
工序库
列表
</div>
<div
class=
"mb12 font-small-bold"
>
设备管理
列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"equipmentList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
/>
<el-table-column
label=
"pn"
prop=
"businessId"
>
...
...
@@ -69,9 +69,9 @@
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
cre
ateDate"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"
upd
ateDate"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
cre
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
upd
ateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"80px"
>
...
...
@@ -119,15 +119,6 @@
@
check-change=
"handleMenuCheckChange"
/>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-input
v-model
.
trim=
"form.remark"
maxlength=
"200"
show-word-limit
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
...
...
@@ -183,8 +174,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"
cre
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
cre
ateDate"
:readonly=
"true"
/>
<el-form-item
label=
" 操作时间:"
prop=
"
upd
ateDate"
>
<el-input
v-model
.
trim=
"singleDetails.
upd
ateDate"
:readonly=
"true"
/>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -699,7 +690,6 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
/* TODO: 专门用来解决input 的边框问题 */
.aboutSingleDetails
{
.el-form-item
{
.el-input
>>>
.el-input__inner
{
...
...
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