|
|
|
|
@ -139,6 +139,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { getRoleUserList } from '@/api/processManagement/taskDispatch'; |
|
|
|
|
import { projectExecute, projectCheck, projectApprove } from '@/api/flowManagement/index'; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
@ -150,23 +151,22 @@ export default { |
|
|
|
|
type: String, |
|
|
|
|
default: '', |
|
|
|
|
}, |
|
|
|
|
rowItem:{ |
|
|
|
|
type: Object, |
|
|
|
|
default: () => ({}) |
|
|
|
|
} |
|
|
|
|
rowItem: { |
|
|
|
|
type: Object, |
|
|
|
|
default: () => ({}), |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
openShow: false, |
|
|
|
|
memberList: [], |
|
|
|
|
executeForm:{}, |
|
|
|
|
executeForm: {}, |
|
|
|
|
executeRules: { |
|
|
|
|
executeResult: [{ required: true, message: '请选择执行类型', trigger: 'blur' }], |
|
|
|
|
milestoneMemo: [{ required: true, message: '请填写里程碑描述', trigger: 'blur' }], |
|
|
|
|
evolve: [{ required: true, message: '请填写里程碑进展', trigger: 'blur' }], |
|
|
|
|
lastPlan: [{ required: true, message: '请填写下一步计划', trigger: 'blur' }], |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
@ -188,7 +188,25 @@ export default { |
|
|
|
|
submit() { |
|
|
|
|
this.$refs.executeForm.validate(valid => { |
|
|
|
|
if (valid) { |
|
|
|
|
this.executeDialog = false; |
|
|
|
|
// this.executeDialog = false; |
|
|
|
|
if (this.title == '执行') { |
|
|
|
|
projectExecute(this.executeForm).then(res => { |
|
|
|
|
this.$message.success('执行成功'); |
|
|
|
|
this.closeDialog(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (this.title == '核查') { |
|
|
|
|
projectCheck(this.executeForm).then(res => { |
|
|
|
|
this.$message.success('执行成功'); |
|
|
|
|
this.closeDialog(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (this.title == '核准') { |
|
|
|
|
projectApprove(this.executeForm).then(res => { |
|
|
|
|
this.$message.success('执行成功'); |
|
|
|
|
this.closeDialog(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|