|
@@ -16,7 +16,7 @@ import {ComponentsStyles} from '../../components/ComponentsStyles';
|
|
import RadioModal from '../../components/RadioModal';
|
|
import RadioModal from '../../components/RadioModal';
|
|
|
|
|
|
@connect(customer => ({...customer}))
|
|
@connect(customer => ({...customer}))
|
|
-class WriteTrackReport extends Component {
|
|
|
|
|
|
+class WriteInternalReport extends Component {
|
|
// 填写跟踪报告
|
|
// 填写跟踪报告
|
|
constructor(props) {
|
|
constructor(props) {
|
|
super(props);
|
|
super(props);
|
|
@@ -24,9 +24,7 @@ class WriteTrackReport extends Component {
|
|
item: this.props.navigation.state.params.item,
|
|
item: this.props.navigation.state.params.item,
|
|
next_time: '',
|
|
next_time: '',
|
|
instruction: '',
|
|
instruction: '',
|
|
- description: '',
|
|
|
|
- is_giveup: 0,
|
|
|
|
- is_entry: 0,
|
|
|
|
|
|
+ is_copy: 0,
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
@@ -49,7 +47,7 @@ class WriteTrackReport extends Component {
|
|
}
|
|
}
|
|
|
|
|
|
this.props.dispatch({
|
|
this.props.dispatch({
|
|
- type: 'customer/addReview',
|
|
|
|
|
|
+ type: 'customer/addInternalReview',
|
|
payload: this.state,
|
|
payload: this.state,
|
|
callback: () => {
|
|
callback: () => {
|
|
// 返回,刷新潜客跟踪列表或潜客完善列表
|
|
// 返回,刷新潜客跟踪列表或潜客完善列表
|
|
@@ -98,41 +96,12 @@ class WriteTrackReport extends Component {
|
|
maxLength={1000}
|
|
maxLength={1000}
|
|
placeholder={'请填写回访情况'}
|
|
placeholder={'请填写回访情况'}
|
|
/>
|
|
/>
|
|
- <TextInput
|
|
|
|
- style={{
|
|
|
|
- height: 140,
|
|
|
|
- borderColor: '#eee',
|
|
|
|
- textAlignVertical: 'top',
|
|
|
|
- borderBottomWidth: 1,
|
|
|
|
- paddingTop: 10,
|
|
|
|
- paddingHorizontal: 10,
|
|
|
|
- }}
|
|
|
|
- onChangeText={text => this.setState({instruction: text})}
|
|
|
|
- value={this.state.instruction}
|
|
|
|
- multiline={true}
|
|
|
|
- numberOfLines={4}
|
|
|
|
- maxLength={1000}
|
|
|
|
- placeholder={'支援或放弃'}
|
|
|
|
- />
|
|
|
|
- <View style={ComponentsStyles.genderStyle}>
|
|
|
|
- <Text style={[ComponentsStyles.font15, {textAlignVertical: 'center'}]}>是否进店</Text>
|
|
|
|
- <RadioModal
|
|
|
|
- selectedValue={this.state.is_entry.toString()}
|
|
|
|
- onValueChange={id => this.setState({is_entry: id})}
|
|
|
|
- style={ComponentsStyles.radioStyle}
|
|
|
|
- innerStyle={{
|
|
|
|
- width: 50,
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- <Text value="1">是</Text>
|
|
|
|
- <Text value="0">否</Text>
|
|
|
|
- </RadioModal>
|
|
|
|
- </View>
|
|
|
|
|
|
+
|
|
<View style={ComponentsStyles.genderStyle}>
|
|
<View style={ComponentsStyles.genderStyle}>
|
|
- <Text style={[ComponentsStyles.font15, {textAlignVertical: 'center'}]}>是否放弃</Text>
|
|
|
|
|
|
+ <Text style={[ComponentsStyles.font15, {textAlignVertical: 'center'}]}>抄送业务员</Text>
|
|
<RadioModal
|
|
<RadioModal
|
|
- selectedValue={this.state.is_giveup.toString()}
|
|
|
|
- onValueChange={id => this.setState({is_giveup: id})}
|
|
|
|
|
|
+ selectedValue={this.state.is_copy.toString()}
|
|
|
|
+ onValueChange={id => this.setState({is_copy: id})}
|
|
style={ComponentsStyles.radioStyle}
|
|
style={ComponentsStyles.radioStyle}
|
|
innerStyle={{
|
|
innerStyle={{
|
|
width: 50,
|
|
width: 50,
|
|
@@ -142,6 +111,7 @@ class WriteTrackReport extends Component {
|
|
<Text value="0">否</Text>
|
|
<Text value="0">否</Text>
|
|
</RadioModal>
|
|
</RadioModal>
|
|
</View>
|
|
</View>
|
|
|
|
+
|
|
<List.Item
|
|
<List.Item
|
|
extra={
|
|
extra={
|
|
<DatePicker
|
|
<DatePicker
|
|
@@ -168,7 +138,7 @@ class WriteTrackReport extends Component {
|
|
onPress={() => this.onSave()}
|
|
onPress={() => this.onSave()}
|
|
style={ComponentsStyles.button}
|
|
style={ComponentsStyles.button}
|
|
>
|
|
>
|
|
- <Text style={{color: '#fff'}}>提交跟踪报告</Text></Button>
|
|
|
|
|
|
+ <Text style={{color: '#fff'}}>提交内部跟踪</Text></Button>
|
|
</Provider>
|
|
</Provider>
|
|
);
|
|
);
|
|
}
|
|
}
|
|
@@ -201,4 +171,4 @@ const styles = StyleSheet.create({
|
|
color: '#000',
|
|
color: '#000',
|
|
},
|
|
},
|
|
});
|
|
});
|
|
-export default WriteTrackReport;
|
|
|
|
|
|
+export default WriteInternalReport;
|