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
da16ed35
Commit
da16ed35
authored
Jul 25, 2023
by
kzy
Browse files
Options
Browse Files
Download
Plain Diff
merege 盘点
parents
b1fe36ce
371621fc
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1277 additions
and
1428 deletions
+1277
-1428
application.vue
src/views/equipment/application.vue
+292
-493
check.vue
src/views/equipment/check.vue
+90
-21
draw.vue
src/views/equipment/draw.vue
+283
-432
income.vue
src/views/equipment/income.vue
+336
-348
management.vue
src/views/equipment/management.vue
+111
-73
second.vue
src/views/equipment/second.vue
+54
-24
statistic.vue
src/views/equipment/statistic.vue
+1
-0
index.vue
src/views/processManagement/basicProcessManagement/index.vue
+110
-37
No files found.
src/views/equipment/application.vue
View file @
da16ed35
This diff is collapsed.
Click to expand it.
src/views/equipment/check.vue
View file @
da16ed35
<
template
>
<div
class=
"app-container"
>
<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=
"equipmentCod
e"
>
<el-input
v-model=
"queryParams.
roleNam
e"
placeholder=
"请输入设备
名称
"
v-model=
"queryParams.
equipmentCod
e"
placeholder=
"请输入设备
编码
"
clearable
:maxlength=
"30"
size=
"small"
...
...
@@ -12,10 +12,20 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"
设备编码"
prop=
"roleKey
"
>
<el-form-item
label=
"
lot"
prop=
"lot
"
>
<el-input
v-model=
"queryParams.roleKey"
placeholder=
"请输入设备编码"
placeholder=
"请输入设备lot"
clearable
size=
"small"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"位置"
prop=
"location"
>
<el-input
v-model=
"queryParams.location"
placeholder=
"请输入设备位置"
clearable
size=
"small"
style=
"width: 150px"
...
...
@@ -40,43 +50,46 @@
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
设备管理列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"roleList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"名称"
prop=
"roleName"
:show-overflow-tooltip=
"true"
>
<el-table
v-loading=
"loading"
border
:data=
"equipmentList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
/>
<el-table-column
label=
"编码"
prop=
"equipmentCode"
width=
"120"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleNam
e
||
'-'
}}
{{
scope
.
row
.
equipmentCod
e
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
编码"
prop=
"roleKey
"
>
<el-table-column
label=
"
lot"
prop=
"lot"
width=
"120
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleKey
||
'-'
}}
{{
scope
.
row
.
lot
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
lot"
prop=
"roleSort
"
>
<el-table-column
label=
"
位置"
prop=
"location
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
{{
scope
.
row
.
location
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
位置"
prop=
"roleSort
"
>
<el-table-column
label=
"
厚度"
prop=
"thickness
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
{{
scope
.
row
.
thickness
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
厚度"
prop=
"roleSort
"
>
<el-table-column
label=
"
创建员"
prop=
"createBy
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
{{
scope
.
row
.
createBy
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
创建人"
prop=
"roleSort
"
>
<el-table-column
label=
"
操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
<span>
{{
scope
.
row
.
createTime
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"
创建时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime
"
>
<el-table-column
label=
"
操作"
class-name=
"small-padding fixed-width"
width=
"150px
"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<el-button
:type=
"typeParent"
:size=
"size"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<pagination
...
...
@@ -130,6 +143,29 @@
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
</div>
</el-dialog>
<!-- TODO: 单项详情信息表单配置 -->
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"700px"
append-to-body
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-form-item
label=
"编码:"
prop=
"processName"
>
<el-input
v-model
.
trim=
"singleDetails.equipmentCode"
:readonly=
"true"
/>
</el-form-item>
<el-form-item
label=
"lot:"
prop=
"workshop"
>
<el-input
v-model
.
trim=
"singleDetails.lot"
:readonly=
"true"
/>
</el-form-item>
<el-form-item
label=
"位置:"
prop=
"location"
>
<el-input
v-model
.
trim=
"singleDetails.location"
:readonly=
"true"
/>
</el-form-item>
<el-form-item
label=
"厚度:"
prop=
"thickness"
>
<el-input
v-model
.
trim=
"singleDetails.thickness"
:readonly=
"true"
/>
</el-form-item>
<el-form-item
label=
"创建时间:"
prop=
"createTime"
>
<el-input
v-model
.
trim=
"singleDetails.createTime"
:readonly=
"true"
/>
</el-form-item>
<el-form-item
label=
"创建人:"
prop=
"createBy"
>
<el-input
v-model
.
trim=
"singleDetails.createBy"
:readonly=
"true"
/>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
...
...
@@ -144,6 +180,20 @@ export default {
components
:
{
Coolbutton
},
data
()
{
return
{
// TODO: 表单里的单项详情参数
singleDetails
:
{
equipmentName
:
''
,
equipmentCode
:
''
,
lot
:
''
,
location
:
''
,
thickness
:
''
,
createBy
:
''
,
createTime
:
''
},
// 是否显示弹出层(数据详情)
openDetails
:
false
,
// TODO: 模拟测试数据
equipmentList
:
[{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'002'
,
lot
:
'xxx'
,
location
:
'位置02'
,
thickness
:
'70'
,
createBy
:
'操作员02'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
equipmentCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
}],
check
:
'盘点'
,
typeParent
:
'text'
,
typePrimary
:
'primary'
,
...
...
@@ -282,6 +332,13 @@ export default {
// });
},
methods
:
{
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
this
.
singleDetails
=
row
this
.
title
=
'详情信息'
this
.
openDetails
=
!
this
.
openDetails
},
handelTab
(
i
,
e
)
{
const
that
=
this
if
(
!
that
.
$refs
[
'input'
+
i
])
{
...
...
@@ -608,6 +665,18 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.aboutSingleDetails
{
.el-form-item
{
.el-input
>>>
.el-input__inner
{
-webkit-appearance
:
none
;
background-color
:
#FFF
;
background-image
:
none
;
border-radius
:
4px
;
border
:
0
;
width
:
100%
;
}
}
}
.app-container
{
font-size
:
18px
;
padding
:
0
;
...
...
src/views/equipment/draw.vue
View file @
da16ed35
This diff is collapsed.
Click to expand it.
src/views/equipment/income.vue
View file @
da16ed35
This diff is collapsed.
Click to expand it.
src/views/equipment/management.vue
View file @
da16ed35
This diff is collapsed.
Click to expand it.
src/views/equipment/second.vue
View file @
da16ed35
<
template
>
<div
class=
"app-container"
>
<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=
"equipmentCod
e"
>
<el-input
v-model=
"queryParams.
roleNam
e"
placeholder=
"请输入
设备名称
"
v-model=
"queryParams.
equipmentCod
e"
placeholder=
"请输入
编码
"
clearable
:maxlength=
"30"
size=
"small"
...
...
@@ -12,10 +12,20 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"
设备编码"
prop=
"roleKey
"
>
<el-form-item
label=
"
lot"
prop=
"lot
"
>
<el-input
v-model=
"queryParams.roleKey"
placeholder=
"请输入设备编码"
placeholder=
"请输入设备lot"
clearable
size=
"small"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"位置"
prop=
"location"
>
<el-input
v-model=
"queryParams.location"
placeholder=
"请输入设备位置"
clearable
size=
"small"
style=
"width: 150px"
...
...
@@ -30,7 +40,7 @@
<coolbutton
style=
"padding: 8px 7px;"
:type=
"typePrimary"
:name=
"
check
"
:name=
"
addProcess
"
:size=
"smallSize"
:icon=
"addIcon"
/>
...
...
@@ -40,40 +50,42 @@
<div
class=
"placeholder"
/>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
设备管理列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"roleList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"名称"
prop=
"roleName"
:show-overflow-tooltip=
"true"
>
<el-table
v-loading=
"loading"
border
:data=
"processList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
/>
<el-table-column
label=
"工序名称"
prop=
"processCode"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleNam
e
||
'-'
}}
{{
scope
.
row
.
processCod
e
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"编码"
prop=
"
roleKey
"
>
<el-table-column
label=
"编码"
prop=
"
lot
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleKey
||
'-'
}}
{{
scope
.
row
.
lot
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
lot"
prop=
"roleSort
"
>
<el-table-column
label=
"
位置"
prop=
"location
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
{{
scope
.
row
.
location
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"位置"
prop=
"
roleSort
"
>
<el-table-column
label=
"位置"
prop=
"
location
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
{{
scope
.
row
.
location
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"厚度"
prop=
"
roleSort
"
>
<el-table-column
label=
"厚度"
prop=
"
thickness
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
{{
scope
.
row
.
thickness
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建人"
prop=
"
roleSort
"
>
<el-table-column
label=
"创建人"
prop=
"
createBy
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
roleSort
||
'-'
}}
{{
scope
.
row
.
createBy
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
create
Dat
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
<span>
{{
scope
.
row
.
create
Tim
e
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -100,9 +112,6 @@
<el-input-number
v-model=
"form.roleSort"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
<el-form-item
label=
"设备批次"
>
<!-- <el-checkbox v-model="menuExpand" @change="handleCheckedTreeExpand($event, 'menu')">展开/折叠</el-checkbox>-->
<!-- <el-checkbox v-model="menuNodeAll" @change="handleCheckedTreeNodeAll($event, 'menu')">全选/全不选</el-checkbox>-->
<!-- <el-checkbox v-model="form.menuCheckStrictly" @change="handleCheckedTreeConnect($event, 'menu')">父子联动</el-checkbox>-->
<el-tree
ref=
"menu"
class=
"tree-border"
...
...
@@ -144,7 +153,21 @@ export default {
components
:
{
Coolbutton
},
data
()
{
return
{
check
:
'盘点'
,
// TODO: 表单里的单项详情参数
singleDetails
:
{
equipmentName
:
''
,
equipmentCode
:
''
,
lot
:
''
,
location
:
''
,
thickness
:
''
,
createBy
:
''
,
createTime
:
''
},
// 是否显示弹出层(数据详情)
openDetails
:
false
,
// TODO: 模拟测试数据
processList
:
[{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'002'
,
lot
:
'xxx'
,
location
:
'位置02'
,
thickness
:
'70'
,
createBy
:
'操作员02'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
},
{
processCode
:
'001'
,
lot
:
'xxx'
,
location
:
'位置01'
,
thickness
:
'50'
,
createBy
:
'操作员01'
,
createTime
:
new
Date
()
}],
addProcess
:
'入库'
,
typeParent
:
'text'
,
typePrimary
:
'primary'
,
typeSuccess
:
'success'
,
...
...
@@ -282,6 +305,13 @@ export default {
// });
},
methods
:
{
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
this
.
singleDetails
=
row
this
.
title
=
'详情信息'
this
.
openDetails
=
!
this
.
openDetails
},
handelTab
(
i
,
e
)
{
const
that
=
this
if
(
!
that
.
$refs
[
'input'
+
i
])
{
...
...
src/views/equipment/statistic.vue
View file @
da16ed35
...
...
@@ -22,6 +22,7 @@
</el-form>
<div
class=
"placeholder"
></div>
<div
class=
"Role"
style=
"width: 100%; height: 600px; display: flex; padding-left: 100px"
>
<!--左边两个图-->
<div
class=
"left-charts"
style=
"width: 50%; display: flex; flex-direction: column;"
>
<div
id=
"myChart1"
style=
"flex: 1; margin-bottom: 100px;"
></div>
...
...
src/views/processManagement/basicProcessManagement/index.vue
View file @
da16ed35
...
...
@@ -41,7 +41,13 @@
<!-- TODO: 以下为基础工序管理列表 -->
<div
class=
"mb12 font-small-bold"
>
基础工序管理列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"roleList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
class=
"processList"
border
:data=
"processList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
/>
<el-table-column
label=
"工序名称"
prop=
"processName"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
...
...
@@ -53,29 +59,36 @@
{{
scope
.
row
.
workshop
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"
创建
时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
>
<el-table-column
label=
"
操作
时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createTime
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"
创建
人"
prop=
"createBy"
>
<el-table-column
label=
"
操作
人"
prop=
"createBy"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createBy
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"240px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"180px"
>
<
template
slot-scope=
"scope"
>
<el-button
:type=
"typeParent"
:size=
"size"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
<el-button
:type=
"typeParent"
:size=
"size"
@
click=
"handleUpdate(scope.row)"
>
{{
updataName
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
<div
class=
"processListBtns"
>
<el-button
:type=
"typeParent"
:size=
"size"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
<el-button
:type=
"typeParent"
:size=
"size"
@
click=
"handleUpdate(scope.row)"
>
{{
updataName
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</div>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -97,8 +110,8 @@
<el-form-item
label=
"工厂车间"
prop=
"workshop"
>
<el-input
v-model
.
trim=
"form.workshop"
show-word-limit
:maxlength=
"30"
placeholder=
"请输入工厂车间"
/>
</el-form-item>
<el-form-item
label=
"
创建
人"
prop=
"createBy"
>
<el-input
v-model
.
trim=
"form.createBy"
:maxlength=
"30"
show-word-limit
placeholder=
"请输入
创建
人"
/>
<el-form-item
label=
"
操作
人"
prop=
"createBy"
>
<el-input
v-model
.
trim=
"form.createBy"
:maxlength=
"30"
show-word-limit
placeholder=
"请输入
操作
人"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -116,10 +129,14 @@
<el-form-item
label=
"工厂车间:"
prop=
"workshop"
>
<el-input
v-model
.
trim=
"singleDetails.workshop"
:readonly=
"isReadOnly"
/>
</el-form-item>
<el-form-item
label=
"创建时间:"
prop=
"createTime"
>
<el-input
v-model
.
trim=
"singleDetails.createTime"
:readonly=
"isReadOnly"
/>
<el-form-item
label=
"操作时间:"
prop=
"createTime"
>
<!--
TODO: el-input 里不能调用全局日期过滤器 transformDateByFormat('YYYY-MM-DD HH:mm')
<el-input v-model.trim="singleDetails.createTime" :readonly="isReadOnly" />
-->
{{ singleDetails.createTime | transformDateByFormat('YYYY-MM-DD HH:mm') }}
</el-form-item>
<el-form-item
label=
"
创建
人:"
prop=
"createBy"
>
<el-form-item
label=
"
操作
人:"
prop=
"createBy"
>
<el-input
v-model
.
trim=
"singleDetails.createBy"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form>
...
...
@@ -131,6 +148,7 @@
<
script
>
// TODO: 导入外部已经封装好的button组件
import
Coolbutton
from
'@/components/coolbutton'
export
default
{
name
:
'Role'
,
components
:
{
Coolbutton
},
...
...
@@ -159,13 +177,15 @@ export default {
multiple
:
true
,
// 总条数
total
:
0
,
// 角色表格数据
roleList
:
[],
// TODO: 工序表格数据
processList
:
[],
// TODO: 模拟数据中转表 (为了解决模拟数据的查询问题)
toList
:
[],
// 弹出层标题
title
:
''
,
// 是否显示弹出层
//
TODO:
是否显示弹出层
open
:
false
,
// 是否显示弹出层(数据详情)
//
TODO:
是否显示弹出层(数据详情)
openDetails
:
false
,
// 日期范围
// dateRange: [],
...
...
@@ -175,13 +195,12 @@ export default {
menuNodeAll
:
false
,
deptExpand
:
true
,
deptNodeAll
:
false
,
// 查询参数
//
TODO:
查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
processName
:
undefined
,
workshop
:
undefined
,
flag
:
undefined
processName
:
''
,
workshop
:
''
},
defaultProps
:
{},
// TODO: 表单参数
...
...
@@ -213,9 +232,26 @@ export default {
createBy
:
''
},
// TODO: 模拟测试数据
simulateProcessList
:
[{
processName
:
'打磨'
,
workshop
:
'车间1'
,
flag
:
1
,
createTime
:
new
Date
(),
updataTime
:
new
Date
(),
createBy
:
'张三'
},
{
processName
:
'焊接'
,
workshop
:
'车间2'
,
flag
:
2
,
createTime
:
new
Date
(),
updataTime
:
new
Date
(),
createBy
:
'李四'
}],
simulateProcessList
:
[
{
processName
:
'打磨'
,
workshop
:
'车间1'
,
flag
:
1
,
createTime
:
new
Date
(),
updataTime
:
new
Date
(),
createBy
:
'张三'
},
{
processName
:
'焊接'
,
workshop
:
'车间2'
,
flag
:
2
,
createTime
:
new
Date
(),
updataTime
:
new
Date
(),
createBy
:
'李四'
}
],
// 表单校验
//
TODO:
表单校验
rules
:
{
processName
:
[
{
required
:
true
,
message
:
'请输入工序名称'
,
trigger
:
'blur'
},
...
...
@@ -250,11 +286,37 @@ export default {
this
.
getList
()
},
methods
:
{
/**
查询角色
列表 */
/**
TODO: 查询
列表 */
getList
()
{
this
.
loading
=
true
this
.
roleList
=
this
.
simulateProcessList
console
.
log
(
this
.
roleList
)
this
.
reset
()
// TODO: 此处为模拟数据的,根据不同条件去查询的过滤方法,可以删除!
if
(
this
.
queryParams
.
workshop
===
''
&&
this
.
queryParams
.
processName
!==
''
)
{
for
(
const
ps
of
this
.
simulateProcessList
)
{
if
(
ps
.
processName
===
this
.
queryParams
.
processName
)
{
this
.
toList
.
push
(
ps
)
}
}
}
else
if
(
this
.
queryParams
.
workshop
!==
''
&&
this
.
queryParams
.
processName
===
''
)
{
for
(
const
ps
of
this
.
simulateProcessList
)
{
if
(
ps
.
workshop
===
this
.
queryParams
.
workshop
)
{
this
.
toList
.
push
(
ps
)
}
}
}
else
if
(
this
.
queryParams
.
workshop
!==
''
&&
this
.
queryParams
.
processName
!==
''
)
{
for
(
const
ps
of
this
.
simulateProcessList
)
{
if
(
ps
.
workshop
===
this
.
queryParams
.
workshop
&&
ps
.
processName
===
this
.
queryParams
.
processName
)
{
this
.
toList
.
push
(
ps
)
}
}
}
else
{
this
.
toList
=
this
.
simulateProcessList
}
// DONE: 此上为模拟数据的,根据不同条件去查询的过滤方法,可以删除!
this
.
processList
=
this
.
toList
this
.
total
=
this
.
toList
.
length
console
.
log
(
this
.
processList
)
this
.
loading
=
false
},
// 取消按钮
...
...
@@ -265,6 +327,7 @@ export default {
// 表单重置
reset
()
{
// TODO: 将模拟数据的空对象赋值给表单对象,达成清空填写表单的效果
this
.
toList
=
[]
this
.
form
=
{
processName
:
''
,
workshop
:
''
,
...
...
@@ -278,6 +341,7 @@ export default {
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
this
.
getList
()
console
.
log
(
'this is queryParams'
,
this
.
queryParams
)
},
/** TODO: 重置按钮操作 */
resetQuery
()
{},
...
...
@@ -399,14 +463,23 @@ export default {
margin-left
:
15px
;
}
}
.el-divider--vertical
{
.el-divider--vertical
{
height
:
12em
;
width
:
4px
;
}
.aboutSingleDetails
{
.el-form-item
{
.el-input
>>>
.el-input__inner
{
//TODO: 这里是控制内容列表的样式
.processListBtns
{
.el-button
{
margin
:
0
7px
;
}
}
//TODO: readOnly里去删除el-input的边框样式
.aboutSingleDetails
{
.el-form-item
{
.el-input
>
>
>
.el-input__inner
{
-webkit-appearance
:
none
;
background-color
:
#FFF
;
background-image
:
none
;
...
...
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