cl
2024-01-23 6dadf36ef118fbb3b2cd5aca94cde88e29fb55dc
提交 | 用户 | 时间
71e81e 1 /**
2  * 详情对话框
3  */
4 var ParamCollectionInfoDlg = {
5     data: {
6         id: "",
7         workOrderNo: "",
8         sfcCode: "",
9         productCode: "",
10         productionLine: "",
11         locationCode: "",
12         equipmentNo: "",
13         paramCode: "",
14         paramValue: "",
15         paramUpper: "",
16         paramLower: "",
17         paramStandard: "",
18         collectionTime: "",
19         spareField1: "",
20         spareField2: "",
21         createUser: "",
22         createTime: "",
23         updateUser: "",
24         paramName: "",
25         unit: "",
26         updateTime: ""
27     }
28 };
29
30 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
31     var $ = layui.jquery;
32     var $ax = layui.ax;
33     var form = layui.form;
34     var admin = layui.admin;
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
75
76
77
78
79     //获取详情信息,填充表单
80     var ajax = new $ax(Feng.ctxPath + "/paramCollection/detail?id=" + Feng.getUrlParam("id"));
81     var result = ajax.start();
82     form.val('paramCollectionForm', result.data);
83
84     //表单提交事件
85     form.on('submit(btnSubmit)', function (data) {
86         var ajax = new $ax(Feng.ctxPath + "/paramCollection/editItem", function (data) {
87             Feng.success("更新成功!");
88             window.location.href = Feng.ctxPath + '/paramCollection'
89         }, function (data) {
90             Feng.error("更新失败!" + data.responseJSON.message)
91         });
92         ajax.set(data.field);
93         ajax.start();
94
95         return false;
96     });
97
98     $('#cancel').click(function(){
99         window.location.href = Feng.ctxPath + '/paramCollection'
100     });
101 });