소스 검색

feat: 发货单列表增加客户名称

xyh 2 년 전
부모
커밋
633aea13ea
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/pages/list/item/index.jsx

+ 2 - 1
src/pages/list/item/index.jsx

@@ -3,7 +3,6 @@ import {View, Text, Button, Picker} from '@tarojs/components';
 import classNames from 'classnames';
 import {TextGroup} from '@components';
 import dayjs from 'dayjs';
-import {useState} from 'react';
 import {useBoolean} from 'ahooks';
 
 export default function Item({
@@ -20,6 +19,7 @@ export default function Item({
   type,
   onClear,
   onEdit,
+  name,
 }) {
   const onClick = usePreview();
   const {className, msg} = useOrderState(states, anomaly, {time: arrivalTime});
@@ -76,6 +76,7 @@ export default function Item({
       <View className='mt-4'>
         <TextGroup title='卡车号' content={truckNo} className='!py-0' />
         <TextGroup title='客户编号' content={customer} className='!py-0 mt-2' />
+        <TextGroup title='客户名称' content={name} className='!py-0 mt-2' />
         <TextGroup
           title='发货时间'
           content={dayjs(scrq).format('YYYY-MM-DD')}