wtt
2024-11-06 f4bc4d65ba74f8bbf4c0a71babd83bde04b531c6
WebTM/views/É豸¹ÜÀí/É豸¹æ³Ìµ¥/Sb_EquipMaintainRuleEdit.html
@@ -9,6 +9,7 @@
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <script src="../../../layuiadmin/PageTitle.js"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
    <style type="text/css">
        .layui-form-label {
            width: 85px;
@@ -220,6 +221,13 @@
            //判断操作类型
            if (OperationType == 1) {//无源新增
                set_AddFNew();
            }
            else if (OperationType == 2) {//如果修改则走下面 new                                        //编辑
                set_EditFromGrid(linterid);
                //初始化日期
                $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
                get_MAXNum();
                OperationType = 1;
            }
            else if (OperationType == 3) {//编辑
                set_EditFromGrid(linterid);
@@ -527,8 +535,8 @@
                            console.log(result)
                            var data = result.data.h_v_Sb_EquipMaintainRuleBillList[0];
                            form.val("component-form-group", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                                "HBillNo": data.单据号
                                , "HDate": formatDate(data.日期)
                                "HBillNo": OperationType == 2 ? "" :data.单据号
                                , "HDate": OperationType == 2 ? "" :formatDate(data.日期)
                                , "HInnerBillNo": data.内部单据号
                                , "HExplanation": data.摘要               //摘要
                                , "HRemark": data.备注