wzy
2021-04-01 d388e2788b7ef088d7cd40f901b0acdcec460bc3
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
    th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
<script type="text/javascript"
    th:src="@{/js/systools/MBase.js}"></script>
</head>
<body>
<div class="ibox-content">
        <form class="form-horizontal" id="dataform" onsubmit="javascript:return false;">
            <input autocomplete="off"   type="hidden" name="tokenUrl" th:value="${tokenUrl}">
            <input autocomplete="off"   type="hidden" name="token" th:value="${token}">
            <input autocomplete="off"   type="hidden" name="storeId" th:value="${obj.storeId}">
        <div class="form-group">
            <label class="col-sm-2 control-label">门店名
            <span class="text-danger">*</span>
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeName"
                        maxLength="100" dataType="*1-100"
                    th:value="${obj.storeName}"nullmsg="门店名不能为空">
            </div>
            <label class="col-sm-2 control-label">编号
                <span class="text-danger">*</span>
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeCode"
                       maxLength="30" dataType="/^[0-9a-zA-Z_]{1,50}$/"
                       errormsg="仅支持数字、字母及'_'"
                       th:value="${obj.storeCode}"nullmsg="编号不能为空">
            </div>
 
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">经度
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeLongitude"
                        maxLength="100" dataType="/^\d*\.?\d+$/"
                       errormsg="仅支持数字"
                    th:value="${obj.storeLongitude}"nullmsg="经度不能为空">
            </div>
            <label class="col-sm-2 control-label">纬度
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeLatitude"
                        maxLength="100" dataType="/^\d*\.?\d+$/"
                       errormsg="仅支持数字"
                    th:value="${obj.storeLatitude}"nullmsg="纬度不能为空">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">联系人
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeLinkman"
                        maxLength="30" dataType="s1-30"
                    ignore="ignore"
                    th:value="${obj.storeLinkman}"nullmsg="联系人不能为空">
            </div>
            <label class="col-sm-2 control-label">联系电话
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeLinkphone"
                        maxLength="30" dataType="/^1[3456789]\d{9}$/"
                       errormsg="请输入正确手机号"
                    ignore="ignore"
                    th:value="${obj.storeLinkphone}"nullmsg="联系电话不能为空">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">营业时间
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeBusinesstime"
                        maxLength="100" dataType="s1-100"
                    ignore="ignore"
                    th:value="${obj.storeBusinesstime}"nullmsg="营业时间不能为空">
            </div>
            <label class="col-sm-2 control-label">地址
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeAddress"
                       maxLength="100" dataType="s1-100"
                       ignore="ignore"
                       th:value="${obj.storeAddress}"nullmsg="地址不能为空">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">关联ERP门店编码
            </label>
            <div class="col-sm-4">
                <input autocomplete="off"   type="text" class="form-control" name="storeMark"
                        maxLength="100" dataType="*1-100"
                    th:value="${obj.storeMark}"nullmsg="ERP门店编码不能为空">
            </div>
        </div>
        <div class="form-group ">
            <div class="col-sm-12 text-center">
                <a href="javascript:;" onclick="myForm.submit()"
                    class="btn btn-success radius"><i class="fa fa-check"></i>  保存</a>&nbsp;&nbsp;&nbsp;&nbsp; <a
                     class="btn btn-danger radius" href="javascript:;" onclick="MTools.closeForm()" ><i class="fa fa-close"></i> 关闭</a>
            </div>
        </div>
    </form>
    </div>
</body>
<script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script>
<script th:inline="javascript">
    MTools.autoFullSelect();
    $(".select2").select2();
    
    /*<![CDATA[*/
    var obj=/*[[${obj}]]*/     
    /*]]>*/
    
    var invokeUrl=basePath+"/admin/shopStore/addShopStore";
    if(obj.storeId!=null){
       invokeUrl = basePath+"/admin/shopStore/modifyShopStore";
    }
    var myForm=MForm.initForm({
        invokeUrl:invokeUrl,
        afterSubmit:function(){
            parent.myGrid.serchData();
        },
    });
</script>
</body>
</html>