|
@@ -12,6 +12,7 @@ import {connect} from 'react-redux';
|
|
|
import CallPhone from '../../components/CallPhone';
|
|
|
import ComponentsStyles from '../../components/ComponentsStyles';
|
|
|
import RefreshFlatList from 'react-native-refresh-flatlist';
|
|
|
+import SyncStorage from 'sync-storage';
|
|
|
|
|
|
const tabs = [
|
|
|
{title: '基本信息', id: 1},
|
|
@@ -252,6 +253,7 @@ class ReviewDetail extends Component {
|
|
|
{text: '取消', onPress: () => this.setState({dispatchVisible: false})},
|
|
|
{text: '保存', onPress: () => this.againDispatch(customerDetail.id)},
|
|
|
];
|
|
|
+ const premissions = SyncStorage.get('premissions');
|
|
|
return (
|
|
|
<Provider>
|
|
|
<Tabs
|
|
@@ -322,7 +324,7 @@ class ReviewDetail extends Component {
|
|
|
>
|
|
|
<View style={{padding: 10}}>
|
|
|
<List>
|
|
|
-
|
|
|
+ {premissions.indexOf('customer.inner_review') > -1 &&
|
|
|
<List.Item>
|
|
|
<Text style={styles.modalText}
|
|
|
onPress={() => {
|
|
@@ -335,6 +337,7 @@ class ReviewDetail extends Component {
|
|
|
}
|
|
|
>内部跟踪</Text>
|
|
|
</List.Item>
|
|
|
+ }
|
|
|
|
|
|
<List.Item>
|
|
|
<Text
|
|
@@ -363,7 +366,7 @@ class ReviewDetail extends Component {
|
|
|
}
|
|
|
>添加项目</Text>
|
|
|
</List.Item>
|
|
|
-
|
|
|
+ {premissions.indexOf('customer.again_dispatch') > -1 &&
|
|
|
<List.Item>
|
|
|
<Text
|
|
|
style={styles.modalText}
|
|
@@ -371,7 +374,7 @@ class ReviewDetail extends Component {
|
|
|
}
|
|
|
>重新分配</Text>
|
|
|
</List.Item>
|
|
|
-
|
|
|
+ }
|
|
|
<List.Item onPress={() => this.setState({moreModelVisible: false})}>
|
|
|
<Text style={styles.modalText}>取消</Text>
|
|
|
</List.Item>
|