WebTM/views/Éú²ú¹ÜÀí/ÖÊÁ¿»ã±¨µ¥/Sc_QualityReportBillSumSave.html
@@ -50,7 +50,7 @@
                                    <div class="layui-row">
                                        <div class="layui-col-xs4  layui-inline">
                                            <label class="layui-form-label">单据号<label style="color:red"> * </label></label>
                                            <div class="layui-input-inline" >
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HBillNo_bak" lay-verify="HBillNo_bak" id="HBillNo_bak" style="background-color:#efefef4d;" readonly>
                                                <input type="hidden" name="HInterID" id="HInterID" lay-verify="HInterID">
                                            </div>
@@ -76,6 +76,13 @@
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HProcNo" id="HProcNo" style="background-color:#efefef4d;" readonly>
                                                <input type="hidden" name="HProcID" id="HProcID" value="0">
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline" style="display:none">
                                            <label class="layui-form-label">计量单位</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HUnitName" id="HUnitName" value="" style="background-color:#efefef4d;" readonly>
                                                <input type="hidden" class="layui-input" name="HUnitID" id="HUnitID" value="0" style="background-color:#efefef4d;" readonly>
                                            </div>
                                        </div>
                                    </div>
@@ -230,6 +237,8 @@
        var HProcExchBillNo = "";     // å·¥åºæµè½¬å¡å·
        var HProcID = "";           //工序
        var HProcNo = "";           //工序名称
        var HUnitID = "";           //计量单位id
        var HUnitName = "";           //计量单位
        var HInterID = "";
        var HBillNo_bak = "";
       
@@ -246,6 +255,8 @@
            HGroupName = data[0].HGroupName;
            HSourceID = data[0].HSourceID;
            HSourceName = data[0].HSourceName;
            HUnitID = data[0].HUnitID;
            HUnitName = data[0].HUnitName;
            HICMOInterID = data[0].HICMOInterID
            HICMOEntryID = data[0].HICMOEntryID;
            HICMOBillNo = data[0].HICMOBillNo
@@ -317,6 +328,8 @@
                $("#HGroupName").val(HGroupName);
                $("#HSourceID").val(HSourceID);
                $("#HSourceName").val(HSourceName);
                $("#HUnitID").val(HUnitID);
                $("#HUnitName").val(HUnitName);
                $("#HICMOInterID").val(HICMOInterID);
                $("#HICMOEntryID").val(HICMOEntryID);
                $("#HICMOBillNo").val(HICMOBillNo);
@@ -327,14 +340,6 @@
                $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd"));
                //初始化项目阶段表
                get_InitGrid();
                //初始化制单人和制单时间
                //$("#HGroupID").val(sessionStorage["HGroupID"]); //根据登录用户带出班组ID
                //$("#HGroupName").val(sessionStorage["HGroup"]); //根据登录用户带出班组
                //$("#HSourceID").val(sessionStorage["HSourceID"]); //根据登录用户带出班组ID
                //$("#HSourceName").val(sessionStorage["HSource"]); //根据登录用户带出班组
            }
           
@@ -349,10 +354,6 @@
            //#endregion
            //#region è§¦å‘事件:包括form.on(){}格式的所有点击事件、选择事件等
            //#region å¼¹çª—选择触发事件
            //#endregion
            //#region æ“ä½œæŒ‰é’®è§¦å‘事件
            //#region ä¿å­˜æäº¤
@@ -387,6 +388,8 @@
                    "HBillNo_bak": $("#HBillNo_bak").val(),
                    "HMaterID": $("#HMaterID").val(),
                    "HMaterName": $("#HMaterName").val(),
                    "HUnitID": $("#HUnitID").val(),
                    "HUnitName": $("#HUnitName").val(),
                    "HBadReasonID": "",
                    "HBadReasonNumber": "",
                    "HBadReasonHName": "",
@@ -396,6 +399,8 @@
                    "HGroupName": HGroupName,
                    "HSourceID": $("#HSourceID").val(),
                    "HSourceName": $("#HSourceName").val(),
                    "HProcID": $("#HProcID").val(),
                    "HProcName": $("#HProcNo").val(),
                    "HQty": "",
                    "HSourceInterID": $("#HICMOInterID").val(),
                    "HSourceEntryID": $("#HICMOEntryID").val(),
@@ -533,6 +538,8 @@
                        , { field: 'HBillNo_bak', title: '单据号', hide: true }
                        , { field: 'HMaterID', title: '物料id', hide: true }
                        , { field: 'HMaterName', title: '物料名称', style: 'background-color: #f9f9f9;' }
                        , { field: 'HUnitID', title: '计量单位id', hide: true }
                        , { field: 'HUnitName', title: '计量单位', style: 'background-color: #f9f9f9;' }
                        , { field: 'HBadReasonID', title: '不良原因id', hide: true }
                        , { field: 'HBadReasonNumber', title: '不良原因代码', edit: 'text' , event: "HBadReasonNumber"}
                        , { field: 'HBadReasonHName', title: '不良原因', style: 'background-color: #f9f9f9;' }
@@ -542,6 +549,8 @@
                        , { field: 'HGroupName', title: '生产班组', event: "HGroupName" }
                        , { field: 'HSourceID', title: '生产资源id', hide: true }
                        , { field: 'HSourceName', title: '生产资源', event: "HSourceName" }
                        , { field: 'HProcID', title: '工序id', hide: true }
                        , { field: 'HProcName', title: '工序', event: "HSourceName" }
                        , { field: 'HQty', title: '不良数量', edit: 'text' }
                        , { field: 'HSourceInterID', title: '源单内码', hide: true, style: 'background-color: #f9f9f9;' }     
                        , { field: 'HSourceEntryID', title: '源单子内码', hide: true, style: 'background-color: #f9f9f9;' }   
@@ -565,6 +574,8 @@
                        "HBillNo_bak": $("#HBillNo_bak").val(),
                        "HMaterID": $("#HMaterID").val(),
                        "HMaterName": $("#HMaterName").val(),
                        "HUnitID": $("#HUnitID").val(),
                        "HUnitName": $("#HUnitName").val(),
                        "HBadReasonID": "",
                        "HBadReasonNumber": "",
                        "HBadReasonHName": "",
@@ -574,6 +585,8 @@
                        "HGroupName": HGroupName,
                        "HSourceID": $("#HSourceID").val(),
                        "HSourceName": $("#HSourceName").val(),
                        "HProcID": $("#HProcID").val(),
                        "HProcName": $("#HProcNo").val(),
                        "HQty": "",
                        "HSourceInterID": $("#HICMOInterID").val(),
                        "HSourceEntryID": $("#HICMOEntryID").val(),