|
|
@@ -42,7 +42,7 @@
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
</u-form-item> -->
|
|
|
- <view v-if="form.categoryId === '1889837829066899458'" class="item">
|
|
|
+ <view class="item">
|
|
|
<view class="label">
|
|
|
商品分组<span v-if="tabIndex == '0'">*</span>
|
|
|
</view>
|
|
|
@@ -193,8 +193,8 @@
|
|
|
商品售价<span>*</span>
|
|
|
</view>
|
|
|
<view class="picker">
|
|
|
- <u-input type="number" v-model.number="form.price" placeholder="请输入"
|
|
|
- @blur="checkPriceAndSoldPrice('price')" />
|
|
|
+ <u-input type="number" v-model.number="form.soldPrice" placeholder="请输入"
|
|
|
+ @blur="checkPriceAndSoldPrice('soldPrice')" />
|
|
|
</view>
|
|
|
<view class="unit">
|
|
|
元
|
|
|
@@ -205,8 +205,8 @@
|
|
|
商品市场价<span>*</span>
|
|
|
</view>
|
|
|
<view class="picker">
|
|
|
- <u-input type="number" v-model.number="form.soldPrice" placeholder="请输入"
|
|
|
- @blur="checkPriceAndSoldPrice('soldPrice')" />
|
|
|
+ <u-input type="number" v-model.number="form.price" placeholder="请输入"
|
|
|
+ @blur="checkPriceAndSoldPrice('price')" />
|
|
|
</view>
|
|
|
<view class="unit">
|
|
|
元
|
|
|
@@ -760,7 +760,7 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (this.tabIndex == '0' && this.form.categoryId === '1889837829066899458' && !this.form.groupingId) {
|
|
|
+ if (this.tabIndex == '0' && !this.form.groupingId) {
|
|
|
uni.showToast({
|
|
|
title: '请选择商品分组',
|
|
|
icon: 'none'
|
|
|
@@ -871,7 +871,7 @@ export default {
|
|
|
// 校验商品市场价必须大于商品售价
|
|
|
checkPriceAndSoldPrice(field) {
|
|
|
if ((field == 'price' && this.form.soldPrice) || (field == 'soldPrice' && this.form.price)) {
|
|
|
- if (this.form.soldPrice <= this.form.price) {
|
|
|
+ if (this.form.price <= this.form.soldPrice) {
|
|
|
uni.showToast({
|
|
|
title: '商品市场价必须大于商品售价',
|
|
|
icon: 'none',
|
|
|
@@ -1171,14 +1171,14 @@ export default {
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (!this.form.soldPrice) {
|
|
|
+ if (!this.form.price) {
|
|
|
uni.showToast({
|
|
|
title: '请输入商品市场价',
|
|
|
icon: 'none'
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (this.form.soldPrice <= this.form.price) {
|
|
|
+ if (this.form.price <= this.form.soldPrice) {
|
|
|
uni.showToast({
|
|
|
title: '商品市场价必须大于商品售价',
|
|
|
icon: 'none'
|