|
|
@@ -189,7 +189,7 @@
|
|
|
售卖时间<span>*</span>
|
|
|
</view>
|
|
|
<view class="picker set inp" @click="selectDate">
|
|
|
- <u-input class="form-input" :disabled="true" placeholder="去设置" v-model="showDate" @click="selectDate" />
|
|
|
+ <u-input class="form-input" readonly placeholder="去设置" v-model="showDate" @click="selectDate" />
|
|
|
<u-icon name="arrow-right" style="margin-left: 17rpx;"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -480,7 +480,7 @@
|
|
|
})
|
|
|
// this.form.specItems = temp
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//基础信息必填提示
|
|
|
if (!this.form.categoryId) {
|
|
|
uni.showToast({
|
|
|
@@ -510,14 +510,16 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (!this.form.price && !this.form.categoryId == '1945013773786701826') {
|
|
|
+ if (!this.form.price) {
|
|
|
+ // if (!this.form.price && !this.form.categoryId == '1945013773786701826') {
|
|
|
uni.showToast({
|
|
|
title: '请输入商品原价',
|
|
|
icon: 'none'
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (!this.form.soldPrice && !this.form.categoryId == '1945013773786701826') {
|
|
|
+ // if (!this.form.soldPrice && !this.form.categoryId == '1945013773786701826') {
|
|
|
+ if (!this.form.soldPrice) {
|
|
|
uni.showToast({
|
|
|
title: '请输入商品售价',
|
|
|
icon: 'none'
|
|
|
@@ -712,8 +714,8 @@
|
|
|
this.showGroupPicker = false;
|
|
|
},
|
|
|
selectDate() {
|
|
|
- this.isSelectDate = true
|
|
|
- // this.$refs.rangTime.open()
|
|
|
+ // this.isSelectDate = true
|
|
|
+ this.$refs.rangTime.open()
|
|
|
},
|
|
|
onEndTimeChange(val) {
|
|
|
this.form.saleStartDate = val.startDate
|
|
|
@@ -828,7 +830,7 @@
|
|
|
|
|
|
this.showDate = res.data.result.saleStartDate.slice(0, 10) + ' ~ ' + res.data.result.saleEndDate.slice(0,
|
|
|
10)
|
|
|
- if (res.data.resultuseType == 2) {
|
|
|
+ if (res.data.result.useType == 2) {
|
|
|
this.showSellDate = res.data.result.availableStartDate.slice(0, 10) + '-' + res.data.result
|
|
|
.availableEndDate.slice(0, 10)
|
|
|
} else if (res.data.result.useType == 1) {
|