yantian yue
2023-10-23 0d7d6a88080dc8759ef84ed5ad7875f25642df6c
提交 | 用户 | 时间
ffeba3 1 /**
2  * 添加或者修改页面
3  */
4 var FormulaChildInfoInfoDlg = {
5     data: {
6         id: "",
7         formulaCode: "",
8         lineCode: "",
9         locationCode: "",
10         productCode: "",
11         operationSteps: "",
12         techRequirement: "",
13         operationType: "",
14         stepSort: "",
15         paramCode: "",
16         materialCode: "",
17         picture: "",
18         remarks: "",
19         spareField1: "",
20         spareField2: "",
21         spareField3: "",
22         spareField4: "",
23         createUser: "",
24         createTime: "",
25         updateUser: "",
26         updateTime: ""
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     form.on('submit(btnSubmit)', function (data) {
38         var ajax = new $ax(Feng.ctxPath + "/formulaChildInfo/addItem", function (data) {
39             Feng.success("添加成功!");
40             admin.putTempData('formOk', true);
41             admin.closeThisDialog();
42
43         }, function (data) {
44             Feng.error("添加失败!" + data.responseJSON.message)
45         });
46         ajax.set(data.field);
47         ajax.start();
48
49         return false;
50     });
51
52     $('#cancel').click(function(){
53         // window.location.href = Feng.ctxPath + '/formulaChildInfo'
54         admin.closeThisDialog();
55     });
56
57 });