ysy 1 سال پیش
والد
کامیت
a7f6d46248

+ 1 - 1
src/views/material/BOMmanage/components/attribute.vue

@@ -240,7 +240,7 @@
       </el-row>
 
 
-      <div class="btn_box" v-if=" attributeData.status != 1">
+      <div class="btn_box" v-if="attributeData.status != 1">
         <el-button type="primary" @click="handleUpdate">保存</el-button>
       </div>
     </el-form>

+ 2 - 1
src/views/material/BOMmanage/components/detailedList.vue

@@ -11,7 +11,7 @@
     >
       <template v-slot:toolbar>
         <div class="toolbar_box">
-          <div>
+          <div  v-if="attributeData.status != 1">
             <el-button type="primary" size="mini" @click="handleAdd"
               >新增</el-button
             >
@@ -100,6 +100,7 @@
       <!-- 表头工具栏 -->
       <template v-slot:action="{ row }">
         <el-link
+         v-if="attributeData.status != 1"
           type="danger"
           :underline="false"
           icon="el-icon-delete"

+ 9 - 2
src/views/material/BOMmanage/components/routing.vue

@@ -13,6 +13,7 @@
         <!-- 表头工具栏 -->
         <template v-slot:toolbar>
           <el-button
+           v-if="attributeData.status != 1"
             size="small"
             type="primary"
             icon="el-icon-plus"
@@ -31,7 +32,7 @@
         </template>
 
         <template v-slot:action="{ row, $index }">
-          <el-link type="danger" @click="handleDel(row)">删除</el-link>
+          <el-link type="danger" @click="handleDel(row)"  v-if="attributeData.status != 1">删除</el-link>
         </template>
       </ele-pro-table>
     </el-card>
@@ -50,7 +51,13 @@
       routingDialog
     },
     props: {
-      taskParam: Object
+      taskParam: Object,
+
+      attributeData: {
+        type: Object,
+        default: {}
+      },
+
     },
     data() {
       return {

+ 1 - 0
src/views/material/BOMmanage/detailsPop.vue

@@ -246,6 +246,7 @@
                 <routing
                  v-if="activeName == '工艺路线'"
                   ref="routingRef"
+                 :attributeData="currentNodeData"
                   :taskParam="currentNodeData"
                 ></routing>
               </el-tab-pane>