自动化立体仓库 - WMS系统
*
lsh
21 小时以前 0b5dc6887e46ac956b5b783c70244d40589fbd25
src/main/webapp/static/js/locDetl/locDetl.js
@@ -28,19 +28,22 @@
        ,{field: 'volume', align: 'center',title: '单箱毛重', hide: false}
        ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true}
        ,{field: 'supp', align: 'center',title: '供应商', hide: true}
        ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: true}
        ,{field: 'beBatch$', align: 'center',title: '是否批次', hide: true}
        ,{field: 'deadTime', align: 'center',title: '保质期', hide: true}
        ,{field: 'deadWarn', align: 'center',title: '预警天数', hide: true}
        ,{field: 'source$', align: 'center',title: '制购', hide: true}
        ,{field: 'check$', align: 'center',title: '要求检验', hide: true}
        // ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: true}
        // ,{field: 'beBatch$', align: 'center',title: '是否批次', hide: true}
        // ,{field: 'deadTime', align: 'center',title: '保质期', hide: true}
        // ,{field: 'deadWarn', align: 'center',title: '预警天数', hide: true}
        // ,{field: 'source$', align: 'center',title: '制购', hide: true}
        // ,{field: 'check$', align: 'center',title: '要求检验', hide: true}
        ,{field: 'danger$', align: 'center',title: '待判', hide: false}
        ,{field: 'memo', align: 'center',title: '备注', hide: false}
    ];
    // cols.push.apply(cols, detlCols);
    cols.push({field: 'modiUser$', align: 'center',title: '修改人员',hide: true}
        ,{field: 'modiTime$', align: 'center',title: '修改时间'}
        ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:100}
    )
    return cols;
}
@@ -258,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) {
@@ -391,6 +453,8 @@
        var data = {
//            id: $('#id').val(),
            locNo: $('#locNo').val(),
            batch: $('#batch').val(),
            danger: $('#danger').val(),
            matnr: $('#matnr').val(),
            lgnum: $('#lgnum').val(),
            tbnum: $('#tbnum').val(),