ch
2022-11-07 ca617cc9a6c40a59777cd1df6cf144611f53d226
工序流转卡列表增加了芯体物料代码  芯体规格型号
2个文件已修改
232 ■■■■ 已修改文件
WebTM/views/质量管理/来料检验单/Kf_QCStockInCheckBill_Fast.html 188 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/工序流转卡/Sc_ProcessExchangeBill.html 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/ÖÊÁ¿¹ÜÀí/À´ÁϼìÑéµ¥/Kf_QCStockInCheckBill_Fast.html
@@ -36,7 +36,7 @@
                            <!--源单信息-->
                            <div class="layui-tab-item layui-show">
                                <div class="layui-form-item">
                                    <div class="layui-row">
                                    <!--<div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据类型</label>
                                        </div>
@@ -45,13 +45,13 @@
                                                <option value="1103">收料通知单</option>
                                            </select>
                                        </div>
                                    </div>
                                    </div>-->
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">源单号</label>
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">物料条码</label>
                                        </div>
                                        <div class="layui-col-xs8">
                                            <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" autocomplete="off" class="layui-input">
                                            <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs2">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin2">确定</button>
@@ -998,22 +998,10 @@
            //扫条码
            function GetMeesageByBarCode(obj) {  //返回工作中心
                var sSubStr = table.cache['wl-table'];
                var sBarCode = $('#HBarCode').val()
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var sQty = $("#HQty").val()
                var sHBillType = $("#HBillType").val()  //源单类型
                var sBillType = '1201'
                var sHWHID = $("#HWHID").val()
                var sHSPID = $("#HStockPlaceID").val()
                var sSourceBillNo = $("#HSourceBillNo").val()
                var sMouldManagerCtl = "N";  //是否启用器具管理
                var sFIFOCtl = "N";          //是否启用先进先出管理
                if (sQty == "") {
                    sQty = 0;
                }
                //判断条码是否为空  new
                if (sBarCode == '') {
@@ -1024,149 +1012,33 @@
                if (sBarCode != "") {
                    $('#HBarCode').val("");
                }
                if (sQty != "") {
                    $('#HQty').val("");
                }
                if (sHWHID == "184154") {
                    if (sHSPID == "0") {
                        playSound();
                        layer.msg("仓位为空,请选择仓位!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return false;
                    }
                }
                $.ajax({
                    url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
                    type: "GET",
                    async: false,
                    data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] },
                    success: function (result) {
                        if (result.count == 1) {
                            playSound1();
                            if (result.data.HBarType == '仓库条码') {
                                $("#HWHNAME").val(result.data.HWhName);
                                $("#HWHID").val(result.data.HWhID);
                                $("#HStockPlaceName").val("");
                                $("#HNote").val(";一键扫码仓库条码");
                                element.tabChange('tab-POStockInBill', '2');  //跳转页签
                            }
                            else if (result.data.HBarType == '仓位条码') {
                                $("#HStockPlaceName").val(result.data.HSPName);
                                $("#HStockPlaceID").val(result.data.HSPID);
                                $("#HWHNAME").val(result.data.HWhName);
                                $("#HWHID").val(result.data.HWhID);
                                $("#HNote").val(";一键扫码仓位条码");
                                element.tabChange('tab-POStockInBill', '2');//跳转页签
                            }
                            else if (result.data.HBarType == '部门条码') {
                                $("#HDeptName").val(result.data.HDeptName);
                                $("#HDeptID").val(result.data.HDeptID);
                                $("#HNote").val(";一键扫码部门条码");
                                element.tabChange('tab-POStockInBill', '2');//跳转页签
                            }
                            else if (result.data.HBarType == '源单条码') {
                                $("#HSupName").val(result.data.HSupName);
                                $("#HSupID").val(result.data.HSupID);
                                $("#HDeptName").val(result.data.HDeptName);
                                $("#HDeptID").val(result.data.HDeptID);
                                $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                $("#HBillType").val(result.data.hSourceBillTypeField)
                                sessionStorage["SourceFlag"] = true;
                                //获取源单类型、源单单号
                                if (result.data.HSourceBillType == "1102") {
                                    $("#HBillType").val("1102");
                                }
                                else if (result.data.HSourceBillType == "1103") {
                                    $("#HBillType").val("1103");
                                }
                                else {
                                    $("#HBillType").val("手工录入");
                                }
                                $("#HNote").val(";一键扫码源单条码");
                                element.tabChange('tab-POStockInBill', '3');
                            }
                            else {
                                if (HSourceFlag == true) {
                                    element.tabChange('tab-POStockInBill', '3');
                                }
                                else {
                                    $("#HSupName").val(result.data.hSupNameField);
                                    $("#HSupID").val(result.data.hSupIDField);
                                    //$("#HDeptName").val(result.data.HDept);
                                    //$("#HDeptID").val(result.data.HDeptID);
                                    //$("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                    //$("#HBillType").val(result.data.hSourceBillTypeField)
                                    HSourceFlag = true;
                                    //获取源单类型、源单单号
                                    if (result.data.hSourceBillTypeField == "1102") {
                                        $("#HBillType").empty();
                                        $("#HBillType").val("1102");
                                        var optionHtml = '';
                                        optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '采购订单' + "</option>";
                                        $("#HBillType").append(optionHtml);
                                        layui.form.render('select');
                                        $("#HBillType").attr("readonly", "readonly");
                                    }
                                    if (result.data.hSourceBillTypeField == "1103") {
                                        $("#HBillType").empty();
                                        $("#HBillType").val("1103");
                                        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-POStockInBill', '3');
                                }
                            }
                            layer.load(3)
                            $.ajax({
                                url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1',
                                type: "GET",
                                data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1201', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                success: function (result) {
                                    if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        listOption.data = result.data.list;
                                        table.render(listOption);
                                        $("#HBarCode_B").val(result.data.list2[0].HBarCode);
                                        $("#HMaterName_B").val(result.data.list2[0].HMaterName);
                                        $("#HMaterModel_B").val(result.data.list2[0].HMaterModel);
                                        $("#HBatchNo_B").val(result.data.list2[0].HBatchNo);
                                        $("#HUnitName_B").val(result.data.list2[0].HUnitName);
                                        $("#HQty_B").val(result.data.list2[0].HQty);
                                        $("#HTMQty_B").val(result.data.list2[0].HTMQty);
                                        $("#HWHName_B").val(result.data.list2[0].HWHName);
                                        $("#HSPName_B").val(result.data.list2[0].HSPName);
                                        var count = 0;
                                        var count1 = 0;
                                        for (var i = 0; i < result.data.list.length; i++) {
                                            count += result.data.list[i].HQty;
                                            count1 += result.data.list[i].HPieceQty;
                                        }
                                        $("#HSumQtys").val(count);
                                        $("#HBarCodeQtys").val(count1);
                                    }
                                    else {
                                        layer.msg(result.Message);
                                    }
                                    layer.closeAll("loading");
                                }
                            });
                        }
                        else {
                            playSound();
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                element.tabChange('tab-POStockInBill', '2');
                table.render({
                    elem: '#wl-table'
                    , cellMinWidth: 80
                    , totalRow: true
                    , url: GetWEBURL() + '/Kf_QCStockInCheckBill_Fast/BarCode_Json'
                    , where: { HBarCode: sBarCode }
                    , cols: [[
                        { type: 'radio' }
                        , { field: 'HQty', title: '数量', sort: true, width: 200 }
                        , { field: 'HMaterNumber', title: '物料代码', sort: true, width: 200 }
                        , { field: 'HMaterName', title: '物料名称', sort: true, width: 200 }
                        , { field: 'HMaterModel', title: '规格型号', sort: true, width: 200 }
                        , { field: 'HSourceInterID', title: '源单主内码', sort: true, width: 200 }
                        , { field: 'HSourceEntryID', title: '源单子内码', sort: true, width: 200 }
                        , { field: 'HSourceBillNo', title: '源单单号', sort: true, width: 200 }
                        , { field: 'HBatchNo', title: '批次' }
                        , { fixed: 'right', title: '操作', toolbar: '#barDemo' }
                    ]]
                    // , data: [linterid]
                    // , page: true
                    , height: 500
                    , done: function () {
                        layer.closeAll("loading");
                    }
                });
            }
            var listOption = {
                elem: '#wl-table'
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת¿¨/Sc_ProcessExchangeBill.html
@@ -158,17 +158,17 @@
                                    </div>
                                    <div class="layui-row">
                                        <!--<div class="layui-col-xs3 layui-inline">
                                            <label class="layui-form-label">计划开工日期</label>
                                            <div class="layui-input-inline">
                                                <input type="date" class="layui-input" name="HPlanBeginDate" id="HPlanBeginDate" style="padding-left: 32px;">
                                            </div>
                                        </div>
                                        <div class="layui-col-xs3 layui-inline">
                                            <label class="layui-form-label">计划完工日期</label>
                                            <div class="layui-input-inline">
                                                <input type="date" class="layui-input" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 32px;">
                                            </div>
                                        </div>-->
        <label class="layui-form-label">计划开工日期</label>
        <div class="layui-input-inline">
            <input type="date" class="layui-input" name="HPlanBeginDate" id="HPlanBeginDate" style="padding-left: 32px;">
        </div>
    </div>
    <div class="layui-col-xs3 layui-inline">
        <label class="layui-form-label">计划完工日期</label>
        <div class="layui-input-inline">
            <input type="date" class="layui-input" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 32px;">
        </div>
    </div>-->
                                        <div class="layui-col-xs3 layui-inline">
                                            <label class="layui-form-label">模具设备</label>
                                            <div class="layui-input-inline">
@@ -179,12 +179,24 @@
                                                </button>
                                            </div>
                                        </div>
                                        <!--<div class="layui-col-xs3 layui-inline">
                                            <label class="layui-form-label">成品编号</label>
                                        <div class="layui-col-xs3 layui-inline">
                                            <label class="layui-form-label">芯体物料代码</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HProductNum" id="HProductNum" onmouseover="this.title=this.value">
                                                <input type="text" class="layui-input" name="HXTNumber" id="HXTNumber">
                                            </div>
                                        </div>-->
                                        </div>
                                        <div class="layui-col-xs3 layui-inline">
                                            <label class="layui-form-label">芯体规格型号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HXTModel" id="HXTModel">
                                            </div>
                                        </div>
                                        <!--<div class="layui-col-xs3 layui-inline">
        <label class="layui-form-label">成品编号</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" name="HProductNum" id="HProductNum" onmouseover="this.title=this.value">
        </div>
    </div>-->
                                    </div>
                                    <div class="layui-row">
                                        <!--<div class="layui-col-xs3 layui-inline">
@@ -1890,6 +1902,8 @@
                            $("#HCusNumber").val(data.源单客户编码);
                            $("#HPickLabel").val(data.包装标识);
                            $("#HPickLabelNumber").val(data.包装标识编码);
                            $("#HXTNumber").val(data.芯体物料代码);
                            $("#HXTModel").val(data.芯体规格型号);
                            $("input[name='HBLFlag']").prop("checked", result.data[0].HBLFlag == 0 ? false : true);//true:选中 false:不选中
                            btnHMaterID = data.hmaterid;