添加催办按钮
修改看板
This commit is contained in:
@@ -937,4 +937,5 @@ module.exports = {
|
||||
documentLibraryDetails: 'Document library details',
|
||||
question:'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',
|
||||
}
|
||||
@@ -941,5 +941,6 @@ module.exports = {
|
||||
setCreator: '设置创建人',
|
||||
documentLibraryDetails: '文档库详情',
|
||||
question: '催办',
|
||||
ConfirmQuestion: '确认催办?'
|
||||
ConfirmQuestion: '确认催办?',
|
||||
OnlyOrTaskconfirmationOut:'只有清单确认状态或任务确认状态为待确认时才可以进行催办',
|
||||
}
|
||||
@@ -89,7 +89,7 @@
|
||||
{{ $t('bringInRelevantPersonnel') }}
|
||||
</div>
|
||||
<div class="operator-text-title" @click="ExportReportClick">
|
||||
<a-icon type="export" />
|
||||
<a-icon type="export"/>
|
||||
{{ $t('ExportReport') }}
|
||||
</div>
|
||||
<div class="operator-text-title" @click="batSettingClick">
|
||||
@@ -97,7 +97,7 @@
|
||||
{{ $t('batSetting') }}
|
||||
</div>
|
||||
<div class="operator-text-title" @click="questionClick">
|
||||
<a-icon type="apartment" />
|
||||
<a-icon type="apartment"/>
|
||||
{{ $t('question') }}
|
||||
</div>
|
||||
</template>
|
||||
@@ -978,26 +978,42 @@
|
||||
questionClick() {
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: _this.$t('ConfirmQuestion'),
|
||||
onOk() {
|
||||
let query = {
|
||||
ids: selectedRowKeys.join(','),
|
||||
projectLibraryId: _this.$route.query.id
|
||||
}
|
||||
postAction('project/projectLawsInventoryEO/expediting', query).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.selectedRowKeys = []
|
||||
_this.getList()
|
||||
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 {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
isTrue = false
|
||||
this.$message.warning(this.$t('OnlyOrTaskconfirmationOut'))
|
||||
return
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
if (isTrue) {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: _this.$t('ConfirmQuestion'),
|
||||
onOk() {
|
||||
let query = {
|
||||
ids: selectedRowKeys.join(','),
|
||||
projectLibraryId: _this.$route.query.id
|
||||
}
|
||||
postAction('project/projectLawsInventoryEO/expediting', query).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.selectedRowKeys = []
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user