@@ -208,11 +197,7 @@
{
field: 'suborderNo',
align: 'center',
- title: '子订单编号',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '子订单编号'
},
{
@@ -220,98 +205,61 @@
align: 'center',
title: '子订单类型',
formatter: function(value, row, index) {
- var name = $.common.sprintf("zcOrderSubList[%s].suborderType", index);
- return $.common.dictToSelect(suborderTypeDatas, value, name);
+ return $.table.selectDictLabel(suborderTypeDatas, value);
}
},
{
field: 'amount',
align: 'center',
- title: '订单金额',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '订单金额'
},
{
field: 'paymentMethod',
align: 'center',
- title: '支付方式',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '支付方式'
},
{
field: 'vinBatteryNo',
align: 'center',
- title: '车架/电池编号',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '车架/电池编号'
},
{
field: 'createdAt',
align: 'center',
- title: '订单产生时间',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '订单产生时间'
},
{
field: 'paymentId',
align: 'center',
- title: '支付ID',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '支付'
},
{
field: 'paidAt',
align: 'center',
- title: '实际支付时间',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '实际支付时间'
},
{
field: 'remark',
align: 'center',
- title: '备注',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '备注'
},
{
field: 'createTime',
align: 'center',
- title: '创建时间',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '创建时间'
},
{
field: 'updateTime',
align: 'center',
- title: '更新时间',
- formatter: function(value, row, index) {
- var html = $.common.sprintf("
", index, value);
- return html;
- }
+ title: '更新时间'
},
]
diff --git a/ruoyi-admin/src/main/resources/templates/orders/order/order.html b/ruoyi-admin/src/main/resources/templates/orders/order/order.html
index d22003b..a6c6be9 100644
--- a/ruoyi-admin/src/main/resources/templates/orders/order/order.html
+++ b/ruoyi-admin/src/main/resources/templates/orders/order/order.html
@@ -90,6 +90,7 @@
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
+ detailUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "租车订单",
@@ -113,15 +114,15 @@
}
},
{
- field: 'operatorId',
+ field: 'operatorName',
title: '所属运营商'
},
{
- field: 'storeId',
+ field: 'storeName',
title: '所属门店'
},
{
- field: 'vehicleId',
+ field: 'licensePlate',
title: '车辆'
},
{
@@ -176,7 +177,7 @@
align: 'center',
formatter: function(value, row, index) {
var actions = [];
- actions.push('
查看 ');
+ actions.push('
查看 ');
//actions.push('
删除');
return actions.join('');
}