|
@ -137,6 +137,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
medicineBag:'1',
|
|
|
medicineData:false,
|
|
|
prescriptionBag:'1',
|
|
|
salesBag:'1',
|
|
|
count:[],
|
|
@ -182,7 +183,7 @@ export default {
|
|
|
userId: this.user.id
|
|
|
})
|
|
|
.then(res=>{
|
|
|
console.log('countall', res);
|
|
|
// console.log('countall', res);
|
|
|
this.overview = res.obj.overview;
|
|
|
this.maintain = res.obj.maintain;
|
|
|
})
|
|
@ -199,10 +200,12 @@ export default {
|
|
|
})
|
|
|
.then(res=>{
|
|
|
console.log('medicine', res)
|
|
|
this.medicineData = true;
|
|
|
this.shippingType = res.obj;
|
|
|
})
|
|
|
.catch(err=>{
|
|
|
console.error(err)
|
|
|
console.error(err)
|
|
|
this.medicineData = true;
|
|
|
})
|
|
|
},
|
|
|
// 电子处方单
|
|
@ -222,16 +225,18 @@ export default {
|
|
|
},
|
|
|
// 取药时间查询
|
|
|
medicineTime(val){
|
|
|
if(val == '全部'){
|
|
|
this.medicineBag = '';
|
|
|
this.medicine();
|
|
|
console.log('全部')
|
|
|
}else{
|
|
|
this.medicineBag = val;
|
|
|
if(this.medicineData){
|
|
|
if(val == '全部'){
|
|
|
this.medicineBag = '';
|
|
|
console.log('全部')
|
|
|
}else{
|
|
|
this.medicineBag = val;
|
|
|
console.log('1,3,7,9')
|
|
|
}
|
|
|
this.medicineData = false;
|
|
|
this.medicine();
|
|
|
console.log('1,3,7,9')
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
// 电子处方单查询
|
|
|
prescriptionTime(val){
|
|
@ -263,7 +268,7 @@ export default {
|
|
|
day:this.salesBag
|
|
|
})
|
|
|
.then(res=>{
|
|
|
console.log('echartsData', res);
|
|
|
// console.log('echartsData', res);
|
|
|
this.amount = res.obj.amount;
|
|
|
this.count = res.obj.amountdateList.map((item) =>{
|
|
|
return item.count
|