|
@@ -39,8 +39,11 @@ export default props => {
|
39
|
39
|
const [loading, setLoading] = useState(false)
|
40
|
40
|
const [showPrompt, setShowPrompt] = useState(false)
|
41
|
41
|
const [showDispatch, setShowDispatch] = useState(false)
|
|
42
|
+ const [showWorker, setShowWorker] = useState(false)
|
42
|
43
|
const [showReject, setShowReject] = useState(false)
|
43
|
44
|
const [ticketData, setTicketData] = useState({})
|
|
45
|
+ const [lifeData, setLifeData] = useState([])
|
|
46
|
+ const [workerData, setWorkerData] = useState([])
|
44
|
47
|
const [approvalProcessList, setApprovalProcessList] = useState([])
|
45
|
48
|
|
46
|
49
|
const ticketType = [
|
|
@@ -97,6 +100,7 @@ export default props => {
|
97
|
100
|
const { recordList } = res || {}
|
98
|
101
|
setTicketData(res)
|
99
|
102
|
setApprovalProcessList(recordList)
|
|
103
|
+ setLifeData(res.tpUsersList.filter(e => e.type == "life-consultant"))
|
100
|
104
|
})
|
101
|
105
|
}, [])
|
102
|
106
|
|
|
@@ -172,6 +176,7 @@ export default props => {
|
172
|
176
|
<>
|
173
|
177
|
<Button type="primary" onClick={() => setShowDispatch(true)}>分配工单</Button>
|
174
|
178
|
<Button type="danger" style={{marginLeft: '24px'}} onClick={() => setShowReject(true)}>拒绝受理</Button>
|
|
179
|
+ {/* <Button type="primary" style={{marginLeft: '24px'}} onClick={() => setShowWorker(true)}>分配维修工人·</Button> */}
|
175
|
180
|
</>
|
176
|
181
|
)
|
177
|
182
|
}
|
|
@@ -220,7 +225,7 @@ export default props => {
|
220
|
225
|
<Price visible={showPrompt} onSubmit={handleChangePrice} onCancel={() => setShowPrompt(false)} />
|
221
|
226
|
|
222
|
227
|
{/* 工单分配 */}
|
223
|
|
- <Dispatch visible={showDispatch} userList={ticketData.tpUsersList} onSubmit={handleDispatchTicket} onCancel={() => setShowDispatch(false)} />
|
|
228
|
+ <Dispatch visible={showDispatch} userList={lifeData} onSubmit={handleDispatchTicket} onCancel={() => setShowDispatch(false)} />
|
224
|
229
|
{/* 拒绝原因 */}
|
225
|
230
|
<Prompt visible={showReject} onCancel={() => setShowReject(false)} onOk={handleReject} placeholder="请填写拒绝原因"></Prompt>
|
226
|
231
|
</div>
|