检查任务取消 添加 取消原因
This commit is contained in:
parent
7138931260
commit
cd146bca61
@ -501,18 +501,22 @@
|
|||||||
var that = this
|
var that = this
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '确定取消?',
|
content: '',
|
||||||
|
editable: true,
|
||||||
|
placeholderText: '请输入取消原因',
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
|
if (res.content == null || res.content.length < 1) {
|
||||||
|
uni.$showErrorInfo("取消原因不能为空")
|
||||||
|
return
|
||||||
|
}
|
||||||
let json = initFilter(that.model.ORG_ID, that.model.ID, null, null, null, that
|
let json = initFilter(that.model.ORG_ID, that.model.ID, null, null, null, that
|
||||||
.TaskID);
|
.TaskID, res.content);
|
||||||
Cancel(json).then(res => {
|
Cancel(json).then(res => {
|
||||||
uni.$showMsgFunc('操作成功!', () => {
|
uni.$showMsgFunc('操作成功!', () => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 'success', 1000)
|
}, 'success', 1000)
|
||||||
})
|
})
|
||||||
// } else {
|
|
||||||
// uni.$showErrorInfo('取消!')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user