Commit 47627387 by caoyanzhi

update: 礼品列表调整库存

parent 0474c49a
......@@ -93,7 +93,7 @@
<el-button @click="cancelStockModal">
取 消
</el-button>
<el-button type="primary" @click="confirmStockModal()">
<el-button type="primary" v-loading="loading" @click="confirmStockModal()">
确 定
</el-button>
</div>
......@@ -119,6 +119,7 @@ export default {
giftProSkuCash: '',
virtualStock: '',
headerList: [],
loading: false,
};
},
created () {
......@@ -263,6 +264,7 @@ export default {
// 积分
},
confirmStockModal () {
if (this.loading) return;
let skuJson = [];
const arrCash = []; // 费用
const intergral = []; // 积分
......@@ -364,6 +366,7 @@ export default {
return false;
}
}
this.loading = true;
request.post('/api-integral-mall/update-gift-sku', qs.stringify(params)).then(res => {
if (res.data.errorCode === 0) {
......@@ -372,6 +375,8 @@ export default {
} else {
this.$message.error(res.data.message);
}
}).finally(() => {
setTimeout(() => (this.loading = false), 50);
});
},
cancelStockModal () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment