heshaofeng
7 天以前 0ea40a1592de878592b2872b9c3005014233a136
ÏîÄ¿´úÂë/WIDESEA_WMSClient/src/extension/inbound/inboundOrder.js
@@ -55,7 +55,8 @@
          // å“åº”式表单数据:托盘号(必填)
          const formData = reactive({
            palletCode: '' // æ‰˜ç›˜å·è¾“入框
                        palletCode: '', // æ‰˜ç›˜å·è¾“入框
                        barcode:''
          });
          // æäº¤è¡¨å•的统一逻辑
@@ -72,12 +73,13 @@
            // å‘起撤销组盘请求
            try {
              //console.log('发起撤销组盘请求,托盘号:', formData.palletCode.trim());
              const response = await http.post('/api/InboundOrder/UndoPalletGroup?palletCode=' + 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(`撤销组盘成功,托盘号:${formData.palletCode.trim()}`);
                                ElMessage.success(response.message);
                                console.log(response.message)
                this.refresh(); // æˆåŠŸåŽåˆ·æ–°åˆ—è¡¨
                // å…³é—­å¯¹è¯æ¡†
                render(null, mountNode);
@@ -156,6 +158,23 @@
                  }
                })
              ]),
                            h(ElFormItem,{label: '条码', prop: 'barcode'},[
                              h(ElInput, {
                                type: 'text',
                                modelValue: formData.barcode,
                                'onUpdate:modelValue': (val) => {
                                    formData.barcode = val;
                                },
                                placeholder: '可选,扫码输入或手动输入条码',
                                maxLength: 50,
                                onKeydown: (e) => {
                                    if (e.key === 'Enter') {
                                        e.preventDefault();
                                        submitForm();
                                    }
                                  }
                              })
                            ]),
              // åº•部按钮区
              h('div', { style: { textAlign: 'right', marginTop: '16px' } }, [
                h(ElButton, {