检查任务取消 添加 取消原因

This commit is contained in:
wyw 2024-08-05 13:58:22 +08:00
parent 7138931260
commit cd146bca61

View File

@ -501,18 +501,22 @@
var that = this
uni.showModal({
title: '提示',
content: '确定取消?',
content: '',
editable: true,
placeholderText: '请输入取消原因',
success: function(res) {
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
.TaskID);
.TaskID, res.content);
Cancel(json).then(res => {
uni.$showMsgFunc('操作成功!', () => {
uni.navigateBack()
}, 'success', 1000)
})
// } else {
// uni.$showErrorInfo('')
}
}
})