diff --git a/src/views/modules/reportList/FullYearCalendarEntity.vue b/src/views/modules/reportList/FullYearCalendarEntity.vue
index a497d6f..d29f447 100644
--- a/src/views/modules/reportList/FullYearCalendarEntity.vue
+++ b/src/views/modules/reportList/FullYearCalendarEntity.vue
@@ -5,7 +5,7 @@
>
下载 {{ selectYear }} 年全部实物报表
@@ -67,7 +67,9 @@
>共计:{{
allMonthData[mIndex].total.filter(
item => item.payType == d.title
- )[0].count
+ )[0] ? allMonthData[mIndex].total.filter(
+ item => item.payType == d.title
+ )[0].count : 0
}}笔
@@ -75,7 +77,9 @@
>{{
allMonthData[mIndex].total.filter(
item => item.payType == d.title
- )[0].totalPrice
+ )[0] ? allMonthData[mIndex].total.filter(
+ item => item.payType == d.title
+ )[0].totalPrice : 0
}}
@@ -119,7 +123,11 @@ export default {
urlList: {
type: Object,
default: () => ({})
- }
+ },
+ merchantType: {
+ type: String,
+ default: '0'
+ },
},
data() {
return {
@@ -156,8 +164,8 @@ export default {
},
async created() {
- await this.getMonthsByYear(this.selectYear);
- await this.fetchAllMonthData();
+ // await this.getMonthsByYear(this.selectYear);
+ // await this.fetchAllMonthData();
},
methods: {
async handleExportAll() {
@@ -175,7 +183,7 @@ export default {
return this.$http({
url: this.$http.adornUrl(this.urlList.export),
method: "post",
- data: this.$http.adornData({ date:this.$commonJS.getDate(this.selectYear,m) }),
+ data: this.$http.adornData({ date:this.$commonJS.getDate(this.selectYear,m), orderType: this.merchantType }),
responseType: "blob"
})
.then(res => {
@@ -235,7 +243,8 @@ export default {
url: this.$http.adornUrl(this.urlList.export),
method: "post",
data: this.$http.adornData({
- date:this.$commonJS.getDate(this.selectYear,this.pad(mIndex))
+ date:this.$commonJS.getDate(this.selectYear,this.pad(mIndex)),
+ orderType: this.merchantType
}),
responseType: "blob" // ⚡⚡⚡一定要加上
}).then(res => {
@@ -292,7 +301,7 @@ export default {
return this.$http({
url: this.$http.adornUrl(this.urlList.list),
method: "post",
- data: this.$http.adornData({ date: this.$commonJS.getDate(year,m) })
+ data: this.$http.adornData({ date: this.$commonJS.getDate(year,m), orderType: this.merchantType })
})
.then(res => {
if (res.data && res.data.code === 0) {
diff --git a/src/views/modules/reportList/entityList.vue b/src/views/modules/reportList/entityList.vue
index d637d2f..40c05b0 100644
--- a/src/views/modules/reportList/entityList.vue
+++ b/src/views/modules/reportList/entityList.vue
@@ -1,41 +1,35 @@
+
+
+
+
-
-
-
-
-
+
+
+
刷新
-
+ type="primary"
+ size="small"
+ @click=" handleYearChange()"
+ >刷新
-
-
-
-
+
@@ -45,29 +39,31 @@
data() {
return {
urlList:{
-list:'/master/statistics/getPhysicalBuyOrderInfoTotal',
-export:'/master/statistics/exportPhysicalBuyOrderInfo',
+ list:'/master/statistics/getPhysicalBuyOrderInfoTotal',
+ export:'/master/statistics/exportPhysicalBuyOrderInfo',
},
currentYear: '',
+ merchantType:'order',
+ orderType:'order',
dataForm:{},
pickerOptions: {
- disabledDate(time) {
- // 禁用今年以后的年份
- return time.getFullYear() > new Date().getFullYear()
- }
- },
+ disabledDate(time) {
+ // 禁用今年以后的年份
+ return time.getFullYear() > new Date().getFullYear()
+ }
+ },
markedDates: {
- "2019-01-01": "red",
- "2019-02-14": "blue",
- "2019-03-12": "yellow",
- "2019-05-20": "blue",
- "2019-06-10": "yellow"
- }
+ "2019-01-01": "red",
+ "2019-02-14": "blue",
+ "2019-03-12": "yellow",
+ "2019-05-20": "blue",
+ "2019-06-10": "yellow"
+ }
};
},
components: { FullYearCalendar },
activated() {
- this.currentYear = new Date().getFullYear().toString();
+ this.currentYear = new Date().getFullYear().toString();
this.handleYearChange();
},
@@ -77,7 +73,13 @@ export:'/master/statistics/exportPhysicalBuyOrderInfo',
this.$refs.refCalendar.init();
})
},
-
+ changeTab(tab) {
+ if (tab.name === this.orderType) {
+ return;
+ }
+ this.orderType = tab.name;
+ this.handleYearChange();
+ }
}
diff --git a/src/views/modules/shop/curriculum.vue b/src/views/modules/shop/curriculum.vue
index 55f40fa..e257ba3 100644
--- a/src/views/modules/shop/curriculum.vue
+++ b/src/views/modules/shop/curriculum.vue
@@ -174,6 +174,12 @@
否
+
+
+ 众妙之门
+ 灵枢教育科技
+
+
克
@@ -224,6 +224,12 @@
否
+
+
+ 众妙之门
+ 灵枢教育科技
+
+