Преглед изворни кода

出库管理和库存管理表格新增仓库名称列并优化仓库选择逻辑

yusheng пре 9 месеци
родитељ
комит
768d8fb8f9

+ 8 - 0
src/views/warehouseManagement/outgoingManagement/index.vue

@@ -362,6 +362,14 @@
             slot: 'bizNo',
             showOverflowTooltip: true,
             width: 160
+          },
+           {
+            prop: 'warehouseName',
+            label: '仓库名称',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 100,
+        
           },
           {
             prop: 'bizType',

+ 11 - 4
src/views/warehouseManagement/stockManagement/index.vue

@@ -301,7 +301,7 @@
         sceneState,
         codeList: [],
         factoryList: [],
-        warehouseList:[],
+        warehouseList: [],
         tableData: [],
         formData: {
           deptIds: '',
@@ -347,6 +347,14 @@
             showOverflowTooltip: true,
             width: 150
           },
+          {
+            prop: 'warehouseName',
+            label: '仓库名称',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 100,
+        
+          },
           {
             prop: 'bizType',
             slot: 'bizType',
@@ -462,11 +470,11 @@
     mounted() {
       this.getTypeList();
       this.getFactoryList();
-      this.getTreeData()
+      this.getTreeData();
     },
     methods: {
       async getTreeData() {
-         this.formData.warehouseId=''
+        this.formData.warehouseId = '';
         try {
           let res = await storageApi.getWarehouseTrees({
             factoryId: this.formData.factoryId
@@ -486,7 +494,6 @@
           type: 1
         });
         this.factoryList = res.list;
-       
       },
       // 单击获取id
       cellClick(row) {