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
ed8b173e
Commit
ed8b173e
authored
Oct 29, 2023
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库区库域
parent
ed87f379
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
5 deletions
+36
-5
index.vue
src/views/ecw/warehouseArea/index.vue
+2
-1
index.vue
src/views/ecw/warehouseAreaPosition/index.vue
+34
-4
No files found.
src/views/ecw/warehouseArea/index.vue
View file @
ed8b173e
...
...
@@ -142,7 +142,8 @@ export default {
},
methods
:
{
positionManager
(
row
)
{
this
.
$router
.
push
(
'
/warehouse/warehouse-area-position?areaId=
'
+
row
.
id
);
// console.log(row)
this
.
$router
.
push
(
'
/warehouse/warehouse-area-position?areaId=
'
+
row
.
id
+
"
&warehouseId=
"
+
row
.
warehouseId
+
"
&domainId=
"
+
row
.
pid
);
},
/**查询仓库 */
...
...
src/views/ecw/warehouseAreaPosition/index.vue
View file @
ed8b173e
...
...
@@ -73,19 +73,19 @@
</el-form-item>
<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
|| warehouseId != null
"
>
<el-option
v-for=
"warehouse in warehouseList"
:key=
"warehouse.id"
:label=
"$l(warehouse, 'title')"
:value=
"warehouse.id"
/>
</el-select>
</el-form-item>
<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
|| domainId != null
"
>
<el-option
v-for=
"domain in domainList"
:key=
"domain.id"
:label=
"domain.name"
:value=
"domain.id"
/>
</el-select>
</el-form-item>
<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
|| areaId != null
"
>
<el-option
v-for=
"area in areaList"
:key=
"area.id"
:label=
"area.name"
:value=
"area.id"
/>
</el-select>
</el-form-item>
...
...
@@ -114,6 +114,7 @@ import { getWarehouseList } from "@/api/ecw/warehouse"
import
{
getWarehouseAreaList
}
from
"
@/api/ecw/warehouseArea
"
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
d
from
"
highlight.js/lib/languages/d
"
;
export
default
{
name
:
"
WarehouseAreaPosition
"
,
...
...
@@ -150,6 +151,9 @@ export default {
// 是否显示弹出层
open
:
false
,
dateRangeCreateTime
:
[],
domainId
:
null
,
areaId
:
null
,
warehouseId
:
null
,
// 查询参数
queryParams
:
{
page
:
1
,
...
...
@@ -165,7 +169,11 @@ export default {
status
:
null
,
},
// 表单参数
form
:
{},
form
:
{
warehouseId
:
null
,
domainId
:
null
,
areaId
:
null
},
// 表单校验
rules
:
{
code
:
[{
required
:
true
,
message
:
this
.
$t
(
"
储位代码不能为空
"
),
trigger
:
"
blur
"
}],
...
...
@@ -221,10 +229,32 @@ computed: {
},
created
()
{
let
warehouseId
=
this
.
$route
.
query
.
warehouseId
;
console
.
log
(
this
.
$route
.
query
);
if
(
warehouseId
)
{
warehouseId
=
parseInt
(
warehouseId
)
this
.
warehouseId
=
warehouseId
;
this
.
queryParams
.
warehouseId
=
warehouseId
;
// this.form.warehouseId = warehouseId;
this
.
$set
(
this
.
form
,
'
warehouseId
'
,
warehouseId
);
}
let
domainId
=
this
.
$route
.
query
.
domainId
;
if
(
domainId
)
{
domainId
=
parseInt
(
domainId
)
this
.
domainId
=
domainId
;
this
.
queryParams
.
domainId
=
domainId
;
// this.form.domainId = domainId;
this
.
$set
(
this
.
form
,
'
domainId
'
,
domainId
);
}
let
areaId
=
this
.
$route
.
query
.
areaId
;
if
(
areaId
)
{
areaId
=
parseInt
(
areaId
)
this
.
areaId
=
areaId
;
this
.
queryParams
.
areaId
=
areaId
;
// this.form.areaId = areaId;
this
.
$set
(
this
.
form
,
'
areaId
'
,
areaId
);
}
this
.
requestWarehouseList
();
this
.
requestWarehouseAreaList
();
this
.
getList
();
...
...
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