|
@@ -206,27 +206,27 @@ export default {
|
|
|
created() {
|
|
|
// 初次加载当月数据
|
|
|
this.getThisMonthData();
|
|
|
- this.value = [];
|
|
|
- this.value.push(myFormatDate(new Date(),"yyyy-MM"));
|
|
|
- this.value.push(myFormatDate(new Date(),"yyyy-MM"));
|
|
|
+ //this.value = [];
|
|
|
+ //this.value.push(myFormatDate(new Date(),"yyyy-MM"));
|
|
|
+ //this.value.push(myFormatDate(new Date(),"yyyy-MM"));
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
// 初次加载当月数据(列表、图)
|
|
|
getThisMonthData() {
|
|
|
this.$nextTick(() => {
|
|
|
- let nowDate = new Date()
|
|
|
- let date = {
|
|
|
- year: nowDate.getFullYear(),
|
|
|
- month: nowDate.getMonth() + 1
|
|
|
- }
|
|
|
- if (date.month >= 1 && date.month <= 9) {
|
|
|
- date.month = '0' + date.month
|
|
|
- }
|
|
|
- var time = date.year + '-' + date.month
|
|
|
-
|
|
|
- this.queryParam.startYearMonth = time
|
|
|
- this.queryParam.endYearMonth = time
|
|
|
+ //let nowDate = new Date()
|
|
|
+ //let date = {
|
|
|
+ // year: nowDate.getFullYear(),
|
|
|
+ // month: nowDate.getMonth() + 1
|
|
|
+ //}
|
|
|
+ //if (date.month >= 1 && date.month <= 9) {
|
|
|
+ // date.month = '0' + date.month
|
|
|
+ //}
|
|
|
+ //var time = date.year + '-' + date.month
|
|
|
+
|
|
|
+ //this.queryParam.startYearMonth = time
|
|
|
+ //this.queryParam.endYearMonth = time
|
|
|
|
|
|
this.queryParam.vendorType = '内部'
|
|
|
externalList(this.queryParam).then(res => {
|