From 96f8df6017cc5ee1b7490dad4c78ae313092dda7 Mon Sep 17 00:00:00 2001
From: FOAM <491460741@qq.com>
Date: Tue, 30 Sep 2025 12:06:58 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 src/views/base-data/bomAccount/index.vue   |  10 +-
 src/views/base-data/item/index.vue         |   2 +-
 src/views/base-data/point/index.vue        |   2 +-
 src/views/base-data/point/print_kw_zy.vue  |  28 ++---
 src/views/business-inv/inventory/invXt.vue |  32 ++---
 src/views/business-inv/inventory/invZz.vue | 140 +++++++--------------
 6 files changed, 82 insertions(+), 132 deletions(-)
diff --git a/src/views/base-data/bomAccount/index.vue b/src/views/base-data/bomAccount/index.vue
index c4978b6..5cd40db 100644
--- a/src/views/base-data/bomAccount/index.vue
+++ b/src/views/base-data/bomAccount/index.vue
@@ -116,15 +116,19 @@
             
           
           -->
+          
+            
+          
           
             
           
+          
+            
+          
           
             
           
-          
-            
-          
+
           
             
           
diff --git a/src/views/base-data/item/index.vue b/src/views/base-data/item/index.vue
index 002753f..c94ecd8 100644
--- a/src/views/base-data/item/index.vue
+++ b/src/views/base-data/item/index.vue
@@ -204,7 +204,7 @@ export default {
       title: '物料', url: 'api/item', idField: 'id', sort: 'id,desc', crudMethod: { ...crudItem }, optShow: {
         add: true,
         edit: false,
-        del: false,
+        del: true,
         reset: true,
         download: true
       }
diff --git a/src/views/base-data/point/index.vue b/src/views/base-data/point/index.vue
index 1319dc2..4fec6e7 100644
--- a/src/views/base-data/point/index.vue
+++ b/src/views/base-data/point/index.vue
@@ -238,7 +238,7 @@ export default {
       optShow: {
         add: true,
         edit: false,
-        del: false,
+        del: true,
         reset: true,
         download: true
       },
diff --git a/src/views/base-data/point/print_kw_zy.vue b/src/views/base-data/point/print_kw_zy.vue
index 0060227..ace503a 100644
--- a/src/views/base-data/point/print_kw_zy.vue
+++ b/src/views/base-data/point/print_kw_zy.vue
@@ -56,7 +56,7 @@ export default {
       kwfenzuAll: [],
       kwfenzu: [],
       qrOptions: {
-        width: 60,          // 二维码宽度
+        width: 100,          // 二维码宽度
         margin: 0,          // 边距
         errorCorrectionLevel: 'H' // 容错级别(高)
       },
@@ -94,8 +94,8 @@ export default {
         this.kkkk2=res;
 
         this.kwfenzu=[]
-        for (let i = 0; i < this.kkkk2.length; i += 14) {
-          this.kwfenzu.push(this.kkkk2.slice(i, i + 14));
+        for (let i = 0; i < this.kkkk2.length; i += 4) {
+          this.kwfenzu.push(this.kkkk2.slice(i, i + 4));
         }
         console.log(kwfenzu)
       });
@@ -147,21 +147,21 @@ body {
 }
 
 .td-item-value{
-  font-size: 22pt;
+  font-size: 46pt;
   font-weight: bold;
   text-align: center;
   border: #000000 2px solid;
 }
 
 .td-item-value2{
-  font-size: 13pt;
+  font-size: 30pt;
   font-weight: bold;
   text-align: center;
   border: #000000 2px solid;
 }
 
 .td-item-value3{
-  font-size: 9pt;
+  font-size: 12pt;
   font-weight: bold;
   text-align: center;
   border: #000000 2px solid;
@@ -169,8 +169,8 @@ body {
 
 .qr-code {
   padding: 1mm;
-  width: 22mm;   /* 控制显示大小 */
-  height: 22mm;
+  width: 35mm;   /* 控制显示大小 */
+  height: 35mm;
   image-rendering: crisp-edges; /* 保持清晰度 */
   display: block;
   margin: 0 auto;
@@ -179,22 +179,22 @@ body {
 .label-table {
   background: #00a0e9;
 
-  width: 100mm;
-  height: 40mm;
+  width: 190mm;
+  height: 60mm;
   background: #ffffff;
   border-collapse: collapse;
-  font-size: 13px;
+  font-size: 16px;
   table-layout: fixed;
 }
 
 .grid-container {
   display: grid;
-  grid-template-columns: repeat(2, 1fr); /* 4列 */
-  grid-template-rows: repeat(7, 1fr);   /* 7行 */
+  grid-template-columns: repeat(1, 1fr); /* 4列 */
+  grid-template-rows: repeat(4, 1fr);   /* 7行 */
   width: 100%;
   height: 100%;
   background: #ffffff;
-  gap: 1mm 1mm; /* 标签之间的间隙 */
+  gap: 3mm 3mm; /* 标签之间的间隙 */
 }
 
 
diff --git a/src/views/business-inv/inventory/invXt.vue b/src/views/business-inv/inventory/invXt.vue
index 0e1585f..f74cb37 100644
--- a/src/views/business-inv/inventory/invXt.vue
+++ b/src/views/business-inv/inventory/invXt.vue
@@ -88,33 +88,33 @@
         width="30%"
         :close-on-click-modal="false"
       >
-        
           
-            
           
           
-            
           
           
-            
           
           
-            
           
           
-            
               
           
           
-            
           
         
         
       
       
@@ -200,7 +200,7 @@
         
         
         
-       
+        
       
       
       
@@ -317,12 +317,11 @@ export default {
         rmNumber: { required: true, message: '移位数量必填', trigger: 'blur' },
       },
       ywTF: false,
-      inventoryButton: {
-        inventoryYW: {
+      ywFrom: {
           inventory: { itemKey: { item: {} }, point: {} },
           dstPoint: {},
+          id: null,
           rmNumber: 0
-        }
       },
       pointOptions: [],
       xdMoveFromFlag: false,
@@ -371,7 +370,8 @@ export default {
       this.crud.toQuery()
     },
     ywFTM(data){
-     this.inventoryButton.inventoryYW.inventory = data;
+     this.ywFrom.inventory = data;
+     this.ywFrom.id=data.id;
      this.ywTF=true;
     },
     planPickSaveM(data){
@@ -380,8 +380,8 @@ export default {
           knywInventory(data).then(res=>{
             this.ywTF = false;
             this.$message.success(res)
-            this.inventoryButton.inventoryYW.rmNumber=0;
-            this.inventoryButton.inventoryYW.dstPoint= { };
+            this.ywFrom.rmNumber=0;
+            this.ywFrom.dstPoint= { };
             this.crud.toQuery()
           })
         } else {
diff --git a/src/views/business-inv/inventory/invZz.vue b/src/views/business-inv/inventory/invZz.vue
index 251ea3d..dab7855 100644
--- a/src/views/business-inv/inventory/invZz.vue
+++ b/src/views/business-inv/inventory/invZz.vue
@@ -2,26 +2,15 @@
   
     
     
-      
-      
-        
-      
       
       
-      
       
-      
 
@@ -49,18 +38,10 @@
           value-format="yyyy-MM-dd HH:mm:ss"
           placeholder="选择日期"
       >
-
-      
-        
-          {{ item.code }}
-          {{ item.name }}
-        
-      
+      
+      
       
       
       
@@ -85,53 +66,43 @@
           width="30%"
           :close-on-click-modal="false"
       >
-        
           
-            
           
           
-            
           
           
-            
           
           
-            
           
-          
-            
-              
-              
-            
+          
+            
           
           
-            
           
         
         
       
       
@@ -140,10 +111,10 @@
       >
         
           
-            
+            
           
           
-            
+            
           
           
             
@@ -174,9 +145,6 @@
           
             
           
-          
           
             
           
@@ -203,21 +171,21 @@
       >
         
         
-        
-        
-        
-        
-        
+        
+        
+        
+        
+        
         
-        
-        
-        
+        
+        
           
-            {{ scope.row.point.invMin }}
-            {{ scope.row.point.invMin }}
+            {{ scope.row.kcyj_qty }}
+            {{ scope.row.kcyj_qty }}
           
         
+
+
         
@@ -264,6 +232,8 @@ import {download} from "@/api/data";
 import {downloadFile} from "@/utils";
 import BomAccountPointSelect from "@/views/generic-component/BomAccountPointSelect.vue";
 import {zzjl} from "@/api/pickDetail";
+import AreaSelect from "@/views/generic-component/AreaSelect.vue";
+import PointSelect from "@/views/generic-component/PointSelect.vue";
 const defaultForm = {
   id: null,
   billCode: null,
@@ -291,7 +261,7 @@ const defaultForm = {
 }
 export default {
   name: 'InvZz',
-  components: {BomAccountPointSelect, pagination, crudOperation, rrOperation, udOperation },
+  components: {PointSelect, AreaSelect, BomAccountPointSelect, pagination, crudOperation, rrOperation, udOperation },
   mixins: [presenter(), header(), form(defaultForm), crud()],
   cruds() {
     return CRUD({
@@ -300,9 +270,9 @@ export default {
         bexb:true,
         pointType:'ZZKW'
       },
-      areaOptions: [],
       title: '库存信息',
-      url: 'api/inventory',
+      url: 'api/inventory/queryInventoryZz',
+      downurl: 'api/inventory',
       idField: 'id',
       sort: 'id,desc',
       crudMethod: { ...crudInventory },
@@ -335,43 +305,25 @@ export default {
         rmNumber: { required: true, message: '移位数量必填', trigger: 'blur' },
       },
       ywTF: false,
-      inventoryButton: {
-        inventoryYW: {
-          inventory: { itemKey: { item: {} }, point: {} },
+      ywFrom: {
+          //inventory: {id},
           dstPoint: {},
-          rmNumber: 0
-        }
+          rmNumber: 0,
+          id:null,item_code:null,item_name:null,point_code:null,quantity:null
+
       },
-      pointOptions: [],
       cxjlFromFlag: false,
       cxjlFrom: { bom_account_id: null,order_qty:0, item_code:null, item_name:null, zzkw_id:null, zzkw_code:null, gw_code:null, gw_name:null, status:null, remark:null,srs:0  }
 
     }
   },
   mounted() {
-    this.getAreaOptionsAll()
-    this.infoData()
   },
   methods: {
     // 钩子:在获取表格数据之前执行,false 则代表不获取数据
     [CRUD.HOOK.beforeRefresh]() {
       return true
     },
-    infoData(){
-      queryPointList({}).then(res=>{
-        this.pointOptions = res;
-      })
-    },
-    getItem() {
-      getItems({}).then(res => {
-        this.items = res.content.map(function(obj) {
-          if (obj.hasChildren) {
-            obj.children = null
-          }
-          return obj
-        })
-      })
-    },
     deleteDataM(id) {//删除数据的方法
       let ids = []
       ids.push(id)
@@ -390,7 +342,7 @@ export default {
       this.crud.toQuery()
     },
     ywFTM(data){
-      this.inventoryButton.inventoryYW.inventory = data;
+       this.ywFrom = data;
       this.ywTF=true;
     },
     planPickSaveM(data){
@@ -399,8 +351,8 @@ export default {
           knywInventory(data).then(res=>{
             this.ywTF = false;
             this.$message.success(res)
-            this.inventoryButton.inventoryYW.rmNumber=0;
-            this.inventoryButton.inventoryYW.dstPoint= { };
+            this.ywFrom.rmNumber=0;
+            this.ywFrom.dstPoint= { };
             this.crud.toQuery()
           })
         } else {
@@ -410,21 +362,15 @@ export default {
       })
     },
     downXbBtn(){
-      console.log(123)
+      console.log(this.crud.downurl)
       this.crud.downloadLoading = true
-      download(this.crud.url + '/downloadXb', this.crud.getQueryParams()).then(result => {
+      download('api/inventory/downloadZz', this.crud.getQueryParams()).then(result => {
         downloadFile(result, this.crud.title + '数据', 'xlsx')
         this.crud.downloadLoading = false
       }).catch(() => {
         this.crud.downloadLoading = false
       })
     },
-    //获取库区数据
-    getAreaOptionsAll() {
-      queryAreaList({bexb:true,enabled:true}).then(res => {
-        this.areaOptions = res
-      })
-    },
     getChangeVule(dben) {
       this.cxjlFrom.order_qty=dben.srs;
       this.cxjlFrom.item_code=dben.item_code;