|
@@ -1,5 +1,6 @@
|
|
var util = require('../../../util/util.js')
|
|
var util = require('../../../util/util.js')
|
|
import apiUrl1 from '../../../util/apiUrl1'
|
|
import apiUrl1 from '../../../util/apiUrl1'
|
|
|
|
+import apiUrl from '../../../util/apiUrl'
|
|
import request from '../../../util/http'
|
|
import request from '../../../util/http'
|
|
var app = getApp();
|
|
var app = getApp();
|
|
Page({
|
|
Page({
|
|
@@ -42,6 +43,7 @@ Page({
|
|
//处理时间完成
|
|
//处理时间完成
|
|
|
|
|
|
this.selectDayTaskItem()
|
|
this.selectDayTaskItem()
|
|
|
|
+ this.selectDayTaskCost()
|
|
},
|
|
},
|
|
showcancel(){
|
|
showcancel(){
|
|
this.setData({
|
|
this.setData({
|
|
@@ -129,5 +131,31 @@ Page({
|
|
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //查询今天花销
|
|
|
|
+ selectDayTaskCost() {
|
|
|
|
+ let params = {
|
|
|
|
+ "employRelationNo": app.globalData.employRelationNo,
|
|
|
|
+ "date": this.data.nowselectTime
|
|
|
|
+ }
|
|
|
|
+ request.httpServiceGet(apiUrl.getEmployerCost, params).then(data => {
|
|
|
|
+ console.log("今日任务花费=" + data);
|
|
|
|
+ // 未设置任务
|
|
|
|
+ if (data.length == 0) {
|
|
|
|
+ this.setData({
|
|
|
|
+ isreminds: false,
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ // 今天有任务
|
|
|
|
+ this.setData({
|
|
|
|
+ taskList: data,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ ).catch(e => {
|
|
|
|
+ console.log(e);
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
|
|
});
|
|
});
|