cl
2024-01-23 6dadf36ef118fbb3b2cd5aca94cde88e29fb55dc
提交 | 用户 | 时间
71e81e 1 /**
2  * 添加或者修改页面
3  */
4 var RepairManageInfoInfoDlg = {
5     data: {
6         id: "",
7         sfc: "",
8         productionLine: "",
9         locationCode: "",
10         workOrderNo: "",
11         productCode: "",
12         productName: "",
13         manageType: "",
14         upPlc: "",
15         operateTime: "",
16         operateUser: "",
17         spareField1: "",
18         spareField2: "",
19         spareField3: "",
20         spareField4: ""
21     }
22 };
23
24 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
25     var $ = layui.jquery;
26     var $ax = layui.ax;
27     var form = layui.form;
28     var admin = layui.admin;
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73     //表单提交事件
74     form.on('submit(btnSubmit)', function (data) {
75         var ajax = new $ax(Feng.ctxPath + "/repairManageInfo/addItem", function (data) {
76             Feng.success("添加成功!");
77             window.location.href = Feng.ctxPath + '/repairManageInfo'
78         }, function (data) {
79             Feng.error("添加失败!" + data.responseJSON.message)
80         });
81         ajax.set(data.field);
82         ajax.start();
83
84         return false;
85     });
86
87     $('#cancel').click(function(){
88         window.location.href = Feng.ctxPath + '/repairManageInfo'
89     });
90
91 });