|
|
@@ -110,7 +110,10 @@ export default { |
|
|
|
|
|
|
|
this.needTitle = this.type !== 'again' && Number(currentNode.isTitle) === 1 |
|
|
|
const formData = await this.fetchFormData(currentNode, processId) |
|
|
|
const schemeData = await this.fetchSchemeData(currentNode) |
|
|
|
|
|
|
|
const schemeData = await this.fetchSchemeData(currentNode); |
|
|
|
const fetchFolderkeyData=await this.fetchFolderkeyData(currentNode, processId); |
|
|
|
uni.setStorageSync('guids',JSON.stringify(fetchFolderkeyData)); |
|
|
|
const { formValue, scheme, rel } = await this.getCustomForm({ |
|
|
|
schemeData, |
|
|
|
processId, |
|
|
@@ -119,14 +122,15 @@ export default { |
|
|
|
code: this.type === 'again' ? null : code, |
|
|
|
useDefault: true |
|
|
|
}) |
|
|
|
|
|
|
|
this.rel = rel |
|
|
|
this.scheme = scheme |
|
|
|
this.formValue = formValue |
|
|
|
this.code = code |
|
|
|
this.processId = processId |
|
|
|
|
|
|
|
this.ready = true |
|
|
|
this.HIDE_LOADING() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 提交草稿按钮 |
|
|
@@ -153,9 +157,10 @@ export default { |
|
|
|
// 发起流程按钮 |
|
|
|
async submit() { |
|
|
|
const isAgain = this.type === 'again' |
|
|
|
|
|
|
|
|
|
|
|
// 先验证表单,验证不通过则提示 |
|
|
|
const verifyResult = this.verifyValue() |
|
|
|
|
|
|
|
if (verifyResult.length > 0) { |
|
|
|
this.CONFIRM('表单验证失败', verifyResult.join('\n')) |
|
|
|
return |
|
|
@@ -191,6 +196,7 @@ export default { |
|
|
|
|
|
|
|
// 获取表单验证结果,是一个包含错误信息的数组,长度为 0 则没有错误 |
|
|
|
verifyValue() { |
|
|
|
|
|
|
|
const errList = this.$refs.form.verifyValue() |
|
|
|
if (this.needTitle && !this.title) { |
|
|
|
errList.push(`流程的标题不能为空`) |
|
|
|