cl
2024-01-23 6dadf36ef118fbb3b2cd5aca94cde88e29fb55dc
提交 | 用户 | 时间
71e81e 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     var ajax = new $ax(Feng.ctxPath + "/kanbanConf/detail?id=" + Feng.getUrlParam("id"));
29     var result = ajax.start();
30     form.val('kanbanConfForm', result.data);
31
32     //表单提交事件
33     form.on('submit(btnSubmit)', function (data) {
34         var ajax = new $ax(Feng.ctxPath + "/materialRegistration/editKanBanConfItem", function (data) {
35             Feng.success("更新成功!");
36             //关掉对话框
37             admin.closeThisDialog();
38
39             window.parent.location.reload()
40         }, function (data) {
41             Feng.error("更新失败!" + data.responseJSON.message)
42         });
43         ajax.set(data.field);
44         ajax.start();
45
46         return false;
47     });
48
49 });