|
@@ -21,6 +21,7 @@
|
21
|
21
|
align="right"
|
22
|
22
|
format="yyyy-MM-dd"
|
23
|
23
|
value-format="yyyy-MM-dd"
|
|
24
|
+ :picker-options="pickerOptions"
|
24
|
25
|
></el-date-picker>
|
25
|
26
|
<span class>-</span>
|
26
|
27
|
<el-date-picker
|
|
@@ -34,6 +35,7 @@
|
34
|
35
|
align="right"
|
35
|
36
|
format="yyyy-MM-dd"
|
36
|
37
|
value-format="yyyy-MM-dd"
|
|
38
|
+ :picker-options="pickerOptions"
|
37
|
39
|
></el-date-picker>
|
38
|
40
|
</div>
|
39
|
41
|
<el-container>
|
|
@@ -116,6 +118,12 @@ export default {
|
116
|
118
|
prescriptionList:[],
|
117
|
119
|
limit:1000,
|
118
|
120
|
page:1,
|
|
121
|
+ pickerOptions: {
|
|
122
|
+ disabledDate(time) {
|
|
123
|
+ let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear()-1)).getTime() - 24 * 3600 * 1000;
|
|
124
|
+ return time.getTime() > Date.now() || time.getTime() < threeMonths;;
|
|
125
|
+ }
|
|
126
|
+ },
|
119
|
127
|
};
|
120
|
128
|
},
|
121
|
129
|
methods: {
|
|
@@ -235,13 +243,13 @@ export default {
|
235
|
243
|
this.getModeId(prescriptionList)
|
236
|
244
|
|
237
|
245
|
// console.log("prescriptionList",prescriptionList)
|
238
|
|
- for(let i=0;i<this.prescriptionList.length;i++){
|
239
|
|
- for(let j=0;j<list.length;j++){
|
240
|
|
- if(this.prescriptionList[i].patient_id == list[j].patient_id){
|
241
|
|
- arr.push(this.prescriptionList[i])
|
242
|
|
- }
|
243
|
|
- }
|
244
|
|
- }
|
|
246
|
+ // for(let i=0;i<this.prescriptionList.length;i++){
|
|
247
|
+ // for(let j=0;j<list.length;j++){
|
|
248
|
+ // if(this.prescriptionList[i].patient_id == list[j].patient_id){
|
|
249
|
+ // arr.push(this.prescriptionList[i])
|
|
250
|
+ // }
|
|
251
|
+ // }
|
|
252
|
+ // }
|
245
|
253
|
let dataInfo = {}
|
246
|
254
|
list.forEach((item, index) => {
|
247
|
255
|
let { patient_id } = item
|