Commit 4e7ec23e by 黑潮

update: sku库存

parent 03ac2278
......@@ -83,6 +83,7 @@ export default {
this.giftProSkuIntegral = this.intergralModal.integralCost; //积分
this.giftProSkuCode = this.intergralModal.proCode; //编码
this.virtualStock = this.intergralModal.virtualStock; //库存
this.currentStock = this.intergralModal.virtualStock;
},
methods: {
limitSkuCode() {
......@@ -277,7 +278,7 @@ export default {
proCode: this.giftProSkuCode,
integralCost: this.giftProSkuIntegral,
cashCost: this.giftProSkuCash,
virtualStock: this.intergralModal.type === 'stock' ? this.virtualStock : '',
virtualStock: this.intergralModal.type === 'stock' ? this.virtualStock - this.currentStock : '',
skuJson: skuJson ? JSON.stringify(skuJson) : ''
};
if (this.intergralModal.tableSkuData.length) {
......
......@@ -1757,6 +1757,7 @@ export default {
console.log(val);
if (val.length === 1 && val[0].length === 0) {
this.submitSkuJson = [];
this.stockDisabled = false;
return false;
}
this.skuList = val;
......
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