From 61567f0d7ee950c518c8342dd03a233917589f79 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 24 十二月 2025 13:45:54 +0800
Subject: [PATCH] 1

---
 项目代码/WIDESEA_WMSClient/src/views/outbound/allocateoutboundOrder.vue             |  122 +++----
 项目代码/WIDESEA_WMSClient/src/extension/outbound/allocateoutboundOrder.js          |  286 -------------------
 项目代码/WIDESEA_WMSClient/src/views/outbound/outboundOrder.vue                     |  103 +-----
 项目代码/WIDESEA_WMSClient/src/extension/outbound/extend/newAllocateOrderDetail.vue |  354 +----------------------
 4 files changed, 92 insertions(+), 773 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/allocateoutboundOrder.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/allocateoutboundOrder.js"
index 836d54c..25f7268 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/allocateoutboundOrder.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/allocateoutboundOrder.js"
@@ -1,9 +1,5 @@
 
 //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
-import http from '@/api/http.js'
-import { h,createVNode, render,reactive ,ref } from 'vue';
-import { ElDialog , ElForm, ElFormItem, ElInput, ElButton, ElMessage ,ElSelect, ElOption} from 'element-plus';
-
 import gridBody from './extend/newAllocateOrderDetail.vue'
 let extension = {
     components: {
@@ -17,287 +13,7 @@
       modelFooter: ''
     },
     tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓)
-    buttons: { view: [
-       /* {
-        name: '鍑哄簱',
-        type: 'primary',
-        value: '鍑哄簱',
-        onClick: function () { // 淇锛氱敤ElMessage鏇夸唬this.$message
-          const selectedRows = this.$refs.table.getSelected();
-          if (selectedRows.length === 0) {
-            ElMessage.warning('璇峰厛閫夋嫨瑕佺敓鎴愪换鍔$殑琛�');
-            return;
-          }
-          if (selectedRows.length > 1) {
-            ElMessage.warning('鍙兘閫夋嫨涓�琛�');
-            return;
-          }
-    
-
-          // 鎵�鏈夋牎楠岄�氳繃锛岃Е鍙戜富缁勪欢鎵撳紑鍑哄簱寮圭獥
-          console.log('鎵�鏈夋牎楠岄�氳繃锛岃Е鍙憃penOutboundDialog浜嬩欢锛屽崟鎹暟鎹細', selectedRows[0]);
-         
-          this.$emit('openOutboundDialog', {
-            transNo: selectedRows[0].transNo,       // 鍑哄簱鍗曠紪鍙�
-            createDate: selectedRows[0].createDate || new Date().toLocaleDateString()  // 鍑哄簱鏃ユ湡
-          });
-        }
-      }, */
-      {
-  name: '绌烘墭鐩樺嚭搴�',
-  type: 'primary',
-  value: '绌烘墭鐩樺嚭搴�',
-  onClick: function () {
-    
-   
-    const platformOptions = Array.from({ length: 1 }, (_, i) => {
-      const num = 1;
-      return { label: `绔欏彴${num}`, value: `1-2` };
-    });
-
-    const quantityOptions = Array.from({ length: 6 }, (_, i) => ({
-      label: (i + 1).toString(), 
-      value: i + 1 
-    }));
-
-    const warehouseOptions = ref([]);
-    const isLoadingWarehouses = ref(false);
-
-    const getWarehouseList = async () => {
-      isLoadingWarehouses.value = true;
-      try {
-        const { data, status } = await http.post('/api/LocationInfo/GetLocationTypes'); 
-        if (status && Array.isArray(data)) {
-          // 鏍煎紡鍖栦粨搴撻�夐」锛氶�傞厤ElSelect鐨刲abel-value鏍煎紡
-          warehouseOptions.value = data.map(item => ({
-            label: item.locationTypeDesc,
-            value: item.locationType  
-          }));
-        } else {
-          ElMessage.error('鑾峰彇鍖哄煙鍒楄〃澶辫触');
-          warehouseOptions.value = [];
-        }
-      } catch (err) {
-        ElMessage.error('鍖哄煙鏁版嵁璇锋眰寮傚父锛岃绋嶅悗閲嶈瘯');
-        warehouseOptions.value = [];
-      } finally {
-        isLoadingWarehouses.value = false;
-      }
-    };
-
-    const mountNode = document.createElement('div');
-    document.body.appendChild(mountNode);
-
-    
-    const formData = reactive({
-      warehouseCode:'',
-      palletCode: '',
-      selectedPlatform: platformOptions[0].value,
-      quantity:1 
-    });
-
-    const vnode = createVNode(ElDialog, {
-      title: '绌烘墭鐩樺嚭搴�',
-      width: '500px', 
-      modelValue: true,
-      appendToBody: true,
-      onOpened: async () => {
-        await getWarehouseList();
-        const inputRef = vnode.component.refs.boxCodeInput;
-        inputRef?.focus();
-      },
-      'onUpdate:modelValue': (isVisible) => {
-        if (!isVisible) {
-          render(null, mountNode);
-          document.body.removeChild(mountNode);
-        }
-      },
-      style: {
-        padding: '20px 0', 
-        borderRadius: '8px' 
-      }
-    }, {
-      default: () => h(ElForm, {
-        model: formData,
-        rules: {
-          warehouseCode:[
-            { required: true, message: '璇烽�夋嫨鍖哄煙', trigger: ['change', 'blur'] }
-          ],
-          palletCode: [
-            { type: 'string', message: '鏂欑鍙峰繀椤讳负瀛楃涓�', trigger: 'blur' }
-          ],
-          selectedPlatform: [
-            { required: true, message: '璇烽�夋嫨鍑哄簱绔欏彴', trigger: 'change' }
-          ],
-          quantity:[
-            { required: true, message: '璇烽�夋嫨绌虹鏁伴噺', trigger: 'change'}
-          ]                       
-        },
-        ref: 'batchOutForm',
-        labelWidth: '100px', 
-        style: {
-          padding: '0 30px', 
-        }
-       }, 
-       [
-      //   h(ElFormItem, {
-      //     label: '浠撳簱鍖哄煙',
-      //     prop: 'warehouseCode',
-      //     style: {
-      //       marginBottom: '24px' 
-      //     }
-      //   }, [
-      //     h(ElSelect, {
-      //       placeholder: '璇烽�夋嫨浠撳簱鍖哄煙',
-      //       modelValue: formData.warehouseCode,
-      //       'onUpdate:modelValue': (val) => {
-      //         formData.warehouseCode = val;
-      //       },
-      //       style: {
-      //         width: '100%',
-      //         height: '40px', 
-      //         borderRadius: '4px',
-      //         borderColor: '#dcdfe6'
-      //       }
-      //     }, warehouseOptions.value.map(platform => 
-      //       h(ElOption, { label: platform.label, value: platform.value })
-      //     ))
-      //   ]),
-        h(ElFormItem, {
-          label: '鍑哄簱绔欏彴',
-          prop: 'selectedPlatform',
-          style: {
-            marginBottom: '24px' 
-          }
-        }, [
-          h(ElSelect, {
-            placeholder: '璇烽�夋嫨鍑哄簱绔欏彴',
-            modelValue: formData.selectedPlatform,
-            'onUpdate:modelValue': (val) => {
-              formData.selectedPlatform = val;
-            },
-            style: {
-              width: '100%',
-              height: '40px', 
-              borderRadius: '4px',
-              borderColor: '#dcdfe6'
-            }
-          }, platformOptions.map(platform => 
-            h(ElOption, { label: platform.label, value: platform.value })
-          ))
-        ]),
-      //   h(ElFormItem,{
-      //     label:'鍑哄簱鏁伴噺',
-      //     prop:'quantity',
-      //     style:{
-      //       marginBottom:'24px'
-      //     }
-      //   },[h(ElSelect,{
-      //     placeholder:'璇烽�夋嫨绌虹鏁伴噺',
-      //     modelValue:formData.quantity,
-      //     'onUpdate:modelValue':(val)=>{
-      //       formData.quantity=val;
-      //     },
-      //     style:{
-      //       width:'100%',
-      //       height:'40px',
-      //       borderRadius:'4px',
-      //       borderColor:'#dcdfe6'
-      //     },
-      //     filterable:false
-      //   },
-      //   quantityOptions.map(option=>
-      //     h(ElOption,{
-      //       label:option.label,
-      //       value:option.value
-      //     })
-      //   )
-      // )]),                                 
-        h(ElFormItem, {
-          label: '鏂欑鍙�',
-          prop: 'palletCode',
-          style: {
-            marginBottom: '16px' 
-          }
-        }, [
-          h(ElInput, {
-            type: 'text',
-            placeholder: '鍙�夎緭鍏ユ枡绠卞彿锛屼笉濉垯鑷姩鍒嗛厤绌烘枡绠�',
-            modelValue: formData.palletCode,
-            'onUpdate:modelValue': (val) => {
-              formData.palletCode = val;
-            },
-            style: {
-              width: '100%',
-              height: '40px', 
-              borderRadius: '4px',
-              borderColor: '#dcdfe6'
-            },
-            attrs: {
-              placeholderStyle: 'color: #909399;' 
-            }
-          })
-        ]),
-        
-        h('div', {
-          style: {
-            textAlign: 'right',
-            marginTop: '8px',
-            paddingRight: '4px' 
-          }
-        }, [
-          h(ElButton, {
-            type: 'text',
-            onClick: () => {
-              render(null, mountNode);
-              document.body.removeChild(mountNode);
-              ElMessage.info('鍙栨秷鍑哄簱鎿嶄綔');
-            },
-            style: {
-              marginRight: '8px',
-              color: '#606266' 
-            }
-          }, '鍙栨秷'),
-          h(ElButton, {
-            type: 'primary',
-            onClick: async () => {
-              const formRef = vnode.component.refs.batchOutForm;
-              try {
-                await formRef.validate();
-              } catch (err) {
-                return;
-              }
-
-              http.post('/api/Task/PalletOutboundTask?palletCode='+formData.palletCode+'&endStation='+formData.selectedPlatform, {
-                
-              }).then(({ data, status, message }) => {
-                if (status) {
-
-                  ElMessage.success(`鍑哄簱鎴愬姛`);
-                  this.refresh();
-                  render(null, mountNode);
-                  document.body.removeChild(mountNode);
-                } else {
-                  ElMessage.error(message || data?.message || '鍑哄簱澶辫触');
-                }
-              }).catch(() => {
-                ElMessage.error('璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯');
-              });
-            },
-            style: {
-              borderRadius: '4px',
-              padding: '8px 20px' 
-            }
-          }, '纭畾')
-        ])
-      ])
-    });
-
-    vnode.appContext = this.$.appContext;
-    render(vnode, mountNode);
-  }
-}
-    ], box: [], detail: [] }, //鎵╁睍鐨勬寜閽�
+    buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽�
     methods: {
        //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
       onInit() {  
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/newAllocateOrderDetail.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/newAllocateOrderDetail.vue"
index 77d3fad..822b35f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/newAllocateOrderDetail.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/newAllocateOrderDetail.vue"
@@ -55,6 +55,7 @@
     <stock-select ref="child" @parentCall="parentCall"></stock-select>
     <selected-stock ref="selectedStock" @parentCall="parentCall"></selected-stock>
     <NoStockOut ref="NoStockOut" @parentCall="parentCall"></NoStockOut>
+    <DirectOutbound ref="DirectOutbound" @parentCall="parentCall"></DirectOutbound>
   </div>
 </template>
 
@@ -64,20 +65,10 @@
 import StockSelect from "./StockSelect.vue";
 import SelectedStock from "./SelectedStock.vue";
 import NoStockOut from "./NoStockOut.vue";
-import { h, createVNode, render, reactive } from "vue";
-import {
-  ElDialog,
-  ElForm,
-  ElFormItem,
-  ElSelect,
-  ElOption,
-  ElButton,
-  ElInput,
-  ElMessage,
-} from "element-plus";
+import DirectOutbound from "./DirectOutbound.vue";
 
 export default {
-  components: { VolBox, VolForm, StockSelect, SelectedStock, NoStockOut },
+  components: { VolBox, VolForm, StockSelect, SelectedStock, NoStockOut, DirectOutbound },
   data() {
     return {
       row: null,
@@ -327,334 +318,33 @@
       if (this.selection.length === 0) {
         return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏");
       }
-      const platformOptions = [
-        { label: "绔欏彴2", value: "2-1" },
-        { label: "绔欏彴3", value: "3-1" },
-      ];
-      const mountNode = document.createElement("div");
-      document.body.appendChild(mountNode);
 
-      const formData = reactive({
-        selectedPlatform: platformOptions[0].value,
-      });
-
-      const vnode = createVNode(
-        ElDialog,
-        {
-          title: "鍑哄簱鎿嶄綔 - 閫夋嫨鍑哄簱绔欏彴",
-          width: "500px",
-          modelValue: true,
-          appendToBody: true,
-          "onUpdate:modelValue": (isVisible) => {
-            if (!isVisible) {
-              render(null, mountNode);
-              document.body.removeChild(mountNode);
-            }
-          },
-          style: {
-            padding: "20px 0",
-            borderRadius: "8px",
-          },
-        },
-        {
-          default: () =>
-            h(
-              ElForm,
-              {
-                model: formData,
-                rules: {
-                  selectedPlatform: [
-                    { required: true, message: "璇烽�夋嫨鍑哄簱绔欏彴", trigger: "change" },
-                  ],
-                },
-                ref: "outboundForm",
-                labelWidth: "100px",
-                style: {
-                  padding: "0 30px",
-                },
-              },
-              [
-                h(ElFormItem, {
-                  label: "鍑哄簱绔欏彴",
-                  prop: "selectedPlatform",
-                  style: {
-                    marginBottom: "24px",
-                  },
-                }, [
-                  h(ElSelect, {
-                    placeholder: "璇烽�夋嫨鍑哄簱绔欏彴锛�3-12锛�",
-                    modelValue: formData.selectedPlatform,
-                    "onUpdate:modelValue": (val) => {
-                      formData.selectedPlatform = val;
-                    },
-                    style: {
-                      width: "100%",
-                      height: "40px",
-                      borderRadius: "4px",
-                      borderColor: "#dcdfe6",
-                    },
-                  }, platformOptions.map((platform) =>
-                    h(ElOption, { label: platform.label, value: platform.value })
-                  )),
-                ]),
-                h("div", {
-                  style: {
-                    textAlign: "right",
-                    marginTop: "8px",
-                    paddingRight: "4px",
-                  },
-                }, [
-                  h(ElButton, {
-                    type: "text",
-                    onClick: () => {
-                      render(null, mountNode);
-                      document.body.removeChild(mountNode);
-                      ElMessage.info("鍙栨秷鍑哄簱鎿嶄綔");
-                    },
-                    style: {
-                      marginRight: "8px",
-                      color: "#606266",
-                    },
-                  }, "鍙栨秷"),
-                  h(ElButton, {
-                    type: "primary",
-                    onClick: async () => {
-                      const formRef = vnode.component.refs.outboundForm;
-                      try {
-                        await formRef.validate();
-                      } catch (err) {
-                        return;
-                      }
-
-                      const keys = this.selection.map((item) => item.id);
-                      const requestParams = {
-                        detailIds: keys,
-                        outboundTargetLocation: formData.selectedPlatform,
-                        outboundQuantity: 1,
-                        operator: "",
-                        orderNo: this.row.orderNo,
-                      };
-
-                      this.http
-                        .post(
-                          "api/Outbound/ProcessPickingOutbound",
-                          requestParams,
-                          "鏁版嵁澶勭悊涓�"
-                        )
-                        .then((x) => {
-                          if (!x.status) return ElMessage.error(x.message);
-                          ElMessage.success("鎿嶄綔鎴愬姛");
-                          this.showDetialBox = false;
-                          this.$emit("parentCall", ($vue) => {
-                            $vue.getData();
-                          });
-                          render(null, mountNode);
-                          document.body.removeChild(mountNode);
-                        })
-                      // .catch(() => {
-                      //   ElMessage.error("璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯");
-                      // });
-                    },
-                    style: {
-                      borderRadius: "4px",
-                      padding: "8px 20px",
-                    },
-                  }, "纭畾鍑哄簱"),
-                ]),
-              ]),
-        }
-      );
-
-      vnode.appContext = this.$.appContext;
-      render(vnode, mountNode);
+      const keys = this.selection.map((item) => item.id);
+      const requestParams = {
+        detailIds: keys,
+        outboundQuantity: 1,
+        operator: "",
+        orderNo: this.row.orderNo,
+        isBatch: this.isBatch
+      };
+      this.$refs.DirectOutbound.open(requestParams);
     },
     outboundbatch() {
       if (this.selection.length === 0) {
         return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏");
       }
-      if (this.selection.length > 1) {
-        return this.$message.error("鍙兘閫夋嫨涓�鏉″崟鎹槑缁嗚繘琛屽垎鎵瑰嚭搴�");
-      }
-      const platformOptions = [
-        { label: "绔欏彴2", value: "2-1" },
-        { label: "绔欏彴3", value: "3-1" },
-      ];
-      const mountNode = document.createElement("div");
-      document.body.appendChild(mountNode);
 
-      const formData = reactive({
-        selectedPlatform: platformOptions[0].value,
-        outboundDecimal: "",
-      });
+      const keys = this.selection.map((item) => item.id);
+      const requestParams = {
+        detailIds: keys,
+        outboundQuantity: this.selection[0].orderQuantity - this.selection[0].lockQuantity,
+        operator: "",
+        orderNo: this.row.orderNo,
+        isBatch: this.isBatch
+      };
+      console.log(requestParams);
+      this.$refs.DirectOutbound.open(requestParams);
 
-      const vnode = createVNode(
-        ElDialog,
-        {
-          title: "鍑哄簱鎿嶄綔 - 閫夋嫨鍑哄簱绔欏彴",
-          width: "500px",
-          modelValue: true,
-          appendToBody: true,
-          "onUpdate:modelValue": (isVisible) => {
-            if (!isVisible) {
-              render(null, mountNode);
-              document.body.removeChild(mountNode);
-            }
-          },
-          style: {
-            padding: "20px 0",
-            borderRadius: "8px",
-          },
-        },
-        {
-          default: () =>
-            h(
-              ElForm,
-              {
-                model: formData,
-                rules: {
-                  selectedPlatform: [
-                    { required: true, message: "璇烽�夋嫨鍑哄簱绔欏彴", trigger: "change" },
-                  ],
-                  outboundDecimal: [
-                    { required: true, message: "璇疯緭鍏ュ皬鏁版暟鍊�", trigger: "blur" },
-                    {
-                      validator: (rule, value, callback) => {
-                        const decimalReg = /^(([1-9]\d*)|0)(\.\d{1,2})?$/;
-                        if (value && !decimalReg.test(value)) {
-                          callback(new Error("璇疯緭鍏ユ湁鏁堢殑灏忔暟锛堟鏁帮紝鏈�澶�2浣嶅皬鏁帮級"));
-                        } else {
-                          callback();
-                        }
-                      },
-                      trigger: "blur",
-                    },
-                  ],
-                },
-                ref: "outboundForm",
-                labelWidth: "100px",
-                style: {
-                  padding: "0 30px",
-                },
-              },
-              [
-                h(ElFormItem, {
-                  label: "鍑哄簱绔欏彴",
-                  prop: "selectedPlatform",
-                  style: {
-                    marginBottom: "24px",
-                  },
-                }, [
-                  h(ElSelect, {
-                    placeholder: "璇烽�夋嫨鍑哄簱绔欏彴锛�3-12锛�",
-                    modelValue: formData.selectedPlatform,
-                    "onUpdate:modelValue": (val) => {
-                      formData.selectedPlatform = val;
-                    },
-                    style: {
-                      width: "100%",
-                      height: "40px",
-                      borderRadius: "4px",
-                      borderColor: "#dcdfe6",
-                    },
-                  }, platformOptions.map((platform) =>
-                    h(ElOption, { label: platform.label, value: platform.value })
-                  )),
-                ]),
-                h(ElFormItem, {
-                  label: "鍑哄簱鏁�",
-                  prop: "outboundDecimal",
-                  style: {
-                    marginBottom: "24px",
-                  },
-                }, [
-                  h(ElInput, {
-                    type: "number",
-                    placeholder: "璇疯緭鍏ュ皬鏁版暟鍊硷紙鏈�澶�2浣嶅皬鏁帮級",
-                    modelValue: formData.outboundDecimal,
-                    "onUpdate:modelValue": (val) => {
-                      formData.outboundDecimal = val;
-                    },
-                    style: {
-                      width: "100%",
-                      height: "40px",
-                      borderRadius: "4px",
-                      borderColor: "#dcdfe6",
-                    },
-                    step: "0.01",
-                    precision: 2,
-                    min: 0.01,
-                  }),
-                ]),
-                h("div", {
-                  style: {
-                    textAlign: "right",
-                    marginTop: "8px",
-                    paddingRight: "4px",
-                  },
-                }, [
-                  h(ElButton, {
-                    type: "text",
-                    onClick: () => {
-                      render(null, mountNode);
-                      document.body.removeChild(mountNode);
-                      ElMessage.info("鍙栨秷鍒嗘壒鍑哄簱鎿嶄綔");
-                    },
-                    style: {
-                      marginRight: "8px",
-                      color: "#606266",
-                    },
-                  }, "鍙栨秷"),
-                  h(ElButton, {
-                    type: "primary",
-                    onClick: async () => {
-                      const formRef = vnode.component.refs.outboundForm;
-                      try {
-                        await formRef.validate();
-                      } catch (err) {
-                        return;
-                      }
-
-                      const keys = this.selection.map((item) => item.id);
-                      const requestParams = {
-                        detailIds: keys,
-                        outboundTargetLocation: formData.selectedPlatform,
-                        outboundQuantity: formData.outboundDecimal,
-                        operator: "",
-                        orderNo: this.row.orderNo,
-                      };
-
-                      this.http
-                        .post(
-                          "api/Outbound/ProcessPickingOutbound",
-                          requestParams,
-                          "鏁版嵁澶勭悊涓�"
-                        )
-                        .then((x) => {
-                          if (!x.status) return ElMessage.error(x.message);
-                          ElMessage.success("鎿嶄綔鎴愬姛");
-                          this.showDetialBox = false;
-                          this.$emit("parentCall", ($vue) => {
-                            $vue.getData();
-                          });
-                          render(null, mountNode);
-                          document.body.removeChild(mountNode);
-                        })
-                        .catch(() => {
-                          ElMessage.error("璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯");
-                        });
-                    },
-                    style: {
-                      borderRadius: "4px",
-                      padding: "8px 20px",
-                    },
-                  }, "纭畾鍒嗘壒鍑哄簱"),
-                ]),
-              ]),
-        }
-      );
-
-      vnode.appContext = this.$.appContext;
-      render(vnode, mountNode);
     },
     setCurrent(row) {
       this.$refs.singleTable.setCurrentRow(row);
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 5e5f89d..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,39 +1,15 @@
 
 <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",
@@ -45,11 +21,11 @@
     });
     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",
@@ -220,7 +196,7 @@
         type: "string",
         width: 120,
         align: "left",
-        hidden:true
+        hidden: true
       },
       {
         field: "departmentName",
@@ -401,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,
@@ -445,11 +421,11 @@
       searchFormOptions,
       columns,
       detail,
-       // 鍑哄簱鐩稿叧
-      outboundVisible,
-      selectedOutboundDocument,
-      handleOpenOutboundDialog,
-      handleOutboundSuccess 
+      // 鍑哄簱鐩稿叧
+      // outboundVisible,
+      // selectedOutboundDocument,
+      // handleOpenOutboundDialog,
+      // handleOutboundSuccess 
     };
   },
 });
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 99010c3..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,7 +327,7 @@
           width: 90,
           align: "left",
           edit: { type: "number" },
-          readonly:true
+          readonly: true
         },
         {
           field: "rowNo",
@@ -359,7 +336,7 @@
           width: 90,
           align: "left",
           edit: { type: "number" },
-          readonly:true
+          readonly: true
         },
         {
           field: "lockQuantity",
@@ -383,7 +360,7 @@
           align: "left",
           edit: { type: "select" },
           bind: { key: "orderDetailStatusEnum", data: [] },
-          readonly:true
+          readonly: true
         },
         {
           field: "creater",
@@ -424,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,
@@ -468,11 +410,6 @@
       searchFormOptions,
       columns,
       detail,
-       // 鍑哄簱鐩稿叧
-      outboundVisible,
-      selectedOutboundDocument,
-      handleOpenOutboundDialog,
-      handleOutboundSuccess 
     };
   },
 });

--
Gitblit v1.9.3