Commit 9976e2c5 authored by youjie's avatar youjie

财务功能权限 优化

parent 7a17aed3
...@@ -105,13 +105,13 @@ ...@@ -105,13 +105,13 @@
<template v-if="!heightQueryBox"> <template v-if="!heightQueryBox">
<el-col :span="5"> <el-col :span="5">
<el-form-item label="发团日期:"> <el-form-item label="发团日期:">
<!-- <el-date-picker class="h34" <el-date-picker class="h34"
v-model="missionDate" v-model="missionDate"
@change="timeAdd()" @change="timeAdd()"
type="daterange" type="daterange"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> --> </el-date-picker>
<StartDateLimit :clearable="false" :dateTime="missionDate" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" :dateTime="missionDate" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
...@@ -694,11 +694,11 @@ ...@@ -694,11 +694,11 @@
} }
}, },
created(){ created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) // let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) // let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate] // this.missionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0]; // this.msg.QStartDate = this.missionDate[0];
this.msg.QEndDate = this.missionDate[1]; // this.msg.QEndDate = this.missionDate[1];
if(this.$route.query.pageIndex){ if(this.$route.query.pageIndex){
this.msg.pageIndex = this.$route.query.pageIndex; this.msg.pageIndex = this.$route.query.pageIndex;
} }
......
...@@ -579,10 +579,10 @@ ...@@ -579,10 +579,10 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item :label="$t('fnc.jiaoyiriqi')"> <el-form-item :label="$t('fnc.jiaoyiriqi')">
<!-- <el-date-picker class="h34" style="width: 100%;" v-model="transactionDate" @change="timeAdd(3)" type="daterange" <el-date-picker class="h34" style="width: 100%;" v-model="transactionDate" @change="timeAdd(3)" type="daterange"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> --> </el-date-picker>
<StartDateLimit :clearable="false" style="width: 100%;" :dateTime="transactionDate" @change="(startDate,endDate)=>{msg.sTradeDate=startDate,msg.eTradeDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" style="width: 100%;" :dateTime="transactionDate" @change="(startDate,endDate)=>{msg.sTradeDate=startDate,msg.eTradeDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="3">
...@@ -679,9 +679,10 @@ ...@@ -679,9 +679,10 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('fnc.zdriqi')"> <el-form-item :label="$t('fnc.zdriqi')">
<el-date-picker style="width: 100%;" class="h34" @change="timeAdd(1)" v-model="productionDate" type="daterange" <!-- <el-date-picker style="width: 100%;" class="h34" @change="timeAdd(1)" v-model="productionDate" type="daterange"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker> -->
<StartDateLimit :clearable="false" style="width: 100%;" :dateTime="productionDate" @change="(startDate,endDate)=>{msg.sDate=startDate,msg.eDate=endDate}"></StartDateLimit>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
...@@ -1071,7 +1072,11 @@ ...@@ -1071,7 +1072,11 @@
} }
}, },
created() { created() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0];
this.msg.eDate = this.productionDate[1];
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
......
...@@ -1082,7 +1082,7 @@ ...@@ -1082,7 +1082,7 @@
} }
}, },
created() { created() {
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) let StartDate = this.getBeforeDate(365, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate] this.productionDate = [StartDate, EndDate]
this.msg.sDate = this.productionDate[0]; this.msg.sDate = this.productionDate[0];
......
...@@ -258,12 +258,13 @@ ...@@ -258,12 +258,13 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('fnc.zdriqi')"> <el-form-item :label="$t('fnc.zdriqi')">
<el-date-picker class="h34" <!-- <el-date-picker class="h34"
@change="timeAdd(1)" @change="timeAdd(1)"
v-model="productionDate" v-model="productionDate"
type="daterange" type="daterange"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker> -->
<StartDateLimit :clearable="false" :dateTime="productionDate" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
...@@ -278,13 +279,13 @@ ...@@ -278,13 +279,13 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('scen.sc_ftTime')"> <el-form-item :label="$t('scen.sc_ftTime')">
<!-- <el-date-picker class="h34" <el-date-picker class="h34"
v-model="missionDate" v-model="missionDate"
@change="timeAdd(4)" @change="timeAdd(4)"
type="daterange" type="daterange"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> --> </el-date-picker>
<StartDateLimit :clearable="false" :dateTime="missionDate" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" :dateTime="missionDate" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
...@@ -900,11 +901,16 @@ export default { ...@@ -900,11 +901,16 @@ export default {
} }
}, },
created(){ created(){
// let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
// let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
// this.missionDate = [StartDate, EndDate]
// this.msg.QStartDate = this.missionDate[0];
// this.msg.QEndDate = this.missionDate[1];
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.missionDate = [StartDate, EndDate] this.productionDate = [StartDate, EndDate]
this.msg.QStartDate = this.missionDate[0]; this.msg.sDate = this.productionDate[0];
this.msg.QEndDate = this.missionDate[1]; this.msg.eDate = this.productionDate[1];
if(this.$route.query.returnCode){ if(this.$route.query.returnCode){
this.active = this.$route.query.returnCode; this.active = this.$route.query.returnCode;
this.msg.Conditon = this.$route.query.returnCode; this.msg.Conditon = this.$route.query.returnCode;
......
...@@ -119,14 +119,14 @@ ...@@ -119,14 +119,14 @@
</el-col> </el-col>
<el-col :span="8" :gutter="35"> <el-col :span="8" :gutter="35">
<el-form-item :label="$t('fnc.a_hkfkriqi')"> <el-form-item :label="$t('fnc.a_hkfkriqi')">
<!-- <el-date-picker class="h34" <el-date-picker class="h34"
@change="timeAdd" @change="timeAdd"
v-model="productionDate" v-model="productionDate"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:range-separator="$t('restaurant.res_To')"> :range-separator="$t('restaurant.res_To')">
</el-date-picker> --> </el-date-picker>
<StartDateLimit :clearable="false" :dateTime="productionDate" @change="(startDate,endDate)=>{msg.sTradeDate=startDate,msg.eTradeDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" :dateTime="productionDate" @change="(startDate,endDate)=>{msg.sTradeDate=startDate,msg.eTradeDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -281,11 +281,11 @@ export default { ...@@ -281,11 +281,11 @@ export default {
} }
}, },
created(){ created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) // let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) // let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDate = [StartDate, EndDate] // this.productionDate = [StartDate, EndDate]
this.msg.sTradeDate = this.productionDate[0]; // this.msg.sTradeDate = this.productionDate[0];
this.msg.eTradeDate = this.productionDate[1]; // this.msg.eTradeDate = this.productionDate[1];
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){ if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){
this.msg.IsFromDayReport =1; this.msg.IsFromDayReport =1;
......
...@@ -113,14 +113,14 @@ ...@@ -113,14 +113,14 @@
</el-col> </el-col>
<el-col :span="8" :gutter="35"> <el-col :span="8" :gutter="35">
<el-form-item label="发团日期"> <el-form-item label="发团日期">
<!-- <el-date-picker class="h34" <el-date-picker class="h34"
@change="timeAddByTC" @change="timeAddByTC"
v-model="productionDateByTC" v-model="productionDateByTC"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:range-separator="$t('restaurant.res_To')"> :range-separator="$t('restaurant.res_To')">
</el-date-picker> --> </el-date-picker>
<StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
...@@ -1036,11 +1036,11 @@ export default { ...@@ -1036,11 +1036,11 @@ export default {
}, },
}, },
mounted(){ mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) // let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) // let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByTC = [StartDate, EndDate] // this.productionDateByTC = [StartDate, EndDate]
this.msg.QStartDate = this.productionDateByTC[0]; // this.msg.QStartDate = this.productionDateByTC[0];
this.msg.QEndDate = this.productionDateByTC[1]; // this.msg.QEndDate = this.productionDateByTC[1];
this.getAccountTypeList(); this.getAccountTypeList();
this.AccountType_post_GetList(); this.AccountType_post_GetList();
......
...@@ -149,14 +149,14 @@ ...@@ -149,14 +149,14 @@
</el-col> </el-col>
<el-col :span="8" :gutter="35"> <el-col :span="8" :gutter="35">
<el-form-item label="发团日期"> <el-form-item label="发团日期">
<!-- <el-date-picker class="h34" <el-date-picker class="h34"
@change="timeAddByTC" @change="timeAddByTC"
v-model="productionDateByTC" v-model="productionDateByTC"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:range-separator="$t('restaurant.res_To')"> :range-separator="$t('restaurant.res_To')">
</el-date-picker> --> </el-date-picker>
<StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
...@@ -572,11 +572,12 @@ export default { ...@@ -572,11 +572,12 @@ export default {
} }
}, },
created(){ created(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) // let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) // let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByTC = [StartDate, EndDate] // this.productionDateByTC = [StartDate, EndDate]
this.msg.QStartDate = this.productionDateByTC[0]; // this.msg.QStartDate = this.productionDateByTC[0];
this.msg.QEndDate = this.productionDateByTC[1]; // this.msg.QEndDate = this.productionDateByTC[1];
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){ if(this.$route.query.DayReport && this.$route.query.DayReport=='1'){
this.msg.IsFromDayReport =1; this.msg.IsFromDayReport =1;
......
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="发团日期"> <el-form-item label="发团日期">
<!-- <el-date-picker <el-date-picker
@change="timeAddByTC" @change="timeAddByTC"
v-model="productionDateByTC" v-model="productionDateByTC"
type="daterange" type="daterange"
...@@ -131,8 +131,8 @@ ...@@ -131,8 +131,8 @@
:start-placeholder="$t('OrderList.star')" :start-placeholder="$t('OrderList.star')"
:end-placeholder="$t('OrderList.end')" :end-placeholder="$t('OrderList.end')"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
></el-date-picker> --> ></el-date-picker>
<StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="4" :gutter="35"> <!-- <el-col :span="4" :gutter="35">
...@@ -898,11 +898,11 @@ export default { ...@@ -898,11 +898,11 @@ export default {
}, },
}, },
mounted(){ mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) // let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) // let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByTC = [StartDate, EndDate] // this.productionDateByTC = [StartDate, EndDate]
this.msg.QStartDate = this.productionDateByTC[0]; // this.msg.QStartDate = this.productionDateByTC[0];
this.msg.QEndDate = this.productionDateByTC[1]; // this.msg.QEndDate = this.productionDateByTC[1];
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
let ClientID = this.$route.query.ClientID; let ClientID = this.$route.query.ClientID;
......
...@@ -97,14 +97,14 @@ ...@@ -97,14 +97,14 @@
</el-col> </el-col>
<el-col :span="8" :gutter="35"> <el-col :span="8" :gutter="35">
<el-form-item label="发团日期"> <el-form-item label="发团日期">
<!-- <el-date-picker class="h34" <el-date-picker class="h34"
@change="timeAddByTC" @change="timeAddByTC"
v-model="productionDateByTC" v-model="productionDateByTC"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:range-separator="$t('restaurant.res_To')"> :range-separator="$t('restaurant.res_To')">
</el-date-picker> --> </el-date-picker>
<StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> <!-- <StartDateLimit :clearable="false" :dateTime="productionDateByTC" @change="(startDate,endDate)=>{msg.QStartDate=startDate,msg.QEndDate=endDate}"></StartDateLimit> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
...@@ -1052,11 +1052,11 @@ export default { ...@@ -1052,11 +1052,11 @@ export default {
}, },
}, },
mounted(){ mounted(){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) // let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd")) // let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.productionDateByTC = [StartDate, EndDate] // this.productionDateByTC = [StartDate, EndDate]
this.msg.QStartDate = this.productionDateByTC[0]; // this.msg.QStartDate = this.productionDateByTC[0];
this.msg.QEndDate = this.productionDateByTC[1] // this.msg.QEndDate = this.productionDateByTC[1]
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
this.getAccountTypeList(); this.getAccountTypeList();
this.AccountType_post_GetList(); this.AccountType_post_GetList();
......
...@@ -56,17 +56,18 @@ ...@@ -56,17 +56,18 @@
</el-select> </el-select>
</li> </li>
<li><span><em>{{$t('scen.sc_ftTime')}}</em> <li><span><em>{{$t('scen.sc_ftTime')}}</em>
<!-- <el-date-picker v-model='msg.QStartDate' @change="dataDuiQ()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> --> <el-date-picker v-model='msg.QStartDate' @change="dataDuiQ()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
<DateLimit :clearable="false" :EndGroupDate="msg.QEndDate" @change="(date)=> {msg.QStartDate = date,dataDuiQ()}"></DateLimit> <!-- <DateLimit :clearable="false" :StartGroupDate="msg.QStartDate" :EndGroupDate="msg.QEndDate" @change="(date)=> {msg.QStartDate = date,dataDuiQ()}"></DateLimit> -->
- -
<el-date-picker v-model='msg.QEndDate' @change="dataDuiQ()" class='w135' :picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" type="date"></el-date-picker> <el-date-picker v-model='msg.QEndDate' @change="dataDuiQ()" class='w135' :picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" type="date"></el-date-picker>
<!-- <DateLimit :EndGroupDate="msg.QEndDate" @change="(date)=> {msg.QEndDate = date,dataDuiQ()}"></DateLimit> --> <!-- <DateLimit :clearable="false" :StartGroupDate="msg.QEndDate" :EndGroupDate="msg.QEndDate" @change="(date)=> {msg.QEndDate = date,dataDuiQ()}"></DateLimit> -->
</span> </span>
</li> </li>
<li><span><em>{{$t('fnc.bmriqi')}}</em> <li><span><em>{{$t('fnc.bmriqi')}}</em>
<el-date-picker v-model='msg.CStartDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <!-- <el-date-picker v-model='msg.CStartDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> -->
<DateLimit :clearable="false" :StartGroupDate="msg.CStartDate" :EndGroupDate="msg.CEndDate" @change="(date)=> {msg.CStartDate = date,dataDuiQ()}"></DateLimit>
- -
<el-date-picker v-model='msg.CEndDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <el-date-picker v-model='msg.CEndDate' @change="dataDui()" class='w135' :picker-options="pickerBeginDateAfterBM" value-format="yyyy-MM-dd" type="date"></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
...@@ -382,6 +383,12 @@ ...@@ -382,6 +383,12 @@
return startTime.getTime() >= time.getTime(); return startTime.getTime() >= time.getTime();
} }
}, },
pickerBeginDateAfterBM: {
disabledDate: time => {
let startTime = new Date(this.msg.CStartDate);
return startTime.getTime() >= time.getTime();
}
},
normalizer(node) { normalizer(node) {
var obj = { var obj = {
id: node.DepartmentId, id: node.DepartmentId,
...@@ -643,7 +650,9 @@ ...@@ -643,7 +650,9 @@
} }
if(!this.$route.query||!this.$route.query.starTime){ if(!this.$route.query||!this.$route.query.starTime){
let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd")) let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
this.msg.QStartDate = StartDate let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
this.msg.CStartDate = StartDate
this.msg.CEndDate = EndDate
} }
this.getList(); this.getList();
}, },
......
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
<span><em>{{ $t("hotel.hotel_StarDate") }}</em> <span><em>{{ $t("hotel.hotel_StarDate") }}</em>
<!-- <el-date-picker v-model="msg.StartTime" @change="dataDui()" class="w135" value-format="yyyy-MM-dd" <!-- <el-date-picker v-model="msg.StartTime" @change="dataDui()" class="w135" value-format="yyyy-MM-dd"
type="date"></el-date-picker> --> type="date"></el-date-picker> -->
<DateLimit :clearable="false" :EndGroupDate="msg.EndTime" @change="(date)=> {msg.StartTime = date,dataDui()}"></DateLimit> <DateLimit :clearable="false" :StartGroupDate="msg.StartTime" :EndGroupDate="msg.EndTime" @change="(date)=> {msg.StartTime = date,dataDui()}"></DateLimit>
- -
<el-date-picker v-model="msg.EndTime" @change="dataDui()" class="w135" value-format="yyyy-MM-dd" <el-date-picker v-model="msg.EndTime" @change="dataDui()" class="w135" value-format="yyyy-MM-dd"
type="date" :picker-options="pickerBeginDateAfter"></el-date-picker> type="date" :picker-options="pickerBeginDateAfter"></el-date-picker>
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
<em>{{$t('scen.sc_ftTime')}}</em> <em>{{$t('scen.sc_ftTime')}}</em>
<!-- <el-date-picker class="w150" type="date" v-model="queryMsg.StartGroupDate" <!-- <el-date-picker class="w150" type="date" v-model="queryMsg.StartGroupDate"
:picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker> --> :picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker> -->
<DateLimit :clearable="false" :EndGroupDate="queryMsg.EndGroupDate" @change="(date)=> queryMsg.StartGroupDate = date"></DateLimit> <DateLimit :clearable="false" :StartGroupDate="queryMsg.StartGroupDate" :EndGroupDate="queryMsg.EndGroupDate" @change="(date)=> queryMsg.StartGroupDate = date"></DateLimit>
<el-date-picker class="w150" type="date" v-model="queryMsg.EndGroupDate" <el-date-picker class="w150" type="date" v-model="queryMsg.EndGroupDate"
:picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker> :picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker>
</span> </span>
......
...@@ -440,8 +440,9 @@ ...@@ -440,8 +440,9 @@
<li> <li>
<span> <span>
<em>{{$t('scen.sc_ftTime')}}</em> <em>{{$t('scen.sc_ftTime')}}</em>
<el-date-picker class="w150" type="date" v-model="queryMsg.StartGroupDate" <!-- <el-date-picker class="w150" type="date" v-model="queryMsg.StartGroupDate"
:picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker> :picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker> -->
<DateLimit :clearable="false" :StartGroupDate="queryMsg.StartGroupDate" :EndGroupDate="queryMsg.EndGroupDate" @change="(date)=> queryMsg.StartGroupDate = date"></DateLimit>
<el-date-picker class="w150" type="date" v-model="queryMsg.EndGroupDate" <el-date-picker class="w150" type="date" v-model="queryMsg.EndGroupDate"
:picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker> :picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker>
</span> </span>
...@@ -636,7 +637,11 @@ ...@@ -636,7 +637,11 @@
</div> </div>
</template> </template>
<script> <script>
import DateLimit from '../../public/DateLimit.vue';
export default { export default {
components: {
DateLimit
},
data() { data() {
return { return {
ArrList: [], ArrList: [],
......
<template> <template>
<el-date-picker class="w150" type="date" v-model="StartGroupDate" <el-date-picker class="w150" type="date" v-model="SGroupDate"
:picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" :picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd"
placeholder placeholder
:clearable="clearable==false||clearable?clearable:true" :clearable="clearable==false||clearable?clearable:true"
...@@ -7,20 +7,20 @@ ...@@ -7,20 +7,20 @@
</template> </template>
<script> <script>
export default { export default {
props:['EndGroupDate','clearable'], props:['StartGroupDate','EndGroupDate','clearable'],
data() { data() {
return { return {
StartGroupDate: '', SGroupDate: '',
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: time => { disabledDate: time => {
if(this.EndGroupDate){ if(this.EndGroupDate){
if (this.EndGroupDate == null) { if (this.EndGroupDate == null) {
if(this.StartGroupDate&&!this.isQueryHistoryData){ if(this.SGroupDate&&!this.isQueryHistoryData){
let endTime = this.TourDateRestrictions() let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime(); return time && endTime.getTime() >= time.getTime();
}else return false; }else return false;
} else { } else {
if(this.StartGroupDate&&!this.isQueryHistoryData){ if(this.SGroupDate&&!this.isQueryHistoryData){
let endTime = this.TourDateRestrictions() let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime(); return time && endTime.getTime() >= time.getTime();
}else{ }else{
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
} }
} }
}else { }else {
if(this.StartGroupDate&&!this.isQueryHistoryData){ if(this.SGroupDate&&!this.isQueryHistoryData){
let endTime = this.TourDateRestrictions() let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime(); return time && endTime.getTime() >= time.getTime();
} }
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
"-" + "-" +
myDate.getDate(); myDate.getDate();
if (!this.$route.query.tcmun) { if (!this.$route.query.tcmun) {
this.StartGroupDate = nowDate; this.SGroupDate = nowDate;
} }
}, },
mounted() { mounted() {
...@@ -57,22 +57,22 @@ ...@@ -57,22 +57,22 @@
watch: { watch: {
EndGroupDate:{ EndGroupDate:{
handler(n,o){ handler(n,o){
this.EGroupDate = n
}, },
deep:false, deep:false,
immediate: true, immediate: true,
}, },
StartGroupDate:{ StartGroupDate:{
handler(n,o){ handler(n,o){
this.SGroupDate = n
}, },
deep:true, deep:false,
immediate: false, immediate: true,
} }
}, },
methods: { methods: {
getTime() { getTime() {
this.$emit('change',this.StartGroupDate) this.$emit('change',this.SGroupDate)
}, },
GetSupperOrderEditAuth() { GetSupperOrderEditAuth() {
var actiionContract = this.$AuthCode.isQueryHistoryData; var actiionContract = this.$AuthCode.isQueryHistoryData;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment