gjy 4 роки тому
батько
коміт
a7b903aafd

+ 6 - 0
src/lang/zh.js

@@ -491,6 +491,9 @@
     //仓库管理、
     warehouseManagementList:'仓库管理',
     warehouseManagementAdd:'仓库管理添加',
+    warehouseManagementEdit:'仓库管理编辑',
+    warehouseManagementPut:'入库',
+    warehouseManagementDelivery:'出库',
     // 采购模块
     procurement: '采购管理',
     sparepart: '备件采购',
@@ -4673,6 +4676,9 @@
   warehouseManagement:{
     warehouseManagementList:'仓库管理',
     warehouseManagementAdd:'仓库管理添加',
+    warehouseManagementEdit:'仓库管理编辑',
+    warehouseManagementPut:'入库',
+    warehouseManagementDelivery:'出库',
   },
   // 年度培训
   annualTraining: {

+ 45 - 0
src/views/warehouse/component/router/index.js

@@ -43,6 +43,51 @@ const warehouseManagementRouter = {
       },
       hidden: true
     },
+    {
+      path: 'warehouseManagementEdit',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementEdit'),
+      name: 'warehouseManagementEdit',
+      meta: {
+        title: 'warehouseManagementEdit',
+        shortcutEntrance: 'warehouseManagementEdit',
+        module: 'warehouse.warehouseManagementEdit',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
+    {
+      path: 'warehouseManagementPut',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementPut'),
+      name: 'warehouseManagementPut',
+      meta: {
+        title: 'warehouseManagementPut',
+        shortcutEntrance: 'warehouseManagementPut',
+        module: 'warehouse.warehouseManagementPut',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
+    {
+      path: 'warehouseManagementDelivery',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouseManagementDelivery'),
+      name: 'warehouseManagementDelivery',
+      meta: {
+        title: 'warehouseManagementDelivery',
+        shortcutEntrance: 'warehouseManagementDelivery',
+        module: 'warehouse.warehouseManagementDelivery',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden: true
+    },
   ],
 };
 export default warehouseManagementRouter;

+ 25 - 1
src/views/warehouse/warehouseManagementList.vue

@@ -35,6 +35,22 @@
           "
           >删除</ws-button
         >
+        <ws-button
+          type="primary"
+          @click="handlePut()"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+          >入库</ws-button
+        >
+        <ws-button
+          type="primary"
+          @click="handleDelivery()"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+          >出库</ws-button
+        >
       </template>
       <template slot="right">
         <ws-input
@@ -287,8 +303,16 @@ export default {
     handleAdd() {
       this.$router.push({ path: 'warehouseManagementAdd' })
     },
-    handleEdit() {},
+    handleEdit() {
+      this.$router.push({ path: 'warehouseManagementEdit' })
+    },
     handleDelete() {},
+    handlePut(){
+      this.$router.push({ path: 'warehouseManagementPut' })
+    },
+   handleDelivery(){
+      this.$router.push({ path: 'warehouseManagementDelivery' })
+   },
     dateFormat(fmt, date) {
       let ret
       const opt = {