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 34 {
35 35 title: '重开的发票',
36 36 dataIndex: 'invoiceNumbers',
  37 + width: 200,
37 38 render: (_, record) => {
38 39 return (
39 40 <div style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}>
... ... @@ -45,50 +46,88 @@ export default () =&gt; {
45 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 77 title: '重开原因',
49 78 dataIndex: 'notes',
  79 + valueType: 'textarea',
50 80 ellipsis: true,
  81 + width: 180,
51 82 hideInSearch: true,
52 83 },
53 84 {
54 85 title: '申请人',
55 86 dataIndex: 'createByName',
  87 + width: 80,
56 88 ellipsis: true,
57 89 hideInSearch: true,
58 90 },
59 91 {
60 92 title: '申请时间',
61 93 dataIndex: 'createTime',
  94 + width: 100,
62 95 ellipsis: true,
63 96 hideInSearch: true,
64 97 },
65 98 {
66 99 title: '审核状态',
67 100 dataIndex: 'statusText',
  101 + width: 100,
68 102 ellipsis: true,
69 103 hideInSearch: true,
70 104 },
71 105 {
72 106 title: '冲红状态',
73 107 dataIndex: 'flushStatusText',
  108 + width: 100,
74 109 ellipsis: true,
75 110 hideInSearch: true,
76 111 },
77 112 {
78 113 title: '财务负责人',
79 114 dataIndex: 'financeManager',
  115 + width: 100,
80 116 ellipsis: true,
81 117 hideInSearch: true,
82 118 },
83 119 {
84 120 title: '冲红时间',
85 121 dataIndex: 'flushDatetime',
  122 + width: 100,
86 123 ellipsis: true,
87 124 hideInSearch: true,
88 125 },
89 126 {
90 127 title: '审核备注',
91 128 dataIndex: 'auditNotes',
  129 + width: 100,
  130 + width: 180,
92 131 hideInSearch: true,
93 132 },
94 133 {
... ... @@ -285,6 +324,7 @@ export default () =&gt; {
285 324 }}
286 325 dateFormatter="string"
287 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 8 postServiceConstListInvoiceDetailNames,
9 9 postServiceInvoiceApplyInvoice,
10 10 postServiceInvoiceQueryCompanyInfo,
11   - postServiceInvoiceWaitReissueInvoices,
12 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 13 import { convertCurrency } from '@/utils/numberUtil';
21 14 import {
22 15 DrawerForm,
... ... @@ -215,7 +208,7 @@ export default ({
215 208 <ProFormText readonly={true} name="value" label="" />
216 209 </ProFormGroup>
217 210 </ProFormList>
218   - <ProFormSelect
  211 + {/*<ProFormSelect
219 212 name="ReissueInvoiceRecordIds"
220 213 label="重开的发票"
221 214 fieldProps={{
... ... @@ -236,7 +229,7 @@ export default ({
236 229 ? [{ required: true, message: '重开发票必填' }]
237 230 : []
238 231 }
239   - />
  232 + />*/}
240 233 {type === 'reissue' && (
241 234 <ProFormTextArea
242 235 name="reissueNotes"
... ...
src/pages/Order/OrderList/OrderList.tsx
... ... @@ -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 1435 {optRecord.paths?.includes('confirmReissue_old') ? (
1469 1436 <Button
... ... @@ -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 2945 {record.paths?.includes('confirmReissue_old') ? (
2997 2946 <Button
2998 2947 className="p-0"
... ... @@ -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 2962 {record.paths?.includes('confirmReissue') ? (
3031 2963 <Button
3032 2964 className="p-0"
... ...