1
huangxiaoqiang
2025-12-18 a81ef02fb222b9d3615632fc8cf2e53d9676220d
1
已添加2个文件
已修改1个文件
36 ■■■■ 文件已修改
项目代码/WIDESEA_WMSClient/src/extension/inbound/inboundOrder.js 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/接口文档/HAIQ ESS 24.4.1.0 API接口文档_灰白盒 V4.0-20241230(2).pdf 补丁 | 查看 | 原始文档 | blame | 历史
项目资料/接口文档/mes接口文档.docx 补丁 | 查看 | 原始文档 | blame | 历史
ÏîÄ¿´úÂë/WIDESEA_WMSClient/src/extension/inbound/inboundOrder.js
@@ -1,6 +1,9 @@
//此js文件是用来自定义扩展业务代码,可以扩展一些自定义页面或者重新配置生成的代码
import gridHeader from './extend/EmptyTrayInbound.vue'
import gridBody from './extend/Pallet.vue'
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';
let extension = {
  components: {
    //查询界面扩展组件
@@ -15,30 +18,6 @@
  tableAction: '', //指定某张表的权限(这里填写表名,默认不用填写)
  buttons: {
    view: [
      // {
      //   name: '组盘',
      //   type: 'primary',
      //   value: '组盘',
      //   onClick: function () { // ä¿®å¤1:移除无用row参数,加日志调试
      //     const selectedRows = this.$refs.table.getSelected();
      //     // æ ¡éªŒ1:是否选中行
      //     if (selectedRows.length === 0) {
      //       console.log('校验不通过:未选中任何单据');
      //       ElMessage.warning('请选择一条单据');
      //       return;
      //     }
      //     // æ ¡éªŒ2:是否选中单行
      //     if (selectedRows.length > 1) {
      //       console.log('校验不通过:选中多行单据');
      //       ElMessage.warning('只能选择一条单据');
      //       return;
      //     }
      //     const targetRow = selectedRows[0];
      //     this.$emit('openPalletDialog', targetRow.inboundOrderNo);
      //   }
      // },
      {
        name: '撤销组盘',
        type: 'primary',
@@ -67,20 +46,15 @@
            // å‘起撤销组盘请求
            try {
              //console.log('发起撤销组盘请求,托盘号:', formData.palletCode.trim());
              const response = await http.post('/api/InboundOrder/UndoPalletGroup?palletCode=' + formData.palletCode.trim() + '&barcode=' + formData.barcode.trim());
              const { status, message, data } = response;
              if (status) {
                ElMessage.success(response.message);
                console.log(response.message)
                this.refresh(); // æˆåŠŸåŽåˆ·æ–°åˆ—è¡¨
                // å…³é—­å¯¹è¯æ¡†
                render(null, mountNode);
                document.body.removeChild(mountNode);
              } else {
                console.log('撤销组盘失败,后端提示:', message);
                ElMessage.error(message || data?.message || '撤销组盘失败');
                selectPalletCodeInput(); // é€‰ä¸­è¾“入框方便重新输入
              }
@@ -134,7 +108,7 @@
              ref: 'cancelPalletForm'
            }, [
              // æ‰˜ç›˜å·è¾“入项
              h(ElFormItem, { label: '托盘号', prop: 'palletCode', required: true }, [
              h(ElFormItem, { label: '托盘条码', prop: 'palletCode', required: true }, [
                h(ElInput, {
                  type: 'text',
                  modelValue: formData.palletCode,
@@ -153,7 +127,7 @@
                  }
                })
              ]),
              h(ElFormItem, { label: '条码', prop: 'barcode' }, [
              h(ElFormItem, { label: ' å†…箱标签', prop: 'barcode' }, [
                h(ElInput, {
                  type: 'text',
                  modelValue: formData.barcode,
ÏîÄ¿×ÊÁÏ/½Ó¿ÚÎĵµ/HAIQ ESS 24.4.1.0 API½Ó¿ÚÎĵµ_»Ò°×ºÐ V4.0-20241230(2).pdf
Binary files differ
ÏîÄ¿×ÊÁÏ/½Ó¿ÚÎĵµ/mes½Ó¿ÚÎĵµ.docx
Binary files differ