yantian yue
2023-10-18 f4a3430eb6b6800d4ef7330293dd8fb834eee196
提交 | 用户 | 时间
4779be 1 /**
2  * 详情对话框
3  */
4 var KanbanConfInfoDlg = {
5     data: {
6         id: "",
7         pageCode: "",
8         ipAddress: "",
9         macAddress: "",
10         workshopCode: "",
11         workshopName: "",
12         lineCode: "",
13         lineName: "",
14         locationCode: "",
15         locationName: "",
16         warehouseCode: "",
17         warehouseName: ""
18     }
19 };
20
21 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
22     var $ = layui.jquery;
23     var $ax = layui.ax;
24     var form = layui.form;
25     var admin = layui.admin;
26
27
28
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     var ajax = new $ax(Feng.ctxPath + "/kanbanConf/detail?id=" + Feng.getUrlParam("id"));
63     var result = ajax.start();
64     form.val('kanbanConfForm', result.data);
65
66     //表单提交事件
67     form.on('submit(btnSubmit)', function (data) {
68         var ajax = new $ax(Feng.ctxPath + "/kanbanConf/editItem", function (data) {
69             Feng.success("更新成功!");
70             window.location.href = Feng.ctxPath + '/kanbanConf'
71         }, function (data) {
72             Feng.error("更新失败!" + data.responseJSON.message)
73         });
74         ajax.set(data.field);
75         ajax.start();
76
77         return false;
78     });
79
80     $('#cancel').click(function(){
81         window.location.href = Feng.ctxPath + '/kanbanConf'
82     });
83 });