cl
2024-01-23 6dadf36ef118fbb3b2cd5aca94cde88e29fb55dc
提交 | 用户 | 时间
71e81e 1 /**
2  * 详情对话框
3  */
4 var ProductionOrderRecordsInfoDlg = {
5     data: {
6         id: "",
7         productNo: "",
8         workOrderNo: "",
9         drawingNo: "",
10         materialCode: "",
11         materialName: "",
12         locationCode: "",
13         locationName: "",
14         locationType: "",
15         productQty: "",
16         startTime: "",
17         endTime: "",
18         whetherPass: "",
19         notPassReason: "",
20         operationUser: "",
21         spareField1: "",
22         spareField2: "",
23         spareField3: "",
24         spareField4: "",
25         remarks: "",
26         serialNumber: ""
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97     //获取详情信息,填充表单
98     var ajax = new $ax(Feng.ctxPath + "/productionOrderRecords/detail?id=" + Feng.getUrlParam("id"));
99     var result = ajax.start();
100     form.val('productionOrderRecordsForm', result.data);
101
102     //表单提交事件
103     form.on('submit(btnSubmit)', function (data) {
104         var ajax = new $ax(Feng.ctxPath + "/productionOrderRecords/editItem", function (data) {
105             Feng.success("更新成功!");
106             window.location.href = Feng.ctxPath + '/productionOrderRecords'
107         }, function (data) {
108             Feng.error("更新失败!" + data.responseJSON.message)
109         });
110         ajax.set(data.field);
111         ajax.start();
112
113         return false;
114     });
115
116     $('#cancel').click(function(){
117         window.location.href = Feng.ctxPath + '/productionOrderRecords'
118     });
119 });