标准/译文获取申请 驳回原因

This commit is contained in:
baoyu
2024-03-29 10:16:03 +08:00
parent 4b8992cccb
commit bd3efe07d5
@@ -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()