Browse Source

生产总订单-新增是增加按钮权限

jingbb 11 months ago
parent
commit
1fbc245804

+ 6 - 6
src/views/production/productionTotalOrder/modules/productionTotalOrderAdd.vue

@@ -92,12 +92,12 @@
        <div class="table-operator">
             <a-button type="danger" size="small"  @click="addList" >增行</a-button>
             <a-button size="small" @click="delectRow" >删行</a-button>
-            <a-button size="small" @click="productWarehous" :disabled="activeKey!=='finishProduct'">成品入库</a-button>
-            <a-button size="small" @click="materiaWarehous" :disabled="activeKey!=='material'">材料入库</a-button>
-            <a-button size="small" @click="KSWarehousing" :disabled="activeKey!=='finishProduct'">框/扇入库</a-button>
-            <a-button size="small" @click="KSOutbound" :disabled="activeKey!=='finishProduct'">框/扇出库</a-button>
-            <a-button size="small" @click="sendOrReceive('in')" :disabled="activeKey!=='SurplusMaterials'">杂发</a-button>
-            <a-button size="small" @click="sendOrReceive('out')" :disabled="activeKey!=='SurplusMaterials'">杂收</a-button>
+            <a-button size="small" @click="productWarehous" :disabled="activeKey!=='finishProduct'||defaultMethod=='add'">成品入库</a-button>
+            <a-button size="small" @click="materiaWarehous" :disabled="activeKey!=='material'||defaultMethod=='add'">材料入库</a-button>
+            <a-button size="small" @click="KSWarehousing" :disabled="activeKey!=='finishProduct'||defaultMethod=='add'">框/扇入库</a-button>
+            <a-button size="small" @click="KSOutbound" :disabled="activeKey!=='finishProduct'||defaultMethod=='add'">框/扇出库</a-button>
+            <a-button size="small" @click="sendOrReceive('in')" :disabled="activeKey!=='SurplusMaterials'||defaultMethod=='add'">杂发</a-button>
+            <a-button size="small" @click="sendOrReceive('out')" :disabled="activeKey!=='SurplusMaterials'||defaultMethod=='add'">杂收</a-button>
             <!-- <a-dropdown>
                 <a-button size="small"> 委外 <a-icon type="down" /> </a-button>
                 <a-menu slot="overlay" >