|
@@ -813,6 +813,8 @@
|
|
:height="500"
|
|
:height="500"
|
|
highlight-current-row
|
|
highlight-current-row
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
+ v-loading="tbload"
|
|
|
|
+ :lazy="true"
|
|
>
|
|
>
|
|
<el-table-column width="75" type="index" fixed="left" label="序号">
|
|
<el-table-column width="75" type="index" fixed="left" label="序号">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -955,6 +957,8 @@
|
|
:height="500"
|
|
:height="500"
|
|
highlight-current-row
|
|
highlight-current-row
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
|
+ v-loading="tbload"
|
|
|
|
+ lazy
|
|
>
|
|
>
|
|
<el-table-column min-width="300" fixed="left" label="部门" prop="department">
|
|
<el-table-column min-width="300" fixed="left" label="部门" prop="department">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -1150,6 +1154,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ tbload: false,
|
|
exportTimeDialog: false,
|
|
exportTimeDialog: false,
|
|
searchKeyword: '',
|
|
searchKeyword: '',
|
|
monthworkDateS: [],
|
|
monthworkDateS: [],
|
|
@@ -1597,7 +1602,7 @@
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- console.log("维度",res.data);
|
|
|
|
|
|
+ // console.log("维度",res.data);
|
|
this.yonghuUser = res.data
|
|
this.yonghuUser = res.data
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1770,14 +1775,15 @@
|
|
if(this.WorktimeDatepickValue.length == 0){
|
|
if(this.WorktimeDatepickValue.length == 0){
|
|
let newdate = new Date();
|
|
let newdate = new Date();
|
|
let nowdate = newdate.toLocaleDateString();
|
|
let nowdate = newdate.toLocaleDateString();
|
|
- let nowwd = [this.getAutoWeekDate(nowdate)[0],this.getAutoWeekDate(nowdate)[6]]
|
|
|
|
|
|
+ let getauto = this.getAutoWeekDate(nowdate)
|
|
|
|
+ let nowwd = [getauto[0],getauto[6]]
|
|
this.WorktimeDatepickValue = nowwd
|
|
this.WorktimeDatepickValue = nowwd
|
|
}
|
|
}
|
|
this.showMonthWorkTime()
|
|
this.showMonthWorkTime()
|
|
},
|
|
},
|
|
|
|
|
|
handleClick(t,e){
|
|
handleClick(t,e){
|
|
- console.log("tabname",t.name);
|
|
|
|
|
|
+ // console.log("tabname",t.name);
|
|
if (t.name == "first") {
|
|
if (t.name == "first") {
|
|
this.showMonthWorkTime()
|
|
this.showMonthWorkTime()
|
|
}else{
|
|
}else{
|
|
@@ -1786,7 +1792,7 @@
|
|
},
|
|
},
|
|
//导出员工每日填报工时数
|
|
//导出员工每日填报工时数
|
|
exportMembWorkHours() {
|
|
exportMembWorkHours() {
|
|
- console.log("exportMembWorkHours",this.WorktimeDatepickValue);
|
|
|
|
|
|
+ // console.log("exportMembWorkHours",this.WorktimeDatepickValue);
|
|
this.http.post(
|
|
this.http.post(
|
|
"/report/exportUserDailyWorkTime",
|
|
"/report/exportUserDailyWorkTime",
|
|
{
|
|
{
|
|
@@ -1797,7 +1803,7 @@
|
|
(res) => {
|
|
(res) => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
let url = res.data;
|
|
let url = res.data;
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
this.downloadByA("人员每日工时统计.xls", url);
|
|
this.downloadByA("人员每日工时统计.xls", url);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1823,7 +1829,7 @@
|
|
let url = res.data;
|
|
let url = res.data;
|
|
// console.log(res.data);
|
|
// console.log(res.data);
|
|
this.downloadByA("人员每日工时统计.xls", url);
|
|
this.downloadByA("人员每日工时统计.xls", url);
|
|
- console.log(url);
|
|
|
|
|
|
+ // console.log(url);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
(error) => {
|
|
(error) => {
|
|
@@ -1836,7 +1842,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
downloadByA(name, url) {
|
|
downloadByA(name, url) {
|
|
- console.log(name,url);
|
|
|
|
|
|
+ // console.log(name,url);
|
|
const a = document.createElement("a"); // 创建a标签
|
|
const a = document.createElement("a"); // 创建a标签
|
|
a.setAttribute("download", name); // download属性
|
|
a.setAttribute("download", name); // download属性
|
|
a.setAttribute("href", url); // href链接
|
|
a.setAttribute("href", url); // href链接
|
|
@@ -1854,15 +1860,16 @@
|
|
}else{
|
|
}else{
|
|
let sedate = new Date(this.date)
|
|
let sedate = new Date(this.date)
|
|
let semonth = sedate.getMonth() + 1
|
|
let semonth = sedate.getMonth() + 1
|
|
- let seday = new Date(sedate.getFullYear(), semonth, 0).getDate()
|
|
|
|
|
|
+ // let seday = new Date(sedate.getFullYear(), semonth, 0).getDate()
|
|
let sedates1 = sedate.getFullYear() + '-' + (semonth < 10 ? '0' + semonth : semonth) + '-01'
|
|
let sedates1 = sedate.getFullYear() + '-' + (semonth < 10 ? '0' + semonth : semonth) + '-01'
|
|
- let sedates2 = sedate.getFullYear() + '-' + (semonth < 10 ? '0' + semonth : semonth) + '-' + seday
|
|
|
|
|
|
+ let sedates2 = sedate.getFullYear() + '-' + (semonth < 10 ? '0' + semonth : semonth) + '-07'
|
|
return [sedates1, sedates2]
|
|
return [sedates1, sedates2]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
showMonthWorkTime() {
|
|
showMonthWorkTime() {
|
|
this.monthTotalPage = 0,
|
|
this.monthTotalPage = 0,
|
|
|
|
+ this.tbload = true
|
|
this.http.post(
|
|
this.http.post(
|
|
"/report/getUserDailyWorkTime",
|
|
"/report/getUserDailyWorkTime",
|
|
// "/report/getNoReportUserList",
|
|
// "/report/getNoReportUserList",
|
|
@@ -1873,6 +1880,7 @@
|
|
},
|
|
},
|
|
(res) => {
|
|
(res) => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
|
|
+ this.tbload = false
|
|
this.pickDateArray = res.data.days;
|
|
this.pickDateArray = res.data.days;
|
|
this.monthworkDate = res.data.list;
|
|
this.monthworkDate = res.data.list;
|
|
// this.monthworkDateS = this.monthworkDate
|
|
// this.monthworkDateS = this.monthworkDate
|
|
@@ -1902,6 +1910,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
(error) => {
|
|
(error) => {
|
|
|
|
+ this.tbload = false
|
|
this.$message({
|
|
this.$message({
|
|
message: error,
|
|
message: error,
|
|
type: "error",
|
|
type: "error",
|
|
@@ -1937,6 +1946,7 @@
|
|
showMonthNotWorkTime() {
|
|
showMonthNotWorkTime() {
|
|
this.monthTotalPage = 0,
|
|
this.monthTotalPage = 0,
|
|
console.log("exportMembNotWorkHours",this.WorktimeDatepickValue);
|
|
console.log("exportMembNotWorkHours",this.WorktimeDatepickValue);
|
|
|
|
+ this.tbload = true
|
|
this.http.post(
|
|
this.http.post(
|
|
// "/report/getUserDailyWorkTime",
|
|
// "/report/getUserDailyWorkTime",
|
|
"/report/getNoReportUserList",
|
|
"/report/getNoReportUserList",
|
|
@@ -1947,6 +1957,7 @@
|
|
},
|
|
},
|
|
(res) => {
|
|
(res) => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
|
|
+ this.tbload = false
|
|
this.monthNotWorkDate = res.data;
|
|
this.monthNotWorkDate = res.data;
|
|
this.monthNotWorkDateS = this.monthNotWorkDate
|
|
this.monthNotWorkDateS = this.monthNotWorkDate
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
@@ -1954,6 +1965,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
(error) => {
|
|
(error) => {
|
|
|
|
+ this.tbload = false
|
|
this.$message({
|
|
this.$message({
|
|
message: error,
|
|
message: error,
|
|
type: "error",
|
|
type: "error",
|
|
@@ -2256,7 +2268,7 @@
|
|
},
|
|
},
|
|
//项目选中了, 加载子项目
|
|
//项目选中了, 加载子项目
|
|
selectProject(domain, index) {
|
|
selectProject(domain, index) {
|
|
- console.log(domain, index, '加载')
|
|
|
|
|
|
+ // console.log(domain, index, '加载')
|
|
this.http.post('/sub-project/list',{
|
|
this.http.post('/sub-project/list',{
|
|
projectId: domain.projectId
|
|
projectId: domain.projectId
|
|
},
|
|
},
|
|
@@ -2350,7 +2362,7 @@
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- console.log("维度数据",res.data);
|
|
|
|
|
|
+ // console.log("维度数据",res.data);
|
|
this.workForm.domains[index].wuduList = res.data
|
|
this.workForm.domains[index].wuduList = res.data
|
|
// this.workForm = this.workForm
|
|
// this.workForm = this.workForm
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
@@ -2658,9 +2670,9 @@
|
|
this.unFillList = this.getUserMembListFromDeptList(list, 0);
|
|
this.unFillList = this.getUserMembListFromDeptList(list, 0);
|
|
this.fillList = this.getUserMembListFromDeptList(list, 1)
|
|
this.fillList = this.getUserMembListFromDeptList(list, 1)
|
|
}
|
|
}
|
|
- console.log(this.depData.isUser)
|
|
|
|
- console.log(this.depData.membCount)
|
|
|
|
- console.log(this.depData)
|
|
|
|
|
|
+ // console.log(this.depData.isUser)
|
|
|
|
+ // console.log(this.depData.membCount)
|
|
|
|
+ // console.log(this.depData)
|
|
},
|
|
},
|
|
theValues(id, item) {
|
|
theValues(id, item) {
|
|
for(var i in item) {
|
|
for(var i in item) {
|
|
@@ -3129,7 +3141,7 @@
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.projectList = res.data;
|
|
this.projectList = res.data;
|
|
- console.log("项目列表",this.projectList);
|
|
|
|
|
|
+ // console.log("项目列表",this.projectList);
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|
|
@@ -3310,7 +3322,7 @@
|
|
},
|
|
},
|
|
// 按周填报里内容的填写
|
|
// 按周填报里内容的填写
|
|
tianxies(item, i, names, row) {
|
|
tianxies(item, i, names, row) {
|
|
- console.log(item, i, names, row[0], '你好')
|
|
|
|
|
|
+ // console.log(item, i, names, row[0], '你好')
|
|
var idd = ''
|
|
var idd = ''
|
|
var obj = {}
|
|
var obj = {}
|
|
for(var l in this.projectList) {
|
|
for(var l in this.projectList) {
|
|
@@ -3318,7 +3330,7 @@
|
|
}
|
|
}
|
|
obj.projectId = idd
|
|
obj.projectId = idd
|
|
this.selectProject(obj, 0)
|
|
this.selectProject(obj, 0)
|
|
- console.log(this.workForm.domains[0], '打印出来的')
|
|
|
|
|
|
+ // console.log(this.workForm.domains[0], '打印出来的')
|
|
this.tianxieDialogVisible = true
|
|
this.tianxieDialogVisible = true
|
|
this.scopess = item
|
|
this.scopess = item
|
|
var sss = {}
|
|
var sss = {}
|
|
@@ -3330,7 +3342,7 @@
|
|
var that = this
|
|
var that = this
|
|
setTimeout(() =>{
|
|
setTimeout(() =>{
|
|
if(Object.keys(item).length < 5) {
|
|
if(Object.keys(item).length < 5) {
|
|
- console.log(456)
|
|
|
|
|
|
+ // console.log(456)
|
|
sss.subProjectId = that.workForm.domains[0].subProjectId
|
|
sss.subProjectId = that.workForm.domains[0].subProjectId
|
|
sss.stage = that.workForm.domains[0].stage
|
|
sss.stage = that.workForm.domains[0].stage
|
|
sss.subProjectList = that.workForm.domains[0].subProjectList
|
|
sss.subProjectList = that.workForm.domains[0].subProjectList
|
|
@@ -3347,7 +3359,7 @@
|
|
//只有一个审核人,自动设置上去
|
|
//只有一个审核人,自动设置上去
|
|
sss.projectAuditorId = sss.auditUserList[0].auditorId;
|
|
sss.projectAuditorId = sss.auditUserList[0].auditorId;
|
|
}
|
|
}
|
|
- console.log(sss, '数据')
|
|
|
|
|
|
+ // console.log(sss, '数据')
|
|
that.zhoBaoIdx = i
|
|
that.zhoBaoIdx = i
|
|
that.zhoBaoName = names
|
|
that.zhoBaoName = names
|
|
that.zhoBao = sss
|
|
that.zhoBao = sss
|
|
@@ -3474,9 +3486,9 @@
|
|
},
|
|
},
|
|
// 新增日期
|
|
// 新增日期
|
|
newDates() {
|
|
newDates() {
|
|
- console.log(this.zhoRqi, '看卡')
|
|
|
|
|
|
+ // console.log(this.zhoRqi, '看卡')
|
|
this.zhoRqi[1] = this.dateChange(1, this.zhoRqi[1])
|
|
this.zhoRqi[1] = this.dateChange(1, this.zhoRqi[1])
|
|
- console.log(this.zhoRqi[1])
|
|
|
|
|
|
+ // console.log(this.zhoRqi[1])
|
|
var obj = {}
|
|
var obj = {}
|
|
obj.zhoDataTime = this.zhoRqi[1]
|
|
obj.zhoDataTime = this.zhoRqi[1]
|
|
obj.he = 0
|
|
obj.he = 0
|
|
@@ -3669,8 +3681,8 @@
|
|
zhoAdd() {
|
|
zhoAdd() {
|
|
var zhi = this.zhoData
|
|
var zhi = this.zhoData
|
|
var ll = 0
|
|
var ll = 0
|
|
- console.log(this.reportTimeType.type)
|
|
|
|
- console.log(this.reportTimeType.multiWorktime)
|
|
|
|
|
|
+ // console.log(this.reportTimeType.type)
|
|
|
|
+ // console.log(this.reportTimeType.multiWorktime)
|
|
if(this.reportTimeType.type == 2) {
|
|
if(this.reportTimeType.type == 2) {
|
|
for(var i in zhi) {
|
|
for(var i in zhi) {
|
|
this.dateAr = []
|
|
this.dateAr = []
|
|
@@ -4459,7 +4471,7 @@
|
|
res => {
|
|
res => {
|
|
this.toViewloading = false;
|
|
this.toViewloading = false;
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
- console.log(res.data, '数据数据')
|
|
|
|
|
|
+ // console.log(res.data, '数据数据')
|
|
this.toViewList = res.data.records
|
|
this.toViewList = res.data.records
|
|
this.toViewForm.total = res.data.total
|
|
this.toViewForm.total = res.data.total
|
|
} else {
|
|
} else {
|