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
74a7b997
Commit
74a7b997
authored
Jul 29, 2023
by
刘宇扬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/project1' into project1
parents
ed3a83ad
0368f80a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
135 deletions
+114
-135
BaseTableArguments.js
src/components/Table/AllTableArguments/BaseTableArguments.js
+0
-2
index.vue
src/components/Table/BaseTable/index.vue
+9
-16
basicInfo.vue
src/views/equipment/basicInfo.vue
+2
-2
draw.vue
src/views/equipment/draw.vue
+7
-17
index.vue
src/views/processManagement/basicProcessManagement/index.vue
+1
-0
draw.vue
src/views/processManagement/draw.vue
+3
-13
index.vue
src/views/processManagement/inventoryRecord/index.vue
+92
-80
index.vue
src/views/sample/basicInformation/index.vue
+0
-5
No files found.
src/components/Table/AllTableArguments/BaseTableArguments.js
View file @
74a7b997
...
@@ -107,8 +107,6 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList,
...
@@ -107,8 +107,6 @@ export function BaseTableArgumentsTest(nIndex, selection, loading, processList,
if
(
queryParams
instanceof
queryParamsType
)
{
if
(
queryParams
instanceof
queryParamsType
)
{
this
.
queryParams
=
queryParamsType
this
.
queryParams
=
queryParamsType
}
}
this
.
nIndex
=
nIndex
this
.
columnData
=
columnData
this
.
columnData
=
columnData
this
.
processList
=
processList
this
.
processList
=
processList
}
}
src/components/Table/BaseTable/index.vue
View file @
74a7b997
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
>
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
:index=
"
allTableArguments.
nIndex"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
:index=
"nIndex"
/>
<!-- TODO: 选择框是否开启,selectable控制是否单行禁用 -->
<!-- TODO: 选择框是否开启,selectable控制是否单行禁用 -->
<el-table-column
v-if=
"allTableArguments.columObj.selection"
type=
"selection"
:selectable=
"allTableArguments.columObj.selectable"
width=
"50px"
/>
<el-table-column
v-if=
"allTableArguments.columObj.selection"
type=
"selection"
:selectable=
"allTableArguments.columObj.selectable"
width=
"50px"
/>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
:index=
"columIndex"
:index=
"columIndex"
show-overflow-tooltip
show-overflow-tooltip
>
>
<template
v-slot
=
"
{row,$index}">
<template
slot-scope
=
"
{row,$index}">
<!-- 默认展示 -->
<!-- 默认展示 -->
<span
v-if=
"column.text && column.editRow !== $index"
>
{{
row
[
column
.
prop
]
||
'-'
}}
</span>
<span
v-if=
"column.text && column.editRow !== $index"
>
{{
row
[
column
.
prop
]
||
'-'
}}
</span>
...
@@ -60,9 +60,9 @@
...
@@ -60,9 +60,9 @@
<!-- 操作按钮 -->
<!-- 操作按钮 -->
<span
v-if=
"column.isOperation"
class=
"processListBtns"
>
<span
v-if=
"column.isOperation"
class=
"processListBtns"
>
<span
v-for=
"(operations, index) in column.operation"
:key=
"index"
>
<span
v-for=
"(operations, index) in column.operation"
:key=
"index"
>
<el-button
v-if=
" operations.clickType === '1' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDetail">
{{
operations
.
label
}}
</el-button>
<el-button
v-if=
" operations.clickType === '1' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDetail
(row,$index)
">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '2' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleUpdate">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '2' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleUpdate
(row,$index)
">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '3' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDelete">
{{
operations
.
label
}}
</el-button>
<el-button
v-else-if=
" operations.clickType === '3' "
:icon=
"operations.icon"
:type=
"typeParent"
:style=
"
{color:operations.color}" :size="size" @click="handleDelete
(row,$index)
">
{{
operations
.
label
}}
</el-button>
</span>
</span>
</span>
</span>
</
template
>
</
template
>
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<
script
>
<
script
>
import
{
BaseTableArgumentsTest
}
from
'@/components/Table/AllTableArguments/BaseTableArguments'
import
{
BaseTableArgumentsTest
}
from
'@/components/Table/AllTableArguments/BaseTableArguments'
export
default
{
export
default
{
name
:
'BaseTable'
,
name
:
'BaseTable'
,
...
@@ -93,16 +93,10 @@ export default {
...
@@ -93,16 +93,10 @@ export default {
}
}
}
}
},
},
allNamed
:
{
nIndex
:
{
type
:
Object
,
type
:
Function
,
default
:
()
=>
{
default
:
()
=>
{
return
{
return
Function
listName
:
String
,
label
:
{
SerialNumberNamed
:
String
}
}
}
}
}
}
},
},
...
@@ -131,7 +125,6 @@ export default {
...
@@ -131,7 +125,6 @@ export default {
/* TODO: 这里是控制内容列表的样式 */
/* TODO: 这里是控制内容列表的样式 */
.processListBtns
{
.processListBtns
{
.el-button
{
.el-button
{
margin
:
0
12px
;
}
}
}
}
...
...
src/views/equipment/basicInfo.vue
View file @
74a7b997
...
@@ -86,9 +86,9 @@
...
@@ -86,9 +86,9 @@
{{
scope
.
row
.
prank
||
'-'
}}
{{
scope
.
row
.
prank
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作员"
prop=
"create
By
"
>
<el-table-column
label=
"操作员"
prop=
"create
Name
"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
create
By
||
'-'
}}
{{
scope
.
row
.
create
Name
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
...
...
src/views/equipment/draw.vue
View file @
74a7b997
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"phd"
prop=
"phd"
>
<el-form-item
label=
"phd"
prop=
"phd
Str
"
>
<el-input
<el-input
v-model=
"queryParams.phd"
v-model=
"queryParams.phd
Str
"
placeholder=
"请输入phd"
placeholder=
"请输入phd"
clearable
clearable
size=
"small"
size=
"small"
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"prank"
prop=
"prank"
>
<el-form-item
label=
"prank"
prop=
"prank
Str
"
>
<el-input
<el-input
v-model=
"queryParams.prank"
v-model=
"queryParams.prank
Str
"
placeholder=
"请输入prank"
placeholder=
"请输入prank"
clearable
clearable
size=
"small"
size=
"small"
...
@@ -67,25 +67,15 @@
...
@@ -67,25 +67,15 @@
{{
scope
.
row
.
pissb
||
'-'
}}
{{
scope
.
row
.
pissb
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pstatus"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pstatus
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"ptype"
prop=
"ptype"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ptype
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
prop=
"pstatus"
>
<el-table-column
label=
"状态"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pstatus === '0'"
style=
"color: red"
>
未完成
</span>
<span
v-if=
"scope.row.pstatus === '0'"
style=
"color: red"
>
未完成
</span>
<span
v-else
style=
"color: green"
>
已完成
</span>
<span
v-else
style=
"color: green"
>
已完成
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作员"
prop=
"create
By
"
>
<el-table-column
label=
"操作员"
prop=
"create
Name
"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
create
By
||
'-'
}}
{{
scope
.
row
.
create
Name
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
...
@@ -100,7 +90,7 @@
...
@@ -100,7 +90,7 @@
type=
"text"
type=
"text"
style=
"color: #49cec9"
style=
"color: #49cec9"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
>
处理
</el-button>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
...
...
src/views/processManagement/basicProcessManagement/index.vue
View file @
74a7b997
...
@@ -698,6 +698,7 @@ export default {
...
@@ -698,6 +698,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/* TODO: 专门用来解决input 的边框问题 */
.aboutSingleDetails
{
.aboutSingleDetails
{
.el-form-item
{
.el-form-item
{
.el-input
>>>
.el-input__inner
{
.el-input
>>>
.el-input__inner
{
...
...
src/views/processManagement/draw.vue
View file @
74a7b997
...
@@ -67,25 +67,15 @@
...
@@ -67,25 +67,15 @@
{{
scope
.
row
.
pissb
||
'-'
}}
{{
scope
.
row
.
pissb
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pstatus"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pstatus
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"ptype"
prop=
"ptype"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ptype
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
prop=
"pstatus"
>
<el-table-column
label=
"状态"
prop=
"pstatus"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pstatus === '0'"
style=
"color: red"
>
未完成
</span>
<span
v-if=
"scope.row.pstatus === '0'"
style=
"color: red"
>
未完成
</span>
<span
v-else
style=
"color: green"
>
已完成
</span>
<span
v-else
style=
"color: green"
>
已完成
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作员"
prop=
"create
By
"
>
<el-table-column
label=
"操作员"
prop=
"create
Name
"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
create
By
||
'-'
}}
{{
scope
.
row
.
create
Name
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
<el-table-column
label=
"操作时间"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"createTime"
width=
"200px"
>
...
@@ -100,7 +90,7 @@
...
@@ -100,7 +90,7 @@
type=
"text"
type=
"text"
style=
"color: #49cec9"
style=
"color: #49cec9"
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
>
处理
</el-button>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
74a7b997
...
@@ -6,10 +6,9 @@
...
@@ -6,10 +6,9 @@
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
<el-input
v-model=
"queryParams.pn"
v-model=
"queryParams.pn"
placeholder=
"
Please enter
pn"
placeholder=
"
请输入
pn"
clearable
clearable
:maxlength=
"30"
:maxlength=
"20"
style=
"width: 150px;"
size=
"small"
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
...
@@ -18,10 +17,9 @@
...
@@ -18,10 +17,9 @@
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
<el-input
v-model=
"queryParams.lot"
v-model=
"queryParams.lot"
placeholder=
"
Please enter
lot"
placeholder=
"
请输入
lot"
clearable
clearable
:maxlength=
"30"
:maxlength=
"20"
style=
"width: 150px;"
size=
"small"
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
...
@@ -30,25 +28,25 @@
...
@@ -30,25 +28,25 @@
<el-form-item
label=
"plocation"
prop=
"plocation"
>
<el-form-item
label=
"plocation"
prop=
"plocation"
>
<el-input
<el-input
v-model=
"queryParams.plocation"
v-model=
"queryParams.plocation"
placeholder=
"
Please enter
plocation"
placeholder=
"
请输入
plocation"
clearable
clearable
:maxlength=
"30"
:maxlength=
"20"
style=
"width: 150px;"
size=
"small"
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"poperate"
prop=
"poperate"
>
<el-form-item
label=
"库类型"
prop=
"ptype"
>
<el-select
<el-select
v-model=
"queryParams.p
operat
e"
v-model=
"queryParams.p
typ
e"
placeholder=
"
库状态
"
placeholder=
"
请选择库类型
"
filterable
filterable
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
>
>
<el-option
<el-option
v-for=
"option in selectOptionsAboutP
operat
e"
v-for=
"option in selectOptionsAboutP
typ
e"
:key=
"option.value"
:key=
"option.value"
:label=
"option.label"
:label=
"option.label"
:value=
"option.value"
:value=
"option.value"
...
@@ -56,16 +54,16 @@
...
@@ -56,16 +54,16 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
ptype"
prop=
"ptyp
e"
>
<el-form-item
label=
"
库状态"
prop=
"poperat
e"
>
<el-select
<el-select
v-model=
"queryParams.p
typ
e"
v-model=
"queryParams.p
operat
e"
placeholder=
"
库类型
"
placeholder=
"
请选择库状态
"
filterable
filterable
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
>
>
<el-option
<el-option
v-for=
"option in selectOptionsAboutP
typ
e"
v-for=
"option in selectOptionsAboutP
operat
e"
:key=
"option.value"
:key=
"option.value"
:label=
"option.label"
:label=
"option.label"
:value=
"option.value"
:value=
"option.value"
...
@@ -73,39 +71,27 @@
...
@@ -73,39 +71,27 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item
label=
"操作时间"
prop=
"date"
>
<div
class=
"block"
>
<div
class=
"block"
>
<el-date-picker
<el-date-picker
v-model=
"dateRange"
v-model=
"dateRange"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
type=
"datetimerange"
style=
"width: 250px"
type=
"daterange"
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
:default-time=
"['00:00:00', '00:00:00']"
/>
/>
</div>
</div>
</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>
<el-button
size=
"small"
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
size=
"small"
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<!--TODO: 导出和盘点按钮所在 -->
<!--TODO: 导出和盘点按钮所在 -->
<el-row
:gutter=
"36"
class=
"mb8"
justify=
"start"
>
<el-row
:gutter=
"10"
class=
"mb8"
justify=
"start"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-plus"
@
click=
"handleExport"
>
盘点
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"success"
type=
"success"
...
@@ -128,6 +114,7 @@
...
@@ -128,6 +114,7 @@
<component
<component
:is=
"BaseTable"
:is=
"BaseTable"
:key=
"queryParams.rows"
:key=
"queryParams.rows"
:nIndex=
"nIndex"
:all-table-arguments=
"allTableArguments"
:all-table-arguments=
"allTableArguments"
@
handle-detail=
"handleDetail"
@
handle-detail=
"handleDetail"
/>
/>
...
@@ -142,45 +129,37 @@
...
@@ -142,45 +129,37 @@
/>
/>
<!-- TODO: 单项详情信息表单配置 -->
<!-- TODO: 单项详情信息表单配置 -->
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
width=
"7
00px"
append-to-body
>
<el-dialog
class=
"aboutSingleDetails"
:title=
"title"
:visible
.
sync=
"openDetails"
:close-on-click-modal=
"false"
width=
"8
00px"
append-to-body
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-form
ref=
"formDetails"
:model=
"singleDetails"
size=
"small"
label-width=
"90px"
>
<el-row>
<el-row
:gutter=
"10"
justify=
"start"
align=
"middle"
>
<el-col
:span=
"
12
"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"pn:"
prop=
"pn"
>
<el-form-item
label=
"pn:"
prop=
"pn"
>
<el-input
v-model
.
trim=
"singleDetails.pn"
:readonly=
"
true
"
/>
<el-input
v-model
.
trim=
"singleDetails.pn"
:readonly=
"
isReadOnly
"
/>
</el-form-item>
</el-form-item>
</el-col>
<el-form-item
label=
"lot:"
prop=
"lot"
>
<el-input
v-model
.
trim=
"singleDetails.lot"
:readonly=
"isReadOnly"
/>
<el-col
:span=
"12"
>
<el-form-item
label=
"lot:"
prop=
"workshop"
>
<el-input
v-model
.
trim=
"singleDetails.lot"
:readonly=
"true"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"plocation:"
prop=
"plocation"
>
<el-form-item
label=
"plocation:"
prop=
"plocation"
>
<el-input
v-model
.
trim=
"singleDetails.p
type"
:readonly=
"true
"
/>
<el-input
v-model
.
trim=
"singleDetails.p
location"
:readonly=
"isReadOnly
"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
" 操作时间:"
prop=
"createDate"
>
<el-col
:span=
"8"
>
<el-input
v-model
.
trim=
"singleDetails.poperate"
:readonly=
"true"
/>
<el-form-item
label=
"库类型:"
prop=
"ptype"
>
<el-input
v-model
.
trim=
"singleDetails.ptype"
:readonly=
"isReadOnly"
/>
</el-form-item>
<el-form-item
label=
"库状态:"
prop=
"poperate"
>
<el-input
v-model
.
trim=
"singleDetails.poperate"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"操作时间:"
prop=
"createDate"
>
<el-form-item
label=
"位置:"
prop=
"createName"
>
<el-input
v-model
.
trim=
"singleDetails.createDate"
:readonly=
"isReadOnly"
/>
<el-input
v-model
.
trim=
"singleDetails.plocation"
:readonly=
"true"
/>
</el-form-item>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"操作员:"
prop=
"user"
>
<el-form-item
label=
"操作员:"
prop=
"user"
>
<el-input
v-model
.
trim=
"singleDetails.user"
:readonly=
"
true
"
/>
<el-input
v-model
.
trim=
"singleDetails.user"
:readonly=
"
isReadOnly
"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -288,7 +267,7 @@ export default {
...
@@ -288,7 +267,7 @@ export default {
{
{
text
:
true
,
text
:
true
,
prop
:
'pn'
,
prop
:
'pn'
,
label
:
'
设备编码
pn'
label
:
'pn'
},
},
{
{
text
:
true
,
text
:
true
,
...
@@ -298,9 +277,9 @@ export default {
...
@@ -298,9 +277,9 @@ export default {
{
{
ownDefined
:
true
,
ownDefined
:
true
,
prop
:
'ptype'
,
prop
:
'ptype'
,
label
:
'库类型
ptype
'
,
label
:
'库类型'
,
ownDefinedReturn
:
(
row
,
$index
)
=>
{
ownDefinedReturn
:
(
row
,
$index
)
=>
{
switch
(
row
.
p
operat
e
)
{
switch
(
row
.
p
typ
e
)
{
case
'1'
:
case
'1'
:
return
'设备库'
return
'设备库'
case
'2'
:
case
'2'
:
...
@@ -313,7 +292,7 @@ export default {
...
@@ -313,7 +292,7 @@ export default {
{
{
ownDefined
:
true
,
ownDefined
:
true
,
prop
:
'poperate'
,
prop
:
'poperate'
,
label
:
'库状态
poperate
'
,
label
:
'库状态'
,
width
:
'180px'
,
width
:
'180px'
,
ownDefinedReturn
:
(
row
,
$index
)
=>
{
ownDefinedReturn
:
(
row
,
$index
)
=>
{
switch
(
row
.
poperate
)
{
switch
(
row
.
poperate
)
{
...
@@ -333,28 +312,28 @@ export default {
...
@@ -333,28 +312,28 @@ export default {
{
{
text
:
true
,
text
:
true
,
prop
:
'plocation'
,
prop
:
'plocation'
,
label
:
'
位置
plocation'
,
label
:
'plocation'
,
sortable
:
false
,
sortable
:
false
,
width
:
'150px'
width
:
'150px'
},
},
{
{
text
:
true
,
text
:
true
,
prop
:
'user'
,
prop
:
'user'
,
label
:
'操作员
user
'
,
label
:
'操作员'
,
sortable
:
false
,
sortable
:
false
,
width
:
'150px'
width
:
'150px'
},
},
{
{
time
:
true
,
time
:
true
,
prop
:
'
upd
ateDate'
,
prop
:
'
cre
ateDate'
,
label
:
'操作时间
updateDate
'
,
label
:
'操作时间'
,
align
:
'center'
align
:
'center'
},
},
// TODO: 如果为操作列,则需要填写需要的操作按钮,类型为Object。operation(操作类型,可选edit,delete,see),type(按钮样式,参考el—botton类型),label(按钮文字)icon(参考el-icon),color(字体颜色)
// TODO: 如果为操作列,则需要填写需要的操作按钮,类型为Object。operation(操作类型,可选edit,delete,see),type(按钮样式,参考el—botton类型),label(按钮文字)icon(参考el-icon),color(字体颜色)
{
{
isOperation
:
true
,
isOperation
:
true
,
label
:
'操作'
,
label
:
'操作'
,
width
:
'
10
0px'
,
width
:
'
8
0px'
,
align
:
'center'
,
align
:
'center'
,
sortable
:
false
,
sortable
:
false
,
operation
:
[{
operation
:
[{
...
@@ -369,15 +348,24 @@ export default {
...
@@ -369,15 +348,24 @@ export default {
]
]
},
},
title
:
''
,
openDetails
:
false
,
isReadOnly
:
true
,
// TODO: 表单里的单项详情参数
// TODO: 表单里的单项详情参数
singleDetails
:
{
singleDetails
:
{
equipmentName
:
''
,
pn
:
''
,
equipmentCode
:
''
,
lot
:
''
,
lot
:
''
,
location
:
''
,
ptype
:
''
,
thickness
:
''
,
poperate
:
''
,
createName
:
''
,
plocation
:
''
,
createTime
:
''
remarks
:
''
,
fqYs
:
''
,
user
:
''
,
createBy
:
''
,
updateBy
:
''
,
createDate
:
''
,
updateDate
:
''
}
}
}
}
},
},
...
@@ -389,16 +377,15 @@ export default {
...
@@ -389,16 +377,15 @@ export default {
/* TODO:自定义分页索引,实现索引继承 */
/* TODO:自定义分页索引,实现索引继承 */
nIndex
(
index
)
{
nIndex
(
index
)
{
// TODO: 当前页数 - 1 * 每页数据条数 + 1
// TODO: 当前页数 - 1 * 每页数据条数 + 1
const
page
=
this
.
queryParams
.
page
Num
// TODO: 当前页码
const
page
=
this
.
queryParams
.
page
// TODO: 当前页码
const
pageSize
=
this
.
queryParams
.
pageSize
// TODO: 每页条数
const
rows
=
this
.
queryParams
.
rows
// TODO: 每页条数
return
index
+
1
+
(
page
-
1
)
*
pageSize
return
index
+
1
+
(
page
-
1
)
*
rows
},
},
// TODO: 用来汇总Table组件所需要的全部数据并一次性传输给子组件
// TODO: 用来汇总Table组件所需要的全部数据并一次性传输给子组件
allTableArguments
()
{
allTableArguments
()
{
return
{
return
{
listName
:
'出入库记录列表'
,
listName
:
'出入库记录列表'
,
nIndex
:
this
.
nIndex
,
loading
:
this
.
loading
,
loading
:
this
.
loading
,
processList
:
this
.
inventoryRecordList
,
processList
:
this
.
inventoryRecordList
,
queryParams
:
this
.
queryParams
,
queryParams
:
this
.
queryParams
,
...
@@ -451,12 +438,16 @@ export default {
...
@@ -451,12 +438,16 @@ export default {
this
.
handleQuery
()
this
.
handleQuery
()
},
},
handleDetail
(
row
)
{
handleDetail
:
function
(
row
)
{
console
.
log
(
'success!'
)
console
.
log
(
'success!'
)
this
.
title
=
'记录详情'
this
.
singleDetails
=
{
...
row
}
this
.
openDetails
=
true
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.app-container
{
.app-container
{
padding
:
0
;
padding
:
0
;
...
@@ -467,16 +458,37 @@ export default {
...
@@ -467,16 +458,37 @@ export default {
margin-bottom
:
10px
margin-bottom
:
10px
}
}
/*TODO: 这里是调整ToolBar的样式的噢!*/
/*TODO: 这里是调整ToolBar的样式的噢!*/
.ToolBar
{
.ToolBar
{
.el-form
{
.el-form
{
.el-form-item
{
.el-form-item
{
.el-select
{
.el-select
{
width
:
90px
;
width
:
160px
}
.el-input
{
width
:
180px
}
}
}
}
}
}
}
}
/* TODO: 专门用来解决el-input边框的问题 */
.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%
;
}
}
}
}
}
</
style
>
</
style
>
src/views/sample/basicInformation/index.vue
View file @
74a7b997
...
@@ -226,7 +226,6 @@ export default {
...
@@ -226,7 +226,6 @@ export default {
}
)
}
)
}
else
{
}
else
{
add
(
this
.
form
).
then
(
res
=>
{
add
(
this
.
form
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
open
=
false
this
.
open
=
false
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
...
@@ -239,7 +238,6 @@ export default {
...
@@ -239,7 +238,6 @@ export default {
}
}
}
else
{
}
else
{
// 校验失败,显示错误信息或进行其他操作
// 校验失败,显示错误信息或进行其他操作
console
.
log
(
'22222'
)
}
}
}
)
}
)
}
,
}
,
...
@@ -248,7 +246,6 @@ export default {
...
@@ -248,7 +246,6 @@ export default {
this
.
reFrom
()
this
.
reFrom
()
}
,
}
,
handleDelete
(
row
)
{
handleDelete
(
row
)
{
console
.
log
(
'row'
,
row
)
const
id
=
row
.
businessId
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
@@ -267,10 +264,8 @@ export default {
...
@@ -267,10 +264,8 @@ export default {
// 编辑
// 编辑
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
title
=
'编辑基础信息表单'
this
.
title
=
'编辑基础信息表单'
console
.
log
(
'row'
,
row
)
const
id
=
row
.
businessId
const
id
=
row
.
businessId
getDetailById
(
id
).
then
(
res
=>
{
getDetailById
(
id
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
form
=
res
.
data
this
.
form
=
res
.
data
this
.
open
=
true
this
.
open
=
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