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
64078e62
Commit
64078e62
authored
Aug 10, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仓位修改为储位
parent
af850750
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
warehouseAreaPosition.js
src/api/ecw/warehouseAreaPosition.js
+6
-6
index.vue
src/views/ecw/warehouseArea/index.vue
+1
-1
index.vue
src/views/ecw/warehouseAreaPosition/index.vue
+15
-15
No files found.
src/api/ecw/warehouseAreaPosition.js
View file @
64078e62
import
request
from
'
@/utils/request
'
// 创建
仓
位
// 创建
储
位
export
function
createWarehouseAreaPosition
(
data
)
{
return
request
({
url
:
'
/ecw/warehouse-area-position/create
'
,
...
...
@@ -9,7 +9,7 @@ export function createWarehouseAreaPosition(data) {
})
}
// 更新
仓
位
// 更新
储
位
export
function
updateWarehouseAreaPosition
(
data
)
{
return
request
({
url
:
'
/ecw/warehouse-area-position/update
'
,
...
...
@@ -18,7 +18,7 @@ export function updateWarehouseAreaPosition(data) {
})
}
// 删除
仓
位
// 删除
储
位
export
function
deleteWarehouseAreaPosition
(
id
)
{
return
request
({
url
:
'
/ecw/warehouse-area-position/delete?id=
'
+
id
,
...
...
@@ -26,7 +26,7 @@ export function deleteWarehouseAreaPosition(id) {
})
}
// 获得
仓
位
// 获得
储
位
export
function
getWarehouseAreaPosition
(
id
)
{
return
request
({
url
:
'
/ecw/warehouse-area-position/get?id=
'
+
id
,
...
...
@@ -34,7 +34,7 @@ export function getWarehouseAreaPosition(id) {
})
}
// 获得
仓
位分页
// 获得
储
位分页
export
function
getWarehouseAreaPositionPage
(
query
)
{
return
request
({
url
:
'
/ecw/warehouse-area-position/page
'
,
...
...
@@ -43,7 +43,7 @@ export function getWarehouseAreaPositionPage(query) {
})
}
// 导出
仓
位 Excel
// 导出
储
位 Excel
export
function
exportWarehouseAreaPositionExcel
(
query
)
{
return
request
({
url
:
'
/ecw/warehouse-area-position/export-excel
'
,
...
...
src/views/ecw/warehouseArea/index.vue
View file @
64078e62
...
...
@@ -35,7 +35,7 @@
<el-button
size=
"mini"
type=
"text"
@
click=
"handleCreate(scope.row)"
v-if=
"scope.row.pid==0"
v-hasPermi=
"['ecw:warehouse-area:create']"
>
添加库区
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"positionManager(scope.row)"
v-if=
"scope.row.pid>0"
v-hasPermi=
"['ecw:warehouse-area:create']"
>
查看
仓
位
</el-button>
v-hasPermi=
"['ecw:warehouse-area:create']"
>
查看
储
位
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
src/views/ecw/warehouseAreaPosition/index.vue
View file @
64078e62
...
...
@@ -4,8 +4,8 @@
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"
仓
位代码"
prop=
"code"
>
<el-input
v-model=
"queryParams.code"
placeholder=
"请输入
仓
位代码"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-form-item
label=
"
储
位代码"
prop=
"code"
>
<el-input
v-model=
"queryParams.code"
placeholder=
"请输入
储
位代码"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
...
...
@@ -18,7 +18,7 @@
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['ecw:warehouse-area-position:create']"
>
新增
仓
位
</el-button>
v-hasPermi=
"['ecw:warehouse-area-position:create']"
>
新增
储
位
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
...
...
@@ -26,7 +26,7 @@
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
row-key=
"id"
default-expand-all
:tree-props=
"
{children: 'children', hasChildren: 'hasChildren'}">
<el-table-column
label=
"
仓
位代码"
align=
"center"
prop=
"code"
/>
<el-table-column
label=
"
储
位代码"
align=
"center"
prop=
"code"
/>
<el-table-column
label=
"仓库"
align=
"center"
prop=
"warehouseId"
>
<template
slot-scope=
"scope"
>
<span>
{{
warehouseName
(
scope
.
row
.
warehouseId
)
}}
</span>
...
...
@@ -53,7 +53,7 @@
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['ecw:warehouse-area-position:delete']"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleCreate(scope.row)"
v-if=
"scope.row.pid==0"
v-hasPermi=
"['ecw:warehouse-area:create']"
>
添加
仓
位
</el-button>
v-hasPermi=
"['ecw:warehouse-area:create']"
>
添加
储
位
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -68,8 +68,8 @@
<span>
{{parentDo.code}}
</span>
</el-form-item>
<el-form-item
label=
"
仓
位代码"
prop=
"code"
>
<el-input
v-model=
"form.code"
placeholder=
"请输
入仓
位代码"
/>
<el-form-item
label=
"
储
位代码"
prop=
"code"
>
<el-input
v-model=
"form.code"
placeholder=
"请输
储
位代码"
/>
</el-form-item>
<el-form-item
label=
"仓库"
prop=
"warehouseId"
>
...
...
@@ -143,7 +143,7 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
//
仓
位列表
//
储
位列表
list
:
[],
// 弹出层标题
title
:
""
,
...
...
@@ -168,7 +168,7 @@ export default {
form
:
{},
// 表单校验
rules
:
{
code
:
[{
required
:
true
,
message
:
"
仓
位代码不能为空
"
,
trigger
:
"
blur
"
}],
code
:
[{
required
:
true
,
message
:
"
储
位代码不能为空
"
,
trigger
:
"
blur
"
}],
warehouseId
:
[{
required
:
true
,
message
:
"
仓库不能为空
"
,
trigger
:
"
blur
"
}],
domainId
:
[{
required
:
true
,
message
:
"
库域不能为空
"
,
trigger
:
"
blur
"
}],
areaId
:
[{
required
:
true
,
message
:
"
库区不能为空
"
,
trigger
:
"
blur
"
}],
...
...
@@ -331,7 +331,7 @@ computed: {
this
.
parentDo
=
null
;
this
.
form
.
status
=
0
;
this
.
form
.
isShelf
=
1
;
this
.
title
=
"
添加
仓
位
"
;
this
.
title
=
"
添加
储
位
"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -344,7 +344,7 @@ computed: {
}
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"
修改
仓
位
"
;
this
.
title
=
"
修改
储
位
"
;
});
},
/** 提交按钮 */
...
...
@@ -373,7 +373,7 @@ computed: {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
id
=
row
.
id
;
this
.
$modal
.
confirm
(
'
是否确认删除
仓
位编号为"
'
+
id
+
'
"的数据项?
'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'
是否确认删除
储
位编号为"
'
+
id
+
'
"的数据项?
'
).
then
(
function
()
{
return
deleteWarehouseAreaPosition
(
id
);
}).
then
(()
=>
{
this
.
getList
();
...
...
@@ -388,7 +388,7 @@ computed: {
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行导出
this
.
$modal
.
confirm
(
'
是否确认导出所有
仓
位数据项?
'
).
then
(()
=>
{
this
.
$modal
.
confirm
(
'
是否确认导出所有
储
位数据项?
'
).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportWarehouseAreaPositionExcel
(
params
);
}).
then
(
response
=>
{
...
...
@@ -397,7 +397,7 @@ computed: {
}).
catch
(()
=>
{});
},
/** 新增
仓
位 */
/** 新增
储
位 */
handleCreate
(
row
)
{
this
.
reset
();
this
.
parentDo
=
row
;
...
...
@@ -410,7 +410,7 @@ computed: {
this
.
form
.
areaName
=
row
.
areaName
;
this
.
form
.
pid
=
row
.
id
;
this
.
open
=
true
;
this
.
title
=
"
添加
仓
位
"
;
this
.
title
=
"
添加
储
位
"
;
},
}
};
...
...
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