Commit 8a28192c136579298890a4d0ae2b5bbfe18eecd2
1 parent
e9c7baa1
feat: 首能隐藏主订单备注。
Showing
1 changed file
with
27 additions
and
26 deletions
src/pages/Order/index.tsx
... | ... | @@ -2319,33 +2319,34 @@ const OrderPage = () => { |
2319 | 2319 | |
2320 | 2320 | {roleCode === 'finance' ? <Divider type="vertical" /> : ''} |
2321 | 2321 | |
2322 | - <div title={record.notes}> | |
2323 | - <div | |
2324 | - className="max-w-md overflow-hidden whitespace-no-wrap overflow-ellipsis hover:cursor-pointer" | |
2325 | - onClick={() => { | |
2326 | - copyToClipboard(record.notes); | |
2327 | - message.info('备注复制成功:' + record.notes); | |
2328 | - }} | |
2329 | - > | |
2330 | - <span className="text-[#8C8C8C]">备注:</span> | |
2331 | - <span className="ml-2"> | |
2332 | - {record.notes === null ? '暂无备注' : record.notes} | |
2333 | - </span> | |
2334 | - </div> | |
2335 | - </div> | |
2336 | - | |
2337 | 2322 | {!isSupplier() ? ( |
2338 | - <Tooltip title="编辑"> | |
2339 | - <EditTwoTone | |
2340 | - className="pl-1 hover:curcor-pointer" | |
2341 | - onClick={() => { | |
2342 | - setNotesEditVisible(true); | |
2343 | - setSelectedRows([record.id]); | |
2344 | - setNotes(record.notes); | |
2345 | - setNotesType(0); | |
2346 | - }} | |
2347 | - /> | |
2348 | - </Tooltip> | |
2323 | + <> | |
2324 | + <div title={record.notes}> | |
2325 | + <div | |
2326 | + className="max-w-md overflow-hidden whitespace-no-wrap overflow-ellipsis hover:cursor-pointer" | |
2327 | + onClick={() => { | |
2328 | + copyToClipboard(record.notes); | |
2329 | + message.info('备注复制成功:' + record.notes); | |
2330 | + }} | |
2331 | + > | |
2332 | + <span className="text-[#8C8C8C]">备注:</span> | |
2333 | + <span className="ml-2"> | |
2334 | + {record.notes === null ? '暂无备注' : record.notes} | |
2335 | + </span> | |
2336 | + </div> | |
2337 | + </div> | |
2338 | + <Tooltip title="编辑"> | |
2339 | + <EditTwoTone | |
2340 | + className="pl-1 hover:curcor-pointer" | |
2341 | + onClick={() => { | |
2342 | + setNotesEditVisible(true); | |
2343 | + setSelectedRows([record.id]); | |
2344 | + setNotes(record.notes); | |
2345 | + setNotesType(0); | |
2346 | + }} | |
2347 | + /> | |
2348 | + </Tooltip> | |
2349 | + </> | |
2349 | 2350 | ) : ( |
2350 | 2351 | '' |
2351 | 2352 | )} | ... | ... |