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
cf526c0c
Commit
cf526c0c
authored
Mar 07, 2024
by
YuY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.调整设备入库页面样式;2.添加操作提示;3.添加“库存管理”按照id删除库存信息按钮
parent
f650796b
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
51 deletions
+115
-51
magnagement.js
src/api/magnagement.js
+8
-0
index.vue
src/views/equipment/inventoryManagement/index.vue
+25
-2
index.vue
src/views/equipment/inventoryRecord/index.vue
+1
-0
index.vue
src/views/equipment/warehouse/index.vue
+81
-49
No files found.
src/api/magnagement.js
View file @
cf526c0c
...
...
@@ -108,6 +108,7 @@ export function add(data) {
}
})
}
// 批量添加
export
function
addBatch
(
data
)
{
return
request
({
url
:
'/wbwarehouse-test/add-test'
,
...
...
@@ -118,6 +119,13 @@ export function addBatch(data) {
}
})
}
//根据id删除库存
export
function
deleteWareHouse
(
id
)
{
return
request
({
url
:
'/wbwarehouse-test/deleteWareHouse/'
+
id
,
method
:
'delete'
})
}
// 再利用
export
function
recycle
(
data
)
{
return
request
({
...
...
src/views/equipment/inventoryManagement/index.vue
View file @
cf526c0c
...
...
@@ -81,7 +81,7 @@
<span>
{{
scope
.
row
.
updateDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"1
1
0px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"1
5
0px"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"mini"
@
click=
"handleDetail(scope.row)"
>
详情
...
...
@@ -92,6 +92,13 @@
style=
"color: #49cec9"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -236,7 +243,7 @@ import {
exportWarehouse
,
importExcel
,
uploadFalseFile
,
importTemplate
importTemplate
,
deleteWareHouse
}
from
'@/api/magnagement'
import
{
resetForm
}
from
'@/utils/common'
...
...
@@ -423,6 +430,22 @@ export default {
}
})
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
return
deleteWareHouse
(
id
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
getList
()
}
})
})
},
/** 导出按钮操作 */
handleExport
()
{
...
...
src/views/equipment/inventoryRecord/index.vue
View file @
cf526c0c
...
...
@@ -489,6 +489,7 @@ export default {
/** TODO:查询工序库的出入库记录列表 */
getList
()
{
this
.
loading
=
true
console
.
log
(
this
.
queryParams
)
listLog
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inventoryRecordList
=
response
.
rows
this
.
total
=
response
.
total
...
...
src/views/equipment/warehouse/index.vue
View file @
cf526c0c
This diff is collapsed.
Click to expand it.
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