From 840de9662167b1d7758208b9c88adda806ed8fec Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期一, 03 三月 2025 16:47:25 +0800 Subject: [PATCH] 删除导出成功提示,统一提示了 --- src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue | 160 ++++++++++++++++++++++++----------------------------- 1 files changed, 72 insertions(+), 88 deletions(-) diff --git a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue index 024cb58..16690fe 100644 --- a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue +++ b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue @@ -5,9 +5,8 @@ <div style="display: flex;justify-content: space-between;"> <el-form :model="yearForm" ref="yearForm" size="small" :inline="true"> <el-form-item label="璁″垝鍚嶇О" prop="monitorName"> - <el-input size="small" placeholder="璇疯緭鍏�" clearable - v-model="yearForm.monitorName" - @keyup.enter.native="getYearPlanList"></el-input> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="yearForm.monitorName" + @keyup.enter.native="getYearPlanList"></el-input> </el-form-item> <el-form-item> <el-button icon="el-icon-refresh" size="mini" @click="clearYear">閲� 缃�</el-button> @@ -19,8 +18,7 @@ </div> </div> <lims-table :tableData="yearTableData" :column="yearColumnData" :page="yearPage" :tableLoading="yearLoading" - height="40vh" @pagination="pagination" :rowClick="rowClick" - key="yearTableData"></lims-table> + height="40vh" @pagination="pagination" :rowClick="rowClick" key="yearTableData"></lims-table> </div> <div style="margin-top: 20px"> <div style="display: flex;justify-content: space-between;"> @@ -40,14 +38,16 @@ <el-button size="small" type="primary" @click="showDialog('add')">鏂板</el-button> </div> </div> - <lims-table :tableData="yearDetailTableData" :column="yearDetailColumnData" :page="yearDetailPage" :tableLoading="yearDetailLoading" - height="40vh" @pagination="pagination1" - key="yearDetailTableData"></lims-table> + <lims-table :tableData="yearDetailTableData" :column="yearDetailColumnData" :page="yearDetailPage" + :tableLoading="yearDetailLoading" height="40vh" @pagination="pagination1" + key="yearDetailTableData"></lims-table> </div> <!--鏂板淇敼寮规--> - <detail-form-dialog v-if="formDia" ref="formDia" :qualityMonitorId="qualityMonitorId" @closeDia="closeDia"></detail-form-dialog> + <detail-form-dialog v-if="formDia" ref="formDia" :qualityMonitorId="qualityMonitorId" + @closeDia="closeDia"></detail-form-dialog> <!--瀹炴柦娴佺▼寮规--> - <carry-out-dialog v-if="carryOutDia" ref="carryOutDia" :qualityMonitorId="qualityMonitorId" @closeDia="closeCarryOutDia"></carry-out-dialog> + <carry-out-dialog v-if="carryOutDia" ref="carryOutDia" :qualityMonitorId="qualityMonitorId" + @closeDia="closeCarryOutDia"></carry-out-dialog> <!--璇勪环娴佺▼寮规--> <evaluate-dialog v-if="evaluateDialog" ref="evaluateDialog" @closeEvaDia="closeEvaDia"></evaluate-dialog> <el-dialog :visible.sync="examineDialog" title="瀹℃牳" width="30%" @close="closeExamineDia"> @@ -57,8 +57,7 @@ </span> <span style="margin-top: 10px;display: inline-block"> 鎵瑰噯浜猴細 - <el-select v-model="examineInfo.ratifyUserId" clearable - filterable size="small" style="width: 70%;"> + <el-select v-model="examineInfo.ratifyUserId" clearable filterable size="small" style="width: 70%;"> <el-option v-for="item in responsibleOptions" :key="item.id" :label="item.name" :value="item.id"> </el-option> </el-select> @@ -79,16 +78,13 @@ </span> </el-dialog> <!--棰勮鎶ュ憡--> - <el-dialog - :visible.sync="lookDialogVisible" - fullscreen - title="鏌ョ湅闄勪欢" top="5vh" width="800px"> + <el-dialog :visible.sync="lookDialogVisible" fullscreen title="鏌ョ湅闄勪欢" top="5vh" width="800px"> <filePreview v-if="lookDialogVisible" :currentFile="{}" - :fileUrl="javaApi+'/word/' + currentInfo.finishReportUrl" style="height: 70vh;overflow-y: auto;"/> + :fileUrl="javaApi + '/word/' + currentInfo.finishReportUrl" style="height: 70vh;overflow-y: auto;" /> <div> 鎵瑰噯鐘舵�侊細 - <el-tag v-if="this.ratifyStatus === 1" type="success">鎵瑰噯</el-tag> - <el-tag v-if="this.ratifyStatus === 0" type="danger">涓嶆壒鍑�</el-tag> + <el-tag v-if="this.ratifyStatus === 1" type="success">鎵瑰噯</el-tag> + <el-tag v-if="this.ratifyStatus === 0" type="danger">涓嶆壒鍑�</el-tag> </div> <div> 鎵瑰噯鎰忚锛� @@ -101,42 +97,36 @@ </el-dialog> <el-dialog :visible.sync="downloadDialog" title="瀵煎嚭" width="600px"> <span> - <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" @click="controlDown">瀹炴柦璁″垝瀵煎嚭</el-button> - <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" @click="processingDown">璇勪环瀵煎嚭</el-button> + <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" + @click="controlDown">瀹炴柦璁″垝瀵煎嚭</el-button> + <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" + @click="processingDown">璇勪环瀵煎嚭</el-button> </span> <span slot="footer" class="dialog-footer"> <el-button @click="downloadDialog = false">鍙� 娑�</el-button> </span> </el-dialog> <!--瀵煎叆璁″垝--> - <el-dialog :visible.sync="uploadDia" title="鏁版嵁瀵煎叆" width="500px" :close-on-click-modal="false" :close-on-press-escape="false"> + <el-dialog :visible.sync="uploadDia" title="鏁版嵁瀵煎叆" width="500px" :close-on-click-modal="false" + :close-on-press-escape="false"> <div style="display: flex; align-items: center;"> <span style="width: 60px">骞翠唤锛�</span> - <el-date-picker - v-model="planYear" - type="year" - value-format="yyyy" - clearable - size="small" - format="yyyy" + <el-date-picker v-model="planYear" type="year" value-format="yyyy" clearable size="small" format="yyyy" placeholder="閫夋嫨骞�"> </el-date-picker> </div> <div style="display: flex;align-items: center;margin: 10px 0"> <div style="width: 60px">瀹℃牳浜猴細</div> - <el-select v-model="examineUserId" clearable - filterable size="small" style="width: 50%;"> + <el-select v-model="examineUserId" clearable filterable size="small" style="width: 50%;"> <el-option v-for="item in responsibleOptions" :key="item.id" :label="item.name" :value="item.id"> </el-option> </el-select> </div> <div style="margin: 0 auto;"> - <el-upload ref="upload" :action="action" :auto-upload="false" :file-list="fileList" - :headers="uploadHeader" :limit="1" - accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' - :on-change="beforeUpload" :on-error="onError" :on-success="handleSuccessUp" drag - :data="{planYear: planYear, examineUserId: examineUserId}" - name="file"> + <el-upload ref="upload" :action="action" :auto-upload="false" :file-list="fileList" :headers="uploadHeader" + :limit="1" accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' + :on-change="beforeUpload" :on-error="onError" :on-success="handleSuccessUp" drag + :data="{ planYear: planYear, examineUserId: examineUserId }" name="file"> <i class="el-icon-upload"></i> <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div> </el-upload> @@ -153,11 +143,10 @@ <el-input v-model="ratifyRemark" :disabled="this.ratifyStatus === 1" type="textarea"></el-input> </div> <div style="margin: 0 auto;"> - <el-upload ref="upload1" :action="action1" :auto-upload="false" :data="{qualityMonitorDetailsId: qualityMonitorDetailsId}" :file-list="fileList1" :headers="uploadHeader" - :limit="1" - :on-change="beforeUpload1" :on-error="onError1" :on-success="onSuccess1" accept='.doc,.docx' - drag - name="file"> + <el-upload ref="upload1" :action="action1" :auto-upload="false" + :data="{ qualityMonitorDetailsId: qualityMonitorDetailsId }" :file-list="fileList1" :headers="uploadHeader" + :limit="1" :on-change="beforeUpload1" :on-error="onError1" :on-success="onSuccess1" accept='.doc,.docx' drag + name="file"> <i class="el-icon-upload"></i> <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div> </el-upload> @@ -183,13 +172,13 @@ pageQualityMonitor, pageQualityMonitorDetail, ratifyFinishReport, ratifyQualityMonitor } from "@/api/cnas/process/ensureResults/qualityMonitor"; -import {selectUserCondition} from "@/api/performance/class"; -import {mapGetters} from "vuex"; +import { selectUserCondition } from "@/api/performance/class"; +import { mapGetters } from "vuex"; export default { name: 'a7-Ensure-results-validity', // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� - components: {limsTable, filePreview, EvaluateDialog, CarryOutDialog, DetailFormDialog }, + components: { limsTable, filePreview, EvaluateDialog, CarryOutDialog, DetailFormDialog }, data() { // 杩欓噷瀛樻斁鏁版嵁 return { @@ -251,7 +240,7 @@ label: '瀹℃牳鏃ユ湡', prop: 'examineTime', minWidth: '160' - },{ + }, { dataType: 'tag', label: '鎵瑰噯鐘舵��', prop: 'ratifyStatus', @@ -274,15 +263,15 @@ return null; } } - },{ + }, { label: '鎵瑰噯鍐呭', prop: 'ratifyRemark', minWidth: '100' - },{ + }, { label: '鎵瑰噯浜�', prop: 'ratifyName', minWidth: '100' - },{ + }, { label: '鎵瑰噯鏃ユ湡', prop: 'ratifyTime', minWidth: '160' @@ -342,7 +331,7 @@ this.delPlan(row) }, disabled: (row) => { - if(row.examineStatus === 1) { + if (row.examineStatus === 1) { return true; } else { return false; @@ -379,11 +368,11 @@ label: '棰勭畻锛堝厓锛�', prop: 'budget', minWidth: '150px' - },{ + }, { label: '缁勭粐浜哄憳', prop: 'organization', minWidth: '150px' - },{ + }, { label: '鐩戞帶鏂瑰紡', prop: 'monitorWay', minWidth: '150px' @@ -480,7 +469,7 @@ // 鏂规硶闆嗗悎 methods: { // 鏌ヨ骞村害璁″垝琛� - getYearPlanList () { + getYearPlanList() { const entity = { monitorName: this.yearForm.monitorName, } @@ -498,7 +487,7 @@ this.yearLoading = false }) }, - clearYear () { + clearYear() { this.yearForm.monitorName = '' this.getYearPlanList() }, @@ -512,7 +501,7 @@ this.yearDetailPage.size = limit; this.getYearPlanList(); }, - leadInto () { + leadInto() { this.uploadDia = true this.getUserList() }, @@ -545,7 +534,7 @@ this.$message.error(response.msg) } }, - submitUpload () { + submitUpload() { if (!this.planYear) { this.$message.warning('璇烽�夋嫨骞翠唤') return; @@ -558,12 +547,12 @@ }, // end // 瀹℃牳 - examinePlan (row) { + examinePlan(row) { this.examineDialog = true this.examineInfo = row this.getUserList() }, - handleReview (examineStatus) { + handleReview(examineStatus) { // 瀹℃牳鐘舵�� , 0 涓嶉�氳繃, 1閫氳繃 this.examineInfo.examineStatus = examineStatus this.examineLoading = true @@ -576,17 +565,17 @@ this.examineLoading = false }) }, - closeExamineDia () { + closeExamineDia() { this.examineDialog = false this.examineInfo.examineRemark = '' this.getYearPlanList() }, // 鎵瑰噯 - approvalPlan (row) { + approvalPlan(row) { this.ratifyDialog = true this.ratifyInfo = row }, - handleRatify (ratifyStatus) { + handleRatify(ratifyStatus) { // 鎵瑰噯鐘舵�� , 0 涓嶉�氳繃, 1閫氳繃 this.ratifyInfo.ratifyStatus = ratifyStatus this.ratifyLoading = true @@ -599,13 +588,13 @@ this.ratifyLoading = false }) }, - closeRatifyDia () { + closeRatifyDia() { this.ratifyDialog = false this.ratifyInfo.ratifyRemark = '' this.getYearPlanList() }, // 鎵瑰噯鎶ュ憡 - handleApproval (status) { + handleApproval(status) { const personTrainingUpdateDto = { qualityMonitorDetailsId: this.currentInfo.qualityMonitorDetailsId, ratifyRemark: this.ratifyRemark, @@ -624,23 +613,22 @@ }) }, // 瀵煎嚭 - handleDown (row) { - exportQualityMonitorDetail({qualityMonitorId: row.qualityMonitorId}).then(res => { + handleDown(row) { + exportQualityMonitorDetail({ qualityMonitorId: row.qualityMonitorId }).then(res => { this.outLoading = false - const blob = new Blob([res],{ type: 'application/msword' }); + const blob = new Blob([res], { type: 'application/msword' }); this.$download.saveAs(blob, row.monitorName + '.docx') - this.$message.success('瀵煎嚭鎴愬姛') }) }, // 鍒犻櫎杩涘害璁″垝琛� - delPlan (row) { + delPlan(row) { this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ暟鎹�, 鏄惁缁х画?', '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', type: 'warning' }).then(() => { this.yearLoading = true - delQualitySupervise({qualityMonitorId: row.qualityMonitorId}).then(res => { + delQualitySupervise({ qualityMonitorId: row.qualityMonitorId }).then(res => { this.yearLoading = false this.$message.success('鍒犻櫎鎴愬姛') this.getYearPlanList() @@ -661,7 +649,7 @@ this.getYearDetailPlanList() }, // 鑾峰彇骞村害鏄庣粏琛� - getYearDetailPlanList () { + getYearDetailPlanList() { const entity = { qualityMonitorId: this.qualityMonitorId, monitorPurpose: this.yearDetailForm.monitorPurpose, @@ -679,7 +667,7 @@ }) }, // 閲嶇疆鏄庣粏琛� - clearDetail () { + clearDetail() { this.yearDetailForm = { monitorPurpose: '', monitorProject: '' @@ -687,18 +675,18 @@ this.getYearDetailPlanList() }, // 鏄庣粏琛ㄥ疄鏂� - carryOut (row) { + carryOut(row) { this.carryOutDia = true this.$nextTick(() => { this.$refs.carryOutDia.openDia(row) }) }, - closeCarryOutDia () { + closeCarryOutDia() { this.carryOutDia = false this.getYearDetailPlanList() }, // 鎵撳紑瀹屾垚鎶ュ憡寮规 - record (row) { + record(row) { this.qualityMonitorDetailsId = row.qualityMonitorDetailsId this.ratifyRemark = row.ratifyRemark if (row.finishReportUrl) { @@ -745,58 +733,56 @@ }, // end // 鎵撳紑璇勪环寮规 - evaluate (row) { + evaluate(row) { this.evaluateDialog = true this.$nextTick(() => { this.$refs.evaluateDialog.openDia(row) }) }, - closeEvaDia () { + closeEvaDia() { this.evaluateDialog = false this.getYearDetailPlanList() }, // 鎵撳紑瀵煎嚭寮规 - downLoadPost (row) { + downLoadPost(row) { this.downloadDialog = true this.download = row }, // 鎵撳紑骞村害鏄庣粏鏂板銆佷慨鏀瑰脊妗� - showDialog (type, row) { + showDialog(type, row) { this.formDia = true this.$nextTick(() => { this.$refs.formDia.openDia(type, row) }) }, - closeDia () { + closeDia() { this.formDia = false this.getYearDetailPlanList() }, // 鎺у埗鍗曞鍑� controlDown() { - exportQualityMonitorRatify({qualityMonitorDetailsId: this.download.qualityMonitorDetailsId}).then(res => { + exportQualityMonitorRatify({ qualityMonitorDetailsId: this.download.qualityMonitorDetailsId }).then(res => { this.outLoading = false const blob = new Blob([res], { type: 'application/msword' }); this.$download.saveAs(blob, '璐ㄩ噺鐩戞帶瀹炴柦璁″垝.docx') - this.$message.success('瀵煎嚭鎴愬姛') }) }, // 澶勭悊鍗曞鍑� processingDown() { - exportQualityMonitorEvaluate({qualityMonitorDetailsId: this.download.qualityMonitorDetailsId}).then(res => { + exportQualityMonitorEvaluate({ qualityMonitorDetailsId: this.download.qualityMonitorDetailsId }).then(res => { this.outLoading = false const blob = new Blob([res], { type: 'application/msword' }); this.$download.saveAs(blob, '璐ㄩ噺鐩戞帶璇勪环.docx') - this.$message.success('瀵煎嚭鎴愬姛') }) }, - delYearPlanDetail (row) { + delYearPlanDetail(row) { this.$confirm('姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ暟鎹�, 鏄惁缁х画?', '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', type: 'warning' }).then(() => { this.yearDetailLoading = true - delQualityMonitorDetail({qualityMonitorDetailsId: row.qualityMonitorDetailsId}).then(res => { + delQualityMonitorDetail({ qualityMonitorDetailsId: row.qualityMonitorDetailsId }).then(res => { this.yearDetailLoading = false this.$message.success('鍒犻櫎鎴愬姛') this.getYearDetailPlanList() @@ -829,6 +815,4 @@ }; </script> -<style scoped> - -</style> +<style scoped></style> -- Gitblit v1.9.3