|
|
@@ -40,14 +40,14 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="item">
|
|
|
+ <view class="item">
|
|
|
<view class="label">
|
|
|
库存
|
|
|
</view>
|
|
|
<view class="picker">
|
|
|
<u-input v-model="form.number" placeholder="输入库存" />
|
|
|
</view>
|
|
|
- </view> -->
|
|
|
+ </view>
|
|
|
<view class="item">
|
|
|
<view class="label">
|
|
|
有效时间
|
|
|
@@ -445,20 +445,19 @@ export default {
|
|
|
icon: 'none'
|
|
|
});
|
|
|
return
|
|
|
+ } else if (!this.form.number) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请输入库存',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ } else if (this.form.number == '0' || this.form.number == 0) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '库存不能为0',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ return
|
|
|
}
|
|
|
- // else if (!this.form.number) {
|
|
|
- // uni.showToast({
|
|
|
- // title: '请输入库存',
|
|
|
- // icon: 'none'
|
|
|
- // });
|
|
|
- // return
|
|
|
- // } else if (this.form.number == '0' || this.form.number == 0) {
|
|
|
- // uni.showToast({
|
|
|
- // title: '库存不能为0',
|
|
|
- // icon: 'none'
|
|
|
- // });
|
|
|
- // return
|
|
|
- // }
|
|
|
else if (!this.form.beginTime && !this.form.endTime) {
|
|
|
uni.showToast({
|
|
|
title: '请选择有效时间',
|