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
3d44f1b5
Commit
3d44f1b5
authored
Jul 30, 2023
by
CenXinYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实现了根据库状态不同进行相关废弃的具体信息的查询
Signed-off-by:
CenXinYi
<
2810162984@qq.com
>
parent
b0eb4d78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
30 deletions
+59
-30
InventoryRecord.js
src/api/processMangement/InventoryRecord.js
+7
-2
index.vue
src/views/processManagement/inventoryRecord/index.vue
+52
-28
No files found.
src/api/processMangement/InventoryRecord.js
View file @
3d44f1b5
...
...
@@ -9,8 +9,13 @@ export function listLog(queryParams) {
})
}
export
function
singleLogDetail
(
singleLog
FqYs
)
{
export
function
findSingleLogDetail
(
singleLogIdAnd
FqYs
)
{
return
request
({
url
:
''
url
:
'/wbwarehouselog/detail'
,
method
:
'post'
,
data
:
singleLogIdAndFqYs
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
src/views/processManagement/inventoryRecord/index.vue
View file @
3d44f1b5
...
...
@@ -142,9 +142,6 @@
<el-form-item
label=
"plocation:"
prop=
"plocation"
>
<el-input
v-model
.
trim=
"singleDetails.plocation"
:readonly=
"isReadOnly"
/>
</el-form-item>
<el-form-item
label=
"操作员:"
prop=
"userName"
>
<el-input
v-model
.
trim=
"singleDetails.userName"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -154,23 +151,44 @@
<el-form-item
label=
"库状态:"
prop=
"poperate"
>
{{
selectedPoperate
(
singleDetails
.
poperate
)
}}
</el-form-item>
<el-form-item
label=
"fqYs:"
prop=
"fqYs"
>
{{
singleDetails
.
fqYs
}}
</el-col>
</el-row>
<!-- TODO: 这里是 库状态为废弃时才会触发显示的模块 -->
<el-row
v-if=
" singleDetails.poperate==='4' "
>
<el-col
:span=
"12"
>
<el-form-item
label=
"fq_ys:"
prop=
"fq_ys"
>
{{
singleDetails
.
fq_ys
}}
</el-form-item>
<el-form-item
label=
"操作时间:"
prop=
"createDate"
>
<el-input
v-model
.
trim=
"singleDetails.createDate"
:readonly=
"isReadOnly"
/>
<el-form-item
label=
"fq_bz:"
prop=
"fq_bz"
>
{{
singleDetails
.
fq_bz
}}
</el-form-item>
<el-form-item
label=
"fq_dbxi:"
prop=
"fq_dbxi"
>
{{
singleDetails
.
fq_dbxi
}}
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"fq_dd:"
prop=
"fq_dd"
>
{{
singleDetails
.
fq_dd
}}
</el-form-item>
<el-form-item
label=
"fq_mcode:"
prop=
"fq_mcode"
>
{{
singleDetails
.
fq_mcode
}}
</el-form-item>
<el-form-item
label=
"fq_yy:"
prop=
"fq_yy"
>
{{
singleDetails
.
fq_yy
}}
</el-form-item>
</el-col>
</el-row>
<el-row
v-if=
" singleDetails.poperate==='4' "
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"
创建人:"
prop=
"createBy
"
>
<el-input
v-model
.
trim=
"singleDetails.
createBy
"
:readonly=
"isReadOnly"
/>
<el-form-item
label=
"
操作员:"
prop=
"userName
"
>
<el-input
v-model
.
trim=
"singleDetails.
userName
"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"
创建
时间:"
prop=
"createDate"
>
<el-form-item
label=
"
操作
时间:"
prop=
"createDate"
>
<el-input
v-model
.
trim=
"singleDetails.createDate"
:readonly=
"isReadOnly"
/>
</el-form-item>
</el-col>
...
...
@@ -183,7 +201,7 @@
</
template
>
<
script
>
import
{
listLog
}
from
'@/api/processMangement/InventoryRecord'
import
{
listLog
,
findSingleLogDetail
}
from
'@/api/processMangement/InventoryRecord'
import
BaseTable
from
'@/components/Table/BaseTable/index.vue'
export
default
{
...
...
@@ -346,19 +364,7 @@ export default {
openDetails
:
false
,
isReadOnly
:
true
,
// TODO: 表单里的单项详情参数
singleDetails
:
{
pn
:
''
,
lot
:
''
,
ptype
:
''
,
poperate
:
''
,
plocation
:
''
,
fqYs
:
''
,
userName
:
''
,
createBy
:
''
,
updateBy
:
''
,
createDate
:
''
,
updateDate
:
''
}
singleDetails
:
{}
}
},
computed
:
{
...
...
@@ -457,11 +463,29 @@ export default {
handleDetail
:
function
(
row
)
{
console
.
log
(
'success!'
)
if
(
row
.
poperate
===
'4'
)
{
/* TODO: 如果库状态为‘废弃’,即为‘4’时,则可以进入 */
if
(
row
.
poperate
!==
'4'
)
{
this
.
singleDetails
=
{
...
row
}
}
else
{
const
singleLogIdAndFqYs
=
{}
singleLogIdAndFqYs
[
'businessId'
]
=
row
.
bussinessId
singleLogIdAndFqYs
[
'fqYs'
]
=
row
.
fqYs
findSingleLogDetail
(
singleLogIdAndFqYs
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
singleDetails
=
Object
.
assign
({},
response
.
data
,
{
...
row
})
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
response
.
message
,
type
:
'warning'
})
this
.
singleDetails
=
{
...
row
}
}
}
)
}
this
.
title
=
'记录详情'
this
.
singleDetails
=
{
...
row
}
this
.
openDetails
=
true
}
}
...
...
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