个人周报填报页面查询修改
This commit is contained in:
parent
d05ccc6a0a
commit
f4121f89b2
@ -85,37 +85,53 @@
|
||||
if (userId === '0') {
|
||||
this.isSuper = true;
|
||||
}
|
||||
this.pageLoading = true;
|
||||
// this.pageLoading = true;
|
||||
Api.ProjectManagements.getWeekly().then(result=>{
|
||||
console.log("周报填报列表",result)
|
||||
})
|
||||
Api.FinanceManagement.getReimburseList(this.pageNo, this.pageSize).then(result => {
|
||||
this.pageLoading = false;
|
||||
this.tableRowsData = [];
|
||||
this.pageLoading = false;
|
||||
console.log("周报填报列表",result)
|
||||
if (result.status === 0) {
|
||||
this.isEdit = result.data.isEdit;
|
||||
this.tableTotalPage = result.data.total
|
||||
let dataList = result.data.ls;
|
||||
for (let i=0; i<dataList.length; i++) {
|
||||
let deptName = '';
|
||||
for (let j=0; j<dataList[i].userInfo.dept.length; j++) {
|
||||
deptName += dataList[i].userInfo.dept[j].orgName;
|
||||
if (j < dataList[i].userInfo.dept.length - 1) {
|
||||
deptName += '>';
|
||||
}
|
||||
}
|
||||
this.tableRowsData.push({
|
||||
status: dataList[i].status,
|
||||
id: dataList[i].id,
|
||||
userInfoName: dataList[i].userInfo.userInfoName,
|
||||
category: '报销',
|
||||
deptName: deptName
|
||||
projectNo: dataList[i].projectNo,
|
||||
projectName: dataList[i].projectName,
|
||||
userName: dataList[i].userName,
|
||||
workload: dataList[i].workload,
|
||||
thisWeek: dataList[i].thisWeek,
|
||||
nextWeek: dataList[i].nextWeek
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$message.error(`${result.msg}`);
|
||||
console.log("tableRowsData",this.tableRowsData)
|
||||
}
|
||||
})
|
||||
// Api.FinanceManagement.getReimburseList(this.pageNo, this.pageSize).then(result => {
|
||||
// this.pageLoading = false;
|
||||
// this.tableRowsData = [];
|
||||
// if (result.status === 0) {
|
||||
// this.isEdit = result.data.isEdit;
|
||||
// this.tableTotalPage = result.data.total
|
||||
// let dataList = result.data.ls;
|
||||
// for (let i=0; i<dataList.length; i++) {
|
||||
// let deptName = '';
|
||||
// for (let j=0; j<dataList[i].userInfo.dept.length; j++) {
|
||||
// deptName += dataList[i].userInfo.dept[j].orgName;
|
||||
// if (j < dataList[i].userInfo.dept.length - 1) {
|
||||
// deptName += '>';
|
||||
// }
|
||||
// }
|
||||
// this.tableRowsData.push({
|
||||
// status: dataList[i].status,
|
||||
// id: dataList[i].id,
|
||||
// userInfoName: dataList[i].userInfo.userInfoName,
|
||||
// category: '报销',
|
||||
// deptName: deptName
|
||||
// })
|
||||
// }
|
||||
// } else {
|
||||
// this.$message.error(`${result.msg}`);
|
||||
// }
|
||||
// })
|
||||
},
|
||||
//初始化tableColumns
|
||||
initTableColumns () {
|
||||
@ -132,7 +148,7 @@
|
||||
},
|
||||
{
|
||||
label: '员工姓名',
|
||||
prop: 'userNam',
|
||||
prop: 'userName',
|
||||
show: true
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user