| | |
| | | color: rgba(0, 0, 0, 0.6) !important; |
| | | } |
| | | |
| | | .el-message { |
| | | z-index: 3000 !important; |
| | | } |
| | | |
| | | .el-dialog { |
| | | border-radius: 16px 16px 6px 6px; |
| | | |
| | |
| | | </div> |
| | | |
| | | <div class="end-btn" style="margin-top: 38px"> |
| | | <el-button type="primary" @click="addData" :loading="submitLoading" :disabled="submitLoading">发送</el-button> |
| | | <el-button type="default" @click="saveData" :loading="submitLoading" :disabled="submitLoading">存草稿</el-button> |
| | | <el-button type="primary" @click="addData" :loading="submitLoading" |
| | | :disabled="submitLoading">发送</el-button> |
| | | <el-button type="default" @click="saveData" :loading="submitLoading" |
| | | :disabled="submitLoading">存草稿</el-button> |
| | | </div> |
| | | </el-form> |
| | | </Card> |
| | |
| | | addData() { |
| | | if (this.submitLoading) return; |
| | | this.submitLoading = true; |
| | | console.log('qeqweqeqwqrew', this.form, this.projectData); |
| | | |
| | | this.$refs.form.validate(async (valid) => { |
| | | if (!valid) { this.submitLoading = false; return; } |
| | |
| | | return; |
| | | } |
| | | const params = { |
| | | isDraft: 0, |
| | | isDraft: this.form.isDraft ? this.form.isDraft : 0, |
| | | projectId: this.projectData[0].id, |
| | | experimentId: this.selectedMember[0].userId, |
| | | // reportCode: this.form.reportCode, |
| | |
| | | evaluate: str.join(','), |
| | | reportType: 1 |
| | | }; |
| | | console.log('params', params); |
| | | |
| | | if (this.$route.query.id) { |
| | | params.id = this.$route.query.id |
| | | update(params).then(res => { |
| | |
| | | }, |
| | | computed: { |
| | | dialogTitle() { |
| | | return this.type === "approve" ? "审批" : "审批详情"; |
| | | |
| | | return !this.obj.isDetail? "审批" : "详情"; |
| | | }, |
| | | totalScore() { |
| | | return this.assessmentTable.reduce((sum, item) => sum + (item.selectedScore || 0), 0); |
| | |
| | | }, |
| | | methods: { |
| | | open() { |
| | | |
| | | |
| | | if (!this.obj.id) { |
| | | this.$message.error('缺少必要参数'); |
| | | return; |
| | |
| | | handleApprove(params) { |
| | | approve({ ...params, status: params.statuss }).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success('审核成功') |
| | | this.showApproval = false |
| | | this.$message.success('审核成功') |
| | | this.getLists() |
| | | if(params.statuss=='2'){ |
| | | this.showEvaluate = true |
| | |
| | | return; |
| | | } |
| | | const params = { |
| | | isDraft: 0, |
| | | isDraft: this.form.isDraft ? this.form.isDraft : 0, |
| | | projectId: this.projectData[0].id, |
| | | experimentId: this.selectedMember[0].userId, |
| | | // reportCode: this.form.reportCode, |
| | |
| | | }, |
| | | computed: { |
| | | dialogTitle() { |
| | | return this.type === "approve" ? "审批" : "审批详情"; |
| | | |
| | | return !this.obj.isDetail ? "审批" : "详情"; |
| | | }, |
| | | totalScore() { |
| | | return this.assessmentTable.reduce((sum, item) => sum + (item.selectedScore || 0), 0); |
| | |
| | | return; |
| | | } |
| | | const params = { |
| | | isDraft: 0, |
| | | isDraft: this.form.isDraft ? this.form.isDraft : 0, |
| | | projectId: this.projectData[0].id, |
| | | experimentId: this.selectedMember[0].userId, |
| | | // reportCode: this.form.reportCode, |
| | |
| | | }, |
| | | computed: { |
| | | dialogTitle() { |
| | | return this.type === "approve" ? "审批" : "审批详情"; |
| | | return !this.obj.isDetail? "审批" : "详情"; |
| | | }, |
| | | totalScore() { |
| | | return this.assessmentTable.reduce((sum, item) => sum + (item.selectedScore || 0), 0); |
| | |
| | | return; |
| | | } |
| | | const params = { |
| | | isDraft: 0, |
| | | isDraft: this.form.isDraft ? this.form.isDraft : 0, |
| | | projectId: this.projectData[0].id, |
| | | experimentId: this.selectedMember[0].userId, |
| | | // reportCode: this.form.reportCode, |
| | |
| | | }, |
| | | computed: { |
| | | dialogTitle() { |
| | | return this.type === "approve" ? "审批" : "审批详情"; |
| | | return !this.obj.isDetail ? "审批" : "详情"; |
| | | }, |
| | | totalScore() { |
| | | return this.assessmentTable.reduce((sum, item) => sum + (item.selectedScore || 0), 0); |