|
|
@@ -98,14 +98,32 @@
|
|
|
</up-form-item>
|
|
|
</PickerAreaInput>
|
|
|
<view class="h-1" id="productDatepppp"></view>
|
|
|
- <ut-datetime-picker v-model="form.productDate" :maxDate="new Date()" mode="date">
|
|
|
- <up-form-item borderBottom label="采收日期" prop="productDate" required>
|
|
|
- <up-input v-model="form.productDate" readonly placeholder="请选择采收日期" border="none" clearable></up-input>
|
|
|
- <template #right>
|
|
|
- <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
- </template>
|
|
|
- </up-form-item>
|
|
|
- </ut-datetime-picker>
|
|
|
+ <view class="h-1" id="productDateEndpppp"></view>
|
|
|
+ <up-form-item prop="productDate" required label="采收日期" class="form-item-bottom-padding-0">
|
|
|
+ <view class="flex1 d-flex">
|
|
|
+ <view class="flex1">
|
|
|
+ <ut-datetime-picker v-model="form.productDate" :maxDate="form.productDateEnd || new Date()" mode="date">
|
|
|
+ <up-form-item borderBottom prop="productDate" class="form-item-top-padding-0">
|
|
|
+ <up-input v-model="form.productDate" readonly placeholder="请选择开始日期" border="none" clearable></up-input>
|
|
|
+ <template #right>
|
|
|
+ <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
+ </template>
|
|
|
+ </up-form-item>
|
|
|
+ </ut-datetime-picker>
|
|
|
+ </view>
|
|
|
+ <view class="pd2-0-20"></view>
|
|
|
+ <view class="flex1">
|
|
|
+ <ut-datetime-picker v-model="form.productDateEnd" :minDate="form.productDate" :maxDate="new Date()" mode="date">
|
|
|
+ <up-form-item borderBottom prop="productDateEnd" class="form-item-top-padding-0">
|
|
|
+ <up-input v-model="form.productDateEnd" readonly placeholder="请选择结束日期" border="none" clearable></up-input>
|
|
|
+ <template #right>
|
|
|
+ <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
+ </template>
|
|
|
+ </up-form-item>
|
|
|
+ </ut-datetime-picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </up-form-item>
|
|
|
<!-- 媒体与附件 -->
|
|
|
<up-form-item borderBottom label="鲜货图片" prop="imgs">
|
|
|
<ut-upload v-model="form.imgs" :max-count="9" valueType="string"></ut-upload>
|
|
|
@@ -221,8 +239,31 @@
|
|
|
</up-form-item>
|
|
|
</PickerAreaInput>
|
|
|
<view class="h-1" id="productDatepppp"></view>
|
|
|
- <up-form-item borderBottom label="采收日期" required>
|
|
|
- <up-input v-model="form.productDate" readonly placeholder="请选择采收日期" border="none" clearable></up-input>
|
|
|
+ <view class="h-1" id="productDateEndpppp"></view>
|
|
|
+ <up-form-item prop="productDate" required label="采收日期" class="form-item-bottom-padding-0">
|
|
|
+ <view class="flex1 d-flex">
|
|
|
+ <view class="flex1">
|
|
|
+ <ut-datetime-picker v-model="form.productDate" :maxDate="form.productDateEnd || new Date()" mode="date">
|
|
|
+ <up-form-item borderBottom prop="productDate" class="form-item-top-padding-0">
|
|
|
+ <up-input v-model="form.productDate" readonly placeholder="请选择开始日期" border="none" clearable></up-input>
|
|
|
+ <template #right>
|
|
|
+ <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
+ </template>
|
|
|
+ </up-form-item>
|
|
|
+ </ut-datetime-picker>
|
|
|
+ </view>
|
|
|
+ <view class="pd2-0-20"></view>
|
|
|
+ <view class="flex1">
|
|
|
+ <ut-datetime-picker v-model="form.productDateEnd" :minDate="form.productDate" :maxDate="new Date()" mode="date">
|
|
|
+ <up-form-item borderBottom prop="productDateEnd" class="form-item-top-padding-0">
|
|
|
+ <up-input v-model="form.productDateEnd" readonly placeholder="请选择结束日期" border="none" clearable></up-input>
|
|
|
+ <template #right>
|
|
|
+ <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
+ </template>
|
|
|
+ </up-form-item>
|
|
|
+ </ut-datetime-picker>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</up-form-item>
|
|
|
<!-- 媒体与附件 -->
|
|
|
<up-form-item borderBottom label="鲜货图片" prop="imgs">
|
|
|
@@ -322,7 +363,8 @@ const rules = reactive({
|
|
|
},
|
|
|
],
|
|
|
producePlace: [{ required: true, message: '请选择鲜货产地' }],
|
|
|
- productDate: [{ required: true, message: '请选择采收日期' }],
|
|
|
+ productDate: [{ required: true, message: '请选择开始日期' }],
|
|
|
+ productDateEnd: [{ required: true, message: '请选择结束日期' }],
|
|
|
'instoreBizInfo.instoreMg': [{ required: true, message: '请输入入库人' }],
|
|
|
});
|
|
|
|