|
@@ -16,20 +16,20 @@ Component({ |
|
@@ -16,20 +16,20 @@ Component({ |
|
16
|
marklist:[]
|
16
|
marklist:[]
|
|
17
|
},
|
17
|
},
|
|
18
|
attached(){
|
18
|
attached(){
|
|
|
|
19
|
+ this.marklist=[];
|
|
19
|
this.setData({
|
20
|
this.setData({
|
|
20
|
date:util.unixtoTime(new Date()/1000,'YYYY-MM-DD')
|
21
|
date:util.unixtoTime(new Date()/1000,'YYYY-MM-DD')
|
|
21
|
})
|
22
|
})
|
|
22
|
this.showYearMonth=this.getshowmonth();
|
23
|
this.showYearMonth=this.getshowmonth();
|
|
23
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
24
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
|
24
|
- this.getFillDate(this.data.seller,this.showYearMonth);
|
|
|
|
25
|
this.triggerEvent('tellselectdate',{date:util.unixtoTime(new Date()/1000,'YYYY-MM-DD'),action:'defalut'});
|
25
|
this.triggerEvent('tellselectdate',{date:util.unixtoTime(new Date()/1000,'YYYY-MM-DD'),action:'defalut'});
|
|
26
|
},
|
26
|
},
|
|
27
|
observers: {
|
27
|
observers: {
|
|
28
|
'setroom'(newsetroom){
|
28
|
'setroom'(newsetroom){
|
|
29
|
console.log('calendar-room',newsetroom)
|
29
|
console.log('calendar-room',newsetroom)
|
|
30
|
if(newsetroom && newsetroom.id){
|
30
|
if(newsetroom && newsetroom.id){
|
|
|
|
31
|
+ this.marklist=[];
|
|
31
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
32
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
|
32
|
- this.getFillDate(this.data.seller,this.showYearMonth);
|
|
|
|
33
|
}
|
33
|
}
|
|
34
|
}
|
34
|
}
|
|
35
|
},
|
35
|
},
|
|
@@ -48,7 +48,6 @@ Component({ |
|
@@ -48,7 +48,6 @@ Component({ |
|
48
|
this.showYearMonth=e.detail;
|
48
|
this.showYearMonth=e.detail;
|
|
49
|
if(e.detail.action='click'){
|
49
|
if(e.detail.action='click'){
|
|
50
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
50
|
this.gethousefulldate(this.data.seller,this.showYearMonth);
|
|
51
|
- this.getFillDate(this.data.seller,this.showYearMonth);
|
|
|
|
52
|
}
|
51
|
}
|
|
53
|
},
|
52
|
},
|
|
54
|
//根据指定年份月份获取当月满房的日期
|
53
|
//根据指定年份月份获取当月满房的日期
|
|
@@ -61,19 +60,18 @@ Component({ |
|
@@ -61,19 +60,18 @@ Component({ |
|
61
|
App.Customer.GetHouseFullDate(parmdata).then((json)=>{
|
60
|
App.Customer.GetHouseFullDate(parmdata).then((json)=>{
|
|
62
|
console.log(json)
|
61
|
console.log(json)
|
|
63
|
if(json.ret==200){
|
62
|
if(json.ret==200){
|
|
|
|
63
|
+ let marklist=this.marklist;
|
|
|
|
64
|
+ console.log(marklist)
|
|
64
|
if(json.data && json.data.length>0){
|
65
|
if(json.data && json.data.length>0){
|
|
65
|
- let marklist=this.data.marklist;
|
|
|
|
66
|
json.data.forEach((v,i)=>{
|
66
|
json.data.forEach((v,i)=>{
|
|
67
|
marklist.push({
|
67
|
marklist.push({
|
|
68
|
date:v,
|
68
|
date:v,
|
|
69
|
mark:'满'
|
69
|
mark:'满'
|
|
70
|
})
|
70
|
})
|
|
71
|
})
|
71
|
})
|
|
72
|
- this.setData({
|
|
|
|
73
|
- marklist:marklist
|
|
|
|
74
|
- })
|
72
|
+ this.marklist=marklist;
|
|
75
|
}
|
73
|
}
|
|
76
|
-
|
74
|
+ this.getFillDate(seller,showYearMonth);
|
|
77
|
}
|
75
|
}
|
|
78
|
})
|
76
|
})
|
|
79
|
},
|
77
|
},
|
|
@@ -84,18 +82,20 @@ Component({ |
|
@@ -84,18 +82,20 @@ Component({ |
|
84
|
date:showYearMonth.showyear+'-'+(showYearMonth.showmonth<10 ? '0'+showYearMonth.showmonth : showYearMonth.showmonth)
|
82
|
date:showYearMonth.showyear+'-'+(showYearMonth.showmonth<10 ? '0'+showYearMonth.showmonth : showYearMonth.showmonth)
|
|
85
|
}
|
83
|
}
|
|
86
|
App.Customer.GetTableFillUpDate(parmdata).then((json)=>{
|
84
|
App.Customer.GetTableFillUpDate(parmdata).then((json)=>{
|
|
87
|
- if(json.data && json.data.length>0){
|
|
|
|
88
|
- let marklist=this.data.marklist;
|
85
|
+ if(json.ret==200){
|
|
|
|
86
|
+ let marklist=this.marklist;
|
|
89
|
json.data.forEach((v,i)=>{
|
87
|
json.data.forEach((v,i)=>{
|
|
90
|
marklist.push({
|
88
|
marklist.push({
|
|
91
|
date:v,
|
89
|
date:v,
|
|
92
|
mark:'置'
|
90
|
mark:'置'
|
|
93
|
})
|
91
|
})
|
|
94
|
})
|
92
|
})
|
|
|
|
93
|
+ this.marklist=marklist;
|
|
95
|
this.setData({
|
94
|
this.setData({
|
|
96
|
- marklist:marklist
|
95
|
+ marklist:this.marklist
|
|
97
|
})
|
96
|
})
|
|
98
|
}
|
97
|
}
|
|
|
|
98
|
+
|
|
99
|
})
|
99
|
})
|
|
100
|
},
|
100
|
},
|
|
101
|
tellselectdate(e){
|
101
|
tellselectdate(e){
|