|
@@ -165,9 +165,10 @@ export default {
|
|
|
text: this.$t('common.saving')
|
|
text: this.$t('common.saving')
|
|
|
})
|
|
})
|
|
|
if (!formData) return
|
|
if (!formData) return
|
|
|
|
|
+ const replaceFormData = this.$utils.replaceNullWithEmpty(formData)
|
|
|
bpmTaskSave({
|
|
bpmTaskSave({
|
|
|
taskId: this.taskId,
|
|
taskId: this.taskId,
|
|
|
- data: JSON.stringify(formData)
|
|
|
|
|
|
|
+ data: JSON.stringify(replaceFormData)
|
|
|
}).then(response => {
|
|
}).then(response => {
|
|
|
loading.close()
|
|
loading.close()
|
|
|
this.$alert(`已保存表单内容!`, {
|
|
this.$alert(`已保存表单内容!`, {
|
|
@@ -192,7 +193,7 @@ export default {
|
|
|
if (firstNodeUserAssign) {
|
|
if (firstNodeUserAssign) {
|
|
|
const formData = this.getFormData()
|
|
const formData = this.getFormData()
|
|
|
if (!formData) return
|
|
if (!formData) return
|
|
|
- this.submitFormData = formData
|
|
|
|
|
|
|
+ this.submitFormData = this.$utils.replaceNullWithEmpty(formData)
|
|
|
this.startFlowDialogVisible = true
|
|
this.startFlowDialogVisible = true
|
|
|
} else {
|
|
} else {
|
|
|
this.saveStartFlow()
|
|
this.saveStartFlow()
|
|
@@ -208,7 +209,7 @@ export default {
|
|
|
const jsonData = {
|
|
const jsonData = {
|
|
|
defId: this.defId,
|
|
defId: this.defId,
|
|
|
version: this.version || '0',
|
|
version: this.version || '0',
|
|
|
- data: JSON.stringify(formData)
|
|
|
|
|
|
|
+ data: JSON.stringify(this.$utils.replaceNullWithEmpty(formData))
|
|
|
}
|
|
}
|
|
|
if (this.$utils.isNotEmpty(params.nodeUsers)) {
|
|
if (this.$utils.isNotEmpty(params.nodeUsers)) {
|
|
|
jsonData.nodeUsers = JSON.stringify(params.nodeUsers) || ''
|
|
jsonData.nodeUsers = JSON.stringify(params.nodeUsers) || ''
|
|
@@ -256,7 +257,7 @@ export default {
|
|
|
const jsonData = {
|
|
const jsonData = {
|
|
|
defId: this.defId,
|
|
defId: this.defId,
|
|
|
version: this.version || '',
|
|
version: this.version || '',
|
|
|
- data: JSON.stringify(formData)
|
|
|
|
|
|
|
+ data: JSON.stringify(this.$utils.replaceNullWithEmpty(formData))
|
|
|
}
|
|
}
|
|
|
if (this.$utils.isNotEmpty(this.proInstId) && !this.copyFlow) {
|
|
if (this.$utils.isNotEmpty(this.proInstId) && !this.copyFlow) {
|
|
|
jsonData.proInstId = this.proInstId || ''
|
|
jsonData.proInstId = this.proInstId || ''
|
|
@@ -316,7 +317,7 @@ export default {
|
|
|
text: this.$t('common.saving')
|
|
text: this.$t('common.saving')
|
|
|
})
|
|
})
|
|
|
params.taskId = this.taskId
|
|
params.taskId = this.taskId
|
|
|
- params.data = JSON.stringify(formData)
|
|
|
|
|
|
|
+ params.data = JSON.stringify(this.$utils.replaceNullWithEmpty(formData))
|
|
|
|
|
|
|
|
if (actionName === 'agree') {
|
|
if (actionName === 'agree') {
|
|
|
agree(params).then(response => {
|
|
agree(params).then(response => {
|