From b25e5611ece8d25a6605a1ec66916db0942a5ed5 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 17 二月 2025 14:45:24 +0800
Subject: [PATCH] 完成标准库联调

---
 src/views/standard/standardLibrary/index.vue |   39 ++++++++++++++++++++++++++-------------
 1 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/src/views/standard/standardLibrary/index.vue b/src/views/standard/standardLibrary/index.vue
index c30d290..60997c2 100644
--- a/src/views/standard/standardLibrary/index.vue
+++ b/src/views/standard/standardLibrary/index.vue
@@ -575,11 +575,19 @@
           ></el-table-column>
           <el-table-column label="鎿嶄綔" prop="section" width="160">
             <template slot-scope="scope">
-              <el-button type="text" @click="sectionUp(scope.row)"
+              <el-button
+                type="text"
+                @click="sectionUp(scope.row)"
+                :disabled="
+                  !checkPermi(['standard:standardLibrary:upStandardProduct'])
+                "
                 >鍖洪棿璁剧疆</el-button
               >
               <el-button
                 type="text"
+                :disabled="
+                  !checkPermi(['standard:standardLibrary:upStandardProduct'])
+                "
                 @click="bindSupplierDensitySecond(scope.row)"
                 >缁戝畾鍘傚</el-button
               >
@@ -756,12 +764,19 @@
         ></el-button>
       </span>
     </el-dialog>
-    <!-- <bindSupplierDensityDialogAsk v-if="bindSupplierDensityDialog"
-                               :bindSupplierDensityDialog="bindSupplierDensityDialog"
-                               :currentRow="currentSupplierDensityRow"
-                               @closeBindPartDialog="closeBindSupplierDensityDialog"></bindSupplierDensityDialogAsk> -->
-    <!-- <BatchCopy v-if="batchCopyDia" ref="BatchCopy" :selectTree1="selectTree"
-               :standardId="standardId" @refreshList="refreshList"></BatchCopy> -->
+    <bindSupplierDensityDialogAsk
+      v-if="bindSupplierDensityDialog"
+      :bindSupplierDensityDialog="bindSupplierDensityDialog"
+      :currentRow="currentSupplierDensityRow"
+      @closeBindPartDialog="closeBindSupplierDensityDialog"
+    ></bindSupplierDensityDialogAsk>
+    <BatchCopy
+      v-if="batchCopyDia"
+      ref="BatchCopy"
+      :selectTree1="selectTree"
+      :standardId="standardId"
+      @refreshList="refreshList"
+    ></BatchCopy>
   </div>
 </template>
 
@@ -790,16 +805,14 @@
   getStandardTemplate,
   selectStandardProductByMethodId,
   selectStandardProductEnumByMethodId,
-  resetTreeOfPrice,
-  resetTreeOfHour,
 } from "@/api/standard/standardLibrary";
 import { checkPermi } from "@/utils/permission"; // 鏉冮檺鍒ゆ柇鍑芥暟
-//   import bindSupplierDensityDialogAsk from "../do/a5-capacity-scope/bindSupplierDensityDialogAsk.vue";
-//   import BatchCopy from "../do/a5-capacity-scope/BatchCopy.vue";
+import bindSupplierDensityDialogAsk from "./components/bindSupplierDensityDialogAsk.vue";
+import BatchCopy from "./components/BatchCopy.vue";
 export default {
   components: {
-    //   BatchCopy,
-    //   bindSupplierDensityDialogAsk,
+    BatchCopy,
+    bindSupplierDensityDialogAsk,
     draggable,
   },
   dicts: ["sys_factory", "sys_sub_lab", "sys_samp_type"],

--
Gitblit v1.9.3