yangle
2024-06-11 865eb3bcd1a25d5f9233f85c2549c6fe3da3ceb0
WebTM/views/ÖÊÁ¿¹ÜÀí/¹¤×÷ÁªÏµµ¥/OA_Reply_WorkLinkBill.html
@@ -15,6 +15,7 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <style type="text/css">
        .layui-form-label {
@@ -109,7 +110,7 @@
                                                        <div class="layui-input-inline">
                                                            <input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" disabled autocomplete="off" style="background-color: #f7f4f4; ">
                                                            <input id="HInterID" name="HInterID" type="hidden" />
                                                            <input id="HEntryID" name="HEntryID" type="hidden" />
                                                            <input id="HEntryID" name="HEntryID" value="0" type="hidden" />
                                                        </div>
                                                    </div>
                                                    <div class="layui-inline">
@@ -259,6 +260,14 @@
                                                        <label class="layui-form-label">催促次数:</label>
                                                        <div class="layui-input-inline">
                                                            <input class="layui-input" name="HHasten" lay-verify="HHasten" id="HHasten" autocomplete="off" value="0" disabled>
                                                        </div>
                                                    </div>
                                                    <div class="layui-inline">
                                                        <div class="layui-input-inline">
                                                            <input class="layui-input" name="HSourceBillNo" lay-verify="HSourceBillNo" id="HSourceBillNo" disabled autocomplete="off" type="hidden">
                                                            <input id="HSourceInterID" name="HSourceInterID" value="0" type="hidden" />
                                                            <input id="HSourceEntryID" name="HSourceEntryID" value="0" type="hidden" />
                                                            <input id="HSourceBillType" name="HSourceBillType" value="0" type="hidden" />
                                                        </div>
                                                    </div>
                                                </div>
@@ -417,9 +426,19 @@
                set_AddFNew();
            }
            else if (OperationType == 2) {//有源单
                /*set_AddNew();*/
                var datajson;
                var str = window.location.search; //获取链接中传递的参数
                var arr = str.substring(str.lastIndexOf("=") + 1);
                datajson = $.parseJSON(decodeURI(arr));
                $("#HSourceInterID").val(datajson.HRelationInterID);
                $("#HSourceEntryID").val(datajson.HRelationEntryID);
                $("#HSourceBillNo").val(datajson.HRelationBillNo);
                $("#HSourceBillType").val(datajson.HRelationBillType);
                set_EditFromGrid();
                get_Display(sWhere);
            }
            else if (OperationType == 3) {//编辑/回复,这里是回复
                set_EditFromGrid();
                get_Display(sWhere);
            }
@@ -493,55 +512,6 @@
                $("#HDeptName").val(sessionStorage["HDept"]);  //部门
            }
            //#region æœ‰æºå•新增
            //function set_AddNew() {
            //    refSav = "Add";
            //    //初始基本信息赋值
            //    $("#HDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss"));      //单据日期
            //    $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd hh:mm:ss"));  //制单日期
            //    $("#HMaker").val(sessionStorage["HUserName"]);     //制单人
            //    $("#HSendMan").val(sessionStorage["HUserName"]);   //发送人
            //    $("#HDeptID").val(sessionStorage["HDeptID"]);  //部门ID
            //    $("#HDeptName").val(sessionStorage["HDept"]);  //部门
            //    $.ajax(
            //        {
            //            type: "GET",
            //            url: GetWEBURL() + "/Sc_MESBeginWorkBill/GetMESBeginWorkFrom", //方法所在页面和方法名
            //            async: true,
            //            data: {
            //                "HSourceInterID": HMainSourceInterID,
            //                "HSourceEntryID": HMainSourceEntryID,
            //                "HSourceBillNo": HMainSourceBillNo,
            //                "HSourceBillType": HBillType
            //            },
            //            dataType: "json",
            //            success: function (data) {
            //                if (data.count == 1)// è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
            //                {
            //                    var LoadData = data.data.h_p_JIT_GetInfoByICMOStatusInterID;
            //                    $("#HMaterName").val(LoadData[0].HMaterName); //产品名称
            //                    $("#HMaterModel").val(LoadData[0].HModel); //产品规格
            //                    $("#HMainSourceBillNo").val(LoadData[0].HICMOBillNo); //源单单号(暂时取值订单编号)
            //                    $("#HMainSourceInterID").val(LoadData[0].HSourceInterID); //源单主内码(取值HInterID)
            //                    $("#HMainSourceEntryID").val(LoadData[0].HSourceEntryID); //源单子内码(源单行号)
            //                    $("#HMainSourceBillType").val(LoadData[0].HSourceBillType); //源单类型
            //                    $("#HQty").val(LoadData[0].HDatePlanQty); //计划数量
            //                    Qty = LoadData[0].HDatePlanQty;
            //                }
            //                else {
            //                    layer.alert(data.Message, { icon: 5 });
            //                }
            //            },
            //            error: function (err) {
            //                layer.alert(err, { icon: 5 });
            //            }
            //        });
            //}
            //#endregion
            //编辑
            function set_EditFromGrid() {
                refSav = "Update";
@@ -558,7 +528,7 @@
                            var data = result.data[0];
                            form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                "HInterID": data.HInterID
                                , "HEntryID": data.HEntryID
                               /* , "HEntryID": data.HEntryID*/
                                , "HBillNo": data.HBillNo
                                , "HDate": formatDate(data.HDate)
                                , "HContext": data.HContext
@@ -577,6 +547,10 @@
                                , "HRelationEntryID": data.HRelationEntryID                 //关联单子ID
                                , "HRelationBillNo": data.HRelationBillNo                   //关联单单号
                                , "HRelationBillType": data.HRelationBillType               //关联单类型
                                //, "HSourceInterID": data.HSourceInterID                 //源单ID
                                //, "HSourceEntryID": data.HSourceEntryID                 //源单子ID
                                //, "HSourceBillNo": data.HSourceBillNo                   //源单单号
                                //, "HSourceBillType": data.HSourceBillType               //源单类型
                                , "HMaker": data.HMaker                            //制单人
                                , "HMakeDate": data.HMakeDate                      //制单日期
                                , "HUpDater": sessionStorage["HUserName"]             //修改人