diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue index 32d04e8fd..f46198520 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/index.vue @@ -316,14 +316,26 @@ export default { return } const ids = id.join(',') - this.$confirm('确定驳回?', '提示', { + this.$prompt('请输入驳回原因', '提示', { confirmButtonText: '确定', confirmButtonClass: 'common-button-primary', cancelButtonText: '取消', type: 'warning', - roundButton: false - }).then(() => { - this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => { + roundButton: false, + inputValidator: (value) => { + if (value === null || value === undefined) { + return '驳回原因不能为空' + } else if (value.length > 500) { + return '驳回原因不能超过500个字符' + } else if (value.length === 0) { + return '驳回原因不能为空' + } else { + return true + } + }, + inputErrorMessage: '' + }).then(({ value }) => { + this.$http.postData(this.url.updateState, { status: 'refuse', refuseCause: value, ids }, { _this: this }, res => { if (res.ok) { this.$message.success('操作成功') this.getList()