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/ensureResultsValidity/index.vue | 101 +++++++-- src/views/CNAS/resourceDemand/device/component/quantityValueTraceabilityPlan.vue | 21 + src/views/CNAS/resourceDemand/device/component/state.vue | 131 +---------- src/views/CNAS/resourceDemand/device/component/equipmentScrap.vue | 2 src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue | 5 src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue | 2 src/views/CNAS/resourceDemand/device/component/equipmentFailure.vue | 2 src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue | 18 + src/views/CNAS/resourceDemand/device/component/calibration.vue | 4 src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue | 2 src/views/CNAS/process/ensureResults/qualityControlPlan/components/detailFormDialog.vue | 4 src/views/CNAS/resourceDemand/device/component/borrow.vue | 98 +------- src/views/CNAS/resourceDemand/device/component/operationInstruction.vue | 2 src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue | 5 src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue | 130 +++++++++-- src/views/CNAS/resourceDemand/device/component/equipmentCalibrationPlan.vue | 6 src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue | 11 src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue | 5 src/views/CNAS/resourceDemand/device/component/inspectionOfEquipment.vue | 2 src/views/CNAS/resourceDemand/device/component/equipmentAccident.vue | 2 src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue | 6 src/views/CNAS/resourceDemand/device/component/maintenance.vue | 86 +------ 22 files changed, 294 insertions(+), 351 deletions(-) diff --git a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue index 6cdd361..e1cbdb1 100644 --- a/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue +++ b/src/views/CNAS/process/ensureResults/ensureResultsValidity/index.vue @@ -18,7 +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="'calc(100vh - 34em)'" @pagination="pagination" :rowClick="rowClick" key="yearTableData"></lims-table> </div> <div style="margin-top: 20px"> <div style="display: flex;justify-content: space-between;"> @@ -39,7 +39,7 @@ </div> </div> <lims-table :tableData="yearDetailTableData" :column="yearDetailColumnData" :page="yearDetailPage" - :tableLoading="yearDetailLoading" height="40vh" @pagination="pagination1" + :tableLoading="yearDetailLoading" :height="'calc(100vh - 34em)'" @pagination="pagination1" ref="yearDetailTableData" key="yearDetailTableData"></lims-table> </div> <!--鏂板淇敼寮规--> @@ -47,7 +47,7 @@ @closeDia="closeDia"></detail-form-dialog> <!--瀹炴柦娴佺▼寮规--> <carry-out-dialog v-if="carryOutDia" ref="carryOutDia" :qualityMonitorId="qualityMonitorId" - @closeDia="closeCarryOutDia"></carry-out-dialog> + @closeCarryOutDia="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"> @@ -196,20 +196,20 @@ { label: '璁″垝鍚嶇О', prop: 'monitorName', - minWidth: '150px' + width: '150px' }, { label: '缂栧埗浜�', prop: 'writeName', - minWidth: '100' + width: '100' }, { label: '缂栧埗鏃ユ湡', prop: 'writeTime', - minWidth: '160' + width: '160' }, { dataType: 'tag', label: '瀹℃牳鐘舵��', prop: 'examineStatus', - minWidth: '100', + width: '100', formatData: (params) => { if (params === 0) { return '涓嶉�氳繃'; @@ -231,20 +231,20 @@ }, { label: '瀹℃牳鍐呭', prop: 'examineRemark', - minWidth: '100' + width: '100' }, { label: '瀹℃牳浜�', prop: 'examineName', - minWidth: '100' + width: '100' }, { label: '瀹℃牳鏃ユ湡', prop: 'examineTime', - minWidth: '160' + width: '160' }, { dataType: 'tag', label: '鎵瑰噯鐘舵��', prop: 'ratifyStatus', - minWidth: '100', + width: '100', formatData: (params) => { if (params === 0) { return '涓嶆壒鍑�'; @@ -266,18 +266,17 @@ }, { label: '鎵瑰噯鍐呭', prop: 'ratifyRemark', - minWidth: '100' + width: '100' }, { label: '鎵瑰噯浜�', prop: 'ratifyName', - minWidth: '100' + width: '100' }, { label: '鎵瑰噯鏃ユ湡', prop: 'ratifyTime', - minWidth: '160' + width: '160' }, { dataType: 'action', - minWidth: '190', label: '鎿嶄綔', fixed: 'right', operation: [ @@ -355,30 +354,87 @@ }, { label: '璁″垝寮�灞曟椂闂�', prop: 'plannedTime', - minWidth: '150px' + width: '150px' }, { label: '鐩戞帶椤圭洰', prop: 'monitorProject', - minWidth: '150px' + width: '150px' }, { label: '鍙傚姞鍗曚綅锛堜汉鍛橈級', prop: 'participant', - minWidth: '150px' + width: '190px' }, { label: '棰勭畻锛堝厓锛�', prop: 'budget', - minWidth: '150px' + width: '150px' }, { label: '缁勭粐浜哄憳', prop: 'organization', - minWidth: '150px' + width: '150px' }, { label: '鐩戞帶鏂瑰紡', prop: 'monitorWay', - minWidth: '150px' + width: '150px' + },{ + dataType: 'tag', + label: '瀹炴柦鐘舵��', + prop: 'detailsRatifyStatus', + 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: 'evaluateStatus', + width: '100', + formatData: (params) => { + if (params === 0) { + return '鏈紑濮�'; + } else if (params === 1) { + return '寰呰瘎浠�'; + } else if (params === 2) { + return '寰呮壒鍑�'; + } else if (params === 3) { + return '宸叉壒鍑�'; + } else { + return null; + } + }, + formatType: (params) => { + if (params === 0) { + return ''; + } else if (params === 1) { + return 'warning'; + } else if (params === 2) { + return 'info'; + } else if (params === 3) { + return 'success'; + } else { + return null; + } + } }, { dataType: 'action', - width: '280', label: '鎿嶄綔', fixed: 'right', operation: [ @@ -661,6 +717,7 @@ this.yearDetailLoading = false this.yearDetailTableData = res.data.records this.yearDetailPage.total = res.data.total + this.$refs.yearDetailTableData.$refs.multipleTable.doLayout() }).catch(err => { console.log('err---', err); this.yearDetailLoading = false diff --git a/src/views/CNAS/process/ensureResults/qualityControlPlan/components/detailFormDialog.vue b/src/views/CNAS/process/ensureResults/qualityControlPlan/components/detailFormDialog.vue index 7672cfe..4a5424e 100644 --- a/src/views/CNAS/process/ensureResults/qualityControlPlan/components/detailFormDialog.vue +++ b/src/views/CNAS/process/ensureResults/qualityControlPlan/components/detailFormDialog.vue @@ -10,12 +10,12 @@ <el-date-picker v-model="form.superviseTime" clearable - format="yyyy-MM" + format="yyyy.M" placeholder="閫夋嫨鏃ユ湡" size="small" style="width: 100%" type="month" - value-format="yyyy-MM"> + value-format="yyyy.M"> </el-date-picker> </el-form-item> </el-col> 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 = { diff --git a/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue b/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue index 91d52a4..29618b3 100644 --- a/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue +++ b/src/views/CNAS/resourceDemand/device/component/addVerificationYearPlanDia.vue @@ -13,7 +13,8 @@ </div> <div style="margin: 10px 0"> <el-table ref="yearTable" :data="examinePlanDetailsList" id="templateParamTable" row-key="deviceId" - :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border height="500px" style="width: 100% ;"> + v-loading="yearTableLoading" + :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border height="500px"> <el-table-column label="璁惧鍚嶇О" min-width="190" prop="deviceName"> <template slot-scope="scope"> <el-input v-model="scope.row.deviceName" clearable size="small"></el-input> @@ -118,7 +119,8 @@ planId: '', examinePlanDetailsList: [], }, - operationType: '' + operationType: '', + yearTableLoading: false } }, mounted() { @@ -134,6 +136,7 @@ planYear: '', examinePlanDetailsList: [], } + this.examinePlanDetailsList = [] } else { this.getRowInfo(row) } @@ -141,13 +144,17 @@ this.getUserList() }, getRowInfo(row) { + this.yearTableLoading = true getDeviceExaminePlan({ planId: row.planId }).then(res => { + this.yearTableLoading = false if (res.code == 200) { this.examinePlanDetailsList = res.data.examinePlanDetailsList this.form.planName = res.data.planName this.form.planYear = res.data.planYear this.form.planId = res.data.planId } + }).catch(error => { + this.yearTableLoading = false }) }, // 娣诲姞璁惧 diff --git a/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue b/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue index 3b8db3d..c26a8de 100644 --- a/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue +++ b/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue @@ -13,6 +13,7 @@ </div> <div style="margin: 10px 0"> <el-table id="templateParamTable" ref="yearTable" :data="calibrationPlanDetailList" height="300px" + v-loading="yearTableLoading" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border row-key="deviceId" style="width: 100% ;"> <el-table-column label="璁惧鍚嶇О鍙婂瀷鍙�" min-width="190" prop="deviceName"> @@ -115,7 +116,8 @@ planId: '', calibrationPlanDetailList: [], }, - operationType: '' + operationType: '', + yearTableLoading: false } }, mounted() { @@ -129,21 +131,26 @@ this.form = { planName: '', planYear: '', - examinePlanDetailsList: [], + calibrationPlanDetailList: [], } + this.calibrationPlanDetailList = [] } else { this.getRowInfo(row) } this.applicationForm = true }, getRowInfo(row) { + this.yearTableLoading = true getDeviceCalibrationPlan({ planId: row.planId }).then(res => { + this.yearTableLoading = false if (res.code == 200) { this.calibrationPlanDetailList = res.data.calibrationPlanDetailList this.form.planName = res.data.planName this.form.planYear = res.data.planYear this.form.planId = res.data.planId } + }).catch(err => { + this.yearTableLoading = false }) }, // 娣诲姞璁惧 @@ -158,7 +165,12 @@ this.selectionRows.map(val => { this.calibrationPlanDetailList.push({ deviceId: val.id, deviceName: val.label, deviceNumber: val.value, - specificationModel: val.specificationModel, verificationCycles: val.calibrationDate, lastDate: val.lastCalibrationDate.substring(0, 10), planDate: val.nextCalibrationDate.substring(0, 10) + specificationModel: val.specificationModel, + verificationCycles: val.calibrationDate, + lastDate: val.lastCalibrationDate.substring(0, 10), + planDate: val.nextCalibrationDate.substring(0, 10), + verificationUnit: val.calibrationServices, + deviceAmount: 1 }) }) this.addEquipDia = false diff --git a/src/views/CNAS/resourceDemand/device/component/borrow.vue b/src/views/CNAS/resourceDemand/device/component/borrow.vue index 67faf2d..4898f5f 100644 --- a/src/views/CNAS/resourceDemand/device/component/borrow.vue +++ b/src/views/CNAS/resourceDemand/device/component/borrow.vue @@ -2,25 +2,24 @@ <template> <div> <div class="search"> - <div class="search_thing"> - <div class="search_label">娴佺▼缂栧彿锛�</div> - <div><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.processNumber" - @keyup.enter.native="refreshTable()"></el-input></div> - </div> - <div class="search_thing" style="padding-left: 30px;"> - <el-button size="mini" type="primary" @click="refreshTable()">鏌ヨ</el-button> - <el-button size="mini" @click="refresh()">閲嶇疆</el-button> - </div> - <div class="btns"> + <el-form :model="queryParams" ref="queryParams" size="small" :inline="true"> + <el-form-item label="娴佺▼缂栧彿"> + <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="queryParams.processNumber" + @keyup.enter.native="refreshTable()"></el-input> + </el-form-item> + <el-form-item> + <el-button size="mini" type="primary" @click="refreshTable()">鏌ヨ</el-button> + <el-button size="mini" @click="refresh()">閲嶇疆</el-button> + </el-form-item> + </el-form> + <div> <el-button size="small" type="primary" @click="add">鏂板</el-button> <!-- <el-button size="small" type="primary" @click="handleDown" :loading="outLoading">瀵煎嚭</el-button>--> </div> </div> - <div class="tables" style="margin-top: 10px;"> + <div class="tables"> <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" :height="'calc(100vh - 290px)'" :page="page" @pagination="pagination"></lims-table> - <!-- <ValueTable ref="ValueTable" :url="$api.deviceBorrow.deviceBorrowPage" - :delUrl="$api.deviceBorrow.deleteDeviceBorrow" :componentData="componentData" :key="upIndex" /> --> </div> <el-dialog title="浠櫒璁惧棰�(鍊�)鐢ㄧ櫥璁�" top="5vh" :visible.sync="dialogVisible" width="60%"> <el-steps :active="currentStep" finish-status="success" align-center> @@ -118,7 +117,6 @@ <el-col :span="12"> <el-form-item label="褰掕繕浜猴細" prop="rebackUser" :rules="[{ required: currentStep === 1, message: '璇疯緭鍏ュ綊杩樹汉', trigger: 'change' }]"> - <!-- <el-input v-model="form.rebackUser" size="small" :disabled="currentStep !== 1"></el-input> --> <el-select v-model="form.rebackUser" filterable placeholder="璇烽�夋嫨" clearable size="small" style="width: 50%;" :disabled="currentStep !== 1"> <el-option v-for="item in responsibleOptions" :key="item.id" :label="item.name" :value="item.name"> @@ -147,7 +145,6 @@ <el-col :span="12"> <el-form-item label="璁惧璐熻矗浜猴細" prop="deviceUser" :rules="[{ required: currentStep === 1, message: '璇烽�夋嫨璁惧璐熻矗浜�', trigger: 'change' }]"> - <!-- <el-input v-model="form.deviceUser" size="small" :disabled="currentStep !== 1"></el-input> --> <el-select v-model="form.deviceUser" filterable placeholder="璇烽�夋嫨" clearable size="small" style="width: 50%;" :disabled="currentStep !== 1"> <el-option v-for="item in responsibleOptions" :key="item.id" :label="item.name" :value="item.name"> @@ -160,7 +157,6 @@ <el-input type="textarea" v-model="form.note" :disabled="currentStep !== 1" size="small"></el-input> </el-form-item> </el-col> - </el-row> </el-card> <el-row style="margin-top: 1em;"> @@ -576,76 +572,10 @@ </script> <style scoped> -h4 { - font-weight: 400; - font-size: 16px; +.search { + height: 46px; display: flex; justify-content: space-between; - margin: 10px 0; -} - -h4 .line { - display: inline-block; - width: 3px; - height: 16px; - background: #3A7BFA; - margin-right: 4px; -} - -.tables { - width: 100%; - height: calc(100vh - 15em); -} - -.search { - background-color: #fff; - display: flex; - align-items: center; - position: relative; margin-top: 10px; -} - -.search_thing { - display: flex; - align-items: center; - height: 40px; -} - -.search_label { - width: 70px; - font-size: 14px; - text-align: right; -} - -.search_input { - width: calc(100% - 120px); -} - -.btns { - position: absolute; - right: 0px; - top: 50%; - transform: translate(0, -50%); -} - -.btns_thing { - position: absolute; - right: 230px; - top: 50%; - transform: translate(0, -50%); -} - -.form .search_label { - width: 120px; -} - -.el-radio { - margin-right: 10px; -} - -.el-radio-group { - width: 100%; - display: flex; - margin-top: 12px; } </style> diff --git a/src/views/CNAS/resourceDemand/device/component/calibration.vue b/src/views/CNAS/resourceDemand/device/component/calibration.vue index 72f9359..b0fcdfa 100644 --- a/src/views/CNAS/resourceDemand/device/component/calibration.vue +++ b/src/views/CNAS/resourceDemand/device/component/calibration.vue @@ -36,8 +36,8 @@ </el-table-column> </el-table> <el-pagination :current-page="1" :page-size="search.size" :page-sizes="[10, 20, 30, 50, 100]" - :total="search.total" layout="->,total, sizes, prev, pager, next, jumper" style="margin-right: 5%;" - @size-change="handleSizeChange" @current-change="handleCurrentChange"> + :total="search.total" layout="->,total, sizes, prev, pager, next, jumper" + @size-change="handleSizeChange" @current-change="handleCurrentChange" background> </el-pagination> </div> <!-- 鏍″噯椤圭洰缁存姢 --> diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue b/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue index f837ef1..64e4de1 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentAcceptance.vue @@ -27,7 +27,7 @@ </el-table-column> </el-table> <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" - :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" + :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" background @size-change="handleSizeChange1" @current-change="handleCurrentChange1"> </el-pagination> </div> diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentAccident.vue b/src/views/CNAS/resourceDemand/device/component/equipmentAccident.vue index 675f00f..121a297 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentAccident.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentAccident.vue @@ -30,7 +30,7 @@ </el-table-column> </el-table> <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" - :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" + :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" background @size-change="handleSizeChange1" @current-change="handleCurrentChange1"> </el-pagination> </div> diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentCalibrationPlan.vue b/src/views/CNAS/resourceDemand/device/component/equipmentCalibrationPlan.vue index 4ac34e9..7bdf1f2 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentCalibrationPlan.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentCalibrationPlan.vue @@ -15,12 +15,12 @@ <div> <el-table ref="yearTable" v-loading="yearTableDataLoading" :data="yearTableData" height="calc(60vh - 20em)" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border - highlight-current-row style="width: 100% ;" @current-change="currentChange"> + highlight-current-row @current-change="currentChange"> <!-- 琛ㄦ牸鍒� --> <el-table-column align="center" header-align="center" label="搴忓彿" prop="prop" type="index" width="70"></el-table-column> <el-table-column label="骞翠唤" min-width="80" prop="planYear"></el-table-column> - <el-table-column label="璁″垝鍚嶇О" min-width="180" prop="planName"></el-table-column> + <el-table-column label="璁″垝鍚嶇О" min-width="180" prop="planName" show-overflow-tooltip></el-table-column> <el-table-column label="缂栧埗浜�" min-width="100" prop="writeName"></el-table-column> <el-table-column label="缂栧埗鏃ユ湡" min-width="160" prop="writeTime"></el-table-column> <el-table-column label="鎵瑰噯鐘舵��" min-width="100" prop="ratifyStatus"> @@ -83,7 +83,7 @@ <!-- 琛ㄦ牸鍒� --> <el-table-column align="center" header-align="center" label="搴忓彿" prop="prop" type="index" width="70"></el-table-column> - <el-table-column label="璁惧鍚嶇О鍙婂瀷鍙�" min-width="180" prop="deviceName"></el-table-column> + <el-table-column label="璁惧鍚嶇О鍙婂瀷鍙�" min-width="180" prop="deviceName" show-overflow-tooltip></el-table-column> <el-table-column label="璁惧鏁伴噺" min-width="180" prop="deviceAmount"></el-table-column> <el-table-column label="浠櫒缂栧彿" min-width="150" prop="deviceNumber"></el-table-column> <el-table-column label="妫�瀹氬崟浣�" min-width="150" prop="verificationUnit"> </el-table-column> diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentFailure.vue b/src/views/CNAS/resourceDemand/device/component/equipmentFailure.vue index 8c24324..a07bb06 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentFailure.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentFailure.vue @@ -28,7 +28,7 @@ </el-table-column> </el-table> <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" - :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" + :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" background @size-change="handleSizeChange1" @current-change="handleCurrentChange1"> </el-pagination> </div> diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue b/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue index 424bfe6..1de0f9b 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue @@ -48,7 +48,7 @@ title="璁惧淇濆吇璁″垝琛�" width="80%" @close="closeDialog"> <div style="display: flex;align-items: center;"> <el-button v-if="operationType !== 'check'" size="small" type="primary" @click="addTableRow">娣诲姞</el-button> - <span style="width: 60px">骞翠唤锛�</span> + <span style="width: 60px;margin-left: 10px">骞翠唤锛�</span> <el-date-picker v-model="form.planYear" type="year" value-format="yyyy" clearable size="small" format="yyyy" placeholder="閫夋嫨骞�"> </el-date-picker> diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentScrap.vue b/src/views/CNAS/resourceDemand/device/component/equipmentScrap.vue index b407017..ec8b334 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentScrap.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentScrap.vue @@ -30,7 +30,7 @@ </el-table> <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" - @size-change="handleSizeChange1" @current-change="handleCurrentChange1"> + @size-change="handleSizeChange1" @current-change="handleCurrentChange1" background> </el-pagination> </div> </div> diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue index 6cb7975..eb27248 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue @@ -19,12 +19,12 @@ <div> <el-table ref="yearTable" v-loading="yearTableDataLoading" :data="yearTableData" height="calc(60vh - 20em)" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border - highlight-current-row style="width: 100% ;" @current-change="currentChange"> + highlight-current-row @current-change="currentChange"> <!-- 琛ㄦ牸鍒� --> <el-table-column align="center" header-align="center" label="搴忓彿" prop="prop" type="index" width="70"></el-table-column> <el-table-column label="骞翠唤" min-width="80" prop="planYear"></el-table-column> - <el-table-column label="璁″垝鍚嶇О" min-width="180" prop="planName"></el-table-column> + <el-table-column label="璁″垝鍚嶇О" min-width="180" prop="planName" show-overflow-tooltip></el-table-column> <el-table-column label="缂栧埗浜�" min-width="100" prop="writeName"></el-table-column> <el-table-column label="缂栧埗鏃ユ湡" min-width="160" prop="writeTime"></el-table-column> <el-table-column label="鎵瑰噯鐘舵��" min-width="100" prop="ratifyStatus"> @@ -88,7 +88,7 @@ <el-table-column align="center" header-align="center" label="搴忓彿" prop="prop" type="index" width="70"></el-table-column> <el-table-column label="璁惧缂栧彿" min-width="180" prop="deviceNumber"></el-table-column> - <el-table-column label="璁惧鍚嶇О" min-width="180" prop="deviceName"></el-table-column> + <el-table-column label="璁惧鍚嶇О" min-width="180" prop="deviceName" show-overflow-tooltip></el-table-column> <el-table-column label="鏍告煡鏃堕棿" min-width="150" prop="checkTime"></el-table-column> <el-table-column label="鏍告煡鎸囨爣" min-width="150" prop="checkIndex"> </el-table-column> <el-table-column label="鏍告煡鏂规硶" min-width="150" prop="checkMethod"></el-table-column> diff --git a/src/views/CNAS/resourceDemand/device/component/inspectionOfEquipment.vue b/src/views/CNAS/resourceDemand/device/component/inspectionOfEquipment.vue index dd0b3e8..924e81d 100644 --- a/src/views/CNAS/resourceDemand/device/component/inspectionOfEquipment.vue +++ b/src/views/CNAS/resourceDemand/device/component/inspectionOfEquipment.vue @@ -38,7 +38,7 @@ </el-table-column> </el-table> <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" - :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" + :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" background @size-change="handleSizeChange1" @current-change="handleCurrentChange1"> </el-pagination> </div> diff --git a/src/views/CNAS/resourceDemand/device/component/maintenance.vue b/src/views/CNAS/resourceDemand/device/component/maintenance.vue index 2b1ebbe..8bc91aa 100644 --- a/src/views/CNAS/resourceDemand/device/component/maintenance.vue +++ b/src/views/CNAS/resourceDemand/device/component/maintenance.vue @@ -2,21 +2,22 @@ <template> <div> <div class="search"> - <div class="search_thing"> - <div class="search_label">娴佺▼缂栧彿锛�</div> - <div class="search_input"><el-input v-model="search.deviceNumber" clearable placeholder="璇疯緭鍏�" size="small" - @keyup.enter.native="getAllMessage(clickNodeVal.value)"></el-input></div> - </div> - <div class="search_thing" style="padding-left: 30px;"> - <el-button size="mini" type="primary" @click="getAllMessage(clickNodeVal.value)">鏌ヨ</el-button> - <el-button size="mini" @click="resetSearch">閲嶇疆</el-button> - </div> - <div class="btns"> + <el-form :model="search" ref="search" size="small" :inline="true"> + <el-form-item label="娴佺▼缂栧彿"> + <el-input v-model="search.deviceNumber" clearable placeholder="璇疯緭鍏�" size="small" + @keyup.enter.native="getAllMessage(clickNodeVal.value)"></el-input> + </el-form-item> + <el-form-item> + <el-button size="mini" type="primary" @click="getAllMessage(clickNodeVal.value)">鏌ヨ</el-button> + <el-button size="mini" @click="resetSearch">閲嶇疆</el-button> + </el-form-item> + </el-form> + <div> <el-button size="small" type="primary" @click="dialogVisible = true; add()">娣诲姞缁存姢璁板綍</el-button> <el-button :loading="outLoading" size="small" type="primary" @click="handleDownOne">瀵煎嚭</el-button> </div> </div> - <div class="tables" style="margin-top: 10px;"> + <div> <el-table ref="table" :data="MaintainParam" height="calc(100vh - 20em)" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border> <el-table-column label="搴忓彿" type="index" width="120"> @@ -41,7 +42,7 @@ </el-table> <el-pagination :current-page="1" :page-size="search.size" :page-sizes="[10, 20, 30, 50, 100]" :total="search.total" layout="->,total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" - @current-change="handleCurrentChange"> + @current-change="handleCurrentChange" background> </el-pagination> </div> <!-- 鏂板缓缁存姢 --> @@ -276,66 +277,11 @@ </script> <style scoped> -h4 { - font-weight: 400; - font-size: 16px; +.search { + height: 46px; display: flex; justify-content: space-between; - margin: 10px 0; -} - -h4 .line { - display: inline-block; - width: 3px; - height: 16px; - background: #3A7BFA; - margin-right: 4px; -} - -.tables { - width: 100%; - height: calc(100vh - 17em); -} - -.search { - background-color: #fff; - display: flex; - align-items: center; - position: relative; margin-top: 10px; -} - -.search_thing { - display: flex; - align-items: center; - height: 40px; -} - -.search_label { - width: 80px; - font-size: 14px; - text-align: right; -} - -.search_input { - width: 73%; -} - -.btns { - position: absolute; - right: 0px; - top: 50%; - transform: translate(0, -50%); -} - -.btns_thing { - position: absolute; - right: 230px; - top: 50%; - transform: translate(0, -50%); -} - -.form .search_label { - width: 120px; + align-items: flex-start; } </style> diff --git a/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue b/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue index fe1ab9a..31bcab9 100644 --- a/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue +++ b/src/views/CNAS/resourceDemand/device/component/operationInstruction.vue @@ -40,7 +40,7 @@ </el-table> <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="1" :page-sizes="[10, 20, 30, 50, 100]" :page-size="search.size" layout="->,total, sizes, prev, pager, next, jumper" - :total="search.total"> + :total="search.total" background> </el-pagination> <el-dialog :visible.sync="dialogVisible" title="鍙楁帶鐢宠" width="60%"> <div style="height: 60vh; overflow-y: auto; overflow-x: hidden;"> diff --git a/src/views/CNAS/resourceDemand/device/component/quantityValueTraceabilityPlan.vue b/src/views/CNAS/resourceDemand/device/component/quantityValueTraceabilityPlan.vue index 9d2fc26..bb806b6 100644 --- a/src/views/CNAS/resourceDemand/device/component/quantityValueTraceabilityPlan.vue +++ b/src/views/CNAS/resourceDemand/device/component/quantityValueTraceabilityPlan.vue @@ -50,7 +50,7 @@ title="浠櫒璁惧閲忓�兼函婧愮鐞嗘�讳綋璁″垝" width="80%" @close="closeDialog"> <div style="display: flex;align-items: center;"> <el-button v-if="operationType !== 'check'" size="small" type="primary" @click="addTableRow">娣诲姞</el-button> - <span style="width: 60px">骞翠唤锛�</span> + <span style="width: 60px;margin-left: 10px">骞翠唤锛�</span> <el-date-picker v-model="form.planYear" type="year" value-format="yyyy" clearable size="small" format="yyyy" placeholder="閫夋嫨骞�"> </el-date-picker> @@ -58,7 +58,7 @@ <div style="margin: 10px 0"> <el-table ref="yearTable" :data="deviceTraceabilityManagementDetails" height="300px" id="templateParamTable" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border - row-key="deviceId" style="width: 100% ;"> + row-key="deviceId" v-loading="yearTableLoading"> <el-table-column align="center" header-align="center" label="搴忓彿" type="index" width="60"></el-table-column> <el-table-column label="璁惧鍚嶇О" min-width="170" prop="deviceId"> <template slot-scope="scope"> @@ -211,6 +211,7 @@ notificationLoading: false, auditId: '', traceabilityManagementId: '', + yearTableLoading: false } }, mounted() { @@ -272,17 +273,20 @@ this.form = { planYear: '', deviceTraceabilityManagementDetails: [] - }, - this.deviceTraceabilityManagementDetails = [] + } + this.deviceTraceabilityManagementDetails = [] if (row) { this.traceabilityManagementId = row.traceabilityManagementId + this.yearTableLoading = true getTraceabilityManagementDetail({ traceabilityManagementId: this.traceabilityManagementId }).then(res => { + this.yearTableLoading = false if (res.code === 200) { this.form = res.data this.deviceTraceabilityManagementDetails = this.form.deviceTraceabilityManagementDetails } }).catch(error => { console.error(error) + this.yearTableLoading = false }) } }, @@ -298,7 +302,14 @@ changeMachineName() { this.deviceTraceabilityManagementDetails = [] this.selectionRows.map(val => { - this.deviceTraceabilityManagementDetails.push({ deviceId: val.id, managementNumber: val.value, deviceName: val.label, specificationModel: val.specificationModel }) + this.deviceTraceabilityManagementDetails.push({ + deviceId: val.id, + managementNumber: val.value, + deviceName: val.label, + specificationModel: val.specificationModel, + verificationUnit: val.calibrationServices, + verificationCycle: val.calibrationDate + }) }) this.addEquipDia = false this.rowDrop() diff --git a/src/views/CNAS/resourceDemand/device/component/state.vue b/src/views/CNAS/resourceDemand/device/component/state.vue index 8715991..da08131 100644 --- a/src/views/CNAS/resourceDemand/device/component/state.vue +++ b/src/views/CNAS/resourceDemand/device/component/state.vue @@ -2,27 +2,20 @@ <template> <div> <div class="search"> - <el-row :gutter="10" style="width: 100%;"> - <el-col :span="20" style="display: flex;flex-wrap: wrap;"> - <div class="search_thing"> - <div class="search_label">娴佺▼缂栧彿锛�</div> - <div class="search_input"> - <el-input v-model="search.processNumber" clearable placeholder="璇疯緭鍏�" size="small" style="width: 100%" - @keyup.enter.native="getDeviceStatePage(clickNodeVal.value)"></el-input> - </div> - </div> - <div class="search_thing" style="padding-left: 20px;"> - <el-button size="mini" type="primary" @click="getDeviceStatePage(clickNodeVal.value)">鏌ヨ</el-button> - <el-button size="mini" @click="resetSearch">閲嶇疆</el-button> - </div> - </el-col> - <el-col :span="4"> - <div class="btns"> - <el-button size="small" type="primary" @click="dialogVisible = true">鏂板缓</el-button> - <el-button :loading="outLoading" size="small" type="primary" @click="handleDown">瀵煎嚭Excel</el-button> - </div> - </el-col> - </el-row> + <el-form :model="search" ref="search" size="small" :inline="true"> + <el-form-item label="娴佺▼缂栧彿"> + <el-input v-model="search.processNumber" clearable placeholder="璇疯緭鍏�" size="small" style="width: 100%" + @keyup.enter.native="getDeviceStatePage(clickNodeVal.value)"></el-input> + </el-form-item> + <el-form-item> + <el-button size="mini" type="primary" @click="getDeviceStatePage(clickNodeVal.value)">鏌ヨ</el-button> + <el-button size="mini" @click="resetSearch">閲嶇疆</el-button> + </el-form-item> + </el-form> + <div> + <el-button size="small" type="primary" @click="dialogVisible = true">鏂板缓</el-button> + <el-button :loading="outLoading" size="small" type="primary" @click="handleDown">瀵煎嚭Excel</el-button> + </div> </div> <div> <el-table :data="tableDatalist" height="calc(100vh - 20em)" style="width: 100% ;" @@ -54,7 +47,7 @@ </el-table> <el-pagination :current-page="1" :page-size="search.size" :page-sizes="[10, 20, 30, 50, 100]" :total="search.total" layout="->,total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" - @current-change="handleCurrentChange"> + @current-change="handleCurrentChange" background> </el-pagination> </div> <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" :visible.sync="dialogVisible" title="璁惧鎯呭喌" @@ -509,98 +502,10 @@ </script> <style scoped> -.dialog-content { - max-height: 70vh; - /* 璁剧疆鏈�澶ч珮搴� */ - overflow-y: auto; - /* 鍚敤鍨傜洿婊氬姩 */ -} - -h4 { - font-weight: 400; - font-size: 16px; - margin: 10px 0; -} - -/* -淇濆瓨鎻愪氦鎸夐挳鏍峰紡 -*/ -h4 .title { - width: 100%; - display: flex; - align-items: center; - justify-content: space-between; -} - -h4 .title .line { - display: inline-block; - width: 3px; - height: 16px; - background: #3A7BFA; - margin-right: 4px; -} - -.tables { - width: 100%; - height: calc(100vh - 15em); -} - -.el-from { - max-width: 400px; - margin: 0 auto; -} - -.form-row { - display: flex; - justify-content: space-between; -} - - -.form-row .el-form-item { - flex: 1; - /* 姣忎釜琛ㄥ崟椤瑰崰鎹浉鍚屾瘮渚嬬殑绌洪棿 */ - margin-right: 100px; - /* 鍙�夛細涓哄彸渚у厓绱犳坊鍔犻棿璺� */ -} - -/* 绉婚櫎鏈�鍚庝竴涓厓绱犵殑鍙宠竟璺� */ -.form-row .el-form-item:last-child { - margin-right: 0; - -} - .search { - background-color: #fff; - margin: 10px 0; + height: 46px; display: flex; - align-items: center; - position: relative; -} - -.search_thing { - display: flex; - align-items: center; - height: 40px; -} - -.search_label { - width: 70px; - font-size: 14px; - text-align: right; -} - -.search_input { - width: 70%; -} - -.btns { - position: absolute; - right: 0; - top: 50%; - transform: translate(0, -50%); -} - -.form .search_label { - width: 120px; + justify-content: space-between; + margin-top: 10px; } </style> diff --git a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue index b4b884d..59cadd7 100644 --- a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue @@ -22,10 +22,9 @@ <el-button size="small" type="primary" @click="openAdd('鏂板')">鏂板</el-button> <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx' :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' - :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> + :on-success="handleSuccessUp" style="display: inline-block;margin: 0 8px"> <el-button type="primary" size="small">瀵煎叆</el-button></el-upload> - <el-button size="small" type="primary" @click="handleDown" :loading="outLoading" - style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button> + <el-button size="small" type="primary" @click="handleDown" :loading="outLoading">瀵煎嚭</el-button> </div> </div> <div class="table"> diff --git a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue index fa0a9de..b969324 100644 --- a/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/cancellationRecord.vue @@ -22,10 +22,9 @@ <el-button size="small" type="primary" @click="openAdd">鏂板</el-button> <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx' :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' - :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> + :on-success="handleSuccessUp" style="display:inline-block;margin: 0 8px;"> <el-button type="primary" size="small">瀵煎叆</el-button></el-upload> - <el-button size="small" type="primary" @click="handleDown" :loading="outLoading" - style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button> + <el-button size="small" type="primary" @click="handleDown" :loading="outLoading">瀵煎嚭</el-button> </div> </div> <div class="table"> diff --git a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue index 14fa4e6..be50c66 100644 --- a/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/distributionCollectionRecord.vue @@ -22,10 +22,9 @@ <el-button size="small" type="primary" @click="openAdd">鏂板</el-button> <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx' :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' - :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> + :on-success="handleSuccessUp" style="display:inline-block;margin: 0 8px;"> <el-button type="primary" size="small">瀵煎叆</el-button></el-upload> - <el-button size="small" type="primary" @click="handleDown" :loading="outLoading" - style="display:inline-block;margin-left: 20px;">瀵煎嚭</el-button> + <el-button size="small" type="primary" @click="handleDown" :loading="outLoading">瀵煎嚭</el-button> </div> </div> <div class="table"> -- Gitblit v1.9.3