...
|
...
|
@@ -6,14 +6,17 @@ |
|
|
<option value="3">月报</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="panel-col" v-show="params.type!=2">
|
|
|
<com-calendar :type="type" :value.sync="params.reqTime" :placeholder="'选择时间'"></com-calendar>
|
|
|
<div class="panel-col" v-if="params.type==1">
|
|
|
<com-calendar :value.sync="params.reqTime" :placeholder="'选择时间'"></com-calendar>
|
|
|
</div>
|
|
|
<div class="panel-col" v-show="params.type==2">
|
|
|
<com-calendar :type="type" :value.sync="params.beginTime" :placeholder="'开始时间'"></com-calendar>
|
|
|
<div class="panel-col" v-if="params.type==3">
|
|
|
<com-calendar :format="'yyyy-MM'" :value.sync="params.reqTime" :placeholder="'选择时间'"></com-calendar>
|
|
|
</div>
|
|
|
<div class="panel-col" v-show="params.type==2">
|
|
|
<com-calendar :type="type" :value.sync="params.endTime" :placeholder="'结束时间'"></com-calendar>
|
|
|
<div class="panel-col" v-if="params.type==2">
|
|
|
<com-calendar :value.sync="params.beginTime" :state="'week'" :placeholder="'开始时间'"></com-calendar>
|
|
|
</div>
|
|
|
<div class="panel-col" v-if="params.type==2">
|
|
|
<input type="text" :value="EndTime" class="form-control" placeholder="结束时间" disabled>
|
|
|
</div>
|
|
|
<div class="panel-col">
|
|
|
<input type="text" class="form-control" placeholder="SKN" v-model="params.productSkn">
|
...
|
...
|
@@ -37,6 +40,7 @@ |
|
|
|
|
|
<script>
|
|
|
import calendar from '../../../../components/calendar/index';
|
|
|
import util from 'util';
|
|
|
export default {
|
|
|
components: {
|
|
|
comCalendar: calendar
|
...
|
...
|
@@ -50,6 +54,15 @@ |
|
|
selects: ViewModel.data
|
|
|
}
|
|
|
},
|
|
|
methods: {}
|
|
|
computed: {
|
|
|
EndTime(){
|
|
|
var date=new Date(this.params.beginTime);
|
|
|
date.setDate(date.getDate()+7);
|
|
|
this.params.endTime = util.dateFormat(date,"YYYY-MM-dd");
|
|
|
return this.params.endTime;
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
}
|
|
|
}
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|