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
31111210
You need to sign in or sign up before continuing.
Commit
31111210
authored
Feb 24, 2021
by
萱草
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 更新库存
parent
d94ee870
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
index.html
dist/index.html
+0
-0
app.a4392d34.js
dist/js/app.a4392d34.js
+0
-0
chunk-7a226a22.edaa1c2a.js
dist/js/chunk-7a226a22.edaa1c2a.js
+0
-0
update-real-stock.vue
src/views/gift-manage/module/update-real-stock.vue
+10
-4
No files found.
dist/index.html
View file @
31111210
This diff is collapsed.
Click to expand it.
dist/js/app.
3164ebe6
.js
→
dist/js/app.
a4392d34
.js
View file @
31111210
This diff is collapsed.
Click to expand it.
dist/js/chunk-7a226a22.
d845cbe0
.js
→
dist/js/chunk-7a226a22.
edaa1c2a
.js
View file @
31111210
This diff is collapsed.
Click to expand it.
src/views/gift-manage/module/update-real-stock.vue
View file @
31111210
...
...
@@ -16,7 +16,7 @@
<span>
库存
</span>
<el-popover
placement=
"top"
trigger=
"click"
>
<div>
<el-select
v-model=
"
s
tockType"
style=
"width:100px"
>
<el-select
v-model=
"
banthS
tockType"
style=
"width:100px"
>
<el-option
label=
"增加"
:value=
"0"
></el-option>
<el-option
label=
"减少"
:value=
"1"
></el-option>
</el-select>
...
...
@@ -32,11 +32,11 @@
</el-popover>
</
template
>
<
template
slot-scope=
"scope"
>
<el-select
v-model=
"stockType"
style=
"width:100px"
>
<el-select
v-model=
"s
kuSellObj[scope.row.mapId].s
tockType"
style=
"width:100px"
>
<el-option
label=
"增加"
:value=
"0"
></el-option>
<el-option
label=
"减少"
:value=
"1"
></el-option>
</el-select>
<dm-input-number
v-model=
"s
tock"
width=
"140"
style=
"margin-left:-2px;"
controls-position=
"right"
@
blur=
"changeSingleStock(skuSellObj[scope.row.mapId].giftSkuId, stock,
stockType)"
precision=
"2"
:min=
"0"
:max=
"999999.99"
></dm-input-number>
<dm-input-number
v-model=
"s
kuSellObj[scope.row.mapId].stageStock"
width=
"140"
style=
"margin-left:-2px;"
controls-position=
"right"
@
blur=
"changeSingleStock(skuSellObj[scope.row.mapId].giftSkuId, skuSellObj[scope.row.mapId].stageStock, skuSellObj[scope.row.mapId].
stockType)"
precision=
"2"
:min=
"0"
:max=
"999999.99"
></dm-input-number>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -90,6 +90,7 @@ export default {
// costChangeObj: [], // 用于存放批量修改后的数据
banthStock
:
''
,
stockType
:
0
,
banthStockType
:
0
,
updateList
:
[],
textarea
:
''
,
giftId
:
''
,
...
...
@@ -258,6 +259,8 @@ export default {
remainedStock
:
Object
.
keys
(
skuSellObjCopy
).
length
>
0
?
skuSellObjCopy
[
item
.
mapId
].
remainedStock
:
''
,
stockStatus
:
true
,
giftSkuCostPriceStatus
:
true
,
stockType
:
0
,
stageStock
:
''
};
this
.
stockObj
[
item
.
mapId
]
=
Object
.
keys
(
skuSellObjCopy
).
length
>
0
?
skuSellObjCopy
[
item
.
mapId
].
stock
:
''
;
}
else
{
...
...
@@ -270,6 +273,8 @@ export default {
giftSkuCostPriceStatus
:
true
,
giftSkuId
:
''
,
remainedStock
:
''
,
stockType
:
0
,
stageStock
:
''
};
}
}
...
...
@@ -313,7 +318,8 @@ export default {
this
.
stock
=
this
.
banthStock
;
for
(
let
item
in
this
.
skuSellObj
){
this
.
skuSellObj
[
item
].
stock
=
this
.
banthStock
;
this
.
updateList
.
push
({
giftSkuId
:
this
.
skuSellObj
[
item
].
giftSkuId
,
stock
:
this
.
skuSellObj
[
item
].
stock
,
stockType
:
this
.
stockType
});
this
.
skuSellObj
[
item
].
stockType
=
this
.
banthStockType
;
this
.
updateList
.
push
({
giftSkuId
:
this
.
skuSellObj
[
item
].
giftSkuId
,
stock
:
this
.
skuSellObj
[
item
].
stock
,
stockType
:
this
.
banthStockType
});
}
console
.
log
(
this
.
updateList
);
},
...
...
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