Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
6f9d6ca8
Commit
6f9d6ca8
authored
Aug 07, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:解决商品列表回显问题
parent
7548991f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+18
-2
No files found.
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
6f9d6ca8
...
@@ -131,7 +131,11 @@
...
@@ -131,7 +131,11 @@
剩余库存:
<span>
{{ inventoryRest }}
</span>
剩余库存:
<span>
{{ inventoryRest }}
</span>
</div>
</div>
<br
/>
<br
/>
<el-form-item
label=
"商家"
prop=
"business1"
:rules=
"[{ required: true, message: '请选择商家' }]"
>
<el-form-item
label=
"商家"
prop=
"business1"
:rules=
"[{ required: true, message: '请选择商家' }]"
>
<el-select
v-model=
"commodityForm.business1"
placeholder=
"请选择"
>
<el-select
v-model=
"commodityForm.business1"
placeholder=
"请选择"
>
<el-option
<el-option
v-for=
"item in businessOpt"
v-for=
"item in businessOpt"
...
@@ -390,6 +394,19 @@ export default {
...
@@ -390,6 +394,19 @@ export default {
type
:
"success"
,
type
:
"success"
,
});
});
this
.
pindanGoodsMet
();
this
.
pindanGoodsMet
();
setTimeout
(()
=>
{
for
(
var
i
in
this
.
comTableData
)
{
if
(
this
.
comTableData
[
i
].
goods_sku_id
==
goodsSkuID
)
{
this
.
comTableData
.
splice
(
i
,
1
);
}
}
for
(
var
j
in
this
.
comLibTableData
)
{
if
(
this
.
comLibTableData
[
j
].
goods_sku_id
==
goodsSkuID
)
{
this
.
comTableData
.
push
(
this
.
comLibTableData
[
j
]);
}
}
},
500
);
this
.
addCommodityPopup
=
false
;
this
.
addCommodityPopup
=
false
;
}
else
{
}
else
{
ElMessage
.
error
(
res
.
reason
);
ElMessage
.
error
(
res
.
reason
);
...
@@ -436,7 +453,6 @@ export default {
...
@@ -436,7 +453,6 @@ export default {
message
:
"添加商品成功"
,
message
:
"添加商品成功"
,
type
:
"success"
,
type
:
"success"
,
});
});
// [res.result.goods_info, ...this.multipleSelection];
this
.
comTableData
.
push
(
res
.
result
.
goods_info
);
this
.
comTableData
.
push
(
res
.
result
.
goods_info
);
this
.
addCommodityPopup
=
false
;
this
.
addCommodityPopup
=
false
;
}
else
{
}
else
{
...
...
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