Commit 1973d190a335c110b596b2c33ea79eb24a238e57
1 parent
66788e52
fix: bug草稿箱使用收货人回显异常
Showing
1 changed file
with
5 additions
and
0 deletions
src/pages/Order/components/OrderDrawer.tsx
... | ... | @@ -742,6 +742,11 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
742 | 742 | let preOrderData = localStorage.getItem('preOrderData'); |
743 | 743 | if (preOrderData) { |
744 | 744 | let formData = JSON.parse(preOrderData); |
745 | + formData.customerName = { | |
746 | + label: formData.customerNameString, | |
747 | + value: formData.customerName, | |
748 | + }; | |
749 | + console.log(formData); | |
745 | 750 | form.setFieldsValue(formData); |
746 | 751 | setPaymentMethod(formData.paymentMethod); |
747 | 752 | } | ... | ... |