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