| | |
| | | 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(); |
| | |
| | | //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.ç¹æ£å¨æ |