From dc1a2cac65d1abadabda8b5fb3977199100d2cb3 Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期四, 25 十二月 2025 08:55:24 +0800
Subject: [PATCH] 1

---
 项目代码/WIDESEA_WMSClient/src/views/outbound/outboundOrder.vue |  102 ++++++++++-----------------------------------------
 1 files changed, 20 insertions(+), 82 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outboundOrder.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outboundOrder.vue"
index d3d1a67..5db27f5 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outboundOrder.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/outboundOrder.vue"
@@ -1,39 +1,16 @@
 
 <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/outboundOrder.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",
@@ -45,20 +22,20 @@
     });
     const editFormFields = ref({
       orderType: "",
-      orderNo:"",
+      orderNo: "",
       upperOrderNo: "",
       orderStatus: "",
       remark: "",
-      warehouseId:""
+      warehouseId: ""
     });
     const editFormOptions = ref([
       [
         {
-        field: "orderNo",
-        title: "鍗曟嵁缂栧彿",
-        type: "string",
-        readonly:true
-      },
+          field: "orderNo",
+          title: "鍗曟嵁缂栧彿",
+          type: "string",
+          readonly: true
+        },
         {
           title: "涓婃父鍗曟嵁缂栧彿",
           field: "upperOrderNo",
@@ -104,9 +81,9 @@
           title: "鎿嶄綔鑰�",
           field: "operator",
           type: "string",
-          hidden:true,
+          hidden: true,
           readonly: true,
-          
+
         },
       ],
     ]);
@@ -182,7 +159,7 @@
         width: 150,
         align: "left",
         bind: { key: "outOrderType", data: [] },
-        hidden:true
+        hidden: true
       },
       {
         field: "businessType",
@@ -219,7 +196,7 @@
         field: "returnToMESStatus",
         title: "鍥炰紶MES鐘舵��",
         width: 120,
-        bind: { key: "createType", data:[{key:0, value:"鏈洖浼�"},{key:1, value:"宸插洖浼犳垚鍔�"},{key:2, value:"鍥炰紶澶辫触"}]},
+        bind: { key: "createType", data: [{ key: 0, value: "鏈洖浼�" }, { key: 1, value: "宸插洖浼犳垚鍔�" }, { key: 2, value: "鍥炰紶澶辫触" }] },
       },
       {
         field: "factoryArea",
@@ -234,7 +211,7 @@
         type: "string",
         width: 120,
         align: "left",
-        hidden:true
+        hidden: true
       },
       {
         field: "departmentName",
@@ -350,6 +327,7 @@
           width: 90,
           align: "left",
           edit: { type: "number" },
+          readonly: true
         },
         {
           field: "rowNo",
@@ -358,7 +336,7 @@
           width: 90,
           align: "left",
           edit: { type: "number" },
-          readonly:true
+          readonly: true
         },
         {
           field: "lockQuantity",
@@ -382,7 +360,7 @@
           align: "left",
           edit: { type: "select" },
           bind: { key: "orderDetailStatusEnum", data: [] },
-          readonly:true
+          readonly: true
         },
         {
           field: "creater",
@@ -423,41 +401,6 @@
       sortName: "id",
       key: "id",
     });
-      // 鍑哄簱寮圭獥鐩稿叧
-    const outboundVisible = ref(false);
-    const selectedOutboundDocument = ref({});  // 瀛樺偍閫変腑鐨勫嚭搴撳崟鏁版嵁
-
-    // 鎵撳紑鍑哄簱寮圭獥锛堜粠鎵╁睍閰嶇疆鐨勬寜閽簨浠惰Е鍙戯級
-    const handleOpenOutboundDialog = (docData) => {
-      selectedOutboundDocument.value = docData;  // 淇濆瓨閫変腑鐨勫崟鎹暟鎹�
-      outboundVisible.value = true;  // 鏄剧ず寮圭獥
-    };
-
-    // 鍑哄簱鎴愬姛鍚庣殑鍥炶皟
-    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);
-          }
-        };
-      }
-    };
     return {
       table,
       extend,
@@ -467,11 +410,6 @@
       searchFormOptions,
       columns,
       detail,
-       // 鍑哄簱鐩稿叧
-      outboundVisible,
-      selectedOutboundDocument,
-      handleOpenOutboundDialog,
-      handleOutboundSuccess 
     };
   },
 });

--
Gitblit v1.9.3