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