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
5d38592e
Commit
5d38592e
authored
May 17, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.检查申请 删除详情的代码
parent
094fe555
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
27 deletions
+24
-27
outcomeWmsJbapplyTemp.vue
src/views/template/outcomeWmsJbapplyTemp.vue
+24
-27
No files found.
src/views/template/outcomeWmsJbapplyTemp.vue
View file @
5d38592e
...
...
@@ -259,19 +259,19 @@
v-model
.
trim=
"form.lot"
show-word-limit
:maxlength=
"100"
placeholder=
"请输入
pn
"
placeholder=
"请输入
lot
"
@
input=
"handleInputChange"
/>
</el-form-item>
<el-form-item
label=
"rank"
prop=
"rank"
:rules=
"[{required: form.ptype === '1', message: '请输入rank的值', trigger: 'blur' }]"
>
<el-input
v-model
.
trim=
"form.rank"
:disabled=
"isDisabled"
placeholder=
"请输入rank的值"
@
blur=
"handleInputChange"
/>
</el-form-item>
<el-form-item
label=
"库存QTY"
>
<span
style=
"color: red"
>
{{ warehousedata.qty||'-' }}
</span>
</el-form-item>
<el-form-item
label=
"qty"
prop=
"qty"
>
<el-input
v-model
.
trim=
"form.qty"
placeholder=
"请输入qty的值"
/>
</el-form-item>
<el-form-item
label=
"rank"
prop=
"rank"
>
<el-input
v-model
.
trim=
"form.rank"
:disabled=
"isDisabled"
placeholder=
"请输入rank的值"
/>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
v-model
.
trim=
"form.remarks"
...
...
@@ -531,9 +531,6 @@ export default {
{
required
:
true
,
message
:
'请输入qty的值'
,
trigger
:
'blur'
},
{
pattern
:
/^
(
0|
[
1-9
]\d
*
)
$/
,
message
:
'输入值不符合格式要求,请重新输入'
,
trigger
:
'blur'
}
],
rank
:
[
{
required
:
false
,
message
:
'请输入rank的值'
,
trigger
:
'blur'
}
]
}
}
},
...
...
@@ -562,33 +559,33 @@ export default {
},
// 查询qty
queryQty
()
{
if
(
this
.
form
.
pn
!==
null
&&
this
.
form
.
pn
!==
''
&&
this
.
form
.
pn
!==
undefined
)
{
if
(
this
.
form
.
lot
!==
null
&&
this
.
form
.
lot
!==
''
&&
this
.
form
.
lot
!==
undefined
)
{
if
(
this
.
form
.
ptype
!==
null
&&
this
.
form
.
ptype
!==
''
&&
this
.
form
.
ptype
!==
undefined
)
{
// 构建请求,发送 pn、lot 和 ptype 的值到后端接口
const
qbj
=
{
if
(
this
.
form
.
ptype
&&
this
.
form
.
ptype
!==
''
&&
this
.
form
.
ptype
===
'20'
)
{
if
(
this
.
form
.
pn
&&
this
.
form
.
pn
!==
''
&&
this
.
form
.
lot
&&
this
.
form
.
lot
!==
''
)
{
const
obj
=
{
pn
:
this
.
form
.
pn
,
lot
:
this
.
form
.
lot
,
ptype
:
this
.
form
.
ptype
}
console
.
log
(
'qbj'
,
qbj
)
// 发送请求并处理返回结果
queryByPnAndPtypeAndLot
(
qbj
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
!==
null
)
{
console
.
log
(
'res'
,
res
)
this
.
warehousedata
=
res
.
data
}
else
{
this
.
warehousedata
.
qty
=
null
}
}
})
}
else
{
this
.
warehousedata
.
qty
=
null
}
queryByPnAndPtypeAndLot
(
obj
).
then
(
res
=>
{
this
.
warehousedata
.
qty
=
res
.
data
})
}
else
{
this
.
warehousedata
.
qty
=
null
}
}
else
if
(
this
.
form
.
ptype
&&
this
.
form
.
ptype
!==
''
&&
this
.
form
.
ptype
===
"1"
){
if
(
this
.
form
.
pn
&&
this
.
form
.
pn
!==
''
&&
this
.
form
.
lot
&&
this
.
form
.
lot
!==
''
&&
this
.
form
.
rank
&&
this
.
form
.
rank
!=
''
)
{
const
obj
=
{
pn
:
this
.
form
.
pn
,
lot
:
this
.
form
.
lot
,
ptype
:
this
.
form
.
ptype
,
rank
:
this
.
form
.
rank
}
queryByPnAndPtypeAndLot
(
obj
).
then
(
res
=>
{
this
.
warehousedata
.
qty
=
res
.
data
})
}
else
{
this
.
warehousedata
.
qty
=
null
}
}
else
{
this
.
warehousedata
.
qty
=
null
}
...
...
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