From 1378fc4cd7abc24ed3a982e09437c2c8a74e9f2f Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期二, 27 一月 2026 19:06:32 +0800
Subject: [PATCH] 代码优化

---
 项目代码/WIDESEA_WMSClient/src/views/inbound/allocateinboundOrder.vue |   86 +++++++++++++++++++++++++------------------
 1 files changed, 50 insertions(+), 36 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/allocateinboundOrder.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/allocateinboundOrder.vue"
index 8fbef36..f00556e 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/allocateinboundOrder.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/inbound/allocateinboundOrder.vue"
@@ -1,50 +1,37 @@
 
 <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>
-
+  <!-- 2. 缁勭洏寮圭獥锛氱‘淇漰rops鍜屼簨浠剁粦瀹氭纭� -->
+  <PalletDialog v-model:visible="palletVisible" :docNo="currentPalletDocNo" @back-success="handlePalletBackSuccess">
+  </PalletDialog>
 </template>
-    <script>
+<script>
 import extend from "@/extension/inbound/allocateinboundOrder.js";
-import ViewGrid from '@/components/basic/ViewGrid/ViewGrid.vue'; 
+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: {
+  components: {
     // 鍏抽敭淇2锛氱粍浠舵敞鍐屽悕涓庢ā鏉挎爣绛惧悕閫傞厤锛坘ebab-case瀵瑰簲view-grid锛�
     viewGrid: ViewGrid,  // 娉ㄥ唽涓簁ebab-case锛屾ā鏉跨敤<view-grid>
     PalletDialog      // 娉ㄥ唽缁勭洏寮圭獥
- 
+
   },
   setup() {
     const table = ref({
       key: "id",
       footer: "Foots",
-      cnName: "璋冩嫧鍗�(鏅轰粨璋冨閮ㄤ粨搴�)",
-      name: "inboundOrder",
-      url: "/InboundOrder/",
+      cnName: "璋冩嫧鍗�(澶栭儴浠撹皟鍏ユ櫤浠�)",
+      name: "AllocateOrder",
+      url: "/AllocateOrder/",
       sortName: "id",
     });
     const editFormFields = ref({
       orderType: "",
-      inboundOrderNo: "",
+      orderNo: "",
       upperOrderNo: "",
       remark: "",
     });
@@ -59,7 +46,7 @@
           data: [],
         },
         {
-          field: "inboundOrderNo",
+          field: "orderNo",
           title: "鍗曟嵁缂栧彿",
           type: "string",
         },
@@ -76,7 +63,7 @@
       ],
     ]);
     const searchFormFields = ref({
-      inboundOrderNo: "",
+      orderNo: "",
       upperOrderNo: "",
       orderType: "115",
       orderStatus: "",
@@ -86,8 +73,7 @@
     });
     const searchFormOptions = ref([
       [
-        { title: "鍗曟嵁缂栧彿", field: "inboundOrderNo", type: "like" },
-        { title: "涓婃父鍗曟嵁缂栧彿", field: "upperOrderNo", type: "like" },
+        { title: "璇锋壂鎻忓崟鎹垨鏉$爜", field: "orderNo", type: "like" },
         {
           title: "鍗曟嵁绫诲瀷",
           field: "orderType",
@@ -127,7 +113,7 @@
         align: "left",
       },
       {
-        field: "inboundOrderNo",
+        field: "orderNo",
         title: "鍗曟嵁缂栧彿",
         type: "string",
         width: 120,
@@ -156,6 +142,7 @@
         width: 150,
         align: "left",
         bind: { key: "businessType", data: [] },
+        hidden: true,
       },
       {
         field: "orderStatus",
@@ -174,11 +161,30 @@
         bind: { key: "createType", data: [] },
       },
       {
+        field: "fromWarehouse",
+        title: "璋冨嚭浠撳簱",
+        type: "string",
+        width: 120,
+        align: "left",
+      },
+      {
+        field: "toWarehouse",
+        title: "璋冨叆浠撳簱",
+        type: "string",
+        width: 120,
+        align: "left",
+      },
+      {
         field: "factoryArea",
         title: "鍘傚尯",
         type: "string",
         width: 120,
         align: "left"
+      },{
+        field: "returnToMESStatus",
+        title: "鍥炰紶MES鐘舵��",
+        width: 120,
+        bind: { key: "createType", data: [{ key: 0, value: "鏈洖浼�" }, { key: 1, value: "宸插洖浼犳垚鍔�" }, { key: 2, value: "鍥炰紶澶辫触" },{ key: 3, value: "閮ㄥ垎鍥炰紶鎴愬姛" },{ key: 4, value: "閮ㄥ垎鍥炰紶澶辫触" },{ key: 5, value: "鏃犻渶鍥炰紶" }] },
       },
       {
         field: "creater",
@@ -248,12 +254,12 @@
           required: true,
         },
         {
-          field: "materielCode",
+          field: "materielName",
           title: "鐗╂枡鍚嶇О",
           type: "string",
           width: 100,
           align: "left",
-          bind: { key: "MaterielNames", data: [] },
+          bind: { key: "materielInfo", data: [] },
         },
         {
           field: "batchNo",
@@ -288,6 +294,14 @@
           width: 90,
           align: "left",
           edit: { type: "" },
+          required: true,
+        },
+        {
+          field: "outBoxbarcodes",
+          title: "澶栫鏉$爜",
+          type: "decimal",
+          width: 90,
+          align: "left",
           required: true,
         },
         {
@@ -360,7 +374,7 @@
       sortName: "id",
       key: "id",
     });
-     // 6. 缁勭洏寮圭獥鑱斿姩锛堟墍鏈夊彉閲忓繀椤昏繑鍥烇級
+    // 6. 缁勭洏寮圭獥鑱斿姩锛堟墍鏈夊彉閲忓繀椤昏繑鍥烇級
     const palletVisible = ref(false);
     const currentPalletDocNo = ref("");
 
@@ -384,7 +398,7 @@
       searchFormOptions,
       columns,
       detail,
-       // 缁勭洏寮圭獥鐩稿叧
+      // 缁勭洏寮圭獥鐩稿叧
       PalletDialog,    // 寮圭獥缁勪欢锛堟棤闇�杩斿洖锛屾敞鍐屽嵆鍙紝浣嗗彉閲忛渶杩斿洖锛�
       palletVisible,
       currentPalletDocNo,

--
Gitblit v1.9.3