李志伟 3 anos atrás
pai
commit
14864ac7b9
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4
    1
      src/components/MyCard/index.jsx

+ 4
- 1
src/components/MyCard/index.jsx Ver arquivo

@@ -19,6 +19,7 @@ export default (props) => {
19 19
         }
20 20
       </View>
21 21
       <View className='line' />
22
+      <MyCell header='订单号'>{value?.orderNo}</MyCell>
22 23
       {
23 24
         job?
24 25
         <MyCell header='农机名称'>{value?.machineryName}</MyCell>:
@@ -30,7 +31,9 @@ export default (props) => {
30 31
       {
31 32
         detail && <MyCell header='服务地址'>{value?.address}</MyCell>
32 33
       }
33
-      <MyCell header='作业时间'><View>{value?.startDate}</View><View>{value?.endDate}</View></MyCell>
34
+      {
35
+        job&&<MyCell header='作业时间'><View>{value?.startDate}</View><View>{value?.endDate}</View></MyCell>
36
+      }
34 37
       <MyCell header='订单费用'>{(value?.charges&&value.charges/100)||600}元</MyCell>
35 38
       {
36 39
         job &&value?.status!=3&&!detail&& <MyButton value={value?.status==0?'开始作业':'完成作业'} onClick={onClick} />