Commit dbea8abec25bd163929ded3c148979d51937d51d
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/pages/Invoice/constant.tsx
Showing
4 changed files
with
18 additions
and
4 deletions
src/pages/Invoice/Invoice/index.tsx
... | ... | @@ -257,7 +257,7 @@ const InvoiceRecord = () => { |
257 | 257 | scroll={{ x: 1400, y: 360 }} |
258 | 258 | toolBarRender={() => [ |
259 | 259 | <> |
260 | - {perms.includes('add') && ( | |
260 | + {perms?.includes('add') && ( | |
261 | 261 | <AddInvoiceDrawerForm |
262 | 262 | onClose={() => { |
263 | 263 | invoiceActionRef.current?.reload(); |
... | ... | @@ -267,7 +267,7 @@ const InvoiceRecord = () => { |
267 | 267 | )} |
268 | 268 | </>, |
269 | 269 | <> |
270 | - {perms.includes('writeOff') && ( | |
270 | + {perms?.includes('writeOff') && ( | |
271 | 271 | <InvoiceWriteOffModal |
272 | 272 | readOnly={false} |
273 | 273 | getData={() => ({})} | ... | ... |
src/pages/Invoice/InvoiceVerification/index.tsx
src/pages/Invoice/constant.tsx
... | ... | @@ -91,6 +91,13 @@ export const INVOICE_COLUMNS = [ |
91 | 91 | width: 180, |
92 | 92 | }, |
93 | 93 | { |
94 | + title: '金额', | |
95 | + dataIndex: 'money', | |
96 | + hideInTable: true, | |
97 | + valueType: 'money', | |
98 | + width: 180, | |
99 | + }, | |
100 | + { | |
94 | 101 | title: '是否预付款', |
95 | 102 | dataIndex: 'orderIsPrePay', |
96 | 103 | valueType: 'select', |
... | ... | @@ -294,6 +301,13 @@ export const BANK_STATEMENT_COLUMNS = [ |
294 | 301 | hideInSearch: true, |
295 | 302 | }, |
296 | 303 | { |
304 | + dataIndex: 'amount', | |
305 | + title: '金额', | |
306 | + valueType: 'money', | |
307 | + width: 100, | |
308 | + hideInTable: true, | |
309 | + }, | |
310 | + { | |
297 | 311 | dataIndex: 'remark', |
298 | 312 | title: '备注', |
299 | 313 | valueType: 'text', | ... | ... |
src/pages/Order/components/InvoicingDrawerForm.tsx
... | ... | @@ -60,7 +60,7 @@ export default ({ dataList, setVisible, mainOrder, onClose }) => { |
60 | 60 | unit: item.unit, |
61 | 61 | quantity: item.quantity, |
62 | 62 | price: item.productPrice, |
63 | - totalPrice: item.subOrderPayment, | |
63 | + totalPrice: item.quantity * item.productPrice, | |
64 | 64 | }; |
65 | 65 | }); |
66 | 66 | form.setFieldValue('invoiceDetails', initialValue); | ... | ... |