Commit 0af393d99c07fbadbbf8c7a18b8f33bd2abaf151

Authored by 曾国涛
2 parents d9ee7262 f52b3ad6
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