whj 1 year ago
parent
commit
97291dd47a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/purchase/purchase-order-page/PurchaseOrderPage.vue

+ 5 - 2
src/views/purchase/purchase-order-page/PurchaseOrderPage.vue

@@ -20,7 +20,8 @@
       </div>
 
       <div class="table-operator" style="margin-bottom: 8px;">
-        <a-button v-if="$auth('purchase-purchase-orders-add')" type="primary" icon="plus" @click="$refs.baseForm.base()">新增</a-button>
+        <a-button v-if="$auth('purchase-purchase-orders-add')" type="primary" icon="plus" @click="$refs.baseForm.base()">新增计划</a-button>
+        <a-button v-if="$auth('purchase-purchase-orders-add')" style="margin-left: 8px" type="primary" icon="plus" @click="$refs.addSpareForm.base()">新增物料</a-button>
         <!-- <a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('purchase-purchase-orders-del')">
           <a-menu slot="overlay">
             <a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
@@ -64,6 +65,7 @@
     </div>
     <BaseForm ref="baseForm" @ok="handleOk"/>
     <Detail ref="detail" @ok="handleOk"/>
+    <AddSpareForm ref="addSpareForm" />
   </a-card>
 </template>
 
@@ -72,13 +74,14 @@ import { STable, Ellipsis } from '@/components'
 import { getPurchaseOrderPage2, deletePurchaseOrder2, getPurchaseOrderInfo, pushPurchaseOrder } from '@/api/purchase/purchase-order'
 import BaseForm from './modules/BaseForm.vue'
 import Detail from './modules/Detail.vue'
-
+import AddSpareForm from '@/views/store/sparestore/modules/AddSpareForm'
 export default {
   name: 'PurchaseOrderList',
   components: {
     STable,
     Ellipsis,
     BaseForm,
+    AddSpareForm,
     Detail
   },
   data () {