This commit is contained in:
parent
dcc628e43c
commit
4be6e699d9
|
|
@ -48,6 +48,9 @@
|
||||||
<th:block th:include="include :: layout-latest-js"/>
|
<th:block th:include="include :: layout-latest-js"/>
|
||||||
<th:block th:include="include :: ztree-js"/>
|
<th:block th:include="include :: ztree-js"/>
|
||||||
<script th:inline="javascript">
|
<script th:inline="javascript">
|
||||||
|
var payTypes = [[${@dict.getType('pay_type')}]];
|
||||||
|
var orderTypes = [[${@dict.getType('goods_category_type')}]];
|
||||||
|
|
||||||
var editFlag = [[${@permission.hasPermi('order:order:edit')}]];
|
var editFlag = [[${@permission.hasPermi('order:order:edit')}]];
|
||||||
var prefix = ctx + "order/master";
|
var prefix = ctx + "order/master";
|
||||||
|
|
||||||
|
|
@ -94,7 +97,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'orderType',
|
field: 'orderType',
|
||||||
title: '订单类型'
|
title: '订单类型',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
return $.table.selectDictLabel(orderTypes, value);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'orderStatus',
|
field: 'orderStatus',
|
||||||
|
|
@ -102,7 +109,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'payType',
|
field: 'payType',
|
||||||
title: '付款类型'
|
title: '付款类型',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
return $.table.selectDictLabel(payTypes, value);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'payStatus',
|
field: 'payStatus',
|
||||||
|
|
@ -124,12 +135,24 @@
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
sortable: true
|
sortable: true
|
||||||
}
|
}, {
|
||||||
]
|
title: '操作',
|
||||||
|
align: 'left',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="detail(\'' + row.id + '\')"><i class="fa fa-edit"></i>详情</a> ');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
};
|
};
|
||||||
$.table.init(options);
|
$.table.init(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function detail(id) {
|
||||||
|
var url = prefix ;
|
||||||
|
$.modal.open("字典数据", url);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue