Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
93c5ae20
Commit
93c5ae20
authored
Oct 29, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面跳转,新增储位,页面回显
parent
ed87f379
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
index.vue
src/views/ecw/warehouseAreaPosition/index.vue
+19
-10
No files found.
src/views/ecw/warehouseAreaPosition/index.vue
View file @
93c5ae20
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
<!-- 搜索工作栏 -->
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
:label=
"$t('储位代码')"
prop=
"code"
>
<el-form-item
:label=
"$t('储位代码')"
prop=
"code"
>
<el-input
v-model=
"queryParams.code"
:placeholder=
"$t('请输入储位代码')"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.code"
:placeholder=
"$t('请输入储位代码')"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{
$t
(
'
重置
'
)
}}
</el-button>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['ecw:warehouse-area-position:create']"
>
{{
$t
(
'
新增储位
'
)
}}
</el-button>
v-hasPermi=
"['ecw:warehouse-area-position:create']"
>
{{
$t
(
'
新增储位
'
)
}}
</el-button>
</el-col>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('库域')"
align=
"center"
prop=
"domainName"
/>
<el-table-column
:label=
"$t('库域')"
align=
"center"
prop=
"domainName"
/>
<el-table-column
:label=
"$t('库区')"
align=
"center"
prop=
"areaName"
/>
<el-table-column
:label=
"$t('库区')"
align=
"center"
prop=
"areaName"
/>
<el-table-column
:label=
"$t('货架')"
align=
"center"
prop=
"isShelf"
>
<el-table-column
:label=
"$t('货架')"
align=
"center"
prop=
"isShelf"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
isShelf
==
1
?
$t
(
'
是
'
)
:
$t
(
'
否
'
)
}}
</span>
<span>
{{
scope
.
row
.
isShelf
==
1
?
$t
(
'
是
'
)
:
$t
(
'
否
'
)
}}
</span>
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<span>
{{
scope
.
row
.
status
==
CommonStatusEnum
.
ENABLE
?
$t
(
'
是
'
)
:
$t
(
'
否
'
)
}}
</span>
<span>
{{
scope
.
row
.
status
==
CommonStatusEnum
.
ENABLE
?
$t
(
'
是
'
)
:
$t
(
'
否
'
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
...
@@ -74,21 +74,21 @@
...
@@ -74,21 +74,21 @@
<el-form-item
:label=
"$t('仓库')"
prop=
"warehouseId"
>
<el-form-item
:label=
"$t('仓库')"
prop=
"warehouseId"
>
<el-select
v-model=
"form.warehouseId"
clearable
@
change=
"changeWarehouse"
:disabled=
"parentDo != null"
>
<el-select
v-model=
"form.warehouseId"
clearable
@
change=
"changeWarehouse"
:disabled=
"parentDo != null"
>
<el-option
v-for=
"warehouse in warehouseList"
:key=
"warehouse.id"
:label=
"$l(warehouse, 'title')"
:value=
"warehouse.id"
/>
<el-option
v-for=
"warehouse in warehouseList"
:key=
"warehouse.id"
:label=
"$l(warehouse, 'title')"
:value=
"warehouse.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('库域')"
prop=
"domainId"
>
<el-form-item
:label=
"$t('库域')"
prop=
"domainId"
>
<el-select
v-model=
"form.domainId"
clearable
@
change=
"changeDomain"
:disabled=
"parentDo != null"
>
<el-select
v-model=
"form.domainId"
clearable
@
change=
"changeDomain"
:disabled=
"parentDo != null"
>
<el-option
v-for=
"domain in domainList"
:key=
"domain.id"
:label=
"domain.name"
:value=
"domain.id"
/>
<el-option
v-for=
"domain in domainList"
:key=
"domain.id"
:label=
"domain.name"
:value=
"domain.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('库区')"
prop=
"areaId"
>
<el-form-item
:label=
"$t('库区')"
prop=
"areaId"
>
<el-select
v-model=
"form.areaId"
clearable
@
change=
"changeArea"
:disabled=
"parentDo != null"
>
<el-select
v-model=
"form.areaId"
clearable
@
change=
"changeArea"
:disabled=
"parentDo != null"
>
<el-option
v-for=
"area in areaList"
:key=
"area.id"
:label=
"area.name"
:value=
"area.id"
/>
<el-option
v-for=
"area in areaList"
:key=
"area.id"
:label=
"area.name"
:value=
"area.id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('货架')"
prop=
"isShelf"
>
<el-form-item
:label=
"$t('货架')"
prop=
"isShelf"
>
<el-radio
v-model.number=
"form.isShelf"
:label=
"1"
>
{{$t('是')}}
</el-radio>
<el-radio
v-model.number=
"form.isShelf"
:label=
"1"
>
{{$t('是')}}
</el-radio>
...
@@ -331,6 +331,15 @@ computed: {
...
@@ -331,6 +331,15 @@ computed: {
this
.
parentDo
=
null
;
this
.
parentDo
=
null
;
this
.
form
.
status
=
0
;
this
.
form
.
status
=
0
;
this
.
form
.
isShelf
=
1
;
this
.
form
.
isShelf
=
1
;
let
p
=
this
.
$route
.
query
if
(
p
.
areaId
){
this
.
form
.
areaId
=
+
p
.
areaId
this
.
form
.
warehouseId
=
+
p
.
warehouseId
this
.
form
.
domainId
=
+
p
.
domainId
this
.
changeWarehouse
(
this
.
form
.
warehouseId
)
this
.
changeDomain
(
this
.
form
.
domainId
)
}
this
.
title
=
this
.
$t
(
"
添加储位
"
);
this
.
title
=
this
.
$t
(
"
添加储位
"
);
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
...
...
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