From eb8a6c6d3dcec5f49803669d69b1c22f70583640 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 10 三月 2025 10:41:51 +0800
Subject: [PATCH] 完成设施和环境条件搬迁
---
src/views/CNAS/process/ensureResults/qualityControlPlan/components/rectifyDialog.vue | 114 ++++++++++++++++++++++++--------------------------------
1 files changed, 49 insertions(+), 65 deletions(-)
diff --git a/src/views/CNAS/process/ensureResults/qualityControlPlan/components/rectifyDialog.vue b/src/views/CNAS/process/ensureResults/qualityControlPlan/components/rectifyDialog.vue
index dd02732..fd16847 100644
--- a/src/views/CNAS/process/ensureResults/qualityControlPlan/components/rectifyDialog.vue
+++ b/src/views/CNAS/process/ensureResults/qualityControlPlan/components/rectifyDialog.vue
@@ -1,9 +1,7 @@
<template>
<div>
- <el-dialog :close-on-click-modal="false" :close-on-press-escape="false"
- :visible.sync="formDia"
- title="绾犳鎺柦澶勭悊鍗�"
- width="60%" @close="closeRectifyDia">
+ <el-dialog :close-on-click-modal="false" :close-on-press-escape="false" :visible.sync="formDia" title="绾犳鎺柦澶勭悊鍗�"
+ width="60%" @close="closeRectifyDia">
<el-steps :active="currentStep" align-center finish-status="success">
<el-step title="涓嶅悎鏍兼垨鍋忕浜嬪疄鐨勬弿杩�" @click.native="setStep(0)"></el-step>
<el-step title="鍘熷洜鍒嗘瀽" @click.native="setStep(1)"></el-step>
@@ -17,11 +15,8 @@
<p><span class="required-span">* </span>涓嶅悎鏍兼垨鍋忕浜嬪疄鐨勬弿杩帮細</p>
</td>
<td class="td-info" colspan="3">
- <el-input v-if="showStep === 0 && currentStep === 0" v-model="form.raiseResult"
- :rows="4"
- placeholder="璇疯緭鍏ュ唴瀹�"
- size="small"
- type="textarea">
+ <el-input v-if="showStep === 0 && currentStep === 0" v-model="form.raiseResult" :rows="4"
+ placeholder="璇疯緭鍏ュ唴瀹�" size="small" type="textarea">
</el-input>
<span v-if="showStep === 0 && currentStep !== 0" class="td-info1"> {{ form.raiseResult }}</span>
</td>
@@ -31,9 +26,8 @@
<p><span class="required-span">* </span>璇烽�夋嫨涓嬩竴姝ヨ礋璐d汉锛�</p>
</td>
<td v-if="currentStep === 0" class="td-info" colspan="3">
- <el-select v-model="form.causeUserId" clearable filterable
- placeholder="璇烽�夋嫨" size="small">
- <el-option v-for="(item,i) in personList" :key="i" :label="item.label" :value="item.value">
+ <el-select v-model="form.causeUserId" clearable filterable placeholder="璇烽�夋嫨" size="small">
+ <el-option v-for="(item, i) in personList" :key="i" :label="item.label" :value="item.value">
</el-option>
</el-select>
</td>
@@ -43,13 +37,13 @@
<p>鎻愬嚭浜猴細</p>
</td>
<td class="td-info">
- {{form.raiseUserName}}
+ {{ form.raiseUserName }}
</td>
<td class="td-title">
<p>鎻愬嚭閮ㄩ棬锛�</p>
</td>
<td class="td-info">
- {{form.raiseDepartment}}
+ {{ form.raiseDepartment }}
</td>
</tr>
<tr v-if="showStep === 0 && currentStep !== 0">
@@ -57,7 +51,7 @@
<p>鏃ユ湡锛�</p>
</td>
<td class="td-info" colspan="3">
- {{form.raiseTime}}
+ {{ form.raiseTime }}
</td>
</tr>
<tr v-if="showStep === 1">
@@ -65,11 +59,8 @@
<p><span class="required-span">* </span>鍘熷洜鍒嗘瀽锛�</p>
</td>
<td class="td-info" colspan="3">
- <el-input v-if="showStep === 1 && currentStep === 1" v-model="form.causeResult"
- :rows="5"
- placeholder="璇疯緭鍏ュ唴瀹�"
- size="small"
- type="textarea">
+ <el-input v-if="showStep === 1 && currentStep === 1" v-model="form.causeResult" :rows="5"
+ placeholder="璇疯緭鍏ュ唴瀹�" size="small" type="textarea">
</el-input>
<span v-if="showStep === 1 && currentStep !== 1" class="td-info1"> {{ form.causeResult }}</span>
</td>
@@ -79,13 +70,13 @@
<p>鍘熷洜鍒嗘瀽浜猴細</p>
</td>
<td class="td-info">
- {{form.causeUserName}}
+ {{ form.causeUserName }}
</td>
<td class="td-title">
<p>璐d换閮ㄩ棬锛�</p>
</td>
<td class="td-info">
- {{form.causeDepartment}}
+ {{ form.causeDepartment }}
</td>
</tr>
<tr v-if="showStep === 1 && currentStep !== 1">
@@ -93,7 +84,7 @@
<p>鍘熷洜鍒嗘瀽鏃ユ湡锛�</p>
</td>
<td class="td-info" colspan="3">
- {{form.causeTime}}
+ {{ form.causeTime }}
</td>
</tr>
<tr v-if="showStep === 1">
@@ -101,9 +92,8 @@
<p><span class="required-span">* </span>璇烽�夋嫨涓嬩竴姝ヨ礋璐d汉锛�</p>
</td>
<td v-if="currentStep === 1" class="td-info" colspan="3">
- <el-select v-model="form.correctUserId" clearable filterable
- placeholder="璇烽�夋嫨" size="small">
- <el-option v-for="(item,i) in personList" :key="i" :label="item.label" :value="item.value">
+ <el-select v-model="form.correctUserId" clearable filterable placeholder="璇烽�夋嫨" size="small">
+ <el-option v-for="(item, i) in personList" :key="i" :label="item.label" :value="item.value">
</el-option>
</el-select>
</td>
@@ -113,11 +103,8 @@
<p><span class="required-span">* </span>绾犳鎺柦锛�</p>
</td>
<td class="td-info" colspan="3">
- <el-input v-if="showStep === 2 && currentStep === 2" v-model="form.correctResult"
- :rows="5"
- placeholder="璇疯緭鍏ュ唴瀹�"
- size="small"
- type="textarea">
+ <el-input v-if="showStep === 2 && currentStep === 2" v-model="form.correctResult" :rows="5"
+ placeholder="璇疯緭鍏ュ唴瀹�" size="small" type="textarea">
</el-input>
<span v-if="showStep === 2 && currentStep !== 2" class="td-info1"> {{ form.correctResult }}</span>
</td>
@@ -127,11 +114,8 @@
<p>鎻愬嚭瑕佹眰閮ㄩ棬纭锛�</p>
</td>
<td class="td-info" colspan="3">
- <el-input v-if="showStep === 2 && currentStep === 2" v-model="form.raiseDepartmentAffirm"
- :rows="5"
- placeholder="璇疯緭鍏ュ唴瀹�"
- size="small"
- type="textarea">
+ <el-input v-if="showStep === 2 && currentStep === 2" v-model="form.raiseDepartmentAffirm" :rows="5"
+ placeholder="璇疯緭鍏ュ唴瀹�" size="small" type="textarea">
</el-input>
<span v-if="showStep === 2 && currentStep !== 2" class="td-info1"> {{ form.raiseDepartmentAffirm }}</span>
</td>
@@ -141,13 +125,13 @@
<p>绾犳浜猴細</p>
</td>
<td class="td-info">
- {{form.correctUserName}}
+ {{ form.correctUserName }}
</td>
<td class="td-title">
<p>璐d换閮ㄩ棬锛�</p>
</td>
<td class="td-info">
- {{form.correctDepartment}}
+ {{ form.correctDepartment }}
</td>
</tr>
<tr v-if="showStep === 2 && currentStep !== 2">
@@ -155,7 +139,7 @@
<p>绾犳鏃ユ湡锛�</p>
</td>
<td class="td-info" colspan="3">
- {{form.correctTime}}
+ {{ form.correctTime }}
</td>
</tr>
<tr v-if="showStep === 2">
@@ -163,9 +147,8 @@
<p><span class="required-span">* </span>璇烽�夋嫨涓嬩竴姝ヨ礋璐d汉锛�</p>
</td>
<td v-if="currentStep === 2" class="td-info" colspan="3">
- <el-select v-model="form.validationUserId" clearable filterable
- placeholder="璇烽�夋嫨" size="small">
- <el-option v-for="(item,i) in personList" :key="i" :label="item.label" :value="item.value">
+ <el-select v-model="form.validationUserId" clearable filterable placeholder="璇烽�夋嫨" size="small">
+ <el-option v-for="(item, i) in personList" :key="i" :label="item.label" :value="item.value">
</el-option>
</el-select>
</td>
@@ -175,11 +158,8 @@
<p><span class="required-span">* </span>瀹炴柦楠岃瘉缁撴灉锛�</p>
</td>
<td class="td-info" colspan="3">
- <el-input v-if="showStep === 3 && currentStep === 3" v-model="form.validationResult"
- :rows="5"
- placeholder="璇疯緭鍏ュ唴瀹�"
- size="small"
- type="textarea">
+ <el-input v-if="showStep === 3 && currentStep === 3" v-model="form.validationResult" :rows="5"
+ placeholder="璇疯緭鍏ュ唴瀹�" size="small" type="textarea">
</el-input>
<span v-if="showStep === 3 && currentStep !== 3" class="td-info1"> {{ form.validationResult }}</span>
</td>
@@ -189,13 +169,13 @@
<p>楠岃瘉浜猴細</p>
</td>
<td class="td-info">
- {{form.validationUserName}}
+ {{ form.validationUserName }}
</td>
<td class="td-title">
<p>璐d换閮ㄩ棬锛�</p>
</td>
<td class="td-info">
- {{form.validationDepartment}}
+ {{ form.validationDepartment }}
</td>
</tr>
<tr v-if="showStep === 3 && currentStep !== 3">
@@ -203,7 +183,7 @@
<p>楠岃瘉鏃ユ湡锛�</p>
</td>
<td class="td-info" colspan="3">
- {{form.validationTime}}
+ {{ form.validationTime }}
</td>
</tr>
</table>
@@ -217,6 +197,11 @@
</template>
<script>
+import {
+ getSuperviseDetailCorrect,
+ addSuperviseDetailCorrect,
+} from '@/api/cnas/process/ensureResults/qualityControlPlan.js'
+import { selectUserCondition } from "@/api/system/user";
export default {
name: 'rectifyDialog',
// import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
@@ -258,7 +243,7 @@
},
// 鏂规硶闆嗗悎
methods: {
- openDia (row) {
+ openDia(row) {
this.formDia = true
this.searchInfo(row)
this.form.superviseDetailsId = row.superviseDetailsId
@@ -266,9 +251,9 @@
this.getSupervisedUserList() // 鑾峰彇褰撳墠閮ㄩ棬浜哄憳
},
// 鏌ヨ鐩戞帶璁″垝璇︽儏瀹炴柦淇℃伅
- searchInfo (row) {
+ searchInfo(row) {
this.form.qualityMonitorDetailsId = row.qualityMonitorDetailsId
- this.$axios.get(this.$api.qualitySupervise.getSuperviseDetailCorrect + '?superviseDetailsId=' + row.superviseDetailsId).then(res => {
+ getSuperviseDetailCorrect({ superviseDetailsId: row.superviseDetailsId }).then(res => {
if (res.code === 201) return
if (res.data.superviseDetailsCorrectId === null) {
this.showStep = 0
@@ -298,7 +283,7 @@
})
},
// 鎻愪氦
- handleEdit () {
+ handleEdit() {
if (this.currentStep === 0) {
if (!this.form.raiseResult) {
this.$message.warning('璇峰~鍐欎笉鍚堟牸鎻忚堪')
@@ -338,12 +323,7 @@
delete this.form.recordTime
delete this.form.actionsTime
delete this.form.correctTime
- this.$axios.post(this.$api.qualitySupervise.addSuperviseDetailCorrect, this.form, {
- headers: {
- "Content-Type": "application/json"
- },
- noQs: true
- }).then(res => {
+ addSuperviseDetailCorrect(this.form).then(res => {
this.editLoad = false
if (res.code === 201) return
this.$message.success('鎻愪氦鎴愬姛')
@@ -354,15 +334,15 @@
})
},
// 鍏抽棴寮规
- closeRectifyDia () {
+ closeRectifyDia() {
this.formDia = false
this.$emit('closeRectifyDia')
},
- setStep (step) {
+ setStep(step) {
this.showStep = step
},
getAuthorizedPerson() {
- this.$axios.get(this.$api.user.getUserMenu).then(res => {
+ selectUserCondition().then(res => {
let data = []
res.data.forEach(a => {
data.push({
@@ -373,8 +353,8 @@
this.personList = data
})
},
- getSupervisedUserList () {
- this.$axios.get(this.$api.user.selectDepartmentLimsUserList).then(res => {
+ getSupervisedUserList() {
+ selectUserCondition().then(res => {
let data = []
res.data.forEach(a => {
data.push({
@@ -393,11 +373,13 @@
>>>.el-dialog {
margin: 10vh auto 50px !important;
}
+
.tables {
table-layout: fixed;
width: 100%;
margin-top: 10px;
}
+
.td-title {
height: 40px;
width: 170px;
@@ -407,9 +389,11 @@
white-space: normal;
padding: 6px;
}
+
.td-info {
padding: 6px;
}
+
.td-info1 {
display: inline-block;
width: 100%;
--
Gitblit v1.9.3