提交 f55aeae6 编写于 作者: doc_wei's avatar doc_wei

优化保养订单查询

上级 1cee3c19
......@@ -14,7 +14,7 @@ layui.config({
// 加载区域
shopUtil.getShopAreaMation(function (json){
$("#areaId").html(getDataUseHandlebars(selOption, json));
$("#areaId").html(getDataUseHandlebars($("#selectTemplate").html(), json));
form.render('select');
});
form.on('select(areaId)', function(data) {
......
......@@ -14,7 +14,7 @@ layui.config({
// 加载区域
shopUtil.getShopAreaMation(function (json){
$("#areaId").html(getDataUseHandlebars(selOption, json));
$("#areaId").html(getDataUseHandlebars($("#selectTemplate").html(), json));
form.render('select');
});
form.on('select(areaId)', function(data) {
......@@ -54,7 +54,7 @@ layui.config({
return shopUtil.getMealOrderStateName(d);
}},
{ field: 'natureName', title: '订单性质', width: 80, rowspan: '2', align: "center"},
{ field: 'label', title: '员工标签', width: 120, align: "left"},
{ field: 'label', title: '员工标签', width: 120, rowspan: '2', align: "left"},
{ field: 'payTime', title: '支付时间', align: 'center', rowspan: '2', width: 150 },
{ field: 'type', title: '订单来源', width: 80, align: "center", rowspan: '2', templet: function(d){
if(d.type == 1){
......
......@@ -81,6 +81,8 @@
</div>
<script type="text/x-handlebars-template" id="selectTemplate">
<option value="">全部</option>
<option value="-">默认区域</option>
{{#each rows}}
<option value="{{id}}">{{name}}</option>
{{/each}}
......
......@@ -73,6 +73,8 @@
</div>
<script type="text/x-handlebars-template" id="selectTemplate">
<option value="">全部</option>
<option value="-">默认区域</option>
{{#each rows}}
<option value="{{id}}">{{name}}</option>
{{/each}}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册