From cafcefa1f4e77dd545915f10758e95b8f64330d8 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 29 三月 2025 17:07:40 +0800 Subject: [PATCH] 质量监控计划-流程修改 --- src/views/CNAS/process/ensureResults/ensureResultsValidity/components/carryOutDialog.vue | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/CNAS/process/ensureResults/ensureResultsValidity/components/carryOutDialog.vue b/src/views/CNAS/process/ensureResults/ensureResultsValidity/components/carryOutDialog.vue index f3fd3c5..1249f83 100644 --- a/src/views/CNAS/process/ensureResults/ensureResultsValidity/components/carryOutDialog.vue +++ b/src/views/CNAS/process/ensureResults/ensureResultsValidity/components/carryOutDialog.vue @@ -145,7 +145,10 @@ </div> <span slot="footer" class="dialog-footer"> <el-button @click="closeCarryOutDia">鍙� 娑�</el-button> - <el-button v-if="currentStep !== 2" :loading="editLoad" type="primary" @click="handleEdit">鎻� 浜�</el-button> + <el-button v-if="currentStep === 0" :loading="editLoad" type="primary" @click="handleEdit">鎻� 浜�</el-button> + <el-button v-if="currentStep === 1" :loading="editLoad" @click="handleEdit(0)">涓嶉�氳繃</el-button> + <el-button v-if="currentStep === 1" :loading="editLoad" type="primary" @click="handleEdit(1)">閫� + 杩�</el-button> </span> </el-dialog> </div> @@ -199,7 +202,7 @@ searchInfo(row) { getQualityMonitorRatify({ qualityMonitorDetailsId: row.qualityMonitorDetailsId }).then(res => { // 鏈塪etailsRatifyId鍒欒鏄庢彁浜よ繃瀹炴柦淇℃伅 - if (res.data.detailsRatifyId) { + if (res.data.ratifyUserId) { // 鏄惁缁撴潫0:鏈粨鏉�, 1:宸茬粨鏉� if (res.data.isFinish == 0) { this.currentStep = 1 @@ -215,16 +218,12 @@ }) }, // 鎻愪氦 - handleEdit() { - if (!this.form.ratifyUserId) { - this.$message.warning('璇烽�夋嫨鎵瑰噯浜�') - return - } + handleEdit(isFinish) { this.editLoad = true if (this.currentStep == 0) { this.addInfo() } else { - this.editInfo() + this.editInfo(isFinish) } }, // 鎻愪氦瀹炴柦 @@ -239,7 +238,8 @@ }) }, // 鎻愪氦鎵瑰噯 - editInfo() { + editInfo(isFinish) { + this.form.isFinish = isFinish addQualityMonitorRatifyOpinion(this.form).then(res => { this.editLoad = false this.$message.success('鎿嶄綔鎴愬姛') -- Gitblit v1.9.3