Commit 5f016613465221079fddd2c08aaa8bc26ef121fa
1 parent
c9f296e7
feat: 开发确认收货预警回访登记预警
Showing
2 changed files
with
2 additions
and
6 deletions
src/pages/Order/Order/components/FeedbackRegistrationModal.tsx
@@ -9,15 +9,13 @@ export default ({ setVisible, subOrders, mainOrder, onClose }) => { | @@ -9,15 +9,13 @@ export default ({ setVisible, subOrders, mainOrder, onClose }) => { | ||
9 | const [textValue, setTextValue] = useState(''); | 9 | const [textValue, setTextValue] = useState(''); |
10 | 10 | ||
11 | const handleOk = async () => { | 11 | const handleOk = async () => { |
12 | - console.log(textValue); // 处理输入的文本 | ||
13 | console.log(subOrders, '5656subOrders', mainOrder); | 12 | console.log(subOrders, '5656subOrders', mainOrder); |
14 | - let res = await postServiceOrderFeedbackRegistration({ | 13 | + await postServiceOrderFeedbackRegistration({ |
15 | data: { | 14 | data: { |
16 | id: subOrders[0].id, | 15 | id: subOrders[0].id, |
17 | feedbackRegistrationContent: textValue, | 16 | feedbackRegistrationContent: textValue, |
18 | }, | 17 | }, |
19 | }); | 18 | }); |
20 | - console.log(res, '5656res'); | ||
21 | onClose(); | 19 | onClose(); |
22 | // setIsModalOpen(false); | 20 | // setIsModalOpen(false); |
23 | // onClose(); | 21 | // onClose(); |
src/pages/Order/OrderWarning/components/FeedbackRegistrationModal.tsx
@@ -9,15 +9,13 @@ export default ({ setVisible, subOrders, mainOrder, onClose }) => { | @@ -9,15 +9,13 @@ export default ({ setVisible, subOrders, mainOrder, onClose }) => { | ||
9 | const [textValue, setTextValue] = useState(''); | 9 | const [textValue, setTextValue] = useState(''); |
10 | 10 | ||
11 | const handleOk = async () => { | 11 | const handleOk = async () => { |
12 | - console.log(textValue); // 处理输入的文本 | ||
13 | console.log(subOrders, '5656subOrders', mainOrder); | 12 | console.log(subOrders, '5656subOrders', mainOrder); |
14 | - let res = await postServiceOrderFeedbackRegistration({ | 13 | + await postServiceOrderFeedbackRegistration({ |
15 | data: { | 14 | data: { |
16 | id: subOrders[0].id, | 15 | id: subOrders[0].id, |
17 | feedbackRegistrationContent: textValue, | 16 | feedbackRegistrationContent: textValue, |
18 | }, | 17 | }, |
19 | }); | 18 | }); |
20 | - console.log(res, '5656res'); | ||
21 | onClose(); | 19 | onClose(); |
22 | // setIsModalOpen(false); | 20 | // setIsModalOpen(false); |
23 | // onClose(); | 21 | // onClose(); |