Ver código fonte

app2.0审批流程页面

娄底高职分支
ndbs 2 anos atrás
pai
commit
116951590a
1 arquivos alterados com 9 adições e 3 exclusões
  1. +9
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/single.vue

+ 9
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/single.vue Ver arquivo

@@ -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(`流程的标题不能为空`)


Carregando…
Cancelar
Salvar