fangmingyue 2 년 전
부모
커밋
9659ab2711

+ 22
- 7
package-lock.json 파일 보기

@@ -2004,6 +2004,7 @@
2004 2004
       "version": "3.5.7",
2005 2005
       "resolved": "https://registry.npmmirror.com/@tarojs/plugin-platform-alipay/-/plugin-platform-alipay-3.5.7.tgz",
2006 2006
       "integrity": "sha512-dt2H/evyuwbpkC1HRVzkyUoQ9AoHznNTV8mIDCqebDRJgrHcfHvvkYYbT6VPoTnZUdNHvlzgZU5I1RyY21wk2g==",
2007
+      "dev": true,
2007 2008
       "requires": {
2008 2009
         "@tarojs/components": "3.5.7",
2009 2010
         "@tarojs/service": "3.5.7",
@@ -2014,6 +2015,7 @@
2014 2015
       "version": "3.5.7",
2015 2016
       "resolved": "https://registry.npmmirror.com/@tarojs/plugin-platform-jd/-/plugin-platform-jd-3.5.7.tgz",
2016 2017
       "integrity": "sha512-e84XL4mxvLC2BhppIx6VJ+M0XiavL5kho9qQh51oPI89BlYPWo+udV4go88j39szbZXbo0JNJ/qIxbxs3WVQvg==",
2018
+      "dev": true,
2017 2019
       "requires": {
2018 2020
         "@tarojs/service": "3.5.7",
2019 2021
         "@tarojs/shared": "3.5.7"
@@ -2023,6 +2025,7 @@
2023 2025
       "version": "3.5.7",
2024 2026
       "resolved": "https://registry.npmmirror.com/@tarojs/plugin-platform-qq/-/plugin-platform-qq-3.5.7.tgz",
2025 2027
       "integrity": "sha512-Twr9IfqLeU4Vrzt2CqOvkawx7N7/qoIAqXGDcAAhTZKp06bd4T7vijnD2RyPxcDmIM/ShZqm1u8nAy5/byBqGg==",
2028
+      "dev": true,
2026 2029
       "requires": {
2027 2030
         "@tarojs/plugin-platform-weapp": "3.5.7",
2028 2031
         "@tarojs/service": "3.5.7",
@@ -2033,6 +2036,7 @@
2033 2036
       "version": "3.5.7",
2034 2037
       "resolved": "https://registry.npmmirror.com/@tarojs/plugin-platform-swan/-/plugin-platform-swan-3.5.7.tgz",
2035 2038
       "integrity": "sha512-JGUrJXCTiun1EWnQfxQ1wfCtwuwXRohK9zL4izBYe6KJPrJTrOQYc/APqmA4g6W9kSqTbgjnN9PoYnC1aCFrHQ==",
2039
+      "dev": true,
2036 2040
       "requires": {
2037 2041
         "@tarojs/components": "3.5.7",
2038 2042
         "@tarojs/service": "3.5.7",
@@ -2043,6 +2047,7 @@
2043 2047
       "version": "3.5.7",
2044 2048
       "resolved": "https://registry.npmmirror.com/@tarojs/plugin-platform-tt/-/plugin-platform-tt-3.5.7.tgz",
2045 2049
       "integrity": "sha512-fOtjaIgCQ1pfJfULw8rm1DX0asYgbS7xdWtiC9vP/7tlXc8vp0l8Q5lP8kbEbVLohNwJrU2dak7n1g9iD2X0Vg==",
2050
+      "dev": true,
2046 2051
       "requires": {
2047 2052
         "@tarojs/components": "3.5.7",
2048 2053
         "@tarojs/service": "3.5.7",
@@ -3182,6 +3187,11 @@
3182 3187
       "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
3183 3188
       "dev": true
3184 3189
     },
3190
+    "@zjxpcyc/react-tiny-store": {
3191
+      "version": "2.0.1",
3192
+      "resolved": "https://registry.npmmirror.com/@zjxpcyc/react-tiny-store/-/react-tiny-store-2.0.1.tgz",
3193
+      "integrity": "sha512-+MTTcQ9aU8OMl7YrmX8UVnM5qUDktdHl0wpxmI5dVIwZxvHsKRKZuQn+ExOeCvJAVC2l+ubS7afT9rzTHPuPrA=="
3194
+    },
3185 3195
     "abab": {
3186 3196
       "version": "2.0.6",
3187 3197
       "resolved": "https://registry.npmmirror.com/abab/-/abab-2.0.6.tgz",
@@ -4102,6 +4112,15 @@
4102 4112
       "integrity": "sha512-M8Sby4wRLuLr+9UB8V31knVRf/rl0xkk51A7um6hUCvVPyOvLtI0u0k1OPiMgE2d7CwmeSa33NzGpaALHPQCPg==",
4103 4113
       "dev": true
4104 4114
     },
4115
+    "babel-plugin-import": {
4116
+      "version": "1.13.5",
4117
+      "resolved": "https://registry.npmmirror.com/babel-plugin-import/-/babel-plugin-import-1.13.5.tgz",
4118
+      "integrity": "sha512-IkqnoV+ov1hdJVofly9pXRJmeDm9EtROfrc5i6eII0Hix2xMs5FEm8FG3ExMvazbnZBbgHIt6qdO8And6lCloQ==",
4119
+      "dev": true,
4120
+      "requires": {
4121
+        "@babel/helper-module-imports": "^7.0.0"
4122
+      }
4123
+    },
4105 4124
     "babel-plugin-jsx-attributes-array-to-object": {
4106 4125
       "version": "0.3.0",
4107 4126
       "resolved": "https://registry.npmmirror.com/babel-plugin-jsx-attributes-array-to-object/-/babel-plugin-jsx-attributes-array-to-object-0.3.0.tgz",
@@ -5267,8 +5286,7 @@
5267 5286
     "charenc": {
5268 5287
       "version": "0.0.2",
5269 5288
       "resolved": "https://registry.npmmirror.com/charenc/-/charenc-0.0.2.tgz",
5270
-      "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==",
5271
-      "dev": true
5289
+      "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="
5272 5290
     },
5273 5291
     "chokidar": {
5274 5292
       "version": "3.5.3",
@@ -6047,8 +6065,7 @@
6047 6065
     "crypt": {
6048 6066
       "version": "0.0.2",
6049 6067
       "resolved": "https://registry.npmmirror.com/crypt/-/crypt-0.0.2.tgz",
6050
-      "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==",
6051
-      "dev": true
6068
+      "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="
6052 6069
     },
6053 6070
     "crypto-browserify": {
6054 6071
       "version": "3.12.0",
@@ -10199,8 +10216,7 @@
10199 10216
     "is-buffer": {
10200 10217
       "version": "1.1.6",
10201 10218
       "resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
10202
-      "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
10203
-      "dev": true
10219
+      "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
10204 10220
     },
10205 10221
     "is-callable": {
10206 10222
       "version": "1.2.7",
@@ -11227,7 +11243,6 @@
11227 11243
       "version": "2.3.0",
11228 11244
       "resolved": "https://registry.npmmirror.com/md5/-/md5-2.3.0.tgz",
11229 11245
       "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
11230
-      "dev": true,
11231 11246
       "requires": {
11232 11247
         "charenc": "0.0.2",
11233 11248
         "crypt": "0.0.2",

+ 2
- 0
src/app.config.js 파일 보기

@@ -19,6 +19,8 @@ export default defineAppConfig({
19 19
     'pages/reporting/index',
20 20
     'pages/reporting/detail/index',
21 21
     'pages/reset-password/index',
22
+    'pages/check/list/index',
23
+    'pages/check/edit/index',
22 24
   ],
23 25
   window: {
24 26
     // backgroundColor: '#1A7565',

BIN
src/assets/icons/box.png 파일 보기


+ 12
- 0
src/components/ScrollPage/index.jsx 파일 보기

@@ -0,0 +1,12 @@
1
+import React from 'react';
2
+import { View } from '@tarojs/components';
3
+import style from './style.module.less';
4
+
5
+export default (props) => {
6
+  return (
7
+    <View className={style['box']}>
8
+      <View className={style['page']} />
9
+      <View className={style['button']} />
10
+    </View>
11
+  )
12
+}

+ 11
- 0
src/components/ScrollPage/style.module.less 파일 보기

@@ -0,0 +1,11 @@
1
+.box {
2
+  display: flex;
3
+  .page {
4
+    flex: 1;
5
+    height: 100%;
6
+  }
7
+  .button {
8
+    flex: none;
9
+    height: 100px;
10
+  }
11
+}

+ 28
- 0
src/pages/check/components/List.jsx 파일 보기

@@ -0,0 +1,28 @@
1
+import React from 'react';
2
+import { View, Text } from '@tarojs/components';
3
+import { Button, Row, Col } from '@antmjs/vantui';
4
+import Taro from '@tarojs/taro';
5
+import style from './list.module.less';
6
+
7
+export default (props) => {
8
+  const onClick = () => {
9
+    Taro.navigateTo({
10
+      url: `/pages/check/edit/index`
11
+    })
12
+  }
13
+
14
+  return (
15
+    <View className={style['box']}>
16
+      <Row>
17
+        <View className={style['box-text']}>
18
+          <Col span={19}>关于第X界实地测评</Col>
19
+          <Col span={5}>
20
+            <Button round size="mini" color="#1A7565" onClick={onClick}>去完成</Button>
21
+          </Col>
22
+        </View>
23
+      </Row>
24
+      <View className={style['dashed']}></View>
25
+      <View className={style['box-text2']}>发布日期:<Text className={style['time']}>2022-12-06</Text><Text>12:00</Text></View>
26
+    </View>
27
+  )
28
+}

+ 28
- 0
src/pages/check/components/list.module.less 파일 보기

@@ -0,0 +1,28 @@
1
+.box {
2
+  width: 92%;
3
+  height: 221px;
4
+  box-shadow: 0px 18px 22px 1px rgba(67, 65, 65, 0.06);
5
+  margin: 50px auto;
6
+  .box-text {
7
+    margin-left: 10px;
8
+    padding-top: 15px;
9
+    text-align: left;
10
+    font-size: 30px;
11
+    color: var(--main-bg-color);
12
+  }
13
+  .dashed {
14
+    width: 94%;
15
+    border-bottom: 2px dashed #dcdcdc;
16
+    margin: 0 auto;
17
+    position: relative;
18
+    top: 26px;
19
+  }
20
+  .box-text2 {
21
+    margin-left: 10px;
22
+    padding-top: 55px;
23
+    .time {
24
+      padding-left: 10px;
25
+      padding-right: 10px;
26
+    }
27
+  }
28
+}

+ 26
- 0
src/pages/check/edit/components/Choice.jsx 파일 보기

@@ -0,0 +1,26 @@
1
+import React from 'react';
2
+import { View } from '@tarojs/components';
3
+import { Radio, RadioGroup, Row, Col, CellGroup, Cell } from '@antmjs/vantui'
4
+import style from './choice.module.less';
5
+
6
+export default (props) => {
7
+  const { value } = props;
8
+  return (
9
+    <CellGroup className={style['cell']}>
10
+      <Cell title="测评内容" border={false} size="large" />
11
+      <Cell className={style['text']} title="在显著位置看到市民公约或居民公约展示" border={false} />
12
+      <Row>
13
+        <Col offset="3" span="12">
14
+          <RadioGroup value={value}>
15
+            <Cell border={false}>
16
+              <Radio checkedColor="var(--main-bg-color)">A.符合</Radio>
17
+            </Cell>
18
+            <Cell border={false} className={style['radio']}>
19
+              <Radio checkedColor="var(--main-bg-color)">B.不符合</Radio>
20
+            </Cell>
21
+          </RadioGroup>
22
+        </Col>
23
+      </Row>
24
+    </CellGroup>
25
+  )
26
+}

+ 13
- 0
src/pages/check/edit/components/choice.module.less 파일 보기

@@ -0,0 +1,13 @@
1
+.cell {
2
+  margin-bottom: 40px;
3
+  .text {
4
+    text-align: center;
5
+    color: var(--main-bg-color);
6
+    padding-top: 0px;
7
+    padding-bottom: 0px;
8
+  }
9
+  .radio {
10
+    padding-top: 0px;
11
+    margin-bottom: 40px;
12
+  }
13
+}

+ 4
- 0
src/pages/check/edit/index.config.js 파일 보기

@@ -0,0 +1,4 @@
1
+// eslint-disable-next-line no-undef
2
+export default definePageConfig({
3
+  navigationBarTitleText: '实地测评'
4
+})

+ 252
- 0
src/pages/check/edit/index.jsx 파일 보기

@@ -0,0 +1,252 @@
1
+import React from 'react';
2
+import Map from '@/components/map';
3
+import Page from '@/layouts/index';
4
+import { Button, Field, Cell, CellGroup, Row, Col, Image } from '@antmjs/vantui';
5
+import mapIcon from '@/assets/icons/marker.png';
6
+import LocType from '@/components/LocType';
7
+import { View, Input } from '@tarojs/components';
8
+import Uploader from '@/components/Uploader/index';
9
+import ScrollPage from '@/components/ScrollPage/index';
10
+import icon from '@/assets/icons/box.png';
11
+import Choice from "./components/Choice";
12
+
13
+export default (props) => {
14
+  const {
15
+    issue,
16
+    readOnly,
17
+    showOrg,
18
+    showExpireDate,
19
+    renderFields,
20
+    renderAction,
21
+  } = props;
22
+
23
+  const [inx, setInx] = React.useState(-1);
24
+
25
+  const num = 1;
26
+  const count = 15;
27
+
28
+  const [formData, setFormData] = React.useState({
29
+    typeId: undefined,
30
+    typeName: undefined,
31
+    locId: undefined,
32
+    locName: undefined,
33
+    location: undefined,
34
+    addr: undefined,
35
+    content: undefined,
36
+    attachList: [],
37
+  });
38
+
39
+  const [showLocType, setShowLocType] = React.useState(false);
40
+  const [evaluationPage, setEvaluationPage] = React.useState(true);
41
+  const [evaluationPage2, setEvaluationPage2] = React.useState(false);
42
+  const [evaluationPage3, setEvaluationPage3] = React.useState(false);
43
+  const [scrollPage, setScrollPage] = React.useState(false);
44
+
45
+  const onLocTypeChange = (_, it) => {
46
+    setFormData({
47
+      ...formData,
48
+      locId: it.typeId,
49
+      locName: it.name,
50
+    });
51
+    setShowLocType(false);
52
+  }
53
+
54
+  const setFieldChange = (field, value) => {
55
+    setFormData({
56
+      ...formData,
57
+      [field]: value,
58
+    })
59
+  }
60
+
61
+  const onChangePage = () => {
62
+    setEvaluationPage(false);
63
+    setEvaluationPage2(true);
64
+  }
65
+
66
+  const onChangePage2 = () => {
67
+    setEvaluationPage2(false);
68
+    setEvaluationPage3(true);
69
+  }
70
+
71
+  const onChangePage3 = () => {
72
+    setEvaluationPage3(false);
73
+    setScrollPage(true);
74
+  }
75
+
76
+  return (
77
+    <>
78
+      <Page>
79
+        {
80
+          evaluationPage && (<>
81
+            <LocType
82
+              show={showLocType}
83
+              value={formData.addr}
84
+              onCancel={() => setShowLocType(false)}
85
+              onChange={onLocTypeChange}
86
+            />
87
+            <Map location={formData.location} />
88
+            <CellGroup>
89
+              <Cell
90
+                title="点位"
91
+                isLink
92
+                value={formData.locName}
93
+                onClick={() => !readOnly && setShowLocType(true)}
94
+              />
95
+              <Field
96
+                placeholder="请输入地址"
97
+                value={formData.addr}
98
+                leftIcon={mapIcon}
99
+              // readonly={readOnly}
100
+              // onChange={e => setFieldChange('addr', e.detail)}
101
+              />
102
+            </CellGroup>
103
+
104
+            <CellGroup style={{ padding: 'var(--main-space)', position: 'relative', top: '330px' }}>
105
+              <Button
106
+                type="primary"
107
+                block
108
+                onClick={onChangePage}
109
+              >
110
+                下一步
111
+              </Button>
112
+            </CellGroup>
113
+          </>)
114
+        }
115
+
116
+        {
117
+          evaluationPage2 && (
118
+            <View style={{ flex: '1' }}>
119
+
120
+              <Choice />
121
+
122
+              <CellGroup>
123
+                <Cell title="评测标准" border={false} size="large" />
124
+                <Row>
125
+                  <Col offset="2" span="20">
126
+                    <Cell
127
+                      title="
128
+                  在显著位置看到市民公约或居民公约展示"
129
+                      border={false}
130
+                      style={{ paddingTop: '0px' }}
131
+                    />
132
+                  </Col>
133
+                </Row>
134
+              </CellGroup>
135
+
136
+              <CellGroup style={{ marginTop: '20px' }}>
137
+                <Cell title="拍照" border={false} size="large" />
138
+
139
+                <Cell
140
+                  renderTitle={
141
+                    <Uploader
142
+                      value={formData.attachList}
143
+                      disabled={readOnly}
144
+                      onChange={e => setFieldChange('attachList', e)}
145
+                    />
146
+                  }
147
+                />
148
+              </CellGroup>
149
+
150
+              <View style={{ position: 'relative', marginBottom: '20px', flex: 'none' }}>
151
+                <View style={{ position: 'absolute', width: '100%', top: '100px' }}>
152
+                  <CellGroup style={{ marginTop: '20px', padding: 'var(--main-space)' }}>
153
+                    <Button
154
+                      type="primary"
155
+                      block
156
+                      onClick={onChangePage2}
157
+                    >
158
+                      下一题
159
+                    </Button>
160
+                  </CellGroup>
161
+
162
+                  <CellGroup>
163
+                    <Cell
164
+                      style={{ textAlign: 'right' }}
165
+                    >
166
+                      <Image src={icon} width="25px" height="25px"
167
+                        style={{ verticalAlign: 'middle', marginRight: '10px' }}
168
+                      />
169
+                      {num + '/' + count}
170
+                    </Cell>
171
+                  </CellGroup>
172
+                </View>
173
+              </View>
174
+            </View>)
175
+        }
176
+
177
+        {
178
+          evaluationPage3 && (
179
+            <ScrollPage>
180
+              <CellGroup>
181
+                <Cell title="测评内容" border={false} size="large" style={{ paddingBottom: '0px' }} />
182
+                <View style={{ padding: 'var(--main-space)', paddingTop: '0px' }}>
183
+                  <View style={{ padding: 'var(--main-space)', fontSize: '14px', color: 'var(--main-bg-color)' }}>
184
+                    垃圾乱扔,乱张贴(具体标准),测评结果:<Input type="text" style={{ width: '45px', display: 'inline-block', verticalAlign: 'middle' }} />处。(此处填写数字)
185
+                  </View>
186
+                </View>
187
+              </CellGroup>
188
+
189
+              <CellGroup>
190
+                <Cell title="评测标准" border={false} size="large" />
191
+                <Row>
192
+                  <Col offset="2" span="20">
193
+                    <Cell
194
+                      title="
195
+                    (1)每看到1处垃圾乱扔(1平方米以内的垃圾算作1处)计为1处;
196
+                    (2)每看到1处乱张贴乱涂写乱刻画《1平米内出现的算作1 处在统一设置的信息栏中张贴的小广告不算作失分点)计为1处;
197
+                    (3)每看到建筑物外立面的1处大面积破损污损《高3米以上、宽2米以上)计为1处。"
198
+                      border={false}
199
+                      style={{ paddingTop: '0px' }}
200
+                    />
201
+                  </Col>
202
+                </Row>
203
+              </CellGroup>
204
+
205
+              <CellGroup style={{ marginTop: '20px' }}>
206
+                <Cell title="拍照" border={false} size="large" />
207
+
208
+                <Cell
209
+                  renderTitle={
210
+                    <Uploader
211
+                      value={formData.attachList}
212
+                      disabled={readOnly}
213
+                      onChange={e => setFieldChange('attachList', e)}
214
+                    />
215
+                  }
216
+                />
217
+              </CellGroup>
218
+
219
+              <CellGroup style={{ marginTop: '20px', padding: 'var(--main-space)' }}>
220
+                <Row>
221
+                  <Col offset="1" span="10">
222
+                    <Button
223
+                      type="primary"
224
+                      block
225
+                    >
226
+                      上一题
227
+                    </Button>
228
+                  </Col>
229
+                  <Col offset="2" span="10">
230
+                    <Button
231
+                      type="primary"
232
+                      block
233
+                      onClick={onChangePage3}
234
+                    >
235
+                      下一题
236
+                    </Button>
237
+                  </Col>
238
+                </Row>
239
+              </CellGroup>
240
+            </ScrollPage>)
241
+        }
242
+      </Page >
243
+      <View>
244
+        {
245
+          scrollPage && (
246
+            <ScrollPage />
247
+          )
248
+        }
249
+      </View>
250
+    </>
251
+  )
252
+}

+ 4
- 0
src/pages/check/list/index.config.js 파일 보기

@@ -0,0 +1,4 @@
1
+// eslint-disable-next-line no-undef
2
+export default definePageConfig({
3
+  navigationBarTitleText: '模拟测评'
4
+})

+ 24
- 0
src/pages/check/list/index.jsx 파일 보기

@@ -0,0 +1,24 @@
1
+import React from 'react';
2
+import Page from '@/layouts/index';
3
+import { Tab, Tabs, Button } from '@antmjs/vantui';
4
+import { ROLE_INSPECTOR, ROLE_MANAGER } from '@/utils/user';
5
+import { View } from '@tarojs/components';
6
+import Taro from '@tarojs/taro';
7
+import PowerList from '@/components/PowerList';
8
+import List from "../components/List";
9
+
10
+
11
+export default (props) => {
12
+  return (
13
+    <Page roles={[ROLE_INSPECTOR]}>
14
+      <Tabs sticky>
15
+        <Tab title="实地测评">
16
+          <List />
17
+        </Tab>
18
+        <Tab title="问卷调查">
19
+
20
+        </Tab>
21
+      </Tabs>
22
+    </Page>
23
+  )
24
+}

+ 2
- 2
src/pages/home/index.jsx 파일 보기

@@ -12,7 +12,7 @@ const menus = {
12 12
   [ROLE_INSPECTOR]: [
13 13
     { icon: 'icon9', text: '我的上报', link: '/pages/issue/list/index' },
14 14
     { icon: 'icon11', text: '消息通知', link: '' },
15
-    { icon: 'icon10', text: '模拟测评', link: '' },
15
+    { icon: 'icon10', text: '模拟测评', link: '/pages/check/list/index' },
16 16
   ],
17 17
 
18 18
   [ROLE_MANAGER]: [
@@ -50,7 +50,7 @@ export default (props) => {
50 50
     <Page tabBar="home" className='home-page'>
51 51
       <Head user={user} />
52 52
       <BannerCard />
53
-      
53
+
54 54
       <View className="menu-icons">
55 55
         {
56 56
           menuArr.map(x => (

+ 27
- 27
src/pages/issue/components/Issue/index.jsx 파일 보기

@@ -41,13 +41,13 @@ export default (props) => {
41 41
   const [showDatePicker, setShowDatePicker] = React.useState(false);
42 42
   const [bizStatus, setBizStatus] = React.useState();
43 43
   const [issueProcess, setIssueProcess] = React.useState([]);
44
-  
44
+
45 45
   const issueReject = React.useMemo(() => {
46 46
     if (!issueProcess || !issueProcess.length) return {};
47 47
 
48 48
     return issueProcess.filter(x => x.processStatus === 'reject')[0] || {};
49 49
   }, [issueProcess]);
50
-    
50
+
51 51
   const onLocTypeChange = (_, it) => {
52 52
     setFormData({
53 53
       ...formData,
@@ -95,15 +95,15 @@ export default (props) => {
95 95
     if (issue) {
96 96
       setFormData(issue);
97 97
       setBizStatus(getIssueStatus(issue));
98
-      
98
+
99 99
       if (issue.processStatus == 'reject') {
100
-        getIssueProcess({pageSize: 100, issueId: issue.issueId}).then(res => {
100
+        getIssueProcess({ pageSize: 100, issueId: issue.issueId }).then(res => {
101 101
           setIssueProcess(res.records || []);
102 102
         })
103 103
       }
104 104
     }
105 105
   }, [issue]);
106
-  
106
+
107 107
   return (
108 108
     <View>
109 109
       <LocType
@@ -156,35 +156,35 @@ export default (props) => {
156 156
 
157 157
       {
158 158
         readOnly && bizStatus && (
159
-          <CellGroup style={{marginTop: '20px'}}>
159
+          <CellGroup style={{ marginTop: '20px' }}>
160 160
             <Cell
161 161
               title="状态"
162 162
               value={bizStatus.label}
163 163
             />
164 164
 
165
-          {
166
-            issueReject.processId && (
167
-              <>
168
-                <Cell title="驳回原因" />        
169
-                <Field
170
-                  readonly
171
-                  type="textarea"
172
-                  autosize={{ minHeight: '120px' }}
173
-                  value={issueReject.processResult}
174
-                />
175
-              </>
176
-            )
177
-          }
165
+            {
166
+              issueReject.processId && (
167
+                <>
168
+                  <Cell title="驳回原因" />
169
+                  <Field
170
+                    readonly
171
+                    type="textarea"
172
+                    autosize={{ minHeight: '120px' }}
173
+                    value={issueReject.processResult}
174
+                  />
175
+                </>
176
+              )
177
+            }
178 178
           </CellGroup>
179 179
         )
180 180
       }
181
-      
182 181
 
183
-      <CellGroup style={{marginTop: '20px'}}>
182
+
183
+      <CellGroup style={{ marginTop: '20px' }}>
184 184
         <Cell
185 185
           title="问题分类"
186 186
           isLink={!readOnly}
187
-          style={{marginTop: '20px'}}
187
+          style={{ marginTop: '20px' }}
188 188
           value={formData.typeName}
189 189
           onClick={() => !readOnly && setShowIssueType(true)}
190 190
         />
@@ -199,8 +199,8 @@ export default (props) => {
199 199
           onChange={e => setFieldChange('content', e.detail)}
200 200
         />
201 201
       </CellGroup>
202
-            
203
-      <CellGroup style={{marginTop: '20px'}}>        
202
+
203
+      {/* <CellGroup style={{marginTop: '20px'}}>        
204 204
         <Cell title="拍照或视频" border={false} />
205 205
 
206 206
         <Cell
@@ -212,11 +212,11 @@ export default (props) => {
212 212
             />
213 213
           }
214 214
         />
215
-      </CellGroup>
215
+      </CellGroup> */}
216 216
 
217 217
       {
218 218
         (showOrg || showExpireDate) && (
219
-          <CellGroup style={{marginTop: '20px'}}>
219
+          <CellGroup style={{ marginTop: '20px' }}>
220 220
             {
221 221
               showOrg && (
222 222
                 <Cell
@@ -256,7 +256,7 @@ export default (props) => {
256 256
 
257 257
       {
258 258
         renderAction ? (
259
-          <View style={{margin: '20px auto'}}>
259
+          <View style={{ margin: '20px auto' }}>
260 260
             {renderAction(formData)}
261 261
           </View>
262 262
         ) : null

+ 2
- 2
src/pages/issue/edit/components/Save.jsx 파일 보기

@@ -10,7 +10,7 @@ export default (props) => {
10 10
   const { formData } = props;
11 11
 
12 12
   const [loading, setLoading] = React.useState(false);
13
-  
13
+
14 14
   // 新增问题单
15 15
   const onSubmit = () => {
16 16
     try {
@@ -38,7 +38,7 @@ export default (props) => {
38 38
       setLoading(false);
39 39
     })
40 40
   }
41
-  
41
+
42 42
   return (
43 43
     <Button block type="primary" loading={loading} onClick={onSubmit}>提交</Button>
44 44
   )