From d40b63ad393e8af2a6f50ac055f582727dba6f28 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期日, 09 二月 2025 10:18:43 +0800
Subject: [PATCH] 组盘页面优化

---
 Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue          |   33 ++++++++++++----
 Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxingInfo.vue      |   77 ++++++++++++++++++++++++++++++++++++++
 Code Management/WMS/WIDESEA_WMSClient/src/router/tables.js                              |    2 
 Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/Dt_BillGroupStock.vue |    1 
 4 files changed, 103 insertions(+), 10 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/router/tables.js b/Code Management/WMS/WIDESEA_WMSClient/src/router/tables.js
index 03e27d3..6ae8d29 100644
--- a/Code Management/WMS/WIDESEA_WMSClient/src/router/tables.js
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/router/tables.js
@@ -214,7 +214,7 @@
   {
     path: '/DtBoxing',
     name: 'DtBoxing',
-    component: () => import('@/views/widesea_wms/stock/DtBoxing.vue'),
+    component: () => import('@/views/widesea_wms/stock/DtBoxingInfo.vue'),
     meta: {
       keepAlive: false
     }
diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue
index e1e9cf8..b4c1850 100644
--- a/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxing.vue
@@ -28,6 +28,7 @@
                 { field: 'createDate', title: '鍒涘缓鏃堕棿', type: 'int', sort: true, width: 100, hidden: true, align: 'left' },
             ],
             detailColumns: [
+                { title: "鐢佃姱搴忓垪鍙�", field: "serialNumber", type: "text" },
                 { title: "鐗╂枡缂栧彿", field: "materielCode", type: "text" },
                 { title: "鐗╂枡鍚嶇О", field: "materielName", type: "text" },
                 { title: "搴撳瓨鐘舵��", field: "status", type: "text" },
@@ -60,17 +61,31 @@
             }
         };
     },
+
     methods: {
         onInit() {
-            // this.dropdownItems.unshift({
-            //     name: '鎸夐挳', //鎸夐挳鍚嶇О
-            //     icon: 'el-icon-document', //鎸夐挳鍥炬爣vue2鐗堟湰瑙乮view鏂囨。icon锛寁ue3鐗堟湰瑙乪lement ui鏂囨。icon(娉ㄦ剰涓嶆槸element puls鏂囨。)
-            //     type: 'primary', //鎸夐挳鏍峰紡vue2鐗堟湰瑙乮view鏂囨。button锛寁ue3鐗堟湰瑙乪lement ui鏂囨。button
-            //     value: '321', //鎸夐挳鍊�
-            //     onClick: function () {
-            //         this.$Message.success('鐐瑰嚮浜嗘寜閽�');
-            //     }
-            // });
+            this.dropdownItems.unshift({
+                name: '鍒犻櫎', //鎸夐挳鍚嶇О
+                icon: 'el-icon-document', //鎸夐挳鍥炬爣vue2鐗堟湰瑙乮view鏂囨。icon锛寁ue3鐗堟湰瑙乪lement ui鏂囨。icon(娉ㄦ剰涓嶆槸element puls鏂囨。)
+                type: 'primary', //鎸夐挳鏍峰紡vue2鐗堟湰瑙乮view鏂囨。button锛寁ue3鐗堟湰瑙乪lement ui鏂囨。button
+                value: '321', //鎸夐挳鍊�
+                onClick: function () {
+                    let rows = this.table.columns;
+                    if (rows.length == 0) return this.$error("璇烽�夋嫨鏁版嵁!");
+                    if (rows.length > 1) return this.$error("鍙兘閫夋嫨涓�鏉℃暟鎹�!");
+                    this.http
+                        .post("api/DtBoxing/Delete?locationID=" + rows[0].palletCode, "", "鏁版嵁澶勭悊涓�...")
+                        .then((x) => {
+                            if (x.status) {
+                                this.$Message.success('鎴愬姛.');
+                                this.refresh();
+                            } else {
+                                return this.$error(x.message);
+                            }
+                        });
+                }
+            });
+
         },
     },
     created() {
diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxingInfo.vue b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxingInfo.vue
new file mode 100644
index 0000000..ab853a1
--- /dev/null
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/DtBoxingInfo.vue
@@ -0,0 +1,77 @@
+<!--
+*Author锛歫xx
+ *Contact锛�283591387@qq.com
+ *浠g爜鐢辨鏋剁敓鎴�,浠讳綍鏇存敼閮藉彲鑳藉鑷磋浠g爜鐢熸垚鍣ㄨ鐩�
+ *涓氬姟璇峰湪@/extension/widesea_wms/invoices/Dt_InboundOrder.js姝ゅ缂栧啓
+ -->
+<template>
+    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
+        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
+        :table="table" :extend="extend">
+    </view-grid>
+</template>
+<script>
+import extend from "@/extension/widesea_wms/stock/DtBoxingInfo.js";
+import { ref, defineComponent } from "vue";
+export default defineComponent({
+    setup() {
+        const table = ref({
+            key: 'id',
+            footer: "Foots",
+            cnName: '缁勭洏淇℃伅',
+            name: 'stock/DtBoxingInfo',
+            url: "/BoxingInfo/",
+            sortName: "id"
+        });
+        const editFormFields = ref({
+
+        });
+        const editFormOptions = ref([
+
+        ]);
+        const searchFormFields = ref({});
+        const searchFormOptions = ref([
+            [
+                { "title": "鎵樼洏鏉$爜", "field": "palletCode", type: "text" },
+                { "title": "鐗╂枡缂栧彿", "field": "materielCode", type: "text" },
+                { "title": "搴撳瓨鐘舵��", "field": "status", type: "select", dataKey: "StockState", data: [] },
+                { "title": "缁勭洏绫诲瀷", "field": "groupType", type: "select", dataKey: "GroupType", data: [] },
+            ]
+        ]);
+        const columns = ref([
+            { field: 'id', title: '搴撳瓨ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' },
+            { field: 'palletCode', title: '鎵樼洏鏉$爜', type: 'string', width: 110, align: 'left', sort: true, link: true, },
+            { field: 'locationCode', title: '搴撲綅', type: 'string', width: 110, align: 'left' },
+            { field: 'isFull', title: '鏄惁婊$洏', type: 'bool', width: 110, align: 'left' },
+            // { field: 'state', title: '搴撳瓨鐘舵��', type: 'int', width: 110, align: 'left', bind: { key: "StockState", data: [] } },
+            { field: 'remark', title: '澶囨敞', type: 'string', width: 120, align: 'left' },
+            { field: 'createDate', title: '鍒涘缓鏃堕棿', type: 'int', sort: true, width: 100, align: 'left' },
+        ]);
+
+        const detail = ref({
+            cnName: "缁勭洏鏄庣粏淇℃伅",
+            table: "DtBoxingInfoDetail",
+            columns: [
+                { title: "鐢佃姱搴忓垪鍙�", field: "serialNumber", type: "text" },
+                { title: "鐗╂枡缂栧彿", field: "materielCode", type: "text" },
+                { title: "鐗╂枡鍚嶇О", field: "materielName", type: "text" },
+                { title: "搴撳瓨鐘舵��", field: "status", type: "text" },
+                { title: "缁勭洏鏁伴噺", field: "stockQuantity", type: "text" },
+                { title: "鍒涘缓鏃堕棿", field: "createDate", type: "text" },
+            ],
+            sortName: "id",
+            key: "BoxingInfoId"
+        });
+        return {
+            table,
+            extend,
+            editFormFields,
+            editFormOptions,
+            searchFormFields,
+            searchFormOptions,
+            columns,
+            detail,
+        };
+    },
+});
+</script>
diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/Dt_BillGroupStock.vue b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/Dt_BillGroupStock.vue
index 8344262..aceb062 100644
--- a/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/Dt_BillGroupStock.vue
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/views/widesea_wms/stock/Dt_BillGroupStock.vue
@@ -47,6 +47,7 @@
                 { "title": "搴撳瓨绫诲瀷", "field": "isFull", type: "select", dataKey: "isFull", data: [] },
             ],[
                 { "title": "搴撲綅鍙�", "field": "locationCode", type: "text" },
+                { "title": "宸烽亾", "field": "roadwayNo", type: "text" },
             ]
         ]);
         const columns = ref(

--
Gitblit v1.9.3