@@ -54,8 +54,8 @@
</div>
<span class="time_text">{{ $t('lang6') }} {{ item.cost_price }}{{ $t('lang174') }}</span>
<div class="progress">
- <van-progress :percentage="(item.num / item.stock) * 100 || 0" class="pro" color="#29b286" :show-pivot="false" />
- <span>{{ item.num }}/{{ item.stock }}{{ $t('lang7') }}</span>
+ <van-progress :percentage="((item.num+item.init_num) / item.stock) * 100 || 0" class="pro" color="#29b286" :show-pivot="false" />
+ <span>{{ (item.num+item.init_num) }}/{{ item.stock }}{{ $t('lang7') }}</span>
@@ -316,7 +316,7 @@ export default {
// // on cancel
// });
- if (!this.areaIds) {
+ if (this.areaIds.length <= 0) {
return Notify({ type: 'warning', message: this.$t('lang69') });
}
let _this = this;