王佳豪
2021-05-17 d029414490a8aab9675ae4d1b2bebd9eb6e89b09
1.立库任务单入库支持批量组托的功能
1个文件已修改
47 ■■■■■ 已修改文件
src/main/webapp/views/pda/combPro.html 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/combPro.html
@@ -377,36 +377,27 @@
            tips("请提取物料", true);
            return;
        }
        for (var i = 0; i < matData.length; i++) {
            for (var j = 0; j < sourceData.length ; j++) {
                if (matData[i].matNo == sourceData[j].matNo && matData[i].mnemonic == sourceData[j].mnemonic && matData[i].count == sourceData[j].count) {
                    // 数量提醒
                    layer.confirm('数量和剩余数量一致,确定继续组托吗?', function(){
                        $.ajax({
                            url: baseUrl + "/mobile/comb/auth/batch",
                            headers: {'token': localStorage.getItem('token')},
                            data: JSON.stringify({
                                barcode: barcode,
                                combMats: matData,
                            }),
                            contentType: 'application/json;charset=UTF-8',
                            method: 'POST',
                            async: false,
                            success: function (res) {
                                if (res.code === 200) {
                                    reset();
                                    tips("组托成功")
                                } else if (res.code === 403) {
                                    top.location.href = baseUrl + "/pda";
                                } else {
                                    tips(res.msg, true)
                                }
                            }
                        })
                    });
        $.ajax({
            url: baseUrl + "/mobile/comb/auth/batch",
            headers: {'token': localStorage.getItem('token')},
            data: JSON.stringify({
                barcode: barcode,
                combMats: matData,
            }),
            contentType: 'application/json;charset=UTF-8',
            method: 'POST',
            async: false,
            success: function (res) {
                if (res.code === 200) {
                    reset();
                    tips("组托成功")
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/pda";
                } else {
                    tips(res.msg, true)
                }
            }
        }
        })
    }
    /**