移动系统liao
2024-05-15 d7c7a6e9d05eec7b38b41b8ae39f373f650ca891
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
<script type="text/html" template  lay-done="layui.data.done(d);">
    <table class="layui-table layui-form" lay-filter="LAY-app-CoreCmsOrderDistributionModel-detailsForm" id="LAY-app-CoreCmsOrderDistributionModel-detailsForm">
        <colgroup>
            <col width="100">
            <col>
        </colgroup>
        <tbody>
            
            <tr>
                <td>
                    <label for="id">序列</label>
                </td>
                <td>
                    {{ d.params.data.id || '' }}
                </td>
            </tr>
            
            <tr>
                <td>
                    <label for="orderType">订单类型</label>
                </td>
                <td>
                    {{ d.params.data.orderType || '' }}
                </td>
            </tr>
            
            <tr>
                <td>
                    <label for="description">描述</label>
                </td>
                <td>
                    {{ d.params.data.description || '' }}
                </td>
            </tr>
            
            <tr>
                <td>
                    <label for="isOpenMailing">物流快递</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isOpenMailing" value="{{d.params.data.isOpenMailing}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isOpenMailing" {{ d.params.data.isOpenMailing ? 'checked' : '' }}>
                </td>
            </tr>
            
            <tr>
                <td>
                    <label for="isOpenHomeDelivery">同城配送</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isOpenHomeDelivery" value="{{d.params.data.isOpenHomeDelivery}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isOpenHomeDelivery" {{ d.params.data.isOpenHomeDelivery ? 'checked' : '' }}>
                </td>
            </tr>
            
            <tr>
                <td>
                    <label for="isOpenSelfDelivery">上门自提</label>
                </td>
                <td>
                    <input type="checkbox" disabled name="isOpenSelfDelivery" value="{{d.params.data.isOpenSelfDelivery}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="isOpenSelfDelivery" {{ d.params.data.isOpenSelfDelivery ? 'checked' : '' }}>
                </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-CoreCmsOrderDistributionModel-detailsForm');
        });
    };
</script>