Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
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
TFMOM
TF-MOM-WEB
Commits
e4526157
Commit
e4526157
authored
Sep 26, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返厂出库未保存数据删除bug修改
parent
091d4de4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
57 deletions
+69
-57
index.vue
...mponents/components/OutStorageCallBackReqAmount/index.vue
+69
-57
No files found.
applications/dee-mes/src/privateComponents/components/OutStorageCallBackReqAmount/index.vue
View file @
e4526157
/**
* @Description: 召回出库申请明细退库数量
* @author xioln
* @date 2023-08-02
* @FilePath: applications/dee-mes/src/privateComponents/components/OutStorageCallBackReqAmount/index.vue
*/
<
template
>
<div
class=
"outStorageCallBack-reqAmount"
>
<el-input-number
v-model=
"reqAmount"
:min=
"0"
:max=
"maxNum"
@
change=
"handleChange"
/>
</div>
</
template
>
<
script
>
export
default
{
componentName
:
'召回出库申请明细退库数量'
,
name
:
'OutStorageCallBackReqAmount'
,
components
:
{},
props
:
{
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
value
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
reqAmount
:
0
}
},
computed
:
{},
created
()
{
// 初始化数据
if
(
this
.
value
!==
'0'
)
{
this
.
reqAmount
=
Number
(
this
.
value
)
}
if
(
this
.
form
.
inventory
&&
this
.
form
.
inventory
.
usableAmount
)
{
this
.
maxNum
=
this
.
form
.
inventory
.
usableAmount
}
else
{
this
.
maxNum
=
1
}
},
methods
:
{
handleChange
()
{
// if (this.reqAmount > this.form.inventory.usableAmount) {
// this.reqAmount = this.form.inventory.usableAmount
// this.$utils.showMessageWarning(`退库数量不能大于可用库存数量(${this.form.inventory.usableAmount})`)
// return
// }
this
.
$emit
(
'input'
,
this
.
reqAmount
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
/**
* @Description: 召回出库申请明细退库数量
* @author xioln
* @date 2023-08-02
* @FilePath: applications/dee-mes/src/privateComponents/components/OutStorageCallBackReqAmount/index.vue
*/
<
template
>
<div
class=
"outStorageCallBack-reqAmount"
>
<el-input-number
v-model=
"scope.row.reqAmount"
:min=
"0"
:max=
"maxNum"
/>
</div>
</
template
>
<
script
>
export
default
{
componentName
:
'召回出库申请明细退库数量'
,
name
:
'OutStorageCallBackReqAmount'
,
components
:
{},
props
:
{
form
:
{
type
:
Object
,
default
:
()
=>
{}
},
scope
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
},
value
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
return
{
reqAmount
:
0
}
},
computed
:
{
maxNum
()
{
if
(
this
.
form
.
inventory
&&
this
.
form
.
inventory
.
usableAmount
)
{
return
this
.
form
.
inventory
.
usableAmount
}
else
{
return
1
}
}
},
created
()
{
// 初始化数据
// if (this.value !== '0') {
// this.reqAmount = Number(this.value)
// }
// if (this.form.inventory && this.form.inventory.usableAmount) {
// this.maxNum = this.form.inventory.usableAmount
// } else {
// this.maxNum = 1
// }
},
methods
:
{
handleChange
()
{
// if (this.reqAmount > this.form.inventory.usableAmount) {
// this.reqAmount = this.form.inventory.usableAmount
// this.$utils.showMessageWarning(`退库数量不能大于可用库存数量(${this.form.inventory.usableAmount})`)
// return
// }
this
.
$emit
(
'input'
,
this
.
reqAmount
)
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
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