From 7af4ad0de6b55925d6e6397f0a47740779f2a547 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 13:13:51 +0800
Subject: [PATCH] 检验委托单-删除报错

---
 src/views/structural/capabilityAndLaboratory/capability/index.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/capability/index.vue b/src/views/structural/capabilityAndLaboratory/capability/index.vue
index 713b339..3047d19 100644
--- a/src/views/structural/capabilityAndLaboratory/capability/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/capability/index.vue
@@ -13,7 +13,7 @@
                      style="display: inline;margin-right: 8px"
                      :action="uploadAction1"
                      :before-upload="beforeUpload1" :headers="token" :on-error="onError1"
-                     :on-success="handleSuccessUp" :show-file-list="false" accept='.doc,.docx,.xls,.xlsx'>
+                     :on-success="handleSuccessUp1" :show-file-list="false" accept='.doc,.docx,.xls,.xlsx'>
             <el-button size="small" type="primary">瀵煎叆</el-button>
           </el-upload>
           <el-button size="small" type="primary" v-if="radio === 1" @click="uploadDia = true">瀵煎叆</el-button>
@@ -59,6 +59,7 @@
     <!--浜у搧缁存姢寮规-->
     <el-dialog title="浜у搧缁存姢" :visible.sync="diaProduct" width="900px">
       <lims-table :tableData="productData" :column="productColumn" height="460"
+                  @pagination="productPagination"
                   :page="productPage" :tableLoading="productableLoading"></lims-table>
       <span slot="footer" class="dialog-footer">
         <el-button @click="diaProduct = false">鍙� 娑�</el-button>
@@ -343,7 +344,7 @@
       productPage: {
         total:0,
         size:10,
-        current:0,
+        current:1,
         layout: 'total, prev, pager, next'
       },
       productableLoading: false,
@@ -430,10 +431,10 @@
         return true;
       }
     },
-    handleSuccessUp (response, file, fileList) {
-      this.$refs.upload.clearFiles()
-      if (response.code === 201) {
-        this.$message.error(response.message)
+    handleSuccessUp1 (response, file, fileList) {
+      this.$refs.upload1.clearFiles()
+      if (response.code !== 200) {
+        this.$message.error(response.msg)
         return
       }
       this.$message.success('涓婁紶鎴愬姛')
@@ -538,8 +539,10 @@
     upProduct(row) {
       this.diaProduct = true
       this.objectId = row.id
+      this.productPage.current = 1
       this.getProductList(row)
     },
+    // 鏌ヨ浜у搧缁存姢鍒楄〃鏁版嵁
     getProductList () {
       const params = {
         objectId: this.objectId,
@@ -553,6 +556,11 @@
         this.productableLoading = false
       })
     },
+    // 浜у搧缁存姢鍒楄〃鍒嗛〉
+    productPagination(page) {
+      this.productPage.current = page.page
+      this.getProductList()
+    },
     // 浜у搧缁存姢-鏂板-缂栬緫
     editProduct (type, row) {
       this.productEditDia = true

--
Gitblit v1.9.3