From 1946fb936d68fafa616310d4a7e453b6b7381cf8 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期一, 24 三月 2025 15:29:27 +0800 Subject: [PATCH] 合并装备修改 --- src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue | 130 ++++++++++++++++++++++++++++++++++-------- 1 files changed, 104 insertions(+), 26 deletions(-) diff --git a/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue b/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue index 72c5e7e..719c8be 100644 --- a/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue +++ b/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue @@ -24,7 +24,7 @@ <div style="display: flex;justify-content: space-between;"> <el-form :model="yearDetailForm" ref="yearDetailForm" size="small" :inline="true"> <el-form-item> - <el-radio-group v-model="yearDetailForm.causeType" @change="getYearDetailPlanList" size="small"> + <el-radio-group v-model="yearDetailForm.causeType" @change="getYearDetailPlan" size="small"> <el-radio-button :label="1">瀹氭湡鐩戠潱</el-radio-button> <el-radio-button :label="2">鍔ㄦ�佺洃鐫�</el-radio-button> </el-radio-group> @@ -36,7 +36,7 @@ <el-input v-model="yearDetailForm.superviseProject" placeholder="璇疯緭鍏�" size="small"></el-input> </el-form-item> <el-form-item> - <el-button type="primary" size="mini" @click="getYearDetailPlanList">鏌ヨ</el-button> + <el-button type="primary" size="mini" @click="getYearDetailPlan">鏌ヨ</el-button> <el-button size="mini" @click="clearDetail">閲嶇疆</el-button> </el-form-item> </el-form> @@ -45,8 +45,7 @@ </div> </div> <lims-table :tableData="yearDetailTableData" :column="yearDetailColumnData" :page="yearDetailPage" - :tableLoading="yearDetailLoading" height="40vh" @pagination="pagination1" - key="yearDetailTableData"></lims-table> + :tableLoading="yearDetailLoading" height="40vh" @pagination="pagination1" key="yearDetailColumnData"></lims-table> </div> <!--鏂板淇敼寮规--> <detail-form-dialog v-if="formDia" ref="formDia" :superviseId="superviseId" @@ -59,7 +58,7 @@ @closeProcessingDia="closeProcessingDia"></processing-sheet> <!--绾犳澶勭悊娴佺▼寮规--> <rectify-dialog-new v-if="rectifyDia" ref="rectifyDia" :superviseId="superviseId" - @closeProcessingDia="closeRectifyDia"></rectify-dialog-new> + @closeRectifyDia="closeRectifyDia"></rectify-dialog-new> <el-dialog :visible.sync="ratifyDialog" title="鎵瑰噯" width="30%" @close="closeRatifyDia"> <span> 鎵瑰噯澶囨敞锛� @@ -154,20 +153,19 @@ { label: '璁″垝鍚嶇О', prop: 'superviseName', - minWidth: '150px' + width: '150px' }, { label: '缂栧埗浜�', prop: 'writeUserName', - minWidth: '100' }, { label: '缂栧埗鏃ユ湡', prop: 'writeTime', - minWidth: '160' + width: '160' }, { dataType: 'tag', label: '鎵瑰噯鐘舵��', prop: 'ratifyStatus', - minWidth: '100', + width: '100', formatData: (params) => { if (params === 0) { return '涓嶆壒鍑�'; @@ -189,19 +187,16 @@ }, { label: '鎵瑰噯鍐呭', prop: 'ratifyRemark', - minWidth: '100' }, { label: '鎵瑰噯浜�', prop: 'ratifyUserName', - minWidth: '100' }, { label: '鎵瑰噯鏃ユ湡', prop: 'ratifyTime', - minWidth: '160' + width: '160' }, { dataType: 'action', label: '鎿嶄綔', - fixed: 'right', operation: [ { name: '鎵瑰噯', @@ -259,32 +254,110 @@ { label: '鐩戠潱鏃ユ湡', prop: 'superviseTime', - minWidth: '150px' + width: '120px' }, { label: '鐩戠潱鐩殑', prop: 'supervisePurpose', - minWidth: '150px', - showOverflowTooltip: true, + width: '150px', }, { label: '鐩戞帶椤圭洰', prop: 'superviseProject', - minWidth: '150px' + width: '150px' }, { label: '琚洃鐫d汉鍛�', prop: 'supervisee', - minWidth: '150px' + width: '120px' }, { label: '鐩戠潱鍘熷洜', prop: 'superviseReason', - minWidth: '150px' + width: '150px' + },{ + dataType: 'tag', + label: '璁板綍鐘舵��', + prop: 'recordStatus', + width: '100', + formatData: (params) => { + if (params === 0) { + return '鏈紑濮�'; + } else if (params === 1) { + return '寰呮壒鍑�'; + } else if (params === 2) { + return '宸叉壒鍑�'; + } else { + return null; + } + }, + formatType: (params) => { + if (params === 0) { + return ''; + } else if (params === 1) { + return 'warning'; + } else if (params === 2) { + return 'success'; + } else { + return null; + } + } + },{ + dataType: 'tag', + label: '鎺у埗鐘舵��', + prop: 'accordingStatus', + width: '100', + formatData: (params) => { + if (params === 0) { + return '鏈紑濮�'; + } else if (params === 1) { + return '寰呮壒鍑�'; + } else if (params === 2) { + return '宸叉壒鍑�'; + } else { + return null; + } + }, + formatType: (params) => { + if (params === 0) { + return ''; + } else if (params === 1) { + return 'warning'; + } else if (params === 2) { + return 'success'; + } else { + return null; + } + } + },{ + dataType: 'tag', + label: '绾犳鐘舵��', + prop: 'correctStatus', + width: '100', + formatData: (params) => { + if (params === 0) { + return '鏈紑濮�'; + } else if (params === 1) { + return '寰呮壒鍑�'; + } else if (params === 2) { + return '宸叉壒鍑�'; + } else { + return null; + } + }, + formatType: (params) => { + if (params === 0) { + return ''; + } else if (params === 1) { + return 'warning'; + } else if (params === 2) { + return 'success'; + } else { + return null; + } + } }, { label: '澶囨敞', prop: 'remark', - minWidth: '150px' }, { dataType: 'action', label: '鎿嶄綔', - fixed: 'right', operation: [ { name: '缂栬緫', @@ -353,6 +426,7 @@ size: 20, total: 0 }, + currentScrollPosition: 0, superviseId: '', formDia: false, recordsDia: false, @@ -404,11 +478,6 @@ pagination({ page, limit }) { this.yearPage.current = page; this.yearPage.size = limit; - this.getYearPlanList(); - }, - pagination1({ page, limit }) { - this.yearDetailPage.current = page; - this.yearDetailPage.size = limit; this.getYearPlanList(); }, // 瀵煎叆娴佺▼ @@ -536,6 +605,11 @@ // 骞村害璁″垝琛ㄦ牸锛岀偣鍑昏鏁版嵁鍚庡埛鏂拌鎯� rowClick(row) { this.superviseId = row.superviseId + this.getYearDetailPlan() + }, + getYearDetailPlan () { + this.yearDetailPage.current = 1 + this.yearDetailPage.size = 20 this.getYearDetailPlanList() }, // 鑾峰彇骞村害鏄庣粏琛� @@ -557,6 +631,10 @@ this.yearDetailLoading = false }) }, + pagination1(page) { + this.yearDetailPage.size = page.limit; + this.getYearDetailPlanList(); + }, // 閲嶇疆鏄庣粏琛� clearDetail() { this.yearDetailForm = { -- Gitblit v1.9.3