个人周报填报页面增加周数字段
This commit is contained in:
parent
dcaeb511c2
commit
9223f16dfa
@ -50,7 +50,7 @@
|
|||||||
export default {
|
export default {
|
||||||
beforeRouteEnter (to, from, next) {
|
beforeRouteEnter (to, from, next) {
|
||||||
next(function (vm) {
|
next(function (vm) {
|
||||||
global.getMenuIndex(vm);
|
global.getMenuIndex(vm)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@ -73,28 +73,28 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.initTableColumns();
|
this.initTableColumns()
|
||||||
this.init();
|
this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addExpApply () {
|
addExpApply () {
|
||||||
this.$router.push({name: 'AddClaimApply'})
|
this.$router.push({name: 'AddClaimApply'})
|
||||||
},
|
},
|
||||||
init () {
|
init () {
|
||||||
let userId = getItem('userId');
|
let userId = getItem('userId')
|
||||||
if (userId === '0') {
|
if (userId === '0') {
|
||||||
this.isSuper = true;
|
this.isSuper = true
|
||||||
}
|
}
|
||||||
let projectWeeklyFindReq = {
|
let projectWeeklyFindReq = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}
|
}
|
||||||
Api.ProjectManagements.getWeekly(projectWeeklyFindReq).then(result => {
|
Api.ProjectManagements.getWeekly(projectWeeklyFindReq).then(result => {
|
||||||
this.tableRowsData = [];
|
this.tableRowsData = []
|
||||||
this.pageLoading = false;
|
this.pageLoading = false
|
||||||
console.log("周报填报列表",result)
|
console.log('周报填报列表', result)
|
||||||
if (result.status === 0) {
|
if (result.status === 0) {
|
||||||
let dataList = result.data.ls;
|
let dataList = result.data.ls
|
||||||
for (let i = 0; i < dataList.length; i++) {
|
for (let i = 0; i < dataList.length; i++) {
|
||||||
this.tableRowsData.push({
|
this.tableRowsData.push({
|
||||||
id: dataList[i].id,
|
id: dataList[i].id,
|
||||||
@ -103,12 +103,13 @@
|
|||||||
userName: dataList[i].userName,
|
userName: dataList[i].userName,
|
||||||
workload: dataList[i].workload,
|
workload: dataList[i].workload,
|
||||||
thisWeek: dataList[i].thisWeek,
|
thisWeek: dataList[i].thisWeek,
|
||||||
nextWeek: dataList[i].nextWeek
|
nextWeek: dataList[i].nextWeek,
|
||||||
|
week: dataList[i].week
|
||||||
})
|
})
|
||||||
// this.pageNo=result.data.pages
|
// this.pageNo=result.data.pages
|
||||||
this.tableTotalPage = result.data.total
|
this.tableTotalPage = result.data.total
|
||||||
}
|
}
|
||||||
console.log("tableRowsData",this.tableRowsData)
|
console.log('tableRowsData', this.tableRowsData)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// Api.FinanceManagement.getReimburseList(this.pageNo, this.pageSize).then(result => {
|
// Api.FinanceManagement.getReimburseList(this.pageNo, this.pageSize).then(result => {
|
||||||
@ -162,6 +163,11 @@
|
|||||||
prop: 'workload',
|
prop: 'workload',
|
||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '周数',
|
||||||
|
prop: 'week',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '本周进展',
|
label: '本周进展',
|
||||||
prop: 'thisWeek',
|
prop: 'thisWeek',
|
||||||
@ -172,21 +178,21 @@
|
|||||||
prop: 'nextWeek',
|
prop: 'nextWeek',
|
||||||
show: true
|
show: true
|
||||||
}
|
}
|
||||||
];
|
]
|
||||||
},
|
},
|
||||||
tableSelectPage (param) {
|
tableSelectPage (param) {
|
||||||
this.pageNo = param;
|
this.pageNo = param
|
||||||
this.init();
|
this.init()
|
||||||
},
|
},
|
||||||
tableSingleCheck (index) {
|
tableSingleCheck (index) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "ExpenseClaimApplyEdit",
|
name: 'ExpenseClaimApplyEdit',
|
||||||
params: {id: this.tableRowsData[index].id}
|
params: {id: this.tableRowsData[index].id}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tableSingleEdit (index) {
|
tableSingleEdit (index) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "ExpenseClaimApplyEdit",
|
name: 'ExpenseClaimApplyEdit',
|
||||||
params: {id: this.tableRowsData[index].id}
|
params: {id: this.tableRowsData[index].id}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -107,6 +107,14 @@
|
|||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="周数" prop="week">
|
||||||
|
<el-input
|
||||||
|
class="form-input"
|
||||||
|
placeholder="请输入内容"
|
||||||
|
v-model="formModel.week"
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="本周进展" prop="thisWeek">
|
<el-form-item label="本周进展" prop="thisWeek">
|
||||||
<el-input
|
<el-input
|
||||||
class="form-input"
|
class="form-input"
|
||||||
@ -154,6 +162,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
week: '',
|
||||||
ext: {},
|
ext: {},
|
||||||
thisWeek: '',
|
thisWeek: '',
|
||||||
nextWeek: '',
|
nextWeek: '',
|
||||||
@ -316,6 +325,7 @@ export default {
|
|||||||
thisWeek: this.formModel.thisWeek,
|
thisWeek: this.formModel.thisWeek,
|
||||||
nextWeek: this.formModel.nextWeek,
|
nextWeek: this.formModel.nextWeek,
|
||||||
workload: this.formModel.workload,
|
workload: this.formModel.workload,
|
||||||
|
week: this.formModel.week,
|
||||||
deptId: this.formModel.deptId
|
deptId: this.formModel.deptId
|
||||||
},
|
},
|
||||||
ext: {
|
ext: {
|
||||||
|
@ -107,6 +107,14 @@
|
|||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="周数" prop="week">
|
||||||
|
<el-input
|
||||||
|
class="form-input"
|
||||||
|
placeholder="请输入内容"
|
||||||
|
v-model="formModel.week"
|
||||||
|
>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="本周进展" prop="thisWeek">
|
<el-form-item label="本周进展" prop="thisWeek">
|
||||||
<el-input
|
<el-input
|
||||||
class="form-input"
|
class="form-input"
|
||||||
@ -155,6 +163,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
week:'',
|
||||||
ext: {},
|
ext: {},
|
||||||
thisWeek: '',
|
thisWeek: '',
|
||||||
nextWeek: '',
|
nextWeek: '',
|
||||||
@ -478,7 +487,7 @@ export default {
|
|||||||
Api.ProjectManagements.addWeekly(data.projectWeeklyAddReq).then(result => {
|
Api.ProjectManagements.addWeekly(data.projectWeeklyAddReq).then(result => {
|
||||||
this.isSave = true
|
this.isSave = true
|
||||||
if (result.status === 0) {
|
if (result.status === 0) {
|
||||||
this.$message.info(result.data)
|
this.$message.success(result.data)
|
||||||
this.$router.push({name: 'WeeklyClaimApply'})
|
this.$router.push({name: 'WeeklyClaimApply'})
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(result.data)
|
this.$message.error(result.data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user