yxj
2023-05-04 9db0428a82c67a5a381487c6ff26a601f0a47a30
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_Fast.html
@@ -1332,23 +1332,45 @@
                                    return;
                                }
                                else if (result.data.hBarTypeField == '源单条码') {
                                    //$("#HSupName").val(result.data.hSupName);
                                    //$("#HSupID").val(result.data.hSupID);
                                    //$("#HDeptName").val(result.data.hDeptName);
                                    //$("#HDeptID").val(result.data.hDeptID);
                                    if (result.data.hDeptIDField != 0) {
                                        $("#HDeptID").val(result.data.hDeptIDField);
                                        $("#HDeptName").val(result.data.hDeptNameField);
                                    }
                                    $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                    HSourceFlag = true;
                                    $("#HBillType").val(result.data.hSourceBillTypeField == null ? "3714" : result.data.hSourceBillTypeField);
                                    //获取源单类型、源单单号
                                    //if (result.data.HSourceBillType == "3711") {
                                    //    $("#HBillType").val("3711");
                                    //}
                                    //else {
                                    //    $("#HBillType").val("-1");
                                    //}
                                    if (result.data.hSourceBillTypeField == "3711") {
                                        $("#HBillType").empty();
                                        $("#HBillType").val("3711");
                                        var optionHtml = '';
                                        optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '生产汇报单' + "</option>";
                                        $("#HBillType").append(optionHtml);
                                        layui.form.render('select');
                                        $("#HBillType").attr("readonly", "readonly");
                                    }
                                    else if (result.data.hSourceBillTypeField == "3710") {
                                        $("#HBillType").empty();
                                        $("#HBillType").val("3710");
                                        var optionHtml = '';
                                        optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '生产订单' + "</option>";
                                        $("#HBillType").append(optionHtml);
                                        layui.form.render('select');
                                        $("#HBillType").attr("readonly", "readonly");
                                    }
                                    else if (result.data.hSourceBillTypeField == "3714") {
                                        $("#HBillType").empty();
                                        $("#HBillType").val("3714");
                                        var optionHtml = '';
                                        optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '工序汇报单' + "</option>";
                                        $("#HBillType").append(optionHtml);
                                        layui.form.render('select');
                                        $("#HBillType").attr("readonly", "readonly");
                                    }
                                    else {
                                        //$("#HBillType").val("-1");
                                    }
                                    $("#HSourceBillNo").attr("readonly", "readonly");
                                    $("#HNote").val(";一键扫码源单条码");
                                    element.tabChange('tab-ProductlnBill', '3');
                                }