update 会后管理流程
This commit is contained in:
@@ -336,6 +336,10 @@ export default {
|
|||||||
id: this.formInfo.id
|
id: this.formInfo.id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 第二个节点将文件id提到外层
|
||||||
|
if (this.currentNode === PostMeetingManage.attendeesUploadMaterials.value) {
|
||||||
|
params.fileIds = params.processMeetingManage.fileIds
|
||||||
|
}
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@@ -392,8 +396,8 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
// 发起流程并且没有被驳回,调发起接口,否则调审批接口
|
// 发起流程并且没有被驳回,调发起接口
|
||||||
if (!(this.currentNode === PostMeetingManage.initiate.value && this.$route.query.taskId)) {
|
if (this.currentNode !== PostMeetingManage.initiate.value) {
|
||||||
this.handleAgree()
|
this.handleAgree()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -422,6 +426,30 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
|
res.notAttend = false
|
||||||
|
return approvalPostMeetingManage(res)
|
||||||
|
}).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.goBack()
|
||||||
|
} else {
|
||||||
|
this.$message.warn(res.message)
|
||||||
|
}
|
||||||
|
}).catch((err) => {
|
||||||
|
this.switchChange(err.message)
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 未参加
|
||||||
|
*/
|
||||||
|
handleUncommitted () {
|
||||||
|
if (this.loading) return
|
||||||
|
this.loading = true
|
||||||
|
this.getPageParams().then(res => {
|
||||||
|
res.map.pass = true
|
||||||
|
res.notAttend = true
|
||||||
return approvalPostMeetingManage(res)
|
return approvalPostMeetingManage(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="item-model" prop="relevantData">
|
<a-form-model-item class="item-model" prop="relevantData">
|
||||||
<a-button type="primary" class="button-text" @click="clickButtonToUpload">
|
<a-button type="primary" class="button-text" @click="clickButtonToUpload" style="width: 100%;">
|
||||||
{{
|
{{
|
||||||
(formInline.fileIds === 'null' || formInline.fileIds === '' || formInline.fileIds === null || formInline.fileIds === undefined)
|
(formInline.fileIds === 'null' || formInline.fileIds === '' || formInline.fileIds === null || formInline.fileIds === undefined)
|
||||||
? $t('uploadFile.clickUpload')
|
? $t('uploadFile.clickUpload')
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 上传 -->
|
<!-- 上传 -->
|
||||||
<upload-file ref="uploadFile" @change="uploadFileChange" :return-url="false" :disabled="disabled"></upload-file>
|
<upload-file ref="uploadFile" @change="uploadFileChange" :return-url="false"></upload-file>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -200,6 +200,10 @@ export default {
|
|||||||
console.log(res)
|
console.log(res)
|
||||||
this.treeData = res.result.children || []
|
this.treeData = res.result.children || []
|
||||||
this.subStandardizationCommitteeList.push(...this.treeData)
|
this.subStandardizationCommitteeList.push(...this.treeData)
|
||||||
|
// 下拉菜单请求回来回显数据
|
||||||
|
if (this.model.standardizationFirstId && this.treeData.length) {
|
||||||
|
this.workGroupList = (this.treeData.find(item => item.id === this.model.standardizationFirstId)).children
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -212,6 +216,9 @@ export default {
|
|||||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||||
initData (data) {
|
initData (data) {
|
||||||
this.model = Object.assign({}, data)
|
this.model = Object.assign({}, data)
|
||||||
|
if (this.model.standardizationFirstId && this.treeData.length) {
|
||||||
|
this.workGroupList = (this.treeData.find(item => item.id === this.model.standardizationFirstId)).children
|
||||||
|
}
|
||||||
// 给表单赋值
|
// 给表单赋值
|
||||||
this.formInline = {
|
this.formInline = {
|
||||||
...data
|
...data
|
||||||
|
|||||||
Reference in New Issue
Block a user