张涛 11 months ago
parent
commit
cd6c2bff1c

+ 2
- 0
src/app.config.js View File

@@ -7,7 +7,9 @@ export default defineAppConfig({
7 7
     "pages/issue/list2/index",
8 8
     "pages/issue/edit/index",
9 9
     "pages/org/issue/list/index",
10
+    "pages/org/issue/list2/index",
10 11
     "pages/org/issue/detail/index",
12
+    "pages/org/issue/detail2/index",
11 13
     "pages/apply/list/index",
12 14
     // 'pages/apply/apply/index',
13 15
     "pages/apply/verify/index",

+ 12
- 0
src/pages/home/index.jsx View File

@@ -42,6 +42,7 @@ const menus = {
42 42
     },
43 43
     { icon: "icon11", text: "消息通知", link: "/pages/message/list/index" },
44 44
     { icon: "icon10", text: "模拟测评", link: "/pages/check/list/index" },
45
+  
45 46
   ],
46 47
 
47 48
   // 平台管理员
@@ -120,6 +121,12 @@ const menus = {
120 121
       text: "我的上报",
121 122
       link: `/pages/feedback/issuelist/index?title=我的上报&bizStatus=`,
122 123
     },
124
+    {
125
+      icon: "icon12",
126
+      text: "123456",
127
+      link: "/pages/org/issue/list2/index?mine=true",
128
+    },
129
+ 
123 130
   ],
124 131
 
125 132
   // 责任交办单位管理员
@@ -147,6 +154,11 @@ const menus = {
147 154
     },
148 155
     { icon: "icon11", text: "消息通知", link: "/pages/message/list/index" },
149 156
     { icon: "person", text: "人员管理", link: "/pages/user/list/index" },
157
+    {
158
+      icon: "icon12",
159
+      text: "123456",
160
+      link: "/pages/org/issue/list2/index?mine=true",
161
+    },
150 162
   ],
151 163
 
152 164
   // 查询人员

+ 2
- 2
src/pages/issue/components/Issue/index.jsx View File

@@ -133,11 +133,12 @@ export default (props) => {
133 133
   };
134 134
 
135 135
   React.useEffect(() => {
136
+    console.log("issue******************",issue)
136 137
     if (issue) {
137 138
       fmRef.current = issue;
138 139
       setFormData(issue);
139 140
       // console.log('---------issue-------->', issue)
140
-      getTaOrgIssueByIssueId(issue.issueId, issue.orgId).then((r) => {
141
+      getTaOrgIssueByIssueId(issue.issueId, issue.orgId,issue.status).then((r) => {
141 142
         setOrgIssue(r);
142 143
       });
143 144
     }
@@ -148,7 +149,6 @@ export default (props) => {
148 149
     setFieldChange("content", value);
149 150
   };
150 151
   
151
-      console.log('---------issue---issue----->')
152 152
 
153 153
   return (
154 154
     <View>

+ 141
- 0
src/pages/org/issue/detail2/components/Apply.jsx View File

@@ -0,0 +1,141 @@
1
+import React from 'react';
2
+import Taro from '@tarojs/taro';
3
+import { View } from '@tarojs/components';
4
+import { Cell, CellGroup, Field, Button, Popup } from '@antmjs/vantui';
5
+import DatePicker from '@/components/DatePicker';
6
+import { getDateStr } from '@/utils/date';
7
+import { postTaIssueApply } from '@/services/taissueapply';
8
+import { putTaOrgIssue } from '@/services/taorgissue';
9
+import { warn } from '@/utils/message';
10
+import {
11
+  PROCESS_APPLY_DELAY,
12
+  PROCESS_APPLY_END,
13
+  PROCESS_APPLY_REJECT,
14
+  PROCESS_APPLY_VERIFY
15
+} from '@/utils/biz';
16
+
17
+const today = new Date();
18
+export default (props) => {
19
+
20
+  const { orgIssue, applyType, ...leftProps } = props;
21
+
22
+  const [show, setShow] = React.useState(false);
23
+  const [submitting, setSubmitting] = React.useState(false);
24
+  const [showDatePicker, setShowDatePicker] = React.useState(false);
25
+
26
+  // 申请表记录
27
+  const [formData, setFormData] = React.useState({});
28
+
29
+  const setFieldValue = (key, value) => {
30
+    setFormData({
31
+      ...formData,
32
+      [key]: value,
33
+    })
34
+  }
35
+
36
+  const onDateClick = () => {
37
+    setShow(false);
38
+    setShowDatePicker(true);
39
+  }
40
+  
41
+  const onDateChange = (dt) => {
42
+    const date = getDateStr(dt);
43
+    setFieldValue('content', date);
44
+    setShowDatePicker(false);
45
+    setShow(true);
46
+  }
47
+
48
+  const onClick = () => {
49
+    if (applyType == PROCESS_APPLY_VERIFY || applyType == PROCESS_APPLY_END) {
50
+      onSubmit();
51
+    } else {
52
+      setShow(true);
53
+    }
54
+  }
55
+
56
+  const onSubmit = () => {
57
+    try {
58
+      warn(!orgIssue || !orgIssue.issueId, '未找到问题单');
59
+
60
+      if (applyType == PROCESS_APPLY_VERIFY || applyType == PROCESS_APPLY_END) {
61
+        warn(!orgIssue.attachList || !orgIssue.attachList.length, '请上传照片');
62
+        warn(!orgIssue.result, '请填写整改结果');
63
+      }
64
+
65
+      warn(applyType == PROCESS_APPLY_DELAY && !formData.content, '请设置延期时间');
66
+      warn(applyType == PROCESS_APPLY_REJECT && !formData.remark, '请填写驳回理由');
67
+    } catch (e) {
68
+      return ;
69
+    }
70
+
71
+    const data = {
72
+      applyType,
73
+      issueId: orgIssue.issueId,
74
+      ...formData
75
+    }
76
+
77
+    if (applyType == PROCESS_APPLY_VERIFY || applyType == PROCESS_APPLY_END) {
78
+      // 先保存数据
79
+      setSubmitting(true);
80
+      putTaOrgIssue(orgIssue.orgIssueId, orgIssue).then(() => {
81
+        // 再调用申请接口
82
+        postTaIssueApply(data).then(() => {
83
+          Taro.navigateBack({delta: 1});
84
+          setSubmitting(false);
85
+        }).catch(() => {
86
+          setSubmitting(false);
87
+        })
88
+      }).catch(() => {
89
+        setSubmitting(false);
90
+      })
91
+    } else {
92
+      // 直接调用申请接口
93
+      postTaIssueApply(data).then(() => {
94
+        Taro.navigateBack({delta: 1});
95
+        setSubmitting(false);
96
+      }).catch(() => {
97
+        setSubmitting(false);
98
+      })
99
+    }
100
+  }
101
+
102
+  
103
+  return (
104
+    <>
105
+      <DatePicker
106
+        type="date"
107
+        minDate={today}
108
+        show={showDatePicker}
109
+        value={formData.content}
110
+        onCancel={() => setShowDatePicker(false)}
111
+        onChange={onDateChange}
112
+      />
113
+      <Popup position="bottom" show={show} onClose={() => setShow(false)}>
114
+        <CellGroup>
115
+          {
116
+            applyType == PROCESS_APPLY_DELAY && (
117
+              <Cell
118
+                isLink
119
+                title="延期时间"
120
+                value={formData.content}
121
+                onClick={onDateClick}
122
+              />
123
+            )
124
+          }
125
+          <Cell title="理由说明" />
126
+          <Field
127
+            type="textarea"
128
+            autosize={{ minHeight: '120px' }}
129
+            value={formData.remark}
130
+            onChange={e => setFieldValue('remark', e.detail)}
131
+          />
132
+          <View style={{display: 'flex'}}>
133
+            <Button block plain type="default" onClick={() => setShow(false)}>取消</Button>
134
+            <Button block plain type="primary" loading={submitting} onClick={onSubmit}>确定</Button>
135
+          </View>
136
+        </CellGroup>
137
+      </Popup>
138
+      <Button {...leftProps} onClick={onClick}>{props.children}</Button>
139
+    </>
140
+  )
141
+}

+ 80
- 0
src/pages/org/issue/detail2/components/Assigned.jsx View File

@@ -0,0 +1,80 @@
1
+import React from 'react';
2
+import Taro from '@tarojs/taro';
3
+import { View } from '@tarojs/components';
4
+import { Button, Dialog } from '@antmjs/vantui';
5
+import OrgPicker from "@/components/OrgPicker";
6
+import { postIssueAssignedAgain, putTaIssue, copyTaIssue } from '@/services/taissue';
7
+import { warn } from '@/utils/message';
8
+
9
+export default (props) => {
10
+
11
+  const { issue } = props;
12
+  const formDataRef = React.useRef();
13
+
14
+  const dialogId = React.useMemo(() => `dialog-${Math.random().toString(36).substring(2, 7)}`, []);
15
+  const [loading1, setLoading1] = React.useState(false);
16
+  const [loading2, setLoading2] = React.useState(false);
17
+  const [showOrgPicker, setShowOrgPicker] = React.useState(false);
18
+
19
+  // 交办
20
+  const onAssigned = () => {
21
+    try {
22
+      // warn(!formData.addr, '请填写地址')
23
+      // warn(!formData.locId, '请选择点位')
24
+      // warn(!formData.content, '请填写问题描述')
25
+      // warn(!formData.typeId, '请选择问题分类')
26
+      // warn(!formData.attachList || formData.attachList.length < 1, '请上传照片')
27
+      warn(!formDataRef.current?.orgId, '请选择交办单位')
28
+      // warn(!formData.expireDate, '请选择办结时间')
29
+    } catch (e) {
30
+      return;
31
+    }
32
+
33
+    setLoading1(true)
34
+
35
+    const data = { ...issue, ...(formDataRef.current || {}) };
36
+    // 先提交修改
37
+    putTaIssue(issue.issueId, data).then(() => {
38
+      // 再提交交办
39
+      postIssueAssignedAgain({ ...data, nextOrg: data.orgId }).then(() => {
40
+        setLoading1(false);
41
+        Taro.navigateBack({ delta: 1 });
42
+      }).catch(() => {
43
+        setLoading1(false);
44
+      })
45
+    }).catch(() => {
46
+      setLoading1(false);
47
+    })
48
+  }
49
+
50
+  
51
+  const onOrgChange = (_, it) => {
52
+    const data = {
53
+      ...(formDataRef.current || {}),
54
+      orgId: it.orgId,
55
+      orgName: it.name,
56
+    };
57
+    formDataRef.current = data;
58
+    setShowOrgPicker(false);
59
+    onAssigned();
60
+  };
61
+
62
+  return (
63
+    <View style={{ marginTop: '20px', display: 'flex' }}>
64
+      <Dialog id={dialogId} />
65
+      <OrgPicker
66
+        parentId={issue.orgId}
67
+        show={showOrgPicker}
68
+        value={formDataRef.current?.orgName}
69
+        onCancel={() => setShowOrgPicker(false)}
70
+        onChange={onOrgChange}
71
+      />
72
+      <Button
73
+        block
74
+        type="primary"
75
+        loading={loading1}
76
+        onClick={() => setShowOrgPicker(true)}
77
+      >交办</Button>
78
+    </View>
79
+  )
80
+}

+ 41
- 0
src/pages/org/issue/detail2/components/IssueStatus.jsx View File

@@ -0,0 +1,41 @@
1
+import React from 'react';
2
+import { Field, Cell } from '@antmjs/vantui';
3
+import { getIssueStatus } from '@/utils/biz';
4
+import { getIssueProcess } from '@/services/taissue';
5
+
6
+export default (props) => {
7
+
8
+  const { issue } = props;
9
+  const [bizStatus, setBizStatus] = React.useState();
10
+  const [issueProcess, setIssueProcess] = React.useState();
11
+
12
+  React.useEffect(() => {
13
+    if (issue) {
14
+      setBizStatus(getIssueStatus(issue));
15
+
16
+      // 取最新的流程日志记录
17
+      getIssueProcess({ pageSize: 1, issueId: issue.issueId }).then(res => {
18
+        setIssueProcess((res.records || [])[0]);
19
+      })
20
+    }
21
+  }, [issue]);
22
+
23
+  return (
24
+    <>
25
+      <Cell title="状态" value={bizStatus?.label}></Cell>
26
+      {
27
+        issueProcess?.processResult && (
28
+          <>
29
+            <Cell title="审核意见" />
30
+            <Field
31
+              readonly
32
+              type="textarea"
33
+              autosize={{ minHeight: '120px' }}
34
+              value={issueProcess.processResult}
35
+            />
36
+          </>
37
+        )
38
+      }
39
+    </>
40
+  )
41
+}

+ 42
- 0
src/pages/org/issue/detail2/components/Order.jsx View File

@@ -0,0 +1,42 @@
1
+import { getTaOrgIssueId } from "@/services/taorgissue";
2
+import { Cell, CellGroup, Steps } from "@antmjs/vantui";
3
+import { View } from "@tarojs/components";
4
+import React, { useEffect, useState } from "react";
5
+import dayjs from "dayjs";
6
+import styles from "../index.module.less";
7
+
8
+export default (props) => {
9
+  const { id } = props;
10
+  const [steps, setSteps] = useState([]);
11
+
12
+  useEffect(() => {
13
+    if (id) {
14
+      getTaOrgIssueId(id).then((res) => {
15
+        console.log(res);
16
+        const data = res.map((x) => {
17
+          return { ...x, text: x.orgName };
18
+        });
19
+        setSteps(data);
20
+      });
21
+    }
22
+  }, [id]);
23
+
24
+  return (
25
+    <CellGroup style={{ marginTop: "20px" }}>
26
+      <Cell title="交办历史" />
27
+
28
+      <View className={styles["page_order"]}>
29
+        {(steps || []).map((x) => {
30
+          return (
31
+            <View key={x.orgIssueId} className={styles["org_order"]}>
32
+              <View>单位:{x.orgName}</View>
33
+              <View>
34
+                时间:{dayjs(x.createDate).format("YYYY-MM-DD HH:mm:ss")}
35
+              </View>
36
+            </View>
37
+          );
38
+        })}
39
+      </View>
40
+    </CellGroup>
41
+  );
42
+};

+ 34
- 0
src/pages/org/issue/detail2/components/Update.jsx View File

@@ -0,0 +1,34 @@
1
+import React from 'react';
2
+import Taro from '@tarojs/taro';
3
+import { View } from '@tarojs/components';
4
+import { Button } from '@antmjs/vantui';
5
+import { putTaOrgIssue } from '@/services/taorgissue';
6
+import { warn } from '@/utils/message';
7
+
8
+export default (props) => {
9
+  const { orgIssue } = props;
10
+  
11
+  const [submitting, setSubmitting] = React.useState(false);
12
+  
13
+  const onSubmit = () => {
14
+    try {
15
+      warn(!orgIssue || !orgIssue.issueId, '未找打问题单');
16
+      warn(!orgIssue.result, '请填写整改结果');
17
+      warn(!orgIssue.attachList || !orgIssue.attachList, '请上传照片或视频');
18
+    } catch (e) {
19
+      return ;
20
+    }
21
+
22
+    setSubmitting(true);
23
+    putTaOrgIssue(orgIssue.orgIssueId, orgIssue).then(() => {
24
+      Taro.navigateBack({delta: 1});
25
+      setSubmitting(false);
26
+    }).catch(() => {
27
+      setSubmitting(false);
28
+    })
29
+  }
30
+
31
+  return (
32
+    <Button block type="primary" loading={submitting} onClick={onSubmit}>保存修改</Button>
33
+  )
34
+}

+ 4
- 0
src/pages/org/issue/detail2/index.config.js View File

@@ -0,0 +1,4 @@
1
+// eslint-disable-next-line no-undef
2
+export default definePageConfig({
3
+  navigationBarTitleText: '问题详情'
4
+})

+ 157
- 0
src/pages/org/issue/detail2/index.jsx View File

@@ -0,0 +1,157 @@
1
+import React from 'react';
2
+import Taro from '@tarojs/taro';
3
+import { View } from '@tarojs/components';
4
+import { Cell, CellGroup, Field, Button } from '@antmjs/vantui';
5
+import Page from '@/layouts/index';
6
+import Uploader from '@/components/Uploader/index';
7
+import { getTaIssueById } from '@/services/taissue';
8
+import { getTaOrgIssueByIssueId } from '@/services/taorgissue';
9
+import {
10
+  getIssueStatus,
11
+  PROCESS_APPLY_END,
12
+  PROCESS_END,
13
+  PROCESS_APPLY_VERIFY,
14
+  PROCESS_APPLY_DELAY,
15
+  PROCESS_APPLY_REJECT,
16
+  PROCESS_ASSIGNED,
17
+  APPLY_READY,
18
+} from '@/utils/biz';
19
+import { ROLE_ORG_MANAGER } from '@/utils/user';
20
+import { useModel } from '@/store';
21
+import IssueStatus from './components/IssueStatus';
22
+import IssueInfo from '../../components/issue-info';
23
+import Apply from './components/Apply';
24
+import Assigned from './components/Assigned';
25
+import StepsInfo from './components/Order';
26
+import Order from './components/Order';
27
+
28
+export default (props) => {
29
+
30
+  const router = Taro.useRouter();
31
+  const { id, act } = router.params;
32
+  const { duty, user } = useModel('user');
33
+
34
+  const [loading, setLoading] = React.useState(false);
35
+  const [issue, setIssue] = React.useState();
36
+  const [orgIssue, setOrgIssue] = React.useState({});
37
+
38
+  const [
39
+    readOnly,
40
+    showApplyVerify,
41
+    showApplyEnd,
42
+    showAssign,
43
+  ] = React.useMemo(() => {
44
+    if (!orgIssue.issueId) return [];
45
+
46
+    return [
47
+      orgIssue?.processStatus == APPLY_READY || orgIssue?.processNode == PROCESS_END,
48
+      orgIssue.processNode == PROCESS_ASSIGNED && duty != ROLE_ORG_MANAGER,
49
+      orgIssue.processNode != PROCESS_END && orgIssue.processNode != PROCESS_APPLY_END ,
50
+      orgIssue.processNode == PROCESS_ASSIGNED && duty == ROLE_ORG_MANAGER,
51
+    ]
52
+
53
+  }, [orgIssue, duty]);
54
+
55
+  const setFormData = (key, value) => {
56
+    setOrgIssue({
57
+      ...(orgIssue || {}),
58
+      [key]: value,
59
+    })
60
+  }
61
+
62
+  React.useEffect(() => {
63
+    if (id) {
64
+      setLoading(true)
65
+      getTaIssueById(id).then(res => {
66
+        setLoading(false);
67
+        setIssue(res);
68
+      }).catch(() => {
69
+        setLoading(false);
70
+      });
71
+
72
+      getTaOrgIssueByIssueId(id, user?.orgId ).then(res => setOrgIssue(res || {}));
73
+    }
74
+  }, [id, user]);
75
+  
76
+  return (
77
+    <Page loading={loading}>
78
+      <IssueInfo issue={issue} />
79
+
80
+    <Order id={id}/>
81
+
82
+      {/* <CellGroup style={{marginTop: '20px'}}>
83
+        <Cell title="整改结果" />
84
+        <Field
85
+          type="textarea"
86
+          readonly={readOnly}
87
+          autosize={{ minHeight: '120px' }}
88
+          value={orgIssue.result}
89
+          onChange={e => setFormData('result', e.detail)}
90
+        />
91
+      </CellGroup>
92
+      <CellGroup style={{marginTop: '20px'}}>        
93
+        <Cell title="拍照或视频" border={false} />
94
+
95
+        <Cell
96
+          renderTitle={
97
+            <Uploader
98
+              disabled={readOnly}
99
+              value={orgIssue.attachList}
100
+              onChange={e => setFormData('attachList',e)}
101
+            />
102
+          }
103
+        />
104
+      </CellGroup>
105
+      
106
+      <CellGroup style={{marginTop: '20px'}}>
107
+        <IssueStatus issue={issue} />
108
+      </CellGroup>
109
+
110
+      {
111
+        !readOnly && (
112
+          <View style={{marginTop: '20px', padding: 'var(--main-space)'}}>
113
+            <View>
114
+              {
115
+                showApplyEnd &&
116
+                  <Apply block type="primary" applyType={PROCESS_APPLY_END} orgIssue={orgIssue}>申请办结</Apply>
117
+              }
118
+            </View>
119
+            {
120
+              showApplyVerify && (
121
+                <View style={{marginTop: '20px'}}>
122
+                  <Apply block type="primary" applyType={PROCESS_APPLY_VERIFY} orgIssue={orgIssue}>申请审核</Apply>
123
+                </View>
124
+              )
125
+            }
126
+            <View style={{marginTop: '20px', display: 'flex' }}>
127
+              <Apply
128
+                block
129
+                plain
130
+                hairline
131
+                type="info"
132
+                applyType={PROCESS_APPLY_DELAY}
133
+                orgIssue={orgIssue}
134
+              >申请延期</Apply>
135
+              <Apply
136
+                block
137
+                plain
138
+                hairline
139
+                type="danger"
140
+                applyType={PROCESS_APPLY_REJECT}
141
+                orgIssue={orgIssue}
142
+                style={{marginLeft: 'var(--main-space)'}}
143
+              >申请驳回</Apply>
144
+            </View>
145
+            {
146
+              showAssign && (
147
+                <View style={{ marginTop: '20px' }}>
148
+                  <Assigned issue={issue} />
149
+                </View>
150
+              )
151
+            }
152
+          </View>
153
+        )
154
+      } */}
155
+    </Page>
156
+  )
157
+}

+ 13
- 0
src/pages/org/issue/detail2/index.module.less View File

@@ -0,0 +1,13 @@
1
+.page_order {
2
+    max-height: 200px;
3
+    width: 100%;
4
+    background-color: #FFFFFF;
5
+    overflow-y: scroll;
6
+    padding: 0 2.963vh;
7
+    .org_order {
8
+        display: flex;
9
+        justify-content: space-between;
10
+        width: 100%;
11
+        margin-top: 10px;
12
+    }
13
+}

+ 4
- 0
src/pages/org/issue/list2/index.config.js View File

@@ -0,0 +1,4 @@
1
+// eslint-disable-next-line no-undef
2
+export default definePageConfig({
3
+  navigationBarTitleText: '问题列表'
4
+})

+ 79
- 0
src/pages/org/issue/list2/index.jsx View File

@@ -0,0 +1,79 @@
1
+import React, { useState } from "react";
2
+import Taro from "@tarojs/taro";
3
+import { Tab, Tabs, Search } from "@antmjs/vantui";
4
+import Page from "@/layouts/index";
5
+import PowerList from "@/components/PowerList";
6
+import Card from "@/components/IssueCard";
7
+import { getTaOrgIssue } from "@/services/taorgissue";
8
+import { ROLE_MANAGER } from "@/utils/user";
9
+import { useModel } from "@/store";
10
+import { getIssueStatus } from "@/utils/biz";
11
+
12
+const tabStyle = {
13
+  overflow: "hidden",
14
+  height: "calc(100vh - 45px)",
15
+  overflow: "hidden",
16
+};
17
+
18
+const sid1 = Math.random().toString(36).substring(2, 8);
19
+const sid2 = Math.random().toString(36).substring(2, 8);
20
+
21
+export default (props) => {
22
+  const router = Taro.useRouter();
23
+  const { title, bizStatus, color } = router.params;
24
+  const [issueId, setIssueId] = useState("");
25
+
26
+  React.useMemo(() => {
27
+    if (title) {
28
+      Taro.setNavigationBarTitle({ title });
29
+    } else {
30
+      Taro.setNavigationBarTitle({ title: "问题列表" });
31
+    }
32
+  }, [title]);
33
+
34
+  // const { user } = useModel('user');
35
+
36
+  const param = React.useMemo(() => {
37
+    return { bizStatus, sourceType: "inspector", issueId };
38
+  }, [bizStatus, issueId]);
39
+
40
+  const onClick = (item) => {
41
+    Taro.navigateTo({
42
+      url: `/pages/org/issue/detail2/index?id=${item.issueId}`,
43
+    });
44
+  };
45
+  const onSearch = (e) => {
46
+    const { value } = e.target;
47
+    console.log(value);
48
+    setIssueId(value);
49
+  };
50
+  // const searchAction = (e) => {
51
+  //   console.log("搜索");
52
+  //   console.log(e)
53
+  //   // setIssueId(e.target.value)
54
+  // };
55
+  return (
56
+    <Page>
57
+      <Search
58
+        // onChange={(e) => setIssueId(e.detail)}
59
+        placeholder="请输入问题单号"
60
+        onSearch={onSearch}
61
+        // clearable
62
+      />
63
+      <PowerList
64
+        sid={sid1}
65
+        request={getTaOrgIssue}
66
+        params={param}
67
+        renderItem={(item) => (
68
+          <Card
69
+            key={item.issueId}
70
+            issue={item}
71
+            stText={title}
72
+            color={color}
73
+            onClick={() => onClick(item)}
74
+          />
75
+        )}
76
+      />
77
+    </Page>
78
+  );
79
+};

+ 10
- 0
src/services/taorgissue.js View File

@@ -4,6 +4,10 @@ import request from '@/utils/request';
4 4
  * 分页查询
5 5
  */
6 6
 export const getTaOrgIssue = (params) => request('/api/taOrgIssue', { params });
7
+/*
8
+ * 分页查询
9
+ */
10
+export const getTaOrgIssueWx = (params) => request('/api/wx/taOrgIssue', { params });
7 11
 
8 12
 /*
9 13
  * 新增数据
@@ -14,6 +18,12 @@ export const postTaOrgIssue = (data) => request('/api/taOrgIssue', { data, metho
14 18
  * 通过ID查询单条数据
15 19
  */
16 20
 export const getTaOrgIssueById = (id) => request(`/api/taOrgIssue/${id}`);
21
+
22
+
23
+/*
24
+ * 通过IssueId查询单条数据
25
+ */
26
+export const getTaOrgIssueId = (id) => request(`/api/taOrgIssueId/${id}`);
17 27
 /*
18 28
  * 通过ISSUE_ID查询单条数据
19 29
  */

+ 4
- 0
src/utils/biz.js View File

@@ -18,6 +18,10 @@ export const PROCESS_APPLY_VERIFY = "0203";
18 18
 // 办结申请
19 19
 export const PROCESS_APPLY_END = "0204";
20 20
 
21
+// 过程信息
22
+export const PROCESS_APPLY_INFO = "-2";
23
+
24
+
21 25
 /**
22 26
  * 审核结果
23 27
  */