李志伟 2 vuotta sitten
vanhempi
commit
02f4311919

+ 23
- 1
src/pages/applicationList/detail.jsx Näytä tiedosto

54
           <FormItem label="犬主">
54
           <FormItem label="犬主">
55
             {application?.personName}
55
             {application?.personName}
56
           </FormItem>
56
           </FormItem>
57
+          {
58
+            application?.isOrg &&
59
+            <>
60
+              <FormItem label="企业">
61
+                {application?.orgName}
62
+              </FormItem>
63
+              <FormItem label="营业执照">
64
+                <Image src={application?.orgLicense} width={100} />
65
+              </FormItem>
66
+            </>
67
+          }
57
           <FormItem label="电话">
68
           <FormItem label="电话">
58
             {application?.phone}
69
             {application?.phone}
59
           </FormItem>
70
           </FormItem>
103
               }
114
               }
104
             </FormItem>
115
             </FormItem>
105
           }
116
           }
106
-
117
+          {
118
+            application?.criminalInfo &&
119
+            <FormItem label="伤人信息">
120
+              <Image src={application.criminalInfo} width={100} />
121
+            </FormItem>
122
+          }
123
+          {
124
+            application?.penaltyInfo &&
125
+            <FormItem label="处罚信息">
126
+              <Image src={application.penaltyInfo} width={100} />
127
+            </FormItem>
128
+          }
107
           <FormItem label="订单状态">
129
           <FormItem label="订单状态">
108
             {
130
             {
109
               (orderStatus === 1 || orderStatus === 2)
131
               (orderStatus === 1 || orderStatus === 2)

+ 22
- 0
src/pages/applicationList/index.jsx Näytä tiedosto

37
       key: 'personName',
37
       key: 'personName',
38
       search: true,
38
       search: true,
39
     },
39
     },
40
+    {
41
+      title: '是否企业',
42
+      dataIndex: 'isOrg',
43
+      key: 'isOrg',
44
+      search: true,
45
+      hideInTable:true,
46
+      render: (_, record) => {
47
+        return record.isOrg
48
+          ? '企业':'个人'
49
+      },
50
+      valueType: 'select',
51
+      valueEnum: {
52
+        true: { text: '企业' },
53
+        false: { text: '个人' },
54
+      },
55
+    },
56
+    {
57
+      title: '企业名称',
58
+      dataIndex: 'orgName',
59
+      key: 'orgName',
60
+      search: true,
61
+    },
40
     {
62
     {
41
       title: '手机号',
63
       title: '手机号',
42
       dataIndex: 'phone',
64
       dataIndex: 'phone',

+ 22
- 0
src/pages/certificateIssuance/index.jsx Näytä tiedosto

48
       key: 'personName',
48
       key: 'personName',
49
       search: true,
49
       search: true,
50
     },
50
     },
51
+    {
52
+      title: '是否企业',
53
+      dataIndex: 'isOrg',
54
+      key: 'isOrg',
55
+      search: true,
56
+      hideInTable:true,
57
+      render: (_, record) => {
58
+        return record.isOrg
59
+          ? '企业':'个人'
60
+      },
61
+      valueType: 'select',
62
+      valueEnum: {
63
+        true: { text: '企业' },
64
+        false: { text: '个人' },
65
+      },
66
+    },
67
+    {
68
+      title: '企业名称',
69
+      dataIndex: 'orgName',
70
+      key: 'orgName',
71
+      search: true,
72
+    },
51
     {
73
     {
52
       title: '手机号',
74
       title: '手机号',
53
       dataIndex: 'phone',
75
       dataIndex: 'phone',

+ 23
- 1
src/pages/certificateIssuance/issuance.jsx Näytä tiedosto

15
   const [application, setApplication] = useState({});
15
   const [application, setApplication] = useState({});
16
   const [loading, setLoading] = useState(false)
16
   const [loading, setLoading] = useState(false)
17
   const [form] = Form.useForm();
17
   const [form] = Form.useForm();
18
-  //需要改一下
19
   const handleMake = (value) => {
18
   const handleMake = (value) => {
20
     if (value.originCardNo) {
19
     if (value.originCardNo) {
21
       if (
20
       if (
61
           <FormItem label="犬主">
60
           <FormItem label="犬主">
62
             {application?.personName}
61
             {application?.personName}
63
           </FormItem>
62
           </FormItem>
63
+          {
64
+            application?.isOrg &&
65
+            <>
66
+              <FormItem label="企业">
67
+                {application?.orgName}
68
+              </FormItem>
69
+              <FormItem label="营业执照">
70
+                <Image src={application?.orgLicense} width={100} />
71
+              </FormItem>
72
+            </>
73
+          }
64
           <FormItem label="电话">
74
           <FormItem label="电话">
65
             {application?.phone}
75
             {application?.phone}
66
           </FormItem>
76
           </FormItem>
110
               }
120
               }
111
             </FormItem>
121
             </FormItem>
112
           }
122
           }
123
+          {
124
+            application?.criminalInfo &&
125
+            <FormItem label="伤人信息">
126
+              <Image src={application.criminalInfo} width={100} />
127
+            </FormItem>
128
+          }
129
+          {
130
+            application?.penaltyInfo &&
131
+            <FormItem label="处罚信息">
132
+              <Image src={application.penaltyInfo} width={100} />
133
+            </FormItem>
134
+          }
113
           <FormItem label="付款状态">
135
           <FormItem label="付款状态">
114
             {
136
             {
115
               application.payStatus === 0
137
               application.payStatus === 0

+ 23
- 0
src/pages/examine/detail.jsx Näytä tiedosto

78
           <FormItem label="犬主">
78
           <FormItem label="犬主">
79
             {application?.personName}
79
             {application?.personName}
80
           </FormItem>
80
           </FormItem>
81
+          {
82
+            application?.isOrg &&
83
+            <>
84
+              <FormItem label="企业">
85
+                {application?.orgName}
86
+              </FormItem>
87
+              <FormItem label="营业执照">
88
+                <Image src={application?.orgLicense} width={100} />
89
+              </FormItem>
90
+            </>
91
+          }
81
           <FormItem label="电话">
92
           <FormItem label="电话">
82
             {application?.phone}
93
             {application?.phone}
83
           </FormItem>
94
           </FormItem>
127
               }
138
               }
128
             </FormItem>
139
             </FormItem>
129
           }
140
           }
141
+          {
142
+            application?.criminalInfo &&
143
+            <FormItem label="伤人信息">
144
+              <Image src={application.criminalInfo} width={100} />
145
+            </FormItem>
146
+          }
147
+          {
148
+            application?.penaltyInfo &&
149
+            <FormItem label="处罚信息">
150
+              <Image src={application.penaltyInfo} width={100} />
151
+            </FormItem>
152
+          }
130
           <FormItem label="付款状态">
153
           <FormItem label="付款状态">
131
             {
154
             {
132
               application.payStatus === 0
155
               application.payStatus === 0

+ 22
- 0
src/pages/examine/index.jsx Näytä tiedosto

42
       dataIndex: 'personName',
42
       dataIndex: 'personName',
43
       key: 'personName',
43
       key: 'personName',
44
       search: true,
44
       search: true,
45
+    },    
46
+    {
47
+      title: '是否企业',
48
+      dataIndex: 'isOrg',
49
+      key: 'isOrg',
50
+      search: true,
51
+      hideInTable:true,
52
+      render: (_, record) => {
53
+        return record.isOrg
54
+          ? '企业':'个人'
55
+      },
56
+      valueType: 'select',
57
+      valueEnum: {
58
+        true: { text: '企业' },
59
+        false: { text: '个人' },
60
+      },
61
+    },
62
+    {
63
+      title: '企业名称',
64
+      dataIndex: 'orgName',
65
+      key: 'orgName',
66
+      search: true,
45
     },
67
     },
46
     {
68
     {
47
       title: '手机号',
69
       title: '手机号',