mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-09-21 04:12:03 +08:00
fix(promotion): 打开商品选择器前先初始化已选 SKU 列表
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -331,12 +331,13 @@ export default {
|
|||||||
this.$router.back();
|
this.$router.back();
|
||||||
},
|
},
|
||||||
openSkuList() {
|
openSkuList() {
|
||||||
this.$refs.liliDialog.open("goods");
|
const data = JSON.parse(JSON.stringify(this.form.promotionGoodsList || []));
|
||||||
const data = JSON.parse(JSON.stringify(this.form.promotionGoodsList));
|
|
||||||
data.forEach((e) => {
|
data.forEach((e) => {
|
||||||
e.id = e.skuId;
|
e.id = e.skuId || e.id;
|
||||||
});
|
});
|
||||||
|
// 先写入已选商品,再打开选择器,保证回显时 selectedWay 已就绪
|
||||||
this.$refs.liliDialog.goodsData = data;
|
this.$refs.liliDialog.goodsData = data;
|
||||||
|
this.$refs.liliDialog.open("goods");
|
||||||
},
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
getFullDiscountById(this.id).then((res) => {
|
getFullDiscountById(this.id).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user