|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react'
|
2
|
|
-import Taro, { Current } from '@tarojs/taro'
|
|
2
|
+import Taro, { Current, useDidShow } from '@tarojs/taro'
|
3
|
3
|
import SlidePopup from '@/components/SlidePopup/index'
|
4
|
4
|
import UploadImg from '@/components/UploadImg/index'
|
5
|
5
|
import Page from '@/layouts'
|
|
@@ -19,9 +19,15 @@ export default function BaoXiuFeiYong () {
|
19
|
19
|
const [DetailInfo, setDetailInfo] = useState(null)
|
20
|
20
|
const [BillInfo, setBillInfo] = useState(null)
|
21
|
21
|
|
22
|
|
- useEffect(() => {
|
23
|
|
- Init()
|
24
|
|
- }, [CurrnetBaoXiuId])
|
|
22
|
+ // useEffect(() => {
|
|
23
|
+ // Init()
|
|
24
|
+ // }, [CurrnetBaoXiuId])
|
|
25
|
+
|
|
26
|
+ useDidShow(() => {
|
|
27
|
+ if (CurrnetBaoXiuId !== null) {
|
|
28
|
+ Init()
|
|
29
|
+ }
|
|
30
|
+ })
|
25
|
31
|
|
26
|
32
|
const Init = () => {
|
27
|
33
|
request({ ...apis.getGongDanDetail, args: { orgId: user.orgId }, params: { ticketId: CurrnetBaoXiuId } }).then((res) => { // 获取工单详情
|