Commit f52b3ad6db2c132c4b86717ee60f2873240d2a72
1 parent
f49246a4
fix: 复制订单排序
Showing
1 changed file
with
1 additions
and
1 deletions
src/pages/Order/OrderList/OrderDrawer.tsx
@@ -896,7 +896,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -896,7 +896,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
896 | 896 | ||
897 | const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; | 897 | const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
898 | values.productBelongBusinessUpdateTime = formattedDate; | 898 | values.productBelongBusinessUpdateTime = formattedDate; |
899 | - } else if (optType('add')) { | 899 | + } else if (optType('add') || optType('copy')) { |
900 | const date = new Date(); | 900 | const date = new Date(); |
901 | const year = date.getFullYear(); | 901 | const year = date.getFullYear(); |
902 | const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,需要加1 | 902 | const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,需要加1 |