wtt
2024-11-06 f4bc4d65ba74f8bbf4c0a71babd83bde04b531c6
WebTM/views/É豸¹ÜÀí/É豸¹æ³Ìµ¥/Sb_EquipDotCheckRuleEdit.html
@@ -188,6 +188,14 @@
                Stverf = "Add";
                set_AddFNew();
            }
            else if (OperationType == 2) {//如果修改则走下面 new                                        //编辑
                Stverf = "Add";
                set_EditFromGrid();
                //初始化日期
                $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
                get_MAXNum();
                OperationType = 1;
            }
            else if (OperationType == 3) {//编辑
                Stverf = "Update";
                set_EditFromGrid();
@@ -552,9 +560,9 @@
                            //console.log(result)
                            var data = d.data.h_v_Sb_EquipDotCheckRuleList[0];
                            form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                "HBillNo": data.单据号
                                , "HInterID": data.hmainid
                                , "HDate": formatDate(data.日期)
                                "HBillNo": OperationType == 2 ? "" :data.单据号
                                , "HInterID": OperationType == 2 ? "" :data.hmainid
                                , "HDate": OperationType == 2 ? "" :formatDate(data.日期)
                                , "HBeginDate": formatDate(data.计划开始日期)
                                , "HEndDate": formatDate(data.计划结束日期)
                                , "HCheckCycle": data.点检周期