Commit de89f453b63a4b48b59b4be00f00357c3b919fda

Authored by PurelzMgnead
2 parents 5f62387d cdacd5b4

Merge remote-tracking branch 'origin/master'

src/pages/Invoice/ReissueRecord/index.tsx
@@ -34,6 +34,7 @@ export default () => { @@ -34,6 +34,7 @@ export default () => {
34 { 34 {
35 title: '重开的发票', 35 title: '重开的发票',
36 dataIndex: 'invoiceNumbers', 36 dataIndex: 'invoiceNumbers',
  37 + width: 200,
37 render: (_, record) => { 38 render: (_, record) => {
38 return ( 39 return (
39 <div style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}> 40 <div style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}>
@@ -45,50 +46,88 @@ export default () =&gt; { @@ -45,50 +46,88 @@ export default () =&gt; {
45 hideInSearch: true, 46 hideInSearch: true,
46 }, 47 },
47 { 48 {
  49 + title: '收款单位',
  50 + dataIndex: 'payees',
  51 + width: 230,
  52 + render: (_, record) => {
  53 + return (
  54 + <div style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}>
  55 + {record.payees?.join(',\n')}
  56 + </div>
  57 + );
  58 + },
  59 + ellipsis: true,
  60 + hideInSearch: true,
  61 + },
  62 + {
  63 + title: '联系人',
  64 + dataIndex: 'contacts',
  65 + width: 100,
  66 + render: (_, record) => {
  67 + return (
  68 + <div style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}>
  69 + {record.contacts?.join(',\n')}
  70 + </div>
  71 + );
  72 + },
  73 + ellipsis: true,
  74 + hideInSearch: true,
  75 + },
  76 + {
48 title: '重开原因', 77 title: '重开原因',
49 dataIndex: 'notes', 78 dataIndex: 'notes',
  79 + valueType: 'textarea',
50 ellipsis: true, 80 ellipsis: true,
  81 + width: 180,
51 hideInSearch: true, 82 hideInSearch: true,
52 }, 83 },
53 { 84 {
54 title: '申请人', 85 title: '申请人',
55 dataIndex: 'createByName', 86 dataIndex: 'createByName',
  87 + width: 80,
56 ellipsis: true, 88 ellipsis: true,
57 hideInSearch: true, 89 hideInSearch: true,
58 }, 90 },
59 { 91 {
60 title: '申请时间', 92 title: '申请时间',
61 dataIndex: 'createTime', 93 dataIndex: 'createTime',
  94 + width: 100,
62 ellipsis: true, 95 ellipsis: true,
63 hideInSearch: true, 96 hideInSearch: true,
64 }, 97 },
65 { 98 {
66 title: '审核状态', 99 title: '审核状态',
67 dataIndex: 'statusText', 100 dataIndex: 'statusText',
  101 + width: 100,
68 ellipsis: true, 102 ellipsis: true,
69 hideInSearch: true, 103 hideInSearch: true,
70 }, 104 },
71 { 105 {
72 title: '冲红状态', 106 title: '冲红状态',
73 dataIndex: 'flushStatusText', 107 dataIndex: 'flushStatusText',
  108 + width: 100,
74 ellipsis: true, 109 ellipsis: true,
75 hideInSearch: true, 110 hideInSearch: true,
76 }, 111 },
77 { 112 {
78 title: '财务负责人', 113 title: '财务负责人',
79 dataIndex: 'financeManager', 114 dataIndex: 'financeManager',
  115 + width: 100,
80 ellipsis: true, 116 ellipsis: true,
81 hideInSearch: true, 117 hideInSearch: true,
82 }, 118 },
83 { 119 {
84 title: '冲红时间', 120 title: '冲红时间',
85 dataIndex: 'flushDatetime', 121 dataIndex: 'flushDatetime',
  122 + width: 100,
86 ellipsis: true, 123 ellipsis: true,
87 hideInSearch: true, 124 hideInSearch: true,
88 }, 125 },
89 { 126 {
90 title: '审核备注', 127 title: '审核备注',
91 dataIndex: 'auditNotes', 128 dataIndex: 'auditNotes',
  129 + width: 100,
  130 + width: 180,
92 hideInSearch: true, 131 hideInSearch: true,
93 }, 132 },
94 { 133 {
@@ -285,6 +324,7 @@ export default () =&gt; { @@ -285,6 +324,7 @@ export default () =&gt; {
285 }} 324 }}
286 dateFormatter="string" 325 dateFormatter="string"
287 headerTitle="高级表格" 326 headerTitle="高级表格"
  327 + scroll={{ x: 'max-content' }}
288 /> 328 />
289 ); 329 );
290 }; 330 };
src/pages/Order/OrderList/InvoicingDrawerForm.tsx
@@ -8,15 +8,8 @@ import { @@ -8,15 +8,8 @@ import {
8 postServiceConstListInvoiceDetailNames, 8 postServiceConstListInvoiceDetailNames,
9 postServiceInvoiceApplyInvoice, 9 postServiceInvoiceApplyInvoice,
10 postServiceInvoiceQueryCompanyInfo, 10 postServiceInvoiceQueryCompanyInfo,
11 - postServiceInvoiceWaitReissueInvoices,  
12 } from '@/services'; 11 } from '@/services';
13 -import {  
14 - FloatAdd,  
15 - FloatMul,  
16 - FloatSub,  
17 - enum2ReverseSelect,  
18 - enumToSelect,  
19 -} from '@/utils'; 12 +import { FloatAdd, FloatMul, FloatSub, enumToSelect } from '@/utils';
20 import { convertCurrency } from '@/utils/numberUtil'; 13 import { convertCurrency } from '@/utils/numberUtil';
21 import { 14 import {
22 DrawerForm, 15 DrawerForm,
@@ -215,7 +208,7 @@ export default ({ @@ -215,7 +208,7 @@ export default ({
215 <ProFormText readonly={true} name="value" label="" /> 208 <ProFormText readonly={true} name="value" label="" />
216 </ProFormGroup> 209 </ProFormGroup>
217 </ProFormList> 210 </ProFormList>
218 - <ProFormSelect 211 + {/*<ProFormSelect
219 name="ReissueInvoiceRecordIds" 212 name="ReissueInvoiceRecordIds"
220 label="重开的发票" 213 label="重开的发票"
221 fieldProps={{ 214 fieldProps={{
@@ -236,7 +229,7 @@ export default ({ @@ -236,7 +229,7 @@ export default ({
236 ? [{ required: true, message: '重开发票必填' }] 229 ? [{ required: true, message: '重开发票必填' }]
237 : [] 230 : []
238 } 231 }
239 - /> 232 + />*/}
240 {type === 'reissue' && ( 233 {type === 'reissue' && (
241 <ProFormTextArea 234 <ProFormTextArea
242 name="reissueNotes" 235 name="reissueNotes"
src/pages/Order/OrderList/OrderList.tsx
@@ -1431,39 +1431,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) =&gt; { @@ -1431,39 +1431,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) =&gt; {
1431 ) : ( 1431 ) : (
1432 '' 1432 ''
1433 )} 1433 )}
1434 - {optRecord.paths?.includes('reissue_old') ? (  
1435 - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'||  
1436 - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/  
1437 - <Button  
1438 - className="p-0"  
1439 - type="link"  
1440 - onClick={() => {  
1441 - setCurrentMainId(record.id);  
1442 - setReissueVisibleOld(true);  
1443 - }}  
1444 - >  
1445 - 重新开票(旧)  
1446 - </Button>  
1447 - ) : (  
1448 - ''  
1449 - )}  
1450 - {optRecord.paths?.includes('reissue') ? (  
1451 - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'||  
1452 - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/  
1453 - <Button  
1454 - className="p-0"  
1455 - type="link"  
1456 - onClick={() => {  
1457 - setCurrentMainId(record.id);  
1458 - setCurretnOptSubId(optRecord.id);  
1459 - setReissueVisible(true);  
1460 - }}  
1461 - >  
1462 - 重新开票(新)  
1463 - </Button>  
1464 - ) : (  
1465 - ''  
1466 - )}  
1467 1434
1468 {optRecord.paths?.includes('confirmReissue_old') ? ( 1435 {optRecord.paths?.includes('confirmReissue_old') ? (
1469 <Button 1436 <Button
@@ -2975,24 +2942,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) =&gt; { @@ -2975,24 +2942,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) =&gt; {
2975 '' 2942 ''
2976 )} 2943 )}
2977 2944
2978 - {record.paths?.includes('reissue_old') ? (  
2979 - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'||  
2980 - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/  
2981 - <Button  
2982 - className="p-0"  
2983 - type="link"  
2984 - onClick={() => {  
2985 - setCurrentMainId(record.id);  
2986 - setReissueVisibleOld(true);  
2987 - console.log(reissueVisible);  
2988 - }}  
2989 - >  
2990 - 重新开票(旧)  
2991 - </Button>  
2992 - ) : (  
2993 - ''  
2994 - )}  
2995 -  
2996 {record.paths?.includes('confirmReissue_old') ? ( 2945 {record.paths?.includes('confirmReissue_old') ? (
2997 <Button 2946 <Button
2998 className="p-0" 2947 className="p-0"
@@ -3010,23 +2959,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) =&gt; { @@ -3010,23 +2959,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) =&gt; {
3010 '' 2959 ''
3011 )} 2960 )}
3012 2961
3013 - {record.paths?.includes('reissue') ? (  
3014 - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'||  
3015 - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/  
3016 - <Button  
3017 - className="p-0"  
3018 - type="link"  
3019 - onClick={() => {  
3020 - setCurrentMainId(record.id);  
3021 - setReissueVisible(true);  
3022 - }}  
3023 - >  
3024 - 重新开票(新)  
3025 - </Button>  
3026 - ) : (  
3027 - ''  
3028 - )}  
3029 -  
3030 {record.paths?.includes('confirmReissue') ? ( 2962 {record.paths?.includes('confirmReissue') ? (
3031 <Button 2963 <Button
3032 className="p-0" 2964 className="p-0"