cl
2024-01-23 6dadf36ef118fbb3b2cd5aca94cde88e29fb55dc
提交 | 用户 | 时间
71e81e 1 /**
2  * 添加或者修改页面
3  */
4 var PassingStationCollectionInfoDlg = {
5     data: {
6         id: "",
7         workOrderNo: "",
8         sfcCode: "",
9         productCode: "",
10         productionLine: "",
11         locationCode: "",
12         equipmentNo: "",
13         inboundTime: "",
14         outboundTime: "",
15         inRsSign: "",
16         inMsgSign: "",
17         outRsSign: "",
18         outMsgSign: "",
19         collectionTime: "",
20         spareField1: "",
21         spareField2: "",
22         createUser: "",
23         createTime: "",
24         updateUser: "",
25         updateTime: ""
26     }
27 };
28
29 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
30     var $ = layui.jquery;
31     var $ax = layui.ax;
32     var form = layui.form;
33     var admin = layui.admin;
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
75
76
77
78
79
80
81     //表单提交事件
82     form.on('submit(btnSubmit)', function (data) {
83         var ajax = new $ax(Feng.ctxPath + "/passingStationCollection/addItem", function (data) {
84             Feng.success("添加成功!");
85             window.location.href = Feng.ctxPath + '/passingStationCollection'
86         }, function (data) {
87             Feng.error("添加失败!" + data.responseJSON.message)
88         });
89         ajax.set(data.field);
90         ajax.start();
91
92         return false;
93     });
94
95     $('#cancel').click(function(){
96         window.location.href = Feng.ctxPath + '/passingStationCollection'
97     });
98
99 });