| | |
| | | </div> |
| | | <div style="display: flex;align-items: center;justify-content: center;margin-bottom: -30px;margin-top: 10px"> |
| | | <el-button type="primary" v-if="selectedObj.id !== 1" style="width: 80px" @click="back">上一步</el-button> |
| | | <el-button type="warning" style="width: 80px" v-if="(projectStatus === 'add' || projectStatus === 'edit') && selectedObj.status ===1 && selectedObj.id !==4 && newProgress !== 4" @click="save">保存</el-button> |
| | | <el-button type="warning" style="width: 80px" v-if="(projectStatus === 'add' || projectStatus === 'edit') && selectedObj.status !==1 && newProgress !== 4 " @click="clickEdit">变更</el-button> |
| | | <el-button type="warning" style="width: 80px" v-if="(projectStatus === 'add' || projectStatus === 'edit') && selectedObj.status ===1 && selectedObj.id !==4 && selectedObj.id !==3 && newProgress !== 4" @click="save">保存</el-button> |
| | | <el-button type="warning" style="width: 110px" v-if="(projectStatus === 'add' || projectStatus === 'edit') && selectedObj.id !==4 && selectedObj.id ===3 && newProgress !== 4" @click="confirmApproval">确认生成审批单</el-button> |
| | | <el-button type="warning" style="width: 80px" v-if="(projectStatus === 'add' || projectStatus === 'edit') && selectedObj.status !==1 && selectedObj.id !==3 && newProgress !== 4 " @click="clickEdit">变更</el-button> |
| | | <el-button type="warning" style="width: 80px" v-if="selectedObj.id === 4 && selectedObj.status === 1 && newProgress !== 4" @click="confirm">确认完结</el-button> |
| | | <el-button type="primary" style="width: 80px" v-if="selectedObj.id !== 4" @click="next">下一步</el-button> |
| | | </div> |
| | |
| | | const save = () => { |
| | | goRouter(selectedObj.value.id,'add') |
| | | } |
| | | const confirmApproval = () => { |
| | | goRouter(selectedObj.value.id,'confirmApproval') |
| | | } |
| | | |
| | | |
| | | const goRouter = (selectId,type) => { |
| | | switch (selectId){ |
| | |
| | | } |
| | | break; |
| | | case 3: |
| | | if(type === 'add' || type === 'clickEdit'){ |
| | | if(type === 'add' || type === 'clickEdit' || 'confirmApproval'){ |
| | | approvalRef.value.riskOpen(type,projectId.value); |
| | | }else if(projectStatus.value === 'view' || projectStatus.value === 'edit' || projectStatus.value === 'add'){ |
| | | if(projectStatus.value === 'view'){ |
| | | approvalRef.value.riskOpen('view',projectId.value); |
| | | }else{ |
| | | approvalRef.value.riskOpen('detail',projectId.value); |
| | | } |
| | | } |
| | | break; |
| | | case 4: |
| | | if(type === 'add' || type === 'clickEdit' || type === 'confirm'){ |
| | | archiveRef.value.riskOpen(type,projectId.value); |
| | | } else if(projectStatus.value === 'view' || projectStatus.value === 'edit' || projectStatus.value === 'add'){ |
| | | if(projectStatus.value === 'view'){ |
| | | archiveRef.value.riskOpen('view',projectId.value); |
| | | }else{ |
| | | archiveRef.value.riskOpen('detail',projectId.value); |
| | | } |
| | | } |
| | | break; |
| | | } |
| | | } |