|
@@ -121,7 +121,8 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 账号限制 -->
|
|
<!-- 账号限制 -->
|
|
- <view class="warp" v-if="typeProperty === '1'">
|
|
|
|
|
|
+ <!-- <view class="warp" v-if="typeProperty === '1'"> -->
|
|
|
|
+ <view class="warp">
|
|
<view class="idastrict detail-list">
|
|
<view class="idastrict detail-list">
|
|
<view class="menu">
|
|
<view class="menu">
|
|
<view class="title astricttitle">账号限制</view>
|
|
<view class="title astricttitle">账号限制</view>
|
|
@@ -973,7 +974,7 @@ export default {
|
|
this.$mHelper.toast('请选择所属商铺!');
|
|
this.$mHelper.toast('请选择所属商铺!');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (!this.typeId) {
|
|
|
|
|
|
+ if (!this.typeId) {
|
|
this.$mHelper.toast('请选择商品类型!');
|
|
this.$mHelper.toast('请选择商品类型!');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -982,17 +983,18 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.typeProperty === 0) {
|
|
if (this.typeProperty === 0) {
|
|
|
|
+
|
|
if (!this.lineId) {
|
|
if (!this.lineId) {
|
|
this.$mHelper.toast('请选择商品分类!');
|
|
this.$mHelper.toast('请选择商品分类!');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- if (!this.price) {
|
|
|
|
- this.$mHelper.toast('请输入商品卖价!');
|
|
|
|
|
|
+ const pat = new RegExp(/(?:^[1-9]([0-9]+)?(?:\.[0-9]{1,2})?$)|(?:^(?:0){1}$)|(?:^[0-9]\.[0-9](?:[0-9])?$)/)
|
|
|
|
+ if (!this.price || !pat.test(this.price)) {
|
|
|
|
+ this.$mHelper.toast('请输入正确的商品卖价!');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (!this.rateprice) {
|
|
|
|
- this.$mHelper.toast('请输入商品划线价!');
|
|
|
|
|
|
+ if (!this.rateprice || !pat.test(this.rateprice)) {
|
|
|
|
+ this.$mHelper.toast('请输入正确的商品划线价!');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (this.expirationDate === '请选择商品过期日期') {
|
|
if (this.expirationDate === '请选择商品过期日期') {
|