username@email.com
2024-05-29 3c69868ae407c0cee2bfd4a75f1c62b1854c5c66
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<script type="text/html" template  lay-done="layui.data.done(d);">
    <table class="layui-table layui-form" lay-filter="LAY-app-Puhuo-detailsForm" id="LAY-app-Puhuo-detailsForm">
        <colgroup>
            <col width="100">
            <col>
        </colgroup>
        <tbody>
 
            <tr>
                <td style="background-color:lightsteelblue;width:12.5%;">
                    区域
                </td>
                <td style="background-color: lightsteelblue; width: 12.5%;">
                    经销商
                </td>
                <td style="background-color: lightsteelblue; width: 12.5%;">
                    商品类别
                </td>
                <td style="background-color: lightsteelblue; width: 12.5%;">
                    商品名称
                </td>
                <td style="background-color: lightsteelblue; width: 20%;">
                    货品编号
                </td>
                <td style="background-color: lightsteelblue; width: 10%;">
                    数量
                </td>
                <td style="background-color: lightsteelblue; width: 10%;">
                    单价(元)
                </td>
                <td style="background-color: lightsteelblue; width: 10%;">
                    金额(元)
                </td>
            </tr>
 
            {{# layui.each(d.params.data.puhuos, function(index, item){ }}
        <tr>
            <td>
                {{ item.areaCodeName }}
            </td>
            <td>
                {{ item.distributionName }}
            </td>
            <td>
                {{ item.categoryName }}
            </td>
            <td>
                {{ item.goodsName }}
            </td>
            <td>
                {{ item.productsName }}
            </td>
            <td>
                {{ item.nums }}
            </td>
            <td>
                {{ item.price }}
            </td>
            <td>
                {{ item.amount }}
            </td>
        </tr>
            {{# }); }}
 
          
 
        </tbody>
    </table>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
 
        layui.use(['admin', 'form', 'coreHelper'], function () {
            var $ = layui.$
                , setter = layui.setter
                , admin = layui.admin
                , coreHelper = layui.coreHelper
                , form = layui.form;
            form.render(null, 'LAY-app-Puhuo-detailsForm');
        });
    };
</script>