懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1 /**
2  * 详情对话框
3  */
4 var SalesOrderChildInfoDlg = {
5     data: {
6         id: "",
7         salesOrderCode: "",
8         customerNo: "",
9         cargoNo: "",
10         productCode: "",
11         productName: "",
12         planNumber: "",
13         planStartTime: "",
14         planEndTime: "",
15         workshopCode: "",
16         lineCode: "",
17         deliveryTime: "",
18         createUser: "",
19         createTime: ""
20     }
21 };
22
23 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
24     var $ = layui.jquery;
25     var $ax = layui.ax;
26     var form = layui.form;
27     var admin = layui.admin;
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
63     //获取详情信息,填充表单
64     var ajax = new $ax(Feng.ctxPath + "/salesOrderChild/detail?id=" + Feng.getUrlParam("id"));
65     var result = ajax.start();
66     form.val('salesOrderChildForm', result.data);
67
68     //表单提交事件
69     form.on('submit(btnSubmit)', function (data) {
70         var ajax = new $ax(Feng.ctxPath + "/salesOrderChild/editItem", function (data) {
71             Feng.success("更新成功!");
72             window.location.href = Feng.ctxPath + '/salesOrderChild'
73         }, function (data) {
74             Feng.error("更新失败!" + data.responseJSON.message)
75         });
76         ajax.set(data.field);
77         ajax.start();
78
79         return false;
80     });
81
82     $('#cancel').click(function(){
83         window.location.href = Feng.ctxPath + '/salesOrderChild'
84     });
85 });