|
@@ -107,7 +107,7 @@
|
|
|
<u-picker title="供应商" :show="merchantShow" :columns="merchantList" keyName="merchantName"
|
|
|
@cancel="merchantShow=false" @confirm="merchantConfirm">
|
|
|
</u-picker>
|
|
|
- <u-calendar title="到货日期" :show="dateShow" mode="single" @confirm="dateConfirm" @close="dateShow = false"></u-calendar>
|
|
|
+ <u-calendar title="到货日期" :minDate="minDate" :maxDate="maxDate" :monthNum="5" :show="dateShow" mode="single" @confirm="dateConfirm" @close="dateShow = false"></u-calendar>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -139,11 +139,15 @@
|
|
|
receiptTypeList:[],
|
|
|
merchantShow:false,
|
|
|
merchantList:[],
|
|
|
- dateShow:false
|
|
|
+ dateShow:false,
|
|
|
+ minDate:'',
|
|
|
+ maxDate:''
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.receiptDto.orderNo = generateNo('RK');
|
|
|
+ this.minDate = new Date(new Date().setMonth(new Date().getMonth() - 3)).Format('yyyy-MM-dd');
|
|
|
+ this.maxDate = new Date(new Date().setMonth(new Date().getMonth() + 1)).Format('yyyy-MM-dd');
|
|
|
},
|
|
|
methods:{
|
|
|
selectWarehouse(){
|