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
893718e0
Commit
893718e0
authored
Jul 31, 2023
by
高宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/project1' into project1
parents
5b48fb14
aa4027d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
4 deletions
+39
-4
InventoryRecord.js
src/api/processMangement/InventoryRecord.js
+10
-0
index.vue
src/components/Table/BaseTable/index.vue
+2
-2
index.vue
src/views/processManagement/inventoryRecord/index.vue
+27
-2
No files found.
src/api/processMangement/InventoryRecord.js
View file @
893718e0
...
...
@@ -9,6 +9,7 @@ export function listLog(queryParams) {
})
}
/* TODO: 用来查询单项出入库记录的废弃详情信息 */
export
function
findSingleLogDetail
(
singleLogIdAndFqYs
)
{
return
request
({
url
:
'/wbwarehouselog/detail'
,
...
...
@@ -19,3 +20,12 @@ export function findSingleLogDetail(singleLogIdAndFqYs) {
}
})
}
/* TODO: 用来导出表单信息 */
export
function
exportInventoryRecord
()
{
return
request
({
url
:
'/wbwarehouselog/export'
,
method
:
'get'
,
responseType
:
'blob'
})
}
src/components/Table/BaseTable/index.vue
View file @
893718e0
<
template
>
<div
style=
"padding:5px 10px"
>
<div
class=
"mb12 font-small-bold"
>
{{
allTableArguments
.
listName
}}
</div>
<div
class=
"tableList"
style=
" height:600px;"
>
<el-scrollbar
style=
"height: 100%;"
>
<div
class=
"tableList"
>
<el-scrollbar>
<el-table
v-loading=
"allTableArguments.loading"
class=
"processList"
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
893718e0
...
...
@@ -212,7 +212,7 @@
</
template
>
<
script
>
import
{
listLog
,
findSingleLogDetail
}
from
'@/api/processMangement/InventoryRecord'
import
{
listLog
,
findSingleLogDetail
,
exportInventoryRecord
}
from
'@/api/processMangement/InventoryRecord'
import
BaseTable
from
'@/components/Table/BaseTable/index.vue'
export
default
{
...
...
@@ -490,7 +490,7 @@ export default {
/* TODO: 如果库状态==='4' 并且返回的状态码为200的时候,才会将可变的详情字段设置为true,去激活并打开 */
this
.
activateAbandonedState
=
true
}
else
{
/* TODO: 如果状态码不对则不会激活可变字段,并且抛出错误信息response.message */
/* TODO: 如果状态码不对则不会激活可变字段,
只会对普通字段进行赋值,
并且抛出错误信息response.message */
this
.
$message
({
showClose
:
true
,
message
:
response
.
message
,
...
...
@@ -503,6 +503,31 @@ export default {
}
this
.
title
=
'记录详情'
this
.
openDetails
=
true
},
handleExport
()
{
this
.
$confirm
(
'是否确认导出所有出入库记录信息?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
exportInventoryRecord
().
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
// TODO: 创建下载的链接
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
downloadElement
.
href
=
href
// TODO: 下载后文件名
downloadElement
.
download
=
'出入库记录'
+
'.xls'
document
.
body
.
appendChild
(
downloadElement
)
// TODO: 点击下载
downloadElement
.
click
()
// TODO: 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 释放掉blob对象
window
.
URL
.
revokeObjectURL
(
href
)
// this.download(response.msg);
})
})
}
}
}
...
...
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