Browse Source

app2.0审批流程页面

娄底高职分支
ndbs 2 years ago
parent
commit
116951590a
1 changed files with 9 additions and 3 deletions
  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 View File

@@ -110,7 +110,10 @@ export default {


this.needTitle = this.type !== 'again' && Number(currentNode.isTitle) === 1 this.needTitle = this.type !== 'again' && Number(currentNode.isTitle) === 1
const formData = await this.fetchFormData(currentNode, processId) 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({ const { formValue, scheme, rel } = await this.getCustomForm({
schemeData, schemeData,
processId, processId,
@@ -119,14 +122,15 @@ export default {
code: this.type === 'again' ? null : code, code: this.type === 'again' ? null : code,
useDefault: true useDefault: true
}) })
this.rel = rel this.rel = rel
this.scheme = scheme this.scheme = scheme
this.formValue = formValue this.formValue = formValue
this.code = code this.code = code
this.processId = processId this.processId = processId

this.ready = true this.ready = true
this.HIDE_LOADING() this.HIDE_LOADING()
}, },


// 提交草稿按钮 // 提交草稿按钮
@@ -153,9 +157,10 @@ export default {
// 发起流程按钮 // 发起流程按钮
async submit() { async submit() {
const isAgain = this.type === 'again' const isAgain = this.type === 'again'
// 先验证表单,验证不通过则提示 // 先验证表单,验证不通过则提示
const verifyResult = this.verifyValue() const verifyResult = this.verifyValue()
if (verifyResult.length > 0) { if (verifyResult.length > 0) {
this.CONFIRM('表单验证失败', verifyResult.join('\n')) this.CONFIRM('表单验证失败', verifyResult.join('\n'))
return return
@@ -191,6 +196,7 @@ export default {


// 获取表单验证结果,是一个包含错误信息的数组,长度为 0 则没有错误 // 获取表单验证结果,是一个包含错误信息的数组,长度为 0 则没有错误
verifyValue() { verifyValue() {
const errList = this.$refs.form.verifyValue() const errList = this.$refs.form.verifyValue()
if (this.needTitle && !this.title) { if (this.needTitle && !this.title) {
errList.push(`流程的标题不能为空`) errList.push(`流程的标题不能为空`)


Loading…
Cancel
Save