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
8c562b61
Commit
8c562b61
authored
Dec 18, 2023
by
cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3合1
parent
5169ac3b
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
86 additions
and
119 deletions
+86
-119
index.js
src/api/equipment/printingCheck/index.js
+1
-2
InventoryRecord.js
src/api/processMangement/InventoryRecord.js
+1
-2
index.js
src/api/processMangement/processesCheck/index.js
+1
-13
inventoryRecord.js
src/api/sample/inventoryRecord.js
+1
-2
index.vue
src/views/equipment/equipmentCheck/index.vue
+10
-12
index.vue
src/views/equipment/inventoryRecord/index.vue
+16
-19
index.vue
src/views/equipment/printingCheck/index.vue
+5
-8
index.vue
src/views/processManagement/inventoryRecord/index.vue
+18
-20
index.vue
src/views/processManagement/processesCheck/index.vue
+10
-12
index.vue
src/views/sample/errorRecord/index.vue
+11
-14
index.vue
src/views/sample/inventoryRecord/index.vue
+12
-15
No files found.
src/api/equipment/printingCheck/index.js
View file @
8c562b61
import
request
from
'@/utils/request'
// 查询印刷列表
export
function
getYsList
(
query
Params
,
query
Maps
)
{
export
function
getYsList
(
queryMaps
)
{
return
request
({
url
:
'/wbwarehouseys/queryWbWarehouseYsByPagination'
,
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
...
...
src/api/processMangement/InventoryRecord.js
View file @
8c562b61
import
request
from
'@/utils/request'
// TODO: 用来进行工序库的出入库记录的 分页+时间+普通字段的查询
export
function
listLog
(
query
Params
,
query
Maps
)
{
export
function
listLog
(
queryMaps
)
{
return
request
({
url
:
'/wbwarehouselog/queryWbWarehouseLogByPagination'
,
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
...
...
src/api/processMangement/processesCheck/index.js
View file @
8c562b61
import
request
from
'@/utils/request'
// 查询列表
export
function
listdevice
(
query
Params
,
query
Maps
)
{
export
function
listdevice
(
queryMaps
)
{
return
request
({
url
:
'/wbwarehouseinventory/queryWbWarehouseInventoryByPagination'
,
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
...
...
@@ -13,14 +12,3 @@ export function listdevice(queryParams, queryMaps) {
})
}
export
function
listLog
(
queryParams
,
queryMaps
)
{
return
request
({
url
:
'/wbwarehouselog/queryWbWarehouseLogByPagination'
,
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
src/api/sample/inventoryRecord.js
View file @
8c562b61
import
request
from
'@/utils/request'
// TODO: 用来进行工序库的出入库记录的 分页+时间+普通字段的查询
export
function
listLog
(
query
Params
,
query
Maps
)
{
export
function
listLog
(
queryMaps
)
{
return
request
({
url
:
'/wbchemistrylog/queryWbChemistryLogByPagination'
,
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
...
...
src/views/equipment/equipmentCheck/index.vue
View file @
8c562b61
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"query
Entity
.entity.pn"
v-model=
"query
Params
.entity.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"30"
...
...
@@ -14,7 +14,7 @@
</el-form-item>
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Entity
.entity.lot"
v-model=
"query
Params
.entity.lot"
placeholder=
"请输入设备lot"
clearable
size=
"small"
...
...
@@ -23,7 +23,7 @@
/>
</el-form-item>
<el-form-item
label=
"盘点状态"
prop=
"status"
>
<el-select
v-model=
"query
Entity
.entity.status"
placeholder=
"请选择"
clearable
>
<el-select
v-model=
"query
Params
.entity.status"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"item in options"
:key=
"item.value"
...
...
@@ -193,9 +193,7 @@ export default {
// pn: '',
// lot: '',
beginTime
:
''
,
endTime
:
''
},
queryEntity
:
{
endTime
:
''
,
entity
:
{
// TODO: 设备编码
pn
:
''
,
...
...
@@ -250,23 +248,23 @@ export default {
// 去除字段默认为0导致0对应的未盘点无法使用问题
let
flag
=
0
this
.
loading
=
true
if
(
this
.
query
Entity
.
entity
.
status
===
undefined
||
this
.
queryEntity
.
entity
.
status
===
''
)
{
if
(
this
.
query
Params
.
entity
.
status
===
undefined
||
this
.
queryParams
.
entity
.
status
===
''
)
{
flag
=
1
}
if
(
flag
===
1
)
{
this
.
query
Entity
.
entity
.
status
=
-
1
this
.
query
Params
.
entity
.
status
=
-
1
}
if
(
this
.
queryParams
.
beginTime
===
''
||
this
.
queryParams
.
endTime
===
''
)
{
this
.
dateRange
=
[]
}
listdevice
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)
).
then
(
response
=>
{
listdevice
(
this
.
queryParams
).
then
(
response
=>
{
// console.log('list', response)
this
.
equipmentList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
})
if
(
flag
===
1
)
{
this
.
query
Entity
.
entity
.
status
=
undefined
this
.
query
Params
.
entity
.
status
=
undefined
flag
=
0
}
},
...
...
@@ -294,7 +292,7 @@ export default {
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
query
Entity
=
{
this
.
query
Params
=
{
entity
:
{
// TODO: 设备编码
pn
:
''
,
...
...
src/views/equipment/inventoryRecord/index.vue
View file @
8c562b61
<
template
>
<div
class=
"app-container"
>
<div
class=
"ToolBar"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
ref=
"autoGetFocusInput"
v-model=
"query
Entity
.entity.pn"
v-model=
"query
Params
.entity.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -18,7 +18,7 @@
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Entity
.entity.lot"
v-model=
"query
Params
.entity.lot"
placeholder=
"请输入lot"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -29,7 +29,7 @@
<el-form-item
label=
"plocation"
prop=
"plocation"
>
<el-input
v-model=
"query
Entity
.entity.plocation"
v-model=
"query
Params
.entity.plocation"
placeholder=
"请输入plocation"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -40,7 +40,7 @@
<el-form-item
label=
"库类型"
prop=
"ptype"
>
<el-select
v-model=
"query
Entity
.entity.ptype"
v-model=
"query
Params
.entity.ptype"
placeholder=
"请选择库类型"
filterable
clearable
...
...
@@ -57,7 +57,7 @@
<el-form-item
label=
"库状态"
prop=
"poperate"
>
<el-select
v-model=
"query
Entity
.entity.poperate"
v-model=
"query
Params
.entity.poperate"
placeholder=
"请选择库状态"
filterable
clearable
...
...
@@ -299,10 +299,7 @@ export default {
page
:
1
,
rows
:
10
,
beginTime
:
''
,
endTime
:
''
},
queryEntity
:
{
endTime
:
''
,
// TODO: 0表示倒序排序,1表示顺序排序
tableSortMark
:
0
,
...
...
@@ -491,7 +488,7 @@ export default {
/** TODO:查询工序库的出入库记录列表 */
getList
()
{
this
.
loading
=
true
listLog
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)
).
then
(
response
=>
{
listLog
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inventoryRecordList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
...
...
@@ -531,7 +528,7 @@ export default {
},
/** TODO: 重置按钮操作 */
resetQuery
()
{
this
.
query
Entity
=
{
this
.
query
Params
=
{
tableSortMark
:
0
,
entity
:
{
pn
:
''
,
...
...
@@ -555,10 +552,10 @@ export default {
console
.
log
(
'column'
,
val
)
// TODO:按照降序排序
if
(
val
.
order
===
'descending'
)
{
this
.
query
Entity
.
tableSortMark
=
0
this
.
query
Params
.
tableSortMark
=
0
}
else
{
// TODO:按照升序排序
this
.
query
Entity
.
tableSortMark
=
1
this
.
query
Params
.
tableSortMark
=
1
}
this
.
getList
()
},
...
...
@@ -620,11 +617,11 @@ export default {
rows
:
this
.
queryParams
.
rows
,
beginTime
:
this
.
queryParams
.
beginTime
,
endTime
:
this
.
queryParams
.
endTime
,
pn
:
this
.
query
Entity
.
entity
.
pn
,
lot
:
this
.
query
Entity
.
entity
.
lot
,
plocation
:
this
.
query
Entity
.
entity
.
plocation
,
poperate
:
this
.
query
Entity
.
entity
.
poperate
,
ptype
:
this
.
query
Entity
.
entity
.
ptype
pn
:
this
.
query
Params
.
entity
.
pn
,
lot
:
this
.
query
Params
.
entity
.
lot
,
plocation
:
this
.
query
Params
.
entity
.
plocation
,
poperate
:
this
.
query
Params
.
entity
.
poperate
,
ptype
:
this
.
query
Params
.
entity
.
ptype
}
return
exportInventoryRecord
(
obj
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
...
...
src/views/equipment/printingCheck/index.vue
View file @
8c562b61
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form-item
label=
"lot"
prop=
"pn"
>
<el-input
v-model=
"query
Entity
.entity.lot"
v-model=
"query
Params
.entity.lot"
placeholder=
"请输入lot"
clearable
:maxlength=
"30"
...
...
@@ -543,10 +543,7 @@ export default {
page
:
1
,
rows
:
10
,
beginTime
:
''
,
endTime
:
''
}
,
queryEntity
:
{
endTime
:
''
,
entity
:
{
// TODO: lot
lot
:
''
...
...
@@ -633,7 +630,7 @@ export default {
if
(
this
.
queryParams
.
beginTime
===
''
||
this
.
queryParams
.
endTime
===
''
)
{
this
.
dateRange
=
[]
}
getYsList
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)
).
then
(
res
=>
{
getYsList
(
this
.
queryParams
).
then
(
res
=>
{
this
.
ysList
=
res
.
rows
this
.
total
=
res
.
total
this
.
loading
=
false
...
...
@@ -1025,7 +1022,7 @@ export default {
}
,
/** 重置按钮操作 */
resetQuery
()
{
this
.
query
Entity
=
{
this
.
query
Params
=
{
entity
:
{
// TODO: lot
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
8c562b61
<
template
>
<div
class=
"app-container"
>
<div
class=
"ToolBar"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
ref=
"autoGetFocusInput"
v-model=
"query
Entity
.entity.pn"
v-model=
"query
Params
.entity.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -18,7 +18,7 @@
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Entity
.entity.lot"
v-model=
"query
Params
.entity.lot"
placeholder=
"请输入lot"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -29,7 +29,7 @@
<el-form-item
label=
"plocation"
prop=
"plocation"
>
<el-input
v-model=
"query
Entity
.entity.plocation"
v-model=
"query
Params
.entity.plocation"
placeholder=
"请输入plocation"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -40,7 +40,7 @@
<el-form-item
label=
"库类型"
prop=
"ptype"
>
<el-select
v-model=
"query
Entity
.entity.ptype"
v-model=
"query
Params
.entity.ptype"
placeholder=
"请选择库类型"
filterable
clearable
...
...
@@ -57,7 +57,7 @@
<el-form-item
label=
"库状态"
prop=
"poperate"
>
<el-select
v-model=
"query
Entity
.entity.poperate"
v-model=
"query
Params
.entity.poperate"
placeholder=
"请选择库状态"
filterable
clearable
...
...
@@ -121,7 +121,6 @@
:is=
"BaseTable"
:key=
"queryParams.rows"
:all-table-arguments=
"allTableArguments"
@
n-index=
"nIndex"
@
handle-detail=
"handleDetail"
@
change-table-sort=
"changeTableSort"
/>
...
...
@@ -299,10 +298,7 @@ export default {
page
:
1
,
rows
:
10
,
beginTime
:
''
,
endTime
:
''
},
queryEntity
:
{
endTime
:
''
,
// TODO: 0表示倒序排序,1表示顺序排序
tableSortMark
:
0
,
...
...
@@ -473,6 +469,7 @@ export default {
this
.
queryParams
.
beginTime
=
''
this
.
queryParams
.
endTime
=
''
}
console
.
log
(
'queryParams'
,
this
.
queryParams
)
},
replace
(
value
)
{
return
this
.
dictList
.
find
(
item
=>
item
.
dictLabel
===
value
).
dictValue
...
...
@@ -491,7 +488,8 @@ export default {
/** TODO:查询工序库的出入库记录列表 */
getList
()
{
this
.
loading
=
true
listLog
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)).
then
(
response
=>
{
listLog
(
this
.
queryParams
).
then
(
response
=>
{
console
.
log
(
'res'
,
response
)
this
.
inventoryRecordList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
...
...
@@ -531,7 +529,7 @@ export default {
},
/** TODO: 重置按钮操作 */
resetQuery
()
{
this
.
query
Entity
=
{
this
.
query
Params
=
{
tableSortMark
:
0
,
entity
:
{
pn
:
''
,
...
...
@@ -555,10 +553,10 @@ export default {
console
.
log
(
'column'
,
val
)
// TODO:按照降序排序
if
(
val
.
order
===
'descending'
)
{
this
.
query
Entity
.
tableSortMark
=
0
this
.
query
Params
.
tableSortMark
=
0
}
else
{
// TODO:按照升序排序
this
.
query
Entity
.
tableSortMark
=
1
this
.
query
Params
.
tableSortMark
=
1
}
this
.
getList
()
},
...
...
@@ -600,11 +598,11 @@ export default {
rows
:
this
.
queryParams
.
rows
,
beginTime
:
this
.
queryParams
.
beginTime
,
endTime
:
this
.
queryParams
.
endTime
,
pn
:
this
.
query
Entity
.
entity
.
pn
,
lot
:
this
.
query
Entity
.
entity
.
lot
,
plocation
:
this
.
query
Entity
.
entity
.
plocation
,
poperate
:
this
.
query
Entity
.
entity
.
poperate
,
ptype
:
this
.
query
Entity
.
entity
.
ptype
pn
:
this
.
query
Params
.
entity
.
pn
,
lot
:
this
.
query
Params
.
entity
.
lot
,
plocation
:
this
.
query
Params
.
entity
.
plocation
,
poperate
:
this
.
query
Params
.
entity
.
poperate
,
ptype
:
this
.
query
Params
.
entity
.
ptype
}
return
exportInventoryRecord
(
obj
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
...
...
src/views/processManagement/processesCheck/index.vue
View file @
8c562b61
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"query
Entity
.entity.pn"
v-model=
"query
Params
.entity.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"30"
...
...
@@ -14,7 +14,7 @@
</el-form-item>
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Entity
.entity.lot"
v-model=
"query
Params
.entity.lot"
placeholder=
"请输入设备lot"
clearable
size=
"small"
...
...
@@ -23,7 +23,7 @@
/>
</el-form-item>
<el-form-item
label=
"盘点状态"
prop=
"status"
>
<el-select
v-model=
"query
Entity
.entity.status"
placeholder=
"请选择"
clearable
>
<el-select
v-model=
"query
Params
.entity.status"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"item in options"
:key=
"item.value"
...
...
@@ -181,9 +181,7 @@ export default {
// pn: '',
// lot: '',
beginTime
:
''
,
endTime
:
''
},
queryEntity
:
{
endTime
:
''
,
entity
:
{
// TODO: 设备编码
pn
:
''
,
...
...
@@ -237,23 +235,23 @@ export default {
// 去除字段默认为0导致0对应的未盘点无法使用问题
let
flag
=
0
this
.
loading
=
true
if
(
this
.
query
Entity
.
entity
.
status
===
undefined
||
this
.
queryEntity
.
entity
.
status
===
''
)
{
if
(
this
.
query
Params
.
entity
.
status
===
undefined
||
this
.
queryParams
.
entity
.
status
===
''
)
{
flag
=
1
}
if
(
flag
===
1
)
{
this
.
query
Entity
.
entity
.
status
=
-
1
this
.
query
Params
.
entity
.
status
=
-
1
}
if
(
this
.
queryParams
.
beginTime
===
''
||
this
.
queryParams
.
endTime
===
''
)
{
this
.
dateRange
=
[]
}
listdevice
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)
).
then
(
response
=>
{
listdevice
(
this
.
queryParams
).
then
(
response
=>
{
// console.log('list', response)
this
.
equipmentList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
})
if
(
flag
===
1
)
{
this
.
query
Entity
.
entity
.
status
=
undefined
this
.
query
Params
.
entity
.
status
=
undefined
flag
=
0
}
},
...
...
@@ -281,7 +279,7 @@ export default {
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
query
Entity
=
{
this
.
query
Params
=
{
entity
:
{
// TODO: 设备编码
pn
:
''
,
...
...
src/views/sample/errorRecord/index.vue
View file @
8c562b61
<
template
>
<div
class=
"app-container"
>
<div
class=
"ToolBar"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
ref=
"autoGetFocusInput"
v-model=
"query
Entity
.entity.pn"
v-model=
"query
Params
.entity.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -17,7 +17,7 @@
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Entity
.entity.lot"
v-model=
"query
Params
.entity.lot"
placeholder=
"请输入lot"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -181,10 +181,7 @@ export default {
page
:
1
,
rows
:
10
,
beginTime
:
''
,
endTime
:
''
},
queryEntity
:
{
endTime
:
''
,
// TODO: 0表示倒序排序,1表示顺序排序
tableSortMark
:
0
,
entity
:
{
...
...
@@ -357,7 +354,7 @@ export default {
/** TODO:查询工序库的出入库记录列表 */
getList
()
{
this
.
loading
=
true
listLog
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)
).
then
(
response
=>
{
listLog
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inventoryRecordList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
...
...
@@ -385,7 +382,7 @@ export default {
},
/** TODO: 重置按钮操作 */
resetQuery
()
{
this
.
query
Entity
=
{
this
.
query
Params
=
{
tableSortMark
:
0
,
entity
:
{
pn
:
''
,
...
...
@@ -406,10 +403,10 @@ export default {
console
.
log
(
'column'
,
val
)
// TODO:按照降序排序
if
(
val
.
order
===
'descending'
)
{
this
.
query
Entity
.
tableSortMark
=
0
this
.
query
Params
.
tableSortMark
=
0
}
else
{
// TODO:按照升序排序
this
.
query
Entity
.
tableSortMark
=
1
this
.
query
Params
.
tableSortMark
=
1
}
this
.
getList
()
},
...
...
@@ -433,9 +430,9 @@ export default {
row
:
this
.
queryParams
.
rows
,
beginTime
:
this
.
queryParams
.
beginTime
,
endTime
:
this
.
queryParams
.
endTime
,
pn
:
this
.
query
Entity
.
entity
.
pn
,
lot
:
this
.
query
Entity
.
entity
.
lot
,
poperate
:
this
.
query
Entity
.
entity
.
poperate
pn
:
this
.
query
Params
.
entity
.
pn
,
lot
:
this
.
query
Params
.
entity
.
lot
,
poperate
:
this
.
query
Params
.
entity
.
poperate
}
exportInventoryRecord
(
obj
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
...
...
src/views/sample/inventoryRecord/index.vue
View file @
8c562b61
<
template
>
<div
class=
"app-container"
>
<div
class=
"ToolBar"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
ref=
"autoGetFocusInput"
v-model=
"query
Entity
.entity.pn"
v-model=
"query
Params
.entity.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -17,7 +17,7 @@
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Entity
.entity.lot"
v-model=
"query
Params
.entity.lot"
placeholder=
"请输入lot"
clearable
:maxlength=
"inputMaxLength"
...
...
@@ -28,7 +28,7 @@
<el-form-item
label=
"库状态"
prop=
"poperate"
>
<el-select
v-model=
"query
Entity
.entity.poperate"
v-model=
"query
Params
.entity.poperate"
placeholder=
"请选择库状态"
filterable
clearable
...
...
@@ -214,10 +214,7 @@ export default {
page
:
1
,
rows
:
10
,
beginTime
:
''
,
endTime
:
''
},
queryEntity
:
{
endTime
:
''
,
// TODO: 0表示倒序排序,1表示顺序排序
tableSortMark
:
0
,
entity
:
{
...
...
@@ -390,7 +387,7 @@ export default {
/** TODO:查询工序库的出入库记录列表 */
getList
()
{
this
.
loading
=
true
listLog
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)
).
then
(
response
=>
{
listLog
(
this
.
queryParams
).
then
(
response
=>
{
this
.
inventoryRecordList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
...
...
@@ -418,7 +415,7 @@ export default {
},
/** TODO: 重置按钮操作 */
resetQuery
()
{
this
.
query
Entity
=
{
this
.
query
Params
=
{
tableSortMark
:
0
,
entity
:
{
pn
:
''
,
...
...
@@ -439,10 +436,10 @@ export default {
console
.
log
(
'column'
,
val
)
// TODO:按照降序排序
if
(
val
.
order
===
'descending'
)
{
this
.
query
Entity
.
tableSortMark
=
0
this
.
query
Params
.
tableSortMark
=
0
}
else
{
// TODO:按照升序排序
this
.
query
Entity
.
tableSortMark
=
1
this
.
query
Params
.
tableSortMark
=
1
}
this
.
getList
()
},
...
...
@@ -466,9 +463,9 @@ export default {
row
:
this
.
queryParams
.
rows
,
beginTime
:
this
.
queryParams
.
beginTime
,
endTime
:
this
.
queryParams
.
endTime
,
pn
:
this
.
query
Entity
.
entity
.
pn
,
lot
:
this
.
query
Entity
.
entity
.
lot
,
poperate
:
this
.
query
Entity
.
entity
.
poperate
pn
:
this
.
query
Params
.
entity
.
pn
,
lot
:
this
.
query
Params
.
entity
.
lot
,
poperate
:
this
.
query
Params
.
entity
.
poperate
}
exportInventoryRecord
(
obj
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
...
...
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