Browse Source

2026-01-30

工程变更申请单人多条的问题,点击执行/会签会将执行/会签人相同的信息一并处理(标识和时间赋值)
master
fengyuan_yang 4 weeks ago
parent
commit
86e37cdfc3
  1. 55
      src/views/modules/changeManagement/changeRecord.vue

55
src/views/modules/changeManagement/changeRecord.vue

@ -4756,8 +4756,16 @@
this.$message.warning('请添加需要变更的技术参数卡!')
return
}
row.executeFlag = 'Y'
row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
//
const executionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
//
const currentExecutor = row.executor
//
const sameExecutorRows = this.chooseItemList.filter(item => item.executor === currentExecutor && item.executeFlag !== 'Y')
sameExecutorRows.forEach(item => {
item.executeFlag = 'Y'
item.itemExecutionDate = executionDate
})
this.costImpactData.changeTotalCost = this.totalCost
this.executionInfoData.chooseItemList = this.chooseItemList
this.executionInfoData.chooseItemList2 = this.chooseItemList2
@ -4783,21 +4791,22 @@
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
row.executeFlag = ''
row.itemExecutionDate = ''
//
sameExecutorRows.forEach(item => {
item.executeFlag = ''
item.itemExecutionDate = ''
})
}
this.submitLoading = false
}).catch(()=>{
//
sameExecutorRows.forEach(item => {
item.executeFlag = ''
item.itemExecutionDate = ''
})
this.submitLoading = false
})
})
// row.executeFlag = 'Y'
// row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
// row.executor = this.$store.state.user.name
// // // 2025-04-15
// if (this.modalData.changeStatus === '') {
// this.agreeSubmit()
// }
},
//
@ -4885,8 +4894,16 @@
this.$message.warning('请添加需要变更的技术参数卡!')
return
}
row.executeFlag = 'Y'
row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
//
const executionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
// itemDesc
const currentCountersigner = row.itemDesc
//
const sameCountersignerRows = this.chooseCSItemList.filter(item => item.itemDesc === currentCountersigner && item.executeFlag !== 'Y')
sameCountersignerRows.forEach(item => {
item.executeFlag = 'Y'
item.itemExecutionDate = executionDate
})
this.costImpactData.changeTotalCost = this.totalCost
this.executionInfoData.chooseItemList = this.chooseItemList
this.executionInfoData.chooseItemList2 = this.chooseItemList2
@ -4912,11 +4929,19 @@
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
row.executeFlag = ''
row.itemExecutionDate = ''
//
sameCountersignerRows.forEach(item => {
item.executeFlag = ''
item.itemExecutionDate = ''
})
}
this.submitLoading = false
}).catch(()=>{
//
sameCountersignerRows.forEach(item => {
item.executeFlag = ''
item.itemExecutionDate = ''
})
this.submitLoading = false
})
})

Loading…
Cancel
Save