From b6516d781857f47bad5b4e6ef5f6bd4306dfe525 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 20 十月 2026 17:28:05 +0800
Subject: [PATCH] feat(costStatistics): 新增委托下单类型的数据格式化支持

---
 src/views/CNAS/process/method/standardMethodsChange/index.vue |   85 +++++++++++++++++++++++-------------------
 1 files changed, 46 insertions(+), 39 deletions(-)

diff --git a/src/views/CNAS/process/method/standardMethodsChange/index.vue b/src/views/CNAS/process/method/standardMethodsChange/index.vue
index 1889d2b..03b8602 100644
--- a/src/views/CNAS/process/method/standardMethodsChange/index.vue
+++ b/src/views/CNAS/process/method/standardMethodsChange/index.vue
@@ -3,8 +3,8 @@
     <div style="display: flex;justify-content: space-between">
       <div style="display: flex;">
         <div style="margin-bottom: 18px;margin-right: 10px;display: flex;align-items: center;line-height: 32px;">
-          <span style="width: 88px;font-size: 14px;font-weight: 700;color: #606266;">鏍囧噯鏂规硶</span>
-          <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.methodName"
+          <span style="width: 88px;font-size: 14px;font-weight: 700;color: var(--lims-text-2);">鏍囧噯鏂规硶</span>
+          <el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="searchForm.standardName"
                     @keyup.enter="searchList"></el-input>
         </div>
         <div style="line-height: 30px;">
@@ -17,51 +17,54 @@
       </div>
     </div>
     <div class="table">
-      <lims-table :tableData="tableData" :column="tableColumn" :height="'calc(100vh - 250px)'"
-                  @pagination="pagination" :page="page" :tableLoading="tableLoading"></lims-table>
+      <limsTable :column="tableColumn" :height="'calc(100vh - 23em)'" :table-data="tableData"
+                 :table-loading="tableLoading" :page="page"
+                 @pagination="pagination">
+      </limsTable>
     </div>
-    <formDIaChange v-if="formDIa" ref="formDIa" :operationType="operationType" @closeDia="closeDia"></formDIaChange>
+    <component :is="'formDIa'" v-if="formDIa" ref="formDIa" :operationType="operationType" :verify-type="0"
+               @closeDia="closeDia" />
   </div>
 </template>
 
 <script>
-import formDIaChange from './component/formDIaChange.vue';
 import limsTable from '@/components/Table/lims-table.vue'
-import {
-  delMethodVerify,
-  exportMethodVerify,
-  pagesMethodVerify
-} from '@/api/cnas/process/method/standardMethodsChange'
+import formDIa from '../methodVerification/component/formDIa.vue'
+import { delMethodVerify, exportMethodVerify, pagesMethodVerify } from '@/api/cnas/process/method/methodVerification'
 
 export default {
-  name: 'StandardMethodschange',
-  // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
-  components: { limsTable, formDIaChange },
+  name: 'StandardMethodsChange',
+  components: { limsTable, formDIa },
   data() {
-    // 杩欓噷瀛樻斁鏁版嵁
     return {
       searchForm: {
-        methodName: '',
+        standardName: '',
         operationType: 0,
       },
-      options: [
-        { label: '涓婂崐骞�', value: '1' },
-        { label: '涓嬪崐骞�', value: '2' },
-      ],
       tableColumn: [
         {
           label: '鏍囧噯鏂规硶',
           prop: 'methodName',
-          minWidth: '100'
+          minWidth: '120'
         },
         {
-          label: '楠岃瘉鍘熷洜',
+          label: '鍙樻洿鍘熷洜',
           prop: 'verifyReason',
-          minWidth: '100'
+          minWidth: '120'
         },
         {
           label: '涓昏鎶�鏈彉鍖�',
           prop: 'technologyChange',
+          minWidth: '120'
+        },
+        {
+          label: '纭鏃堕棿',
+          prop: 'confirmDate',
+          minWidth: '100'
+        },
+        {
+          label: '鍒涘缓鏃堕棿',
+          prop: 'createTime',
           minWidth: '100'
         },
         {
@@ -69,6 +72,13 @@
           minWidth: '60',
           label: '鎿嶄綔',
           operation: [
+            {
+              name: '璇︽儏',
+              type: 'text',
+              clickFun: (row) => {
+                this.openFormDia('view', row);
+              },
+            },
             {
               name: '缂栬緫',
               type: 'text',
@@ -91,16 +101,15 @@
                 this.deleteRow(row);
               },
             }
-
           ]
         }
       ],
       tableData: [],
       tableLoading: false,
       page: {
-        size: 10,
+        size: 20,
         current: 1,
-        total: 0,
+        total: 0
       },
       formDIa: false,
       operationType: '',
@@ -109,16 +118,16 @@
   mounted() {
     this.searchList()
   },
-  // 鏂规硶闆嗗悎
   methods: {
     // 鏌ヨ鍒楄〃
     searchList() {
       const entity = {
-        methodName: this.searchForm.methodName,
+        standardName: this.searchForm.standardName,
         operationType: this.searchForm.operationType,
       }
+      const page = this.page
       this.tableLoading = true
-      pagesMethodVerify({ ... this.page, ...entity }).then(res => {
+      pagesMethodVerify({ ...page, ...entity }).then(res => {
         this.tableLoading = false
         if (res.code === 200) {
           this.tableData = res.data.records
@@ -151,7 +160,7 @@
     },
     // 閲嶇疆鏌ヨ鏉′欢
     resetSearchForm() {
-      this.searchForm.methodName = '';
+      this.searchForm.standardName = '';
       this.searchList()
     },
     openFormDia(type, row) {
@@ -161,19 +170,17 @@
         this.$refs.formDIa.openDia(row)
       })
     },
+    // 瀵煎嚭
+    downLoadPost(row) {
+      exportMethodVerify({ methodVerifyId: row.methodVerifyId }).then(res => {
+        const blob = new Blob([res], { type: 'application/msword' });
+        this.$download.saveAs(blob, '鏍囧噯鏂规硶鍙樻洿璁板綍.docx')
+      })
+    },
     // 鍏抽棴寮规
     closeDia() {
       this.formDIa = false
       this.searchList()
-    },
-    // 瀵煎嚭
-    downLoadPost(row) {
-      this.outLoading = true
-      exportMethodVerify({ methodVerifyId: row.methodVerifyId }).then(res => {
-        this.outLoading = false
-        const blob = new Blob([res], { type: 'application/msword' });
-        this.$download.saveAs(blob, '鏍囧噯锛堟柟娉曪級纭璁板綍.docx')
-      })
     },
     // 鍒嗛〉鍒囨崲
     pagination(page) {

--
Gitblit v1.9.3