Commit dbea8abec25bd163929ded3c148979d51937d51d

Authored by 曾国涛
2 parents 735854df e0b4e44b

Merge remote-tracking branch 'origin/master'

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