Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
welfare
Overview
Overview
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
达摩4.0重构
welfare
Commits
d127e73c
Commit
d127e73c
authored
Mar 09, 2021
by
shaojiawen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:TAPD
调整卡券包库存; 卡券编辑保存;
parent
93d6c294
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
list.vue
src/views/card/card-package/list.vue
+7
-0
card-info.js
src/views/card/gic-card/card-info.js
+3
-3
No files found.
src/views/card/card-package/list.vue
View file @
d127e73c
...
...
@@ -291,6 +291,13 @@ export default {
this
.
$tips
({
message
:
'库存不能大于100w'
,
type
:
'warning'
});
return
;
}
let
stockEnough
=
this
.
tableCardPackage
.
filter
(
function
(
value
){
return
params
.
count
>
value
.
remainedStock
;
});
if
(
params
.
optType
==
1
&&
stockEnough
.
length
){
this
.
$tips
({
message
:
(
stockEnough
[
0
].
cardName
+
'库存不足'
),
type
:
'warning'
});
return
;
}
this
.
$refs
.
adjust
.
loading
=
true
;
params
.
couponPackageId
=
this
.
adjust
.
couponPackageId
;
updatePackageStock
(
params
).
then
(
res
=>
{
...
...
src/views/card/gic-card/card-info.js
View file @
d127e73c
...
...
@@ -134,9 +134,9 @@ export default {
params
.
applyList
=
JSON
.
stringify
(
params
.
applyList
);
params
.
useConditionLimit
=
JSON
.
stringify
(
params
.
useConditionLimit
);
this
.
loading
=
true
;
if
(
params
!==
true
)
{
return
;
}
//
if (params !== true) {
//
return;
//
}
this
.
$emit
(
'updateLoading'
,
true
);
updateCard
(
params
).
then
(
res
=>
{
this
.
$emit
(
'updateLoading'
,
false
);
...
...
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