Commit 3157c84ec0400c03686bf4df6c33d52689a09a7f

Authored by zhongnanhuang
1 parent 87d1f9e9

feat: update

src/pages/Order/components/OrderDrawer.tsx
... ... @@ -553,6 +553,8 @@ export default ({ onClose, data, subOrders, orderOptType }) => {
553 553 getDefaultString(option.detail),
554 554 );
555 555 form.setFieldValue('customerNameString', option.realName);
  556 +
  557 + loadAccountOptions(option.phone);
556 558 }
557 559  
558 560 //erp收货地址:需要与客户联系人中的地址一样:姓名,手机号,地址
... ... @@ -978,7 +980,6 @@ export default ({ onClose, data, subOrders, orderOptType }) => {
978 980 }
979 981  
980 982 let title = '';
981   - let spanText = '';
982 983 let realName = item.realName;
983 984 let phone = item.phone;
984 985 let province = item.province;
... ... @@ -988,31 +989,41 @@ export default ({ onClose, data, subOrders, orderOptType }) => {
988 989 let institution = item.institution;
989 990 let institutionContactName = item.institutionContactName;
990 991  
991   - title =
992   - getDefaultString(realName) +
993   - '|' +
994   - getDefaultString(phone) +
995   - '|' +
996   - getDefaultString(institution) +
997   - '|' +
998   - getDefaultString(institutionContactName) +
999   - '|' +
  992 + let address =
1000 993 getDefaultString(province) +
1001 994 getDefaultString(city) +
1002 995 getDefaultString(district) +
1003 996 getDefaultString(detail);
1004 997  
1005   - spanText =
  998 + title =
1006 999 getDefaultString(realName) +
1007 1000 '|' +
1008 1001 getDefaultString(phone) +
1009 1002 '|' +
1010 1003 getDefaultString(institution) +
1011 1004 '|' +
1012   - getDefaultString(institutionContactName);
  1005 + getDefaultString(institutionContactName) +
  1006 + '|' +
  1007 + address;
  1008 +
1013 1009 return (
1014   - <div title={title}>
1015   - <span style={{ color: '#333333' }}>{spanText}</span>
  1010 + <div title={title} className="whitespace-normal">
  1011 + <span style={{ color: '#333333' }}>
  1012 + {getDefaultString(realName)}
  1013 + </span>
  1014 + |
  1015 + <span className="text-sky-600">
  1016 + {getDefaultString(phone)}
  1017 + </span>
  1018 + |
  1019 + <span style={{ color: '#333333' }}>
  1020 + {getDefaultString(institution)}
  1021 + </span>
  1022 + |
  1023 + <span style={{ color: '#333333' }}>
  1024 + {getDefaultString(institutionContactName)}
  1025 + </span>
  1026 + |<span className="text-orange-400">{address}</span>
1016 1027 </div>
1017 1028 );
1018 1029 },
... ...
src/pages/Order/index.tsx
... ... @@ -1925,7 +1925,7 @@ const OrderPage = () =&gt; {
1925 1925  
1926 1926 <Flex title={optRecord.notes}>
1927 1927 <div
1928   - className="overflow-hidden whitespace-normal overflow-ellipsis hover:cursor-pointer"
  1928 + className="max-w-[1100px] overflow-hidden whitespace-normal overflow-ellipsis hover:cursor-pointer"
1929 1929 onClick={() => {
1930 1930 copyToClipboard(optRecord.notes);
1931 1931 message.info('备注复制成功:' + optRecord.notes);
... ... @@ -3858,11 +3858,11 @@ const OrderPage = () =&gt; {
3858 3858 label: '导出已选中订单',
3859 3859 key: '1',
3860 3860 onClick: async () => {
3861   - if (selectedMainOrderKeys.length === 0) {
  3861 + if (mainOrderSelectedMap.size === 0) {
3862 3862 message.error('请选择订单');
3863 3863 return;
3864 3864 }
3865   - let body = { flag: 30, id: selectedMainOrderKeys };
  3865 + let body = { flag: 30, id: Array.from(mainOrderSelectedMap.keys()) };
3866 3866 exportLoading();
3867 3867 orderExport('/api/service/order/export', body, exportLoadingDestory);
3868 3868 },
... ...
src/pages/ResearchGroup/index.tsx
... ... @@ -83,8 +83,7 @@ const PrepaidPage = () =&gt; {
83 83 if (!value) {
84 84 return <span></span>;
85 85 }
86   -
87   - return value.map((item: any) => {
  86 + let tags = value.map((item: any) => {
88 87 let memberName = item.memberName;
89 88 let memberPhone = item.memberPhone;
90 89 return (
... ... @@ -98,6 +97,7 @@ const PrepaidPage = () =&gt; {
98 97 </Tag>
99 98 );
100 99 });
  100 + return <div className="whitespace-normal">{tags}</div>;
101 101 };
102 102  
103 103 /**
... ... @@ -128,7 +128,7 @@ const PrepaidPage = () =&gt; {
128 128 }
129 129  
130 130 return (
131   - <div>
  131 + <div className="whitespace-normal">
132 132 {value.map((item: any) => {
133 133 let accountPhone = item.accountPhone;
134 134 let accountName = item.accountName;
... ...