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
174846ff
Commit
174846ff
authored
Aug 10, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除菜单
parent
1dc0b97e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
186 additions
and
138 deletions
+186
-138
InventoryRecord.js
src/api/processMangement/InventoryRecord.js
+2
-1
basicInformation.js
src/api/sample/basicInformation.js
+2
-1
inventoryRecord.js
src/api/sample/inventoryRecord.js
+2
-1
basicInfo.vue
src/views/equipment/basicInfo.vue
+25
-23
management.vue
src/views/equipment/management.vue
+27
-21
index.vue
src/views/processManagement/basicProcessManagement/index.vue
+26
-23
index.vue
src/views/processManagement/inventoryRecord/index.vue
+41
-23
index.vue
src/views/sample/basicInformation/index.vue
+22
-22
index.vue
src/views/sample/inventoryRecord/index.vue
+39
-23
No files found.
src/api/processMangement/InventoryRecord.js
View file @
174846ff
...
@@ -26,10 +26,11 @@ export function findSingleLogDetail(singleLogIdAndPn) {
...
@@ -26,10 +26,11 @@ export function findSingleLogDetail(singleLogIdAndPn) {
}
}
/* TODO: 用来导出表单信息 */
/* TODO: 用来导出表单信息 */
export
function
exportInventoryRecord
()
{
export
function
exportInventoryRecord
(
params
)
{
return
request
({
return
request
({
url
:
'/wbwarehouselog/exportLogWithDetails'
,
url
:
'/wbwarehouselog/exportLogWithDetails'
,
method
:
'get'
,
method
:
'get'
,
params
,
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
src/api/sample/basicInformation.js
View file @
174846ff
...
@@ -47,10 +47,11 @@ export function deleteLogical(id) {
...
@@ -47,10 +47,11 @@ export function deleteLogical(id) {
})
})
}
}
// 导出信息接口
// 导出信息接口
export
function
exporTable
()
{
export
function
exporTable
(
params
)
{
return
request
({
return
request
({
url
:
'/wbchemistrybaseinfo/export'
,
url
:
'/wbchemistrybaseinfo/export'
,
method
:
'get'
,
method
:
'get'
,
params
,
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
src/api/sample/inventoryRecord.js
View file @
174846ff
...
@@ -26,10 +26,11 @@ export function findSingleLogDetail(singleLogIdAndPn) {
...
@@ -26,10 +26,11 @@ export function findSingleLogDetail(singleLogIdAndPn) {
}
}
/* TODO: 用来导出表单信息 */
/* TODO: 用来导出表单信息 */
export
function
exportInventoryRecord
()
{
export
function
exportInventoryRecord
(
params
)
{
return
request
({
return
request
({
url
:
'/wbchemistrylog/export'
,
url
:
'/wbchemistrylog/export'
,
method
:
'get'
,
method
:
'get'
,
params
,
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
src/views/equipment/basicInfo.vue
View file @
174846ff
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
add
,
listBasicInfo
,
updataInfo
,
getDetailById
,
deleteLogical
,
exportBasicInfo
}
from
'@/api/equipment/basicInfo'
import
{
add
,
listBasicInfo
,
updataInfo
,
getDetailById
,
deleteLogical
,
exportBasicInfo
}
from
'@/api/equipment/basicInfo'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
getDictData
}
from
'@/api/equipment/application'
import
{
getDictData
}
from
'@/api/equipment/application'
export
default
{
export
default
{
...
@@ -511,28 +511,30 @@ export default {
...
@@ -511,28 +511,30 @@ export default {
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
this
.
$confirm
(
'是否确认导出工序库信息?'
,
'警告'
,
{
const
obj
=
{
confirmButtonText
:
'确定'
,
page
:
this
.
queryParams
.
page
,
cancelButtonText
:
'取消'
,
rows
:
this
.
queryParams
.
rows
,
type
:
'warning'
pn
:
this
.
queryParams
.
pn
,
}).
then
(
function
()
{
pgx
:
this
.
queryParams
.
pgx
,
return
exportBasicInfo
({
ptype
:
'2'
}).
then
(
response
=>
{
delFlag
:
0
,
const
blob
=
new
Blob
([
response
])
ptype
:
this
.
queryParams
.
ptype
const
downloadElement
=
document
.
createElement
(
'a'
)
}
// TODO: 创建下载的链接
exportBasicInfo
(
obj
).
then
(
response
=>
{
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
const
blob
=
new
Blob
([
response
])
downloadElement
.
href
=
href
const
downloadElement
=
document
.
createElement
(
'a'
)
// TODO: 下载后文件名
// TODO: 创建下载的链接
downloadElement
.
download
=
'设备库基本信息'
+
'.xls'
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
href
=
href
// TODO: 点击下载
// TODO: 下载后文件名
downloadElement
.
click
()
downloadElement
.
download
=
'设备库基本信息'
+
'.xls'
// TODO: 下载完成移除元素
document
.
body
.
appendChild
(
downloadElement
)
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 点击下载
// TODO: 释放掉blob对象
downloadElement
.
click
()
window
.
URL
.
revokeObjectURL
(
href
)
// TODO: 下载完成移除元素
// this.download(response.msg);
document
.
body
.
removeChild
(
downloadElement
)
})
// TODO: 释放掉blob对象
window
.
URL
.
revokeObjectURL
(
href
)
// this.download(response.msg);
})
})
}
}
}
}
...
...
src/views/equipment/management.vue
View file @
174846ff
...
@@ -641,27 +641,33 @@ export default {
...
@@ -641,27 +641,33 @@ export default {
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
this
.
$confirm
(
'是否确认导出设备管理信息?'
,
'警告'
,
{
console
.
log
(
'1111'
)
confirmButtonText
:
'确定'
,
const
obj
=
{
cancelButtonText
:
'取消'
,
page
:
this
.
queryParams
.
page
,
type
:
'warning'
rows
:
this
.
queryParams
.
rows
,
}).
then
(
function
()
{
pn
:
this
.
queryParams
.
pn
,
return
exportdevice
({
ptype
:
1
}).
then
(
response
=>
{
lot
:
this
.
queryParams
.
lot
,
const
blob
=
new
Blob
([
response
])
plocation
:
this
.
queryParams
.
plocation
,
const
downloadElement
=
document
.
createElement
(
'a'
)
pstatus
:
this
.
queryParams
.
pstatus
,
// TODO: 创建下载的链接
ptype
:
this
.
queryParams
.
ptype
,
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
delFlag
:
this
.
queryParams
.
delFlag
downloadElement
.
href
=
href
}
// TODO: 下载后文件名
console
.
log
(
'obj'
,
obj
)
downloadElement
.
download
=
'设备管理信息'
+
'.xls'
exportdevice
(
obj
).
then
(
response
=>
{
document
.
body
.
appendChild
(
downloadElement
)
const
blob
=
new
Blob
([
response
])
// TODO: 点击下载
const
downloadElement
=
document
.
createElement
(
'a'
)
downloadElement
.
click
()
// TODO: 创建下载的链接
// TODO: 下载完成移除元素
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
document
.
body
.
removeChild
(
downloadElement
)
downloadElement
.
href
=
href
// TODO: 释放掉blob对象
// TODO: 下载后文件名
window
.
URL
.
revokeObjectURL
(
href
)
downloadElement
.
download
=
'设备管理信息'
+
'.xls'
})
document
.
body
.
appendChild
(
downloadElement
)
// TODO: 点击下载
downloadElement
.
click
()
// TODO: 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 释放掉blob对象
window
.
URL
.
revokeObjectURL
(
href
)
})
})
}
}
}
}
...
...
src/views/processManagement/basicProcessManagement/index.vue
View file @
174846ff
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"parnk:"
prop=
"prank"
>
<el-form-item
label=
"parnk:"
prop=
"prank"
>
<el-input
v-model
.
trim=
"singleDetails.prank"
:readonly=
"true"
:maxlength=
"100"
/>
<el-input
v-model
.
trim=
"singleDetails.prank"
:readonly=
"true"
:maxlength=
"100"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -699,28 +699,31 @@ export default {
...
@@ -699,28 +699,31 @@ export default {
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
this
.
$confirm
(
'是否确认导出工序库信息?'
,
'警告'
,
{
const
obj
=
{
confirmButtonText
:
'确定'
,
page
:
this
.
queryParams
.
page
,
cancelButtonText
:
'取消'
,
rows
:
this
.
queryParams
.
rows
,
type
:
'warning'
lot
:
this
.
queryParams
.
lot
,
}).
then
(
function
()
{
plocation
:
this
.
queryParams
.
plocation
,
return
exportdevice
({
ptype
:
'2'
}).
then
(
response
=>
{
pstatus
:
this
.
queryParams
.
pstatus
,
const
blob
=
new
Blob
([
response
])
ptype
:
this
.
queryParams
.
ptype
,
const
downloadElement
=
document
.
createElement
(
'a'
)
delFlag
:
this
.
queryParams
.
delFlag
// TODO: 创建下载的链接
}
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
exportdevice
(
obj
).
then
(
response
=>
{
downloadElement
.
href
=
href
const
blob
=
new
Blob
([
response
])
// TODO: 下载后文件名
const
downloadElement
=
document
.
createElement
(
'a'
)
downloadElement
.
download
=
'设备工序库信息'
+
'.xls'
// TODO: 创建下载的链接
document
.
body
.
appendChild
(
downloadElement
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// TODO: 点击下载
downloadElement
.
href
=
href
downloadElement
.
click
()
// TODO: 下载后文件名
// TODO: 下载完成移除元素
downloadElement
.
download
=
'设备工序库信息'
+
'.xls'
document
.
body
.
removeChild
(
downloadElement
)
document
.
body
.
appendChild
(
downloadElement
)
// TODO: 释放掉blob对象
// TODO: 点击下载
window
.
URL
.
revokeObjectURL
(
href
)
downloadElement
.
click
()
// this.download(response.msg);
// TODO: 下载完成移除元素
})
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 释放掉blob对象
window
.
URL
.
revokeObjectURL
(
href
)
// this.download(response.msg);
})
})
}
}
}
}
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
174846ff
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
@
change=
"handleChange"
/>
/>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -288,7 +289,9 @@ export default {
...
@@ -288,7 +289,9 @@ export default {
dateRange
:
[],
dateRange
:
[],
queryParams
:
{
queryParams
:
{
page
:
1
,
page
:
1
,
rows
:
10
rows
:
10
,
beginTime
:
''
,
endTime
:
''
},
},
queryEntity
:
{
queryEntity
:
{
...
@@ -452,6 +455,16 @@ export default {
...
@@ -452,6 +455,16 @@ export default {
this
.
$refs
.
autoGetFocusInput
.
focus
()
this
.
$refs
.
autoGetFocusInput
.
focus
()
},
},
methods
:
{
methods
:
{
handleChange
()
{
console
.
log
(
'dateRange'
,
this
.
dateRange
)
if
(
this
.
dateRange
!==
null
)
{
this
.
queryParams
.
beginTime
=
this
.
dateRange
[
0
]
+
' 00:00:00'
this
.
queryParams
.
endTime
=
this
.
dateRange
[
1
]
+
' 23:59:00'
}
else
{
this
.
queryParams
.
beginTime
=
''
this
.
queryParams
.
endTime
=
''
}
},
replace
(
value
)
{
replace
(
value
)
{
return
this
.
dictList
.
find
(
item
=>
item
.
dictLabel
===
value
).
dictValue
return
this
.
dictList
.
find
(
item
=>
item
.
dictLabel
===
value
).
dictValue
},
},
...
@@ -573,28 +586,33 @@ export default {
...
@@ -573,28 +586,33 @@ export default {
this
.
openDetails
=
true
this
.
openDetails
=
true
},
},
handleExport
()
{
handleExport
()
{
this
.
$confirm
(
'是否确认导出所有出入库记录信息?'
,
'警告'
,
{
const
obj
=
{
confirmButtonText
:
'确定'
,
page
:
this
.
queryParams
.
page
,
cancelButtonText
:
'取消'
,
rows
:
this
.
queryParams
.
rows
,
type
:
'warning'
beginTime
:
this
.
queryParams
.
beginTime
,
}).
then
(
function
()
{
endTime
:
this
.
queryParams
.
endTime
,
return
exportInventoryRecord
().
then
(
response
=>
{
pn
:
this
.
queryEntity
.
entity
.
pn
,
const
blob
=
new
Blob
([
response
])
lot
:
this
.
queryEntity
.
entity
.
lot
,
const
downloadElement
=
document
.
createElement
(
'a'
)
plocation
:
this
.
queryEntity
.
entity
.
plocation
,
// TODO: 创建下载的链接
poperate
:
this
.
queryEntity
.
entity
.
poperate
,
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
ptype
:
this
.
queryEntity
.
entity
.
ptype
downloadElement
.
href
=
href
}
// TODO: 下载后文件名
return
exportInventoryRecord
(
obj
).
then
(
response
=>
{
downloadElement
.
download
=
'出入库记录'
+
'.xls'
const
blob
=
new
Blob
([
response
])
document
.
body
.
appendChild
(
downloadElement
)
const
downloadElement
=
document
.
createElement
(
'a'
)
// TODO: 点击下载
// TODO: 创建下载的链接
downloadElement
.
click
()
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// TODO: 下载完成移除元素
downloadElement
.
href
=
href
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 下载后文件名
// TODO: 释放掉blob对象
downloadElement
.
download
=
'出入库记录'
+
'.xls'
window
.
URL
.
revokeObjectURL
(
href
)
document
.
body
.
appendChild
(
downloadElement
)
// this.download(response.msg);
// TODO: 点击下载
})
downloadElement
.
click
()
// TODO: 下载完成移除元素
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 释放掉blob对象
window
.
URL
.
revokeObjectURL
(
href
)
// this.download(response.msg);
})
})
}
}
}
}
...
...
src/views/sample/basicInformation/index.vue
View file @
174846ff
...
@@ -315,28 +315,28 @@ export default {
...
@@ -315,28 +315,28 @@ export default {
this
.
title
=
'添加基础信息表单'
this
.
title
=
'添加基础信息表单'
}
,
}
,
handleExport
()
{
handleExport
()
{
this
.
$confirm
(
'是否确认导出所有样品库记录信息?'
,
'警告'
,
{
const
obj
=
{
confirmButtonText
:
'确定'
,
page
:
this
.
queryParams
.
page
,
cancelButtonText
:
'取消'
,
rows
:
this
.
queryParams
.
rows
,
type
:
'warning'
pn
:
this
.
queryParams
.
pn
,
}
).
then
(
function
()
{
name
:
this
.
queryParams
.
name
return
exporTable
().
then
(
response
=>
{
}
const
blob
=
new
Blob
([
response
])
exporTable
(
obj
).
then
(
response
=>
{
const
downloadElement
=
document
.
createElement
(
'a'
)
const
blob
=
new
Blob
([
response
]
)
// TODO: 创建下载的链接
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// TODO: 创建下载的链接
downloadElement
.
href
=
href
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// TODO: 下载后文件名
downloadElement
.
href
=
href
downloadElement
.
download
=
'样品库记录'
+
'.xls'
// TODO: 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
download
=
'样品库记录'
+
'.xls'
// TODO: 点击下载
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// TODO: 点击下载
// TODO: 下载完成移除元素
downloadElement
.
click
()
document
.
body
.
removeChild
(
downloadElement
)
// TODO: 下载完成移除元素
// TODO: 释放掉blob对象
document
.
body
.
removeChild
(
downloadElement
)
window
.
URL
.
revokeObjectURL
(
href
)
// TODO: 释放掉blob对象
// this.download(response.msg);
window
.
URL
.
revokeObjectURL
(
href
)
}
)
// this.download(response.msg);
}
)
}
)
}
}
}
}
...
...
src/views/sample/inventoryRecord/index.vue
View file @
174846ff
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
@
change=
"handleChange"
/>
/>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -218,7 +219,9 @@ export default {
...
@@ -218,7 +219,9 @@ export default {
dateRange
:
[],
dateRange
:
[],
queryParams
:
{
queryParams
:
{
page
:
1
,
page
:
1
,
rows
:
10
rows
:
10
,
beginTime
:
''
,
endTime
:
''
},
},
queryEntity
:
{
queryEntity
:
{
...
@@ -364,6 +367,16 @@ export default {
...
@@ -364,6 +367,16 @@ export default {
this
.
$refs
.
autoGetFocusInput
.
focus
()
this
.
$refs
.
autoGetFocusInput
.
focus
()
},
},
methods
:
{
methods
:
{
handleChange
()
{
console
.
log
(
'dateRange'
,
this
.
dateRange
)
if
(
this
.
dateRange
!==
null
)
{
this
.
queryParams
.
beginTime
=
this
.
dateRange
[
0
]
+
' 00:00:00'
this
.
queryParams
.
endTime
=
this
.
dateRange
[
1
]
+
' 23:59:00'
}
else
{
this
.
queryParams
.
beginTime
=
''
this
.
queryParams
.
endTime
=
''
}
},
// 回车跳转下一个输入框
// 回车跳转下一个输入框
focusNextInput
(
form
)
{
focusNextInput
(
form
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -455,28 +468,31 @@ export default {
...
@@ -455,28 +468,31 @@ export default {
this
.
openDetails
=
true
this
.
openDetails
=
true
},
},
handleExport
()
{
handleExport
()
{
this
.
$confirm
(
'是否确认导出所有出入库记录信息?'
,
'警告'
,
{
const
obj
=
{
confirmButtonText
:
'确定'
,
page
:
this
.
queryParams
.
page
,
cancelButtonText
:
'取消'
,
row
:
this
.
queryParams
.
rows
,
type
:
'warning'
beginTime
:
this
.
queryParams
.
beginTime
,
}).
then
(
function
()
{
endTime
:
this
.
queryParams
.
endTime
,
return
exportInventoryRecord
().
then
(
response
=>
{
pn
:
this
.
queryEntity
.
entity
.
pn
,
const
blob
=
new
Blob
([
response
])
lot
:
this
.
queryEntity
.
entity
.
lot
,
const
downloadElement
=
document
.
createElement
(
'a'
)
poperate
:
this
.
queryEntity
.
entity
.
poperate
// TODO: 创建下载的链接
}
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
exportInventoryRecord
(
obj
).
then
(
response
=>
{
downloadElement
.
href
=
href
const
blob
=
new
Blob
([
response
])
// TODO: 下载后文件名
const
downloadElement
=
document
.
createElement
(
'a'
)
downloadElement
.
download
=
'出入库记录'
+
'.xls'
// TODO: 创建下载的链接
document
.
body
.
appendChild
(
downloadElement
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// TODO: 点击下载
downloadElement
.
href
=
href
downloadElement
.
click
()
// TODO: 下载后文件名
// TODO: 下载完成移除元素
downloadElement
.
download
=
'出入库记录'
+
'.xls'
document
.
body
.
removeChild
(
downloadElement
)
document
.
body
.
appendChild
(
downloadElement
)
// TODO: 释放掉blob对象
// TODO: 点击下载
window
.
URL
.
revokeObjectURL
(
href
)
downloadElement
.
click
()
// this.download(response.msg);
// 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