From 53719f76ffb7a71db70c8b71bb5dd975904fbc83 Mon Sep 17 00:00:00 2001
From: z8018 <1282578289@qq.com>
Date: 星期三, 17 十二月 2025 21:33:49 +0800
Subject: [PATCH] 整箱出库

---
 项目代码/WIDESEA_WMSClient/src/views/inbound/inboundOrder.vue |  112 ++++++++++++++++++++++---------------------------------
 1 files changed, 45 insertions(+), 67 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/inboundOrder.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/inboundOrder.vue"
index 9782bb1..941480c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/inboundOrder.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/inboundOrder.vue"
@@ -1,38 +1,14 @@
 
 <template>
-  <view-grid
-    ref="grid"
-    @openPalletDialog="handleOpenPalletDialog"
-    :columns="columns"
-    :detail="detail"
-    :editFormFields="editFormFields"
-    :editFormOptions="editFormOptions"
-    :searchFormFields="searchFormFields"
-    :searchFormOptions="searchFormOptions"
-    :table="table"
-    :extend="extend"
-  >
+  <view-grid ref="grid" @openPalletDialog="handleOpenPalletDialog" :columns="columns" :detail="detail"
+    :editFormFields="editFormFields" :editFormOptions="editFormOptions" :searchFormFields="searchFormFields"
+    :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
   </view-grid>
-      <!-- 2. 缁勭洏寮圭獥锛氱‘淇漰rops鍜屼簨浠剁粦瀹氭纭� -->
-    <PalletDialog
-      v-model:visible="palletVisible"  
-      :docNo="currentPalletDocNo"     
-      @back-success="handlePalletBackSuccess"  
-    ></PalletDialog>
-
 </template>
-    <script>
+<script>
 import extend from "@/extension/inbound/inboundOrder.js";
-import ViewGrid from '@/components/basic/ViewGrid/ViewGrid.vue'; 
 import { ref, defineComponent } from "vue";
-import PalletDialog from "@/extension/inbound/extend/Pallet.vue";
 export default defineComponent({
-   components: {
-    // 鍏抽敭淇2锛氱粍浠舵敞鍐屽悕涓庢ā鏉挎爣绛惧悕閫傞厤锛坘ebab-case瀵瑰簲view-grid锛�
-    viewGrid: ViewGrid,  // 娉ㄥ唽涓簁ebab-case锛屾ā鏉跨敤<view-grid>
-    PalletDialog      // 娉ㄥ唽缁勭洏寮圭獥
- 
-  },
   setup() {
     const table = ref({
       key: "id",
@@ -57,6 +33,7 @@
           type: "select",
           dataKey: "inOrderType",
           data: [],
+          hidden: true
         },
         {
           field: "inboundOrderNo",
@@ -86,14 +63,14 @@
     });
     const searchFormOptions = ref([
       [
-        { title: "鍗曟嵁缂栧彿", field: "inboundOrderNo", type: "like" },
+        { title: "鎵弿鍗曟嵁鎴栨潯鐮�", field: "inboundOrderNo", type: "like" },
         { title: "涓婃父鍗曟嵁缂栧彿", field: "upperOrderNo", type: "like" },
         {
-          title: "鍗曟嵁绫诲瀷",
-          field: "orderType",
+          title: "涓氬姟绫诲瀷",
+          field: "businessType",
           type: "select",
-          dataKey: "inOrderType",
-          data: [0],
+          dataKey: "documentTypeEmun",
+          data: [],
         },
         {
           title: "鍗曟嵁鐘舵��",
@@ -148,6 +125,7 @@
         width: 150,
         align: "left",
         bind: { key: "inOrderType", data: [] },
+        hidden: true
       },
       {
         field: "businessType",
@@ -166,12 +144,32 @@
         bind: { key: "inboundState", data: [] },
       },
       {
+        field: "orderStatistics",
+        title: "鍗曟嵁鐗╂枡缁熻",
+        type: "string",
+        width: 230,
+        align: "left",
+      },
+      {
         field: "createType",
         title: "鍒涘缓鏂瑰紡",
         type: "string",
         width: 120,
         align: "left",
         bind: { key: "createType", data: [] },
+      },
+      {
+        field: "remark",
+        title: "澶囨敞",
+        type: "string",
+        width: 180,
+        align: "left"
+      },
+      {
+        field: "returnToMESStatus",
+        title: "鍥炰紶MES鐘舵��",
+        width: 120,
+        bind: { key: "createType", data: [{ key: 0, value: "鏈洖浼�" }, { key: 1, value: "宸插洖浼犳垚鍔�" }, { key: 2, value: "鍥炰紶澶辫触" }] },
       },
       {
         field: "factoryArea",
@@ -208,13 +206,6 @@
         width: 160,
         align: "left",
       },
-      {
-        field: "remark",
-        title: "澶囨敞",
-        type: "string",
-        width: 100,
-        align: "left",
-      },
     ]);
     const detail = ref({
       cnName: "鍏ュ簱鍗曟槑缁�",
@@ -242,7 +233,7 @@
           field: "materielCode",
           title: "鐗╂枡缂栧彿",
           type: "select",
-          width: 150,
+          width: 120,
           align: "left",
           edit: { type: "" },
           required: true,
@@ -251,7 +242,7 @@
           field: "materielCode",
           title: "鐗╂枡鍚嶇О",
           type: "string",
-          width: 100,
+          width: 120,
           align: "left",
           bind: { key: "MaterielNames", data: [] },
         },
@@ -259,7 +250,7 @@
           field: "batchNo",
           title: "鎵规鍙�",
           type: "decimal",
-          width: 90,
+          width: 150,
           align: "left",
           edit: { type: "" },
           required: true,
@@ -268,7 +259,7 @@
           field: "supplyCode",
           title: "渚涘簲鍟嗙紪鍙�",
           type: "decimal",
-          width: 90,
+          width: 100,
           align: "left",
           edit: { type: "" },
           required: true,
@@ -285,7 +276,7 @@
           field: "barcode",
           title: "鏉$爜",
           type: "decimal",
-          width: 90,
+          width: 180,
           align: "left",
           edit: { type: "" },
           required: true,
@@ -303,21 +294,21 @@
           field: "receiptQuantity",
           title: "缁勭洏鏁伴噺",
           type: "int",
-          width: 120,
+          width: 90,
           align: "left",
         },
         {
           field: "overInQuantity",
           title: "涓婃灦鏁伴噺",
           type: "string",
-          width: 200,
+          width: 90,
           align: "left",
         },
         {
           field: "orderDetailStatus",
           title: "璁㈠崟鏄庣粏鐘舵��",
           type: "string",
-          width: 180,
+          width: 100,
           align: "left",
           bind: { key: "orderDetailStatusEnum", data: [] },
         },
@@ -360,20 +351,7 @@
       sortName: "id",
       key: "id",
     });
-     // 6. 缁勭洏寮圭獥鑱斿姩锛堟墍鏈夊彉閲忓繀椤昏繑鍥烇級
-    const palletVisible = ref(false);
-    const currentPalletDocNo = ref("");
 
-    const handleOpenPalletDialog = (docNo) => {
-      console.log('涓荤粍浠舵敹鍒扮粍鐩樹簨浠讹紝鍗曟嵁鍙凤細', docNo);
-      currentPalletDocNo.value = docNo;
-      palletVisible.value = true;
-    };
-
-    const handlePalletBackSuccess = () => {
-      console.log('缁勭洏鍥炰紶鎴愬姛锛屽埛鏂拌〃鏍�');
-      grid.value?.refresh();  // 姝ゆ椂gridRef宸叉寕杞斤紝鍙皟鐢ㄦ柟娉�
-    };
 
     return {
       table,
@@ -384,12 +362,12 @@
       searchFormOptions,
       columns,
       detail,
-       // 缁勭洏寮圭獥鐩稿叧
-      PalletDialog,    // 寮圭獥缁勪欢锛堟棤闇�杩斿洖锛屾敞鍐屽嵆鍙紝浣嗗彉閲忛渶杩斿洖锛�
-      palletVisible,
-      currentPalletDocNo,
-      handleOpenPalletDialog,
-      handlePalletBackSuccess
+      //  // 缁勭洏寮圭獥鐩稿叧
+      // PalletDialog,    // 寮圭獥缁勪欢锛堟棤闇�杩斿洖锛屾敞鍐屽嵆鍙紝浣嗗彉閲忛渶杩斿洖锛�
+      // palletVisible,
+      // currentPalletDocNo,
+      // handleOpenPalletDialog,
+      // handlePalletBackSuccess
     };
   },
 });

--
Gitblit v1.9.3