Commit 72d8abdb110b557d4dc52c6abc12b4e40ebe9534
1 parent
b43e2ada
feat: 开票功能开发
Showing
2 changed files
with
10 additions
and
2 deletions
src/pages/Invoice/components/InvoiceRecordDetailModal.tsx
@@ -60,7 +60,7 @@ export default ({ id }) => { | @@ -60,7 +60,7 @@ export default ({ id }) => { | ||
60 | setInitialValues(ret.data); | 60 | setInitialValues(ret.data); |
61 | }; | 61 | }; |
62 | useEffect(() => { | 62 | useEffect(() => { |
63 | - if (!visible) { | 63 | + if (visible) { |
64 | getRecord(id); | 64 | getRecord(id); |
65 | } | 65 | } |
66 | }, [visible]); | 66 | }, [visible]); |
src/pages/Order/components/InvoicingDrawerForm.tsx
@@ -155,7 +155,15 @@ export default ({ dataList, mainOrder, setVisible, onClose }) => { | @@ -155,7 +155,15 @@ export default ({ dataList, mainOrder, setVisible, onClose }) => { | ||
155 | placeholder="请选择是否加急" | 155 | placeholder="请选择是否加急" |
156 | rules={[{ required: true, message: '请选择是否加急!' }]} | 156 | rules={[{ required: true, message: '请选择是否加急!' }]} |
157 | /> | 157 | /> |
158 | - <ProFormUploadDragger name="drag-pic" label="拖拽上传" /> | 158 | + <ProFormUploadDragger |
159 | + key="filePaths" | ||
160 | + label="附件" | ||
161 | + name="filePaths" | ||
162 | + action="/api/service/order/fileProcess" | ||
163 | + fieldProps={{ | ||
164 | + headers: { Authorization: localStorage.getItem('token') }, | ||
165 | + }} | ||
166 | + /> | ||
159 | <ProFormTextArea | 167 | <ProFormTextArea |
160 | name="applyInvoicingNotes" | 168 | name="applyInvoicingNotes" |
161 | label="备注" | 169 | label="备注" |