添加催办按钮

修改看板
This commit is contained in:
qq787203167
2022-06-15 17:29:33 +08:00
parent 031d623333
commit e6df3732ea
3 changed files with 38 additions and 20 deletions
+1
View File
@@ -937,4 +937,5 @@ module.exports = {
documentLibraryDetails: 'Document library details', documentLibraryDetails: 'Document library details',
question:'Question', question:'Question',
ConfirmQuestion:'Confirm Question', ConfirmQuestion:'Confirm Question',
OnlyOrTaskconfirmationOut:'Only when the list confirmation status or task confirmation status is to be confirmed can the reminder be carried out',
} }
+2 -1
View File
@@ -941,5 +941,6 @@ module.exports = {
setCreator: '设置创建人', setCreator: '设置创建人',
documentLibraryDetails: '文档库详情', documentLibraryDetails: '文档库详情',
question: '催办', question: '催办',
ConfirmQuestion: '确认催办?' ConfirmQuestion: '确认催办?',
OnlyOrTaskconfirmationOut:'只有清单确认状态或任务确认状态为待确认时才可以进行催办',
} }
@@ -978,6 +978,22 @@
questionClick() { questionClick() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let isTrue
for (let i = 0; i < this.dataSource.length; i++) {
for (let j = 0; j < selectedRowKeys.length; j++) {
if (this.dataSource[i].id == selectedRowKeys[j]) {
if (this.dataSource[i].taskAffirmStatus == 'List to confirm' ||
this.dataSource[i].inventoryAffirmStatus == 'List to confirm') {
isTrue = true
} else {
isTrue = false
this.$message.warning(this.$t('OnlyOrTaskconfirmationOut'))
return
}
}
}
}
if (isTrue) {
let _this = this let _this = this
this.$confirm({ this.$confirm({
content: _this.$t('ConfirmQuestion'), content: _this.$t('ConfirmQuestion'),
@@ -997,7 +1013,7 @@
}) })
} }
}) })
}
} else { } else {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }