王 垚
2022-08-11 91598d2fab82becd10f38f362ec539f29f1c1e6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
layui.define(['form', 'table'], function (exports) {
    form = layui.form
    , table = layui.table;
    var where = "";
 
    ///加载显示数据
    RoadHBillNo = function (sqlWhere) {
        where = sqlWhere;
        $.ajax({
            type: "get",
            url: "http://localhost:8083/Web/GetSup_PODemandPlanBilList",
            async: true,
            data: "{'msg':'',{'NowPage':'1',{'OnePage':'10',{'sqlWhere':'" + sqlWhere + "'}",
            success: function (result) {
                ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                table.reload('test-table-reload', {
                    data: ajaxReturnData
                    , height: 'full-10'
                    , loading: false
                    , done: function (index, res) {
 
                    }
                });
            },
            error: function (result) {
                console.log(result);
                //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
            }
        });
    }
    ///加载标签记录
    RoadLabelPrint = function (sqlWhere) {
        where = sqlWhere;
        $.ajax({
            type: "get",
            url: "http://127.0.0.1:8081/LCFlatForm/GetLabelPrintDetail",
            async: true,
            data: {
                "sqlWhere": sqlWhere
            },
            success: function (result) {
                ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                table.reload('LabelPrintList', {
                    data: ajaxReturnData
                    , height: 'full-10'
                    , loading: false
                    , done: function (index, res) {
 
                    }
                });
            },
            error: function (result) {
                console.log(result);
                //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
            }
        });
    }
});