ccj 2 anos atrás
pai
commit
b89ece6890
2 arquivos alterados com 7 adições e 6 exclusões
  1. 2 2
      config/index.js
  2. 5 4
      pages/dataReport/costbreakdown.vue

+ 2 - 2
config/index.js

@@ -8,9 +8,9 @@ const dev = {
 	// baseUrlNew: 'http://192.168.110.82:8099/',
 	 // baseUrlNew: 'http://192.168.110.82:8090/',
 	// baseUrlNew: 'http://192.168.110.202:8090/',
-	baseUrlNew: 'http://192.168.110.138:8090/',
+	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// 上传图片的
-	// baseUrlNew: 'https://api2.eliangeyun.com/',
+	baseUrlNew: 'https://api2.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 5 - 4
pages/dataReport/costbreakdown.vue

@@ -89,9 +89,9 @@
 			}
 		},
 		onLoad(options) {
-			console.log(options.data)
+			console.log(options)
 
-			if (options.type == 1) {
+			if (options.type == 2) {
 				// 获取月份的天数
 				let _days = new Date(options.data.split('-')[0], options.data.split('-')[1], 0).getDate()
 				console.log(_days)
@@ -99,7 +99,7 @@
 					startDate: options.data + '-01',
 					endDate: options.data + '-' + _days
 				}
-			} else if (options.type == 2) {
+			} else if (options.type == 1) {
 				this.expenseInfo = {
 					startDate: options.data + '-01-01',
 					endDate: options.data + '-12-31'
@@ -204,7 +204,8 @@
 					searchType: this.searchType,
 					expenseName: this.expenseName,
 					startDate: this.expenseInfo.startDate,
-					endDate: this.expenseInfo.endDate
+					endDate: this.expenseInfo.endDate,
+					compId:uni.getStorageSync("pcUserInfo").compId
 				}).then(res => {
 					if (res.data.code) {
 						uni.hideLoading()