소스 검색

no message

linwenxin 9 달 전
부모
커밋
217dc21253

+ 8 - 0
src/api/inventoryManagement.js

@@ -153,3 +153,11 @@ export function workerStockAccListPExport(data, name) {
     name
   })
 }
+
+export function websitStockMakeNewImportP(data) {
+  return handleImport('/websit/stock/make/new/importP', data.formdata, data.id || '')
+}
+
+export function websitStockMakeOldImportP(data) {
+  return handleImport('/websit/stock/make/old/importP', data.formdata, data.id || '')
+}

+ 26 - 26
src/views/auxiliaryFittings/inventoryManagement/auxiliaryInventory/index.vue

@@ -46,32 +46,32 @@ export default {
     optionsEvensGroup() {
       return [
         [
-          [
-            this.optionsEvensAuth('template', {
-              click: () => {
-                commonTemplateDownload({ name: '辅材网点库存.xlsx' }, `${this.$route.meta.title}`)
-                  .then(res => {
-                    this.$message({
-                      message: '下载成功',
-                      type: 'success'
-                    })
-                  })
-                  .catch(err => {
-                    this.$message.error('下载失败')
-                  })
-              }
-            })
-          ],
-          [
-            this.optionsEvensAuth('imp', ({ moduleName }) => {
-              return {
-                name: moduleName,
-                render: () => {
-                  return this.importButton(websitStockImportM, moduleName)
-                }
-              }
-            })
-          ],
+          // [
+          //   this.optionsEvensAuth('template', {
+          //     click: () => {
+          //       commonTemplateDownload({ name: '辅材网点库存.xlsx' }, `${this.$route.meta.title}`)
+          //         .then(res => {
+          //           this.$message({
+          //             message: '下载成功',
+          //             type: 'success'
+          //           })
+          //         })
+          //         .catch(err => {
+          //           this.$message.error('下载失败')
+          //         })
+          //     }
+          //   })
+          // ],
+          // [
+          //   this.optionsEvensAuth('imp', ({ moduleName }) => {
+          //     return {
+          //       name: moduleName,
+          //       render: () => {
+          //         return this.importButton(websitStockImportM, moduleName)
+          //       }
+          //     }
+          //   })
+          // ],
           [
             this.optionsEvensAuth('stockAuxiliaryMaterialsXz', {
               click: () => {

+ 79 - 13
src/views/auxiliaryFittings/inventoryManagement/partsInventory/index.vue

@@ -1,14 +1,27 @@
 <template>
-  <template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents"
-    :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
-    :exportList="exportList">
+  <template-page
+    ref="pageRef"
+    :get-list="getList"
+    :table-attributes="tableAttributes"
+    :table-events="tableEvents"
+    :options-evens-group="optionsEvensGroup"
+    :moreParameters="moreParameters"
+    :column-parsing="columnParsing"
+    :exportList="exportList"
+  >
   </template-page>
 </template>
 
 <script>
 import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
-import { websitStockListP, websitStockListPExport, websitStockImportP, } from "@/api/inventoryManagement";
+import {
+  websitStockListP,
+  websitStockListPExport,
+  websitStockImportP,
+  websitStockMakeNewImportP,
+  websitStockMakeOldImportP
+} from '@/api/inventoryManagement'
 import { commonTemplateDownload } from '@/api/common.js'
 import operation_mixin from '@/components/template/operation_mixin.js'
 export default {
@@ -26,7 +39,7 @@ export default {
         'selection-change': this.selectionChange
       },
       // 勾选选中行
-      recordSelected: [],
+      recordSelected: []
     }
   },
   computed: {
@@ -34,10 +47,37 @@ export default {
     optionsEvensGroup() {
       return [
         [
+          // [
+          //   this.optionsEvensAuth('template', {
+          //     click: () => {
+          //       commonTemplateDownload({ name: '配件网点库存.xlsx' }, `${this.$route.meta.title}`)
+          //         .then(res => {
+          //           this.$message({
+          //             message: '下载成功',
+          //             type: 'success'
+          //           })
+          //         })
+          //         .catch(err => {
+          //           this.$message.error('下载失败')
+          //         })
+          //     }
+          //   })
+          // ],
+          // [
+          //   this.optionsEvensAuth('imp', ({ moduleName }) => {
+          //     return {
+          //       name: moduleName,
+          //       render: () => {
+          //         return this.importButton(websitStockImportP, moduleName)
+          //       }
+          //     }
+          //   })
+          // ]
+
           [
-            this.optionsEvensAuth("template", {
+            this.optionsEvensAuth('pdpjxjwdkcxz', {
               click: () => {
-                commonTemplateDownload({ name: '配件网点库存.xlsx' }, `${this.$route.meta.title}`)
+                commonTemplateDownload({ name: '配件盘点网点库存.xlsx' }, `${this.$route.meta.title}`)
                   .then(res => {
                     this.$message({
                       message: '下载成功',
@@ -48,25 +88,51 @@ export default {
                     this.$message.error('下载失败')
                   })
               }
-            }),
+            })
           ],
           [
-            this.optionsEvensAuth("imp", ({ moduleName }) => {
+            this.optionsEvensAuth('pdpjxjwdkc', ({ moduleName }) => {
               return {
                 name: moduleName,
                 render: () => {
-                  return this.importButton(websitStockImportP, moduleName)
+                  return this.importButton(websitStockMakeNewImportP, moduleName)
                 }
               }
-            }),
+            })
+          ],
+          [
+            this.optionsEvensAuth('pdpjjjwdkcxz', {
+              click: () => {
+                commonTemplateDownload({ name: '配件盘点网点库存.xlsx' }, `${this.$route.meta.title}`)
+                  .then(res => {
+                    this.$message({
+                      message: '下载成功',
+                      type: 'success'
+                    })
+                  })
+                  .catch(err => {
+                    this.$message.error('下载失败')
+                  })
+              }
+            })
           ],
+          [
+            this.optionsEvensAuth('pdpjjjwdkc', ({ moduleName }) => {
+              return {
+                name: moduleName,
+                render: () => {
+                  return this.importButton(websitStockMakeOldImportP, moduleName)
+                }
+              }
+            })
+          ]
         ]
       ]
     },
     // 更多参数
     moreParameters() {
       return []
-    },
+    }
   },
   methods: {
     // 列表请求函数
@@ -80,7 +146,7 @@ export default {
     // 监听勾选变化
     selectionChange(data) {
       this.recordSelected = data
-    },
+    }
   }
 }
 </script>