|
...
|
...
|
@@ -16,20 +16,20 @@ Component({ |
|
|
|
marklist:[]
|
|
|
|
},
|
|
|
|
attached(){
|
|
|
|
this.marklist=[];
|
|
|
|
this.setData({
|
|
|
|
date:util.unixtoTime(new Date()/1000,'YYYY-MM-DD')
|
|
|
|
})
|
|
|
|
this.showYearMonth=this.getshowmonth();
|
|
|
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
|
|
|
this.getFillDate(this.data.seller,this.showYearMonth);
|
|
|
|
this.triggerEvent('tellselectdate',{date:util.unixtoTime(new Date()/1000,'YYYY-MM-DD'),action:'defalut'});
|
|
|
|
},
|
|
|
|
observers: {
|
|
|
|
'setroom'(newsetroom){
|
|
|
|
console.log('calendar-room',newsetroom)
|
|
|
|
if(newsetroom && newsetroom.id){
|
|
|
|
this.marklist=[];
|
|
|
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
|
|
|
this.getFillDate(this.data.seller,this.showYearMonth);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
...
|
...
|
@@ -48,7 +48,6 @@ Component({ |
|
|
|
this.showYearMonth=e.detail;
|
|
|
|
if(e.detail.action='click'){
|
|
|
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
|
|
|
this.getFillDate(this.data.seller,this.showYearMonth);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
//根据指定年份月份获取当月满房的日期
|
|
...
|
...
|
@@ -61,19 +60,18 @@ Component({ |
|
|
|
App.Customer.GetHouseFullDate(parmdata).then((json)=>{
|
|
|
|
console.log(json)
|
|
|
|
if(json.ret==200){
|
|
|
|
let marklist=this.marklist;
|
|
|
|
console.log(marklist)
|
|
|
|
if(json.data && json.data.length>0){
|
|
|
|
let marklist=this.data.marklist;
|
|
|
|
json.data.forEach((v,i)=>{
|
|
|
|
marklist.push({
|
|
|
|
date:v,
|
|
|
|
mark:'满'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.setData({
|
|
|
|
marklist:marklist
|
|
|
|
})
|
|
|
|
this.marklist=marklist;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getFillDate(seller,showYearMonth);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
...
|
...
|
@@ -84,18 +82,20 @@ Component({ |
|
|
|
date:showYearMonth.showyear+'-'+(showYearMonth.showmonth<10 ? '0'+showYearMonth.showmonth : showYearMonth.showmonth)
|
|
|
|
}
|
|
|
|
App.Customer.GetTableFillUpDate(parmdata).then((json)=>{
|
|
|
|
if(json.data && json.data.length>0){
|
|
|
|
let marklist=this.data.marklist;
|
|
|
|
if(json.ret==200){
|
|
|
|
let marklist=this.marklist;
|
|
|
|
json.data.forEach((v,i)=>{
|
|
|
|
marklist.push({
|
|
|
|
date:v,
|
|
|
|
mark:'置'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.marklist=marklist;
|
|
|
|
this.setData({
|
|
|
|
marklist:marklist
|
|
|
|
marklist:this.marklist
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
tellselectdate(e){
|
...
|
...
|
|