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
79d3a174
Commit
79d3a174
authored
Jul 31, 2023
by
CenXinYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化样品库查询功能
Signed-off-by:
CenXinYi
<
2810162984@qq.com
>
parent
3e0354d0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
153 deletions
+122
-153
InventoryRecord.js
src/api/processMangement/InventoryRecord.js
+7
-3
inventoryRecord.js
src/api/sample/inventoryRecord.js
+7
-3
index.vue
src/views/processManagement/inventoryRecord/index.vue
+22
-18
index.vue
src/views/sample/inventoryRecord/index.vue
+86
-129
No files found.
src/api/processMangement/InventoryRecord.js
View file @
79d3a174
import
request
from
'@/utils/request'
// TODO: 用来进行工序库的出入库记录的 分页+时间+普通字段的查询
export
function
listLog
(
queryParams
)
{
export
function
listLog
(
queryParams
,
queryMaps
)
{
return
request
({
url
:
'/wbwarehouselog/queryWbWarehouseLogByPagination'
,
method
:
'get'
,
params
:
queryParams
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
...
...
src/api/sample/inventoryRecord.js
View file @
79d3a174
import
request
from
'@/utils/request'
// TODO: 用来进行工序库的出入库记录的 分页+时间+普通字段的查询
export
function
listLog
(
queryParams
)
{
export
function
listLog
(
queryParams
,
queryMaps
)
{
return
request
({
url
:
'/wbchemistrylog/queryWbChemistryLogByPagination'
,
method
:
'get'
,
params
:
queryParams
method
:
'post'
,
params
:
queryParams
,
data
:
queryMaps
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
...
...
src/views/processManagement/inventoryRecord/index.vue
View file @
79d3a174
<
template
>
<div
class=
"app-container"
>
<div
class=
"ToolBar"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Params
"
:inline=
"true"
>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
style=
"padding: 0 0 0 10px"
:model=
"query
Entity
"
:inline=
"true"
>
<el-form-item
label=
"pn"
prop=
"pn"
>
<el-input
v-model=
"query
Params
.pn"
v-model=
"query
Entity.entity
.pn"
placeholder=
"请输入pn"
clearable
:maxlength=
"20"
...
...
@@ -16,7 +16,7 @@
<el-form-item
label=
"lot"
prop=
"lot"
>
<el-input
v-model=
"query
Params
.lot"
v-model=
"query
Entity.entity
.lot"
placeholder=
"请输入lot"
clearable
:maxlength=
"20"
...
...
@@ -27,7 +27,7 @@
<el-form-item
label=
"plocation"
prop=
"plocation"
>
<el-input
v-model=
"query
Params
.plocation"
v-model=
"query
Entity.entity
.plocation"
placeholder=
"请输入plocation"
clearable
:maxlength=
"20"
...
...
@@ -38,7 +38,7 @@
<el-form-item
label=
"库类型"
prop=
"ptype"
>
<el-select
v-model=
"query
Params
.ptype"
v-model=
"query
Entity.entity
.ptype"
placeholder=
"请选择库类型"
filterable
clearable
...
...
@@ -55,7 +55,7 @@
<el-form-item
label=
"库状态"
prop=
"poperate"
>
<el-select
v-model=
"query
Params
.poperate"
v-model=
"query
Entity.entity
.poperate"
placeholder=
"请选择库状态"
filterable
clearable
...
...
@@ -277,17 +277,21 @@ export default {
dateRange
:
[],
queryParams
:
{
page
:
1
,
rows
:
10
,
// TODO: 设备编码
pn
:
undefined
,
// TODO: lot
lot
:
undefined
,
// TODO: 位置
plocation
:
undefined
,
// TODO: 库状态 1 入,2出,3修正,4废弃
poperate
:
undefined
,
// TODO: 库类型 1设备库 2工序库
ptype
:
undefined
rows
:
10
},
queryEntity
:
{
entity
:
{
// TODO: 设备编码
pn
:
''
,
// TODO: lot
lot
:
''
,
// TODO: 位置
plocation
:
''
,
// TODO: 库状态 1 入,2出,3修正,4废弃
poperate
:
''
,
// TODO: 库类型 1设备库 2工序库
ptype
:
''
}
},
// TODO: list记录表名
listName
:
'出入库记录列表'
,
...
...
@@ -422,7 +426,7 @@ export default {
/** TODO:查询工序库的出入库记录列表 */
getList
()
{
this
.
loading
=
true
listLog
(
this
.
addDateRange
(
this
.
queryParams
,
this
.
dateRange
)).
then
(
response
=>
{
listLog
(
this
.
queryParams
,
this
.
addDateRange
(
this
.
queryEntity
,
this
.
dateRange
)).
then
(
response
=>
{
this
.
inventoryRecordList
=
response
.
rows
this
.
total
=
response
.
total
// 暂时还没写后端 this.selectOptionsAboutPoperate = selectOptionsAboutPoperate
...
...
src/views/sample/inventoryRecord/index.vue
View file @
79d3a174
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