1.季度审核增加流转记录

This commit is contained in:
zty 2024-08-20 16:57:22 +08:00
parent 510ddbf1ab
commit ce9becf8a0

View File

@ -53,6 +53,15 @@
@singleDelete="tableSingleDelete" @singleDelete="tableSingleDelete"
> >
</data-table> </data-table>
<div
element-loading-text="拼命加载中"
v-for="item in recordsData">
<data-table
:totalColumnsData="tableColumnsRecordData"
:rowsData="item.taskItems"
>
</data-table>
</div>
</div> </div>
<!--End Page content--> <!--End Page content-->
</div> </div>
@ -78,6 +87,10 @@ export default {
}, },
data () { data () {
return { return {
tableLoading: true,
recordsData: [],
tableColumnsRecordData: [],
tableRowsRecordData: [],
isScore: false, // isScore: false, //
isStrategy: true, isStrategy: true,
isPlatform: true, isPlatform: true,
@ -123,10 +136,44 @@ export default {
this.projectId = this.$route.params.id this.projectId = this.$route.params.id
this.quarter = this.$route.params.quarter this.quarter = this.$route.params.quarter
this.verifyStatus = this.$route.params.verifyStatus this.verifyStatus = this.$route.params.verifyStatus
this.initRecordTableColumns()
this.getOffice() this.getOffice()
// this.initTableColumns()
}, },
methods: { methods: {
initRecordTableColumns() {
this.tableColumnsRecordData = [
{
label: '审批时间',
prop: 'dueDate',
show: true
},
{
label: '审批人',
prop: 'assigneeName',
show: true
},
{
label: '节点名称',
prop: 'nodeName',
show: true
},
{
label: '审批类型',
prop: 'actionName',
show: true
},
{
label: '审批意见',
prop: 'actionReason',
show: true
}/*,
{
label: '操作',
prop: 'actionReason',
show: true
}*/
];
},
cancel () { cancel () {
this.$router.push( this.$router.push(
{ {
@ -206,7 +253,11 @@ export default {
params: {id: this.reimburseId} params: {id: this.reimburseId}
}) })
} else { } else {
this.$message.error(result.data) let data=result.data
if(result.data==null || result.data=="null"){
data="操作失败"
}
this.$message.error(data)
} }
}) })
}, },
@ -254,6 +305,14 @@ export default {
} }
this.tableRowsData.push(project) this.tableRowsData.push(project)
this.tableTotalPage = result.data.total this.tableTotalPage = result.data.total
for (let i = 0; i < project.ext.quarterRecord.ls.length; i++) {
let record = project.ext.quarterRecord.ls[i].taskItems;
for (let j = 0; j < record.length; j++) {
record[j].dueDate = record[j].dueDate ? moment(record[j].dueDate).format('YYYY-MM-DD HH:mm:ss') : '';
}
}
this.recordsData=project.ext.quarterRecord.ls
} }
if (result.data.ls[0].ext.taskName == '部门主任评级') { if (result.data.ls[0].ext.taskName == '部门主任评级') {
this.isScore = true this.isScore = true
@ -265,10 +324,7 @@ export default {
}, },
//tableColumns //tableColumns
initTableColumns () { initTableColumns () {
console.log('谁最快')
if (!this.isOffice) { if (!this.isOffice) {
console.log('this.isOffice', this.isOffice)
console.log('不是办公室')
this.tableColumnsData = [ this.tableColumnsData = [
{ {
label: '季度', label: '季度',