Commit b22238ac authored by ztf's avatar ztf

流程中上传季报素材

parent c099ec42
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
}, },
computed: { computed: {
ifShow() { ifShow() {
if (this.form.state !== 'under_reviewing' || this.form.state !== 'Complete') { if (this.form.state === 'under_reviewing' || this.form.state === 'Complete') {
return true return true
} else { } else {
return false return false
......
...@@ -88,14 +88,17 @@ ...@@ -88,14 +88,17 @@
<div v-if="basicData && basicData.basicInfo && !basicData.basicInfo.forwardFlag && (!isCheckTaskState || (isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED' && !basicData.basicInfo.parentTaskId))"> <div v-if="basicData && basicData.basicInfo && !basicData.basicInfo.forwardFlag && (!isCheckTaskState || (isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED' && !basicData.basicInfo.parentTaskId))">
<div class="sub-title" style="padding-bottom:12px">任务处理</div> <div class="sub-title" style="padding-bottom:12px">任务处理</div>
<div <div
v-if="basicData&& basicData.businessObject &&basicData.businessObject.subTypeName&& basicData.businessObject.subTypeName==='ExtActionItem'&&basicData.businessObject.state==='InProgress'&&basicData.basicInfo.aliasName!=='编制'" v-if="basicData&& basicData.businessObject &&basicData.businessObject.subTypeName&& basicData.businessObject.subTypeName==='ExtActionItem'&&basicData.businessObject.state==='InProgress'&&basicData.basicInfo.aliasName==='行动项责任人'"
> >
<dee-as-com <dee-as-com
ref="ExtActionItemAddObjFileLinks"
:lay-config="{ :lay-config="{
typeName: 'ExtActionItem', typeName: 'ExtActionItem',
layKey: 'process-ExtActionItem-addObjFileLinks' layKey: 'process-ExtActionItem-addObjFileLinks'
}" }"
:basic-data="{id:basicData.businessObject.id}" :basic-data="{id:basicData.businessObject.id}"
:form="extActionItemAddObjFileLinksForm"
@on-submit="toSubmitExtActionItemObjFile"
/> />
</div> </div>
<div <div
...@@ -254,6 +257,8 @@ export default { ...@@ -254,6 +257,8 @@ export default {
return { return {
isExtPlanReplyLinkBindSuccess: false, // 反馈计划是否绑定成功 isExtPlanReplyLinkBindSuccess: false, // 反馈计划是否绑定成功
ExtPlanReplyLinkform: {}, ExtPlanReplyLinkform: {},
extActionItemAddObjFileLinksForm: {}, // 行动项上传季报附件,
isExtActionItemObjBindSuccess: false,
// 是否已经保持盘点结果 // 是否已经保持盘点结果
isSaveBeforeSubmit: true, isSaveBeforeSubmit: true,
tabProps: { tabProps: {
...@@ -819,6 +824,7 @@ export default { ...@@ -819,6 +824,7 @@ export default {
}) })
} }
}) })
// // 获取流程历史记录 // // 获取流程历史记录
// getInstanceHistory(instanceId).then(res => { // getInstanceHistory(instanceId).then(res => {
// this.$set(this.basicData, 'historyInfo', res.items.content || []) // this.$set(this.basicData, 'historyInfo', res.items.content || [])
...@@ -883,8 +889,17 @@ export default { ...@@ -883,8 +889,17 @@ export default {
}) })
}) })
}, },
finishTask(flag, params, callback, errCallBack) { async finishTask(flag, params, callback, errCallBack) {
if (this.basicData.businessObject.subTypeName && this.basicData.businessObject.subTypeName === 'ExtPlanFeedback') { if (
this.basicData.businessObject.subTypeName &&
this.basicData.businessObject.subTypeName === 'ExtActionItem' &&
this.basicData.businessObject.state === 'InProgress' &&
this.basicData.basicInfo.aliasName !== '编制') {
await this.toSubmitExtActionItemObjFile()
if (this.isExtActionItemObjBindSuccess) {
this.finishTaskhandle(flag, params, callback, errCallBack)
}
} else if (this.basicData.businessObject.subTypeName && this.basicData.businessObject.subTypeName === 'ExtPlanFeedback') {
this.finishPlanReplyTask(flag, params, callback, errCallBack) this.finishPlanReplyTask(flag, params, callback, errCallBack)
} else { } else {
this.finishTaskhandle(flag, params, callback, errCallBack) this.finishTaskhandle(flag, params, callback, errCallBack)
...@@ -970,6 +985,18 @@ export default { ...@@ -970,6 +985,18 @@ export default {
post('/ExtPlanReplyLink/recursion', params).then(res => { post('/ExtPlanReplyLink/recursion', params).then(res => {
this.$utils.showMessageSuccess('保存成功') this.$utils.showMessageSuccess('保存成功')
}) })
},
// // 添加季报附件
async toSubmitExtActionItemObjFile() {
const params = this.extActionItemAddObjFileLinksForm
if (params.objFileLinks && params.objFileLinks.length > 0) {
await post('/ExtActionItem/recursion', params).then(res => {
this.isExtActionItemObjBindSuccess = true
})
} else {
this.isExtActionItemObjBindSuccess = false
this.$message.error('请上传季报素材')
}
} }
}, },
filter: {} filter: {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment