标准/译文获取申请 驳回原因
This commit is contained in:
@@ -316,14 +316,26 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const ids = id.join(',')
|
const ids = id.join(',')
|
||||||
this.$confirm('确定驳回?', '提示', {
|
this.$prompt('请输入驳回原因', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
confirmButtonClass: 'common-button-primary',
|
confirmButtonClass: 'common-button-primary',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
roundButton: false
|
roundButton: false,
|
||||||
}).then(() => {
|
inputValidator: (value) => {
|
||||||
this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => {
|
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) {
|
if (res.ok) {
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
Reference in New Issue
Block a user