From b32ec53311698aa550848b54cd6ef619471ed39c Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 05 三月 2025 09:49:37 +0800
Subject: [PATCH] 外来文件记录bug修改

---
 src/views/CNAS/process/ensureResults/qualityControlPlan/components/rectifyDialog.vue |  101 ++++++++++++++++++++++----------------------------
 1 files changed, 45 insertions(+), 56 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..95f31d7 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 {
+  getSuperviseDetailRecord,
+  addSuperviseDetailRecord,
+  addSuperviseRecordOpinion,
+} from '@/api/cnas/process/ensureResults/qualityControlPlan.js'
 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,7 +251,7 @@
       this.getSupervisedUserList() // 鑾峰彇褰撳墠閮ㄩ棬浜哄憳
     },
     // 鏌ヨ鐩戞帶璁″垝璇︽儏瀹炴柦淇℃伅
-    searchInfo (row) {
+    searchInfo(row) {
       this.form.qualityMonitorDetailsId = row.qualityMonitorDetailsId
       this.$axios.get(this.$api.qualitySupervise.getSuperviseDetailCorrect + '?superviseDetailsId=' + row.superviseDetailsId).then(res => {
         if (res.code === 201) return
@@ -298,7 +283,7 @@
       })
     },
     // 鎻愪氦
-    handleEdit () {
+    handleEdit() {
       if (this.currentStep === 0) {
         if (!this.form.raiseResult) {
           this.$message.warning('璇峰~鍐欎笉鍚堟牸鎻忚堪')
@@ -354,11 +339,11 @@
       })
     },
     // 鍏抽棴寮规
-    closeRectifyDia () {
+    closeRectifyDia() {
       this.formDia = false
       this.$emit('closeRectifyDia')
     },
-    setStep (step) {
+    setStep(step) {
       this.showStep = step
     },
     getAuthorizedPerson() {
@@ -373,7 +358,7 @@
         this.personList = data
       })
     },
-    getSupervisedUserList () {
+    getSupervisedUserList() {
       this.$axios.get(this.$api.user.selectDepartmentLimsUserList).then(res => {
         let data = []
         res.data.forEach(a => {
@@ -393,11 +378,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 +394,11 @@
   white-space: normal;
   padding: 6px;
 }
+
 .td-info {
   padding: 6px;
 }
+
 .td-info1 {
   display: inline-block;
   width: 100%;

--
Gitblit v1.9.3