自动化立体仓库 - WMS系统
*
lsh
16 小时以前 0b5dc6887e46ac956b5b783c70244d40589fbd25
src/main/webapp/static/js/locDetl/locDetl.js
@@ -261,6 +261,65 @@
                    }
                });
                break;
            case 'edit':
                var model = top.reObject(data).model;
                if (model === undefined) {
                    layer.msg("无数据");
                }
                this.$confirm(
                    '确认向MES校准是否合格?',
                    '确认修改',
                    {
                        confirmButtonText: '确认',
                        cancelButtonText: '取消',
                        type: 'warning',
                        dangerouslyUseHTMLString: true
                    }
                ).then(() => {
                    // 调用后台API上报数据
                    $.ajax({
                        url: baseUrl + "/actual/shipment/locDetl/report/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: {
                            model: model // 传递组货单号
                        },
                        method: 'POST',
                        success: (res) => {
                            this.reportLoading = false;
                            if (typeof done === 'function') {
                                done();
                            }
                            if (res.code === 200 || res.success) {
                                this.$message({
                                    message: `组货单号 ${groupOrderNo} 上报成功`,
                                    type: 'success',
                                    duration: 3000
                                });
                                // 上报成功后关闭弹窗并刷新数据
                                setTimeout(() => {
                                    this.closeDetailDialog();
                                    this.getTableDataA(); // 刷新主表数据
                                }, 1500);
                            } else {
                                this.$message.error(res.message || '上报失败');
                            }
                        },
                        error: (error) => {
                            this.reportLoading = false;
                            if (typeof done === 'function') {
                                done();
                            }
                            console.error('上报失败:', error);
                            this.$message.error('上报失败,请检查网络连接');
                        }
                    });
                }).catch(() => {
                    this.$message({
                        type: 'info',
                        message: '已取消修改'
                    });
                });
                break;
            case 'locNo':
                var param = top.reObject(data).locNo;
                if (param === undefined) {