From 266e4bf654c55ce2f7e9271048e4625f1b8b49f6 Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期一, 29 十二月 2025 14:36:08 +0800
Subject: [PATCH] Merge branch 'htq20251215' of http://115.159.85.185:8098/r/ZhongRui/ALDbanyunxiangmu into htq20251215

---
 项目代码/WIDESEA_WMSClient/src/views/outbound/allocateoutboundOrder.vue |  138 +++++++++++++++++++++------------------------
 1 files changed, 64 insertions(+), 74 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/allocateoutboundOrder.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/allocateoutboundOrder.vue"
index 555ac55..2a9ad08 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/allocateoutboundOrder.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/allocateoutboundOrder.vue"
@@ -1,55 +1,31 @@
 
 <template>
-  <view-grid
-    ref="grid"
-        @openOutboundDialog="handleOpenOutboundDialog"  
-    :columns="columns"
-    :detail="detail"
-    :editFormFields="editFormFields"
-    :editFormOptions="editFormOptions"
-    :searchFormFields="searchFormFields"
-    :searchFormOptions="searchFormOptions"
-    :table="table"
-    :extend="extend"
-  >
+  <view-grid ref="grid" @openOutboundDialog="handleOpenOutboundDialog" :columns="columns" :detail="detail"
+    :editFormFields="editFormFields" :editFormOptions="editFormOptions" :searchFormFields="searchFormFields"
+    :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
   </view-grid>
-      <!-- 鍑哄簱鎿嶄綔寮圭獥 -->
-    <OutboundDialog
-      v-model:visible="outboundVisible"  
-      :selected-document="selectedOutboundDocument"  
-      @outbound-success="handleOutboundSuccess"  
-    ></OutboundDialog>
 </template>
-    <script>
+<script>
 import extend from "@/extension/outbound/allocateoutboundOrder.js";
-import ViewGrid from '@/components/basic/ViewGrid/ViewGrid.vue'; 
 import { ref, defineComponent } from "vue";
-import { ElMessage } from "element-plus";
-import OutboundDialog from "@/extension/outbound/extend/OutBound.vue";  // 寮曞叆鍑哄簱寮圭獥缁勪欢
- 
 
 export default defineComponent({
-   components: {
-    // 鍏抽敭淇2锛氱粍浠舵敞鍐屽悕涓庢ā鏉挎爣绛惧悕閫傞厤锛坘ebab-case瀵瑰簲view-grid锛�
-    viewGrid: ViewGrid,  // 娉ㄥ唽涓簁ebab-case锛屾ā鏉跨敤<view-grid>
-    OutboundDialog  // 娉ㄥ唽鍑哄簱寮圭獥缁勪欢
-  },
   setup() {
     const table = ref({
       key: "id",
       footer: "Foots",
       cnName: "璋冩嫧鍗�(鏅轰粨璋冨嚭澶栭儴浠�)",
       name: "outboundOrder",
-      url: "/OutboundOrder/",
+      url: "/AllocateOrder/",
       sortName: "id",
     });
     const editFormFields = ref({
       orderType: "",
-      orderNo:"",
+      orderNo: "",
       upperOrderNo: "",
       orderStatus: "",
       remark: "",
-      warehouseId:""
+      warehouseId: ""
     });
     const editFormOptions = ref([
       [
@@ -62,11 +38,11 @@
           data: [],
         },
         {
-        field: "orderNo",
-        title: "鍗曟嵁缂栧彿",
-        type: "string",
-        readonly:true
-      },
+          field: "orderNo",
+          title: "鍗曟嵁缂栧彿",
+          type: "string",
+          readonly: true
+        },
         {
           title: "涓婃父鍗曟嵁缂栧彿",
           field: "upperOrderNo",
@@ -194,6 +170,20 @@
         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",
@@ -206,7 +196,7 @@
         type: "string",
         width: 120,
         align: "left",
-        hidden:true
+        hidden: true
       },
       {
         field: "departmentName",
@@ -387,41 +377,41 @@
       sortName: "id",
       key: "id",
     });
-      // 璋冩嫧寮圭獥鐩稿叧
-    const outboundVisible = ref(false);
-    const selectedOutboundDocument = ref({});  // 瀛樺偍閫変腑鐨勮皟鎷ㄥ崟鏁版嵁
+    // 璋冩嫧寮圭獥鐩稿叧
+    // const outboundVisible = ref(false);
+    // const selectedOutboundDocument = ref({});  // 瀛樺偍閫変腑鐨勮皟鎷ㄥ崟鏁版嵁
 
-    // 鎵撳紑璋冩嫧寮圭獥锛堜粠鎵╁睍閰嶇疆鐨勬寜閽簨浠惰Е鍙戯級
-    const handleOpenOutboundDialog = (docData) => {
-      selectedOutboundDocument.value = docData;  // 淇濆瓨閫変腑鐨勫崟鎹暟鎹�
-      outboundVisible.value = true;  // 鏄剧ず寮圭獥
-    };
+    // // 鎵撳紑璋冩嫧寮圭獥锛堜粠鎵╁睍閰嶇疆鐨勬寜閽簨浠惰Е鍙戯級
+    // const handleOpenOutboundDialog = (docData) => {
+    //   selectedOutboundDocument.value = docData;  // 淇濆瓨閫変腑鐨勫崟鎹暟鎹�
+    //   outboundVisible.value = true;  // 鏄剧ず寮圭獥
+    // };
 
-    // 璋冩嫧鎴愬姛鍚庣殑鍥炶皟
-    const handleOutboundSuccess = (docNo) => {
-      ElMessage.success(`鍗曟嵁 ${docNo} 璋冩嫧鎴愬姛`);
-      gridRef.value?.refresh();  // 鍒锋柊琛ㄦ牸鏁版嵁
-    };
+    // // 璋冩嫧鎴愬姛鍚庣殑鍥炶皟
+    // const handleOutboundSuccess = (docNo) => {
+    //   ElMessage.success(`鍗曟嵁 ${docNo} 璋冩嫧鎴愬姛`);
+    //   gridRef.value?.refresh();  // 鍒锋柊琛ㄦ牸鏁版嵁
+    // };
 
-    // 鍒濆鍖栨墿灞曢厤缃細涓鸿皟鎷ㄦ寜閽坊鍔犱簨浠惰Е鍙戦�昏緫
-    const initExtension = () => {
-      // 鎵惧埌"璋冩嫧"鎸夐挳骞剁粦瀹氭墦寮�寮圭獥鐨勯�昏緫
-      const outboundBtn = extend.buttons.view.find(btn => btn.name === '鍑哄簱');
-      if (outboundBtn) {
-        const originalOnClick = outboundBtn.onClick;
-        outboundBtn.onClick = function() {
-          // 鍏堟墽琛屽師鏈夋牎楠岄�昏緫
-          const selectedRows = this.$refs.table.getSelected();
-          if (selectedRows.length === 1) {
-            // 鏍¢獙閫氳繃鍚庯紝瑙﹀彂涓荤粍浠剁殑鍑哄簱寮圭獥浜嬩欢
-            this.$emit('openOutboundDialog', selectedRows[0]);
-          } else {
-            // 鍘熸湁閫昏緫宸插鐞嗘彁绀猴紝鏃犻渶閲嶅
-            originalOnClick.call(this);
-          }
-        };
-      }
-    };
+    // // 鍒濆鍖栨墿灞曢厤缃細涓鸿皟鎷ㄦ寜閽坊鍔犱簨浠惰Е鍙戦�昏緫
+    // const initExtension = () => {
+    //   // 鎵惧埌"璋冩嫧"鎸夐挳骞剁粦瀹氭墦寮�寮圭獥鐨勯�昏緫
+    //   const outboundBtn = extend.buttons.view.find(btn => btn.name === '鍑哄簱');
+    //   if (outboundBtn) {
+    //     const originalOnClick = outboundBtn.onClick;
+    //     outboundBtn.onClick = function () {
+    //       // 鍏堟墽琛屽師鏈夋牎楠岄�昏緫
+    //       const selectedRows = this.$refs.table.getSelected();
+    //       if (selectedRows.length === 1) {
+    //         // 鏍¢獙閫氳繃鍚庯紝瑙﹀彂涓荤粍浠剁殑鍑哄簱寮圭獥浜嬩欢
+    //         this.$emit('openOutboundDialog', selectedRows[0]);
+    //       } else {
+    //         // 鍘熸湁閫昏緫宸插鐞嗘彁绀猴紝鏃犻渶閲嶅
+    //         originalOnClick.call(this);
+    //       }
+    //     };
+    //   }
+    // };
     return {
       table,
       extend,
@@ -431,11 +421,11 @@
       searchFormOptions,
       columns,
       detail,
-       // 鍑哄簱鐩稿叧
-      outboundVisible,
-      selectedOutboundDocument,
-      handleOpenOutboundDialog,
-      handleOutboundSuccess 
+      // 鍑哄簱鐩稿叧
+      // outboundVisible,
+      // selectedOutboundDocument,
+      // handleOpenOutboundDialog,
+      // handleOutboundSuccess 
     };
   },
 });

--
Gitblit v1.9.3