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
9930433f
Commit
9930433f
authored
Jul 25, 2023
by
刘宇扬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请6
parent
5185dd77
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
123 additions
and
73 deletions
+123
-73
application.vue
src/views/equipment/application.vue
+33
-25
income.vue
src/views/equipment/income.vue
+90
-48
No files found.
src/views/equipment/application.vue
View file @
9930433f
...
@@ -4,18 +4,21 @@
...
@@ -4,18 +4,21 @@
<!-- TODO: 基础设备管理-->
<!-- TODO: 基础设备管理-->
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
label=
"
设备名称"
prop=
"roleNam
e"
>
<el-form-item
label=
"
申请状态"
prop=
"stat
e"
>
<el-
inpu
t
<el-
selec
t
v-model=
"queryParams.
deviceNam
e"
v-model=
"queryParams.
stat
e"
placeholder=
"请
输入设备名称
"
placeholder=
"请
选择状态
"
clearable
clearable
:maxlength=
"30"
size=
"small"
size=
"small"
style=
"width: 150px"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
@
change=
"handleQuery"
/>
>
<el-option
label=
"所有"
value=
"all"
></el-option>
<el-option
label=
"驳回"
value=
"rejected"
></el-option>
<el-option
label=
"待审核"
value=
"pending"
></el-option>
<el-option
label=
"通过"
value=
"approved"
></el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
查询
</el-button>
</el-form-item>
</el-form-item>
...
@@ -40,22 +43,7 @@
...
@@ -40,22 +43,7 @@
{{
scope
.
row
.
deviceId
||
'-'
}}
{{
scope
.
row
.
deviceId
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"LOT"
prop=
"LOT"
>
<el-table-column
label=
"申请人"
prop=
"createBy"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
deviceId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"位置"
prop=
"location"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
location
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"厚度"
prop=
"ply"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ply
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作员"
prop=
"createBy"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createBy
||
'-'
}}
{{
scope
.
row
.
createBy
||
'-'
}}
</
template
>
</
template
>
...
@@ -72,7 +60,7 @@
...
@@ -72,7 +60,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"140px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"140px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.state !== ' '"
type=
"typeParent"
:size=
"size"
@
click=
"handleDetail(scope.row)"
>
<el-button
v-if=
"scope.row.state !== ' '"
:
type=
"typeParent"
:size=
"size"
@
click=
"handleDetail(scope.row)"
>
详情
详情
</el-button>
</el-button>
<!--
<el-button
v-if=
"scope.row.state !== ' '"
type=
"typeParent"
:size=
"size"
@
click=
"handleUpdate(scope.row)"
>
<!--
<el-button
v-if=
"scope.row.state !== ' '"
type=
"typeParent"
:size=
"size"
@
click=
"handleUpdate(scope.row)"
>
...
@@ -145,6 +133,10 @@
...
@@ -145,6 +133,10 @@
<el-form-item
label=
"状态"
prop=
"state"
>
<el-form-item
label=
"状态"
prop=
"state"
>
<el-input
v-model
.
trim=
"singleDetails.state"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.state"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-button
type=
"success"
@
click=
"handleApprove"
>
通过
</el-button>
<el-button
type=
"primary"
@
click=
"handleReject"
>
驳回
</el-button>
</el-form-item>
</el-form>
</el-form>
</el-dialog>
</el-dialog>
...
@@ -322,6 +314,22 @@ export default {
...
@@ -322,6 +314,22 @@ export default {
console
.
log
(
this
.
roleList
)
console
.
log
(
this
.
roleList
)
this
.
loading
=
false
this
.
loading
=
false
},
},
handleReject
()
{
this
.
$message
({
message
:
'操作完成'
,
type
:
'warning'
});
this
.
openDetails
=
false
this
.
reset
()
},
handleApprove
(){
this
.
$message
({
message
:
'操作完成'
,
type
:
'success'
});
this
.
openDetails
=
false
this
.
reset
()
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel
()
{
this
.
open
=
false
this
.
open
=
false
...
...
src/views/equipment/income.vue
View file @
9930433f
This diff is collapsed.
Click to expand it.
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