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

优化保养订单查询

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