diff --git a/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java b/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java index d4b6402..a5257b3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java @@ -8,6 +8,7 @@ import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; +import org.springframework.data.annotation.Transient; /** * 租车订单对象 zc_order_main @@ -27,23 +28,32 @@ public class ZcOrderMain extends BaseEntity private String orderNo; /** 订单状态:下单未提车、租赁中、已结束-自动、已结束-手动 */ - @Excel(name = "订单状态:下单未提车、租赁中、已结束-自动、已结束-手动") + @Excel(name = "订单状态",dictType = "key_order_status") private String orderStatus; /** 所属运营商ID */ - @Excel(name = "所属运营商ID") private Long operatorId; + @Transient + @Excel(name = "所属运营商") + private String operatorName; + + /** 所属门店名称 */ + @Transient + @Excel(name = "所属门店") + private String storeName; + /** 所属门店ID */ - @Excel(name = "所属门店ID") private Long storeId; /** 车辆ID */ - @Excel(name = "车辆ID") + @Transient + @Excel(name = "车辆") + private String licensePlate; + private Long vehicleId; /** 客户id */ - @Excel(name = "客户id") private Long customerId; /** 客户姓名 */ @@ -55,7 +65,7 @@ public class ZcOrderMain extends BaseEntity private String customerPhone; /** 租赁类型(时租/日租/按天数/以租代售) */ - @Excel(name = "租赁类型(时租/日租/按天数/以租代售)") + @Excel(name = "租赁类型",dictType = "key_order_rental_type") private String rentalType; /** 租赁天数(当类型为"按天数"时使用) */ @@ -105,11 +115,9 @@ public class ZcOrderMain extends BaseEntity private Long chargeTimes; /** 租车套餐id */ - @Excel(name = "租车套餐id") private Long rentCarRuleId; /** 租电套餐id */ - @Excel(name = "租电套餐id") private Long rentBatteyRuleId; /** 删除标志(0代表存在 2代表删除) */ @@ -345,6 +353,30 @@ public class ZcOrderMain extends BaseEntity this.zcOrderSubList = zcOrderSubList; } + public String getOperatorName() { + return operatorName; + } + + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + public String getStoreName() { + return storeName; + } + + public void setStoreName(String storeName) { + this.storeName = storeName; + } + + public String getLicensePlate() { + return licensePlate; + } + + public void setLicensePlate(String licensePlate) { + this.licensePlate = licensePlate; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml b/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml index 7a6980c..bb2c5e7 100644 --- a/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml @@ -31,6 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + @@ -59,37 +62,46 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html index a491033..7d0de82 100644 --- a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html +++ b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html @@ -26,17 +26,17 @@
- +
- +
- +
@@ -133,18 +133,7 @@
-
- -
- -
-
-
- -
- -
-
+

租车子订单信息

@@ -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(''); }