cb-biz-ui 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -79,6 +79,18 @@
|
|
|
79
79
|
<ui-icon name="add" :size="19" color="red"></ui-icon>
|
|
80
80
|
</view>
|
|
81
81
|
<view v-else class="number-box" @tap.stop="() => {}">
|
|
82
|
+
<!-- <uni-number-box
|
|
83
|
+
:value="goodsCount"
|
|
84
|
+
:min="0"
|
|
85
|
+
:max="
|
|
86
|
+
entity.unlimitedInventory
|
|
87
|
+
? 99999
|
|
88
|
+
: entity.inventoryCapacity || 100
|
|
89
|
+
"
|
|
90
|
+
:step="1"
|
|
91
|
+
@change="change"
|
|
92
|
+
></uni-number-box> -->
|
|
93
|
+
|
|
82
94
|
<ui-numberbox
|
|
83
95
|
:value="goodsCount"
|
|
84
96
|
:min="0"
|
|
@@ -206,11 +218,8 @@ const getDiscount = (discount: number | string) => {
|
|
|
206
218
|
};
|
|
207
219
|
|
|
208
220
|
const change = (val: changeValueType) => {
|
|
209
|
-
// if (val
|
|
210
|
-
//
|
|
211
|
-
// title: '库存不足,最大库存为' + item.skuInfo.inventoryCapacity,
|
|
212
|
-
// icon: 'none',
|
|
213
|
-
// })
|
|
221
|
+
// if (val > props.entity.inventoryCapacity) {
|
|
222
|
+
// triggerMax();
|
|
214
223
|
// }
|
|
215
224
|
emit('countChange', val, props.entity);
|
|
216
225
|
};
|