Commit 75b0d033 by wong.peiyi

转单行添加目标单号

parent 99da212d
...@@ -143,7 +143,7 @@ class TransSearchPage extends Component { ...@@ -143,7 +143,7 @@ class TransSearchPage extends Component {
case LOGIN_NO: case LOGIN_NO:
navigation.navigate('LoginPage') navigation.navigate('LoginPage')
break; break;
default: default:
break; break;
} }
} }
...@@ -380,8 +380,9 @@ class TransSearchPage extends Component { ...@@ -380,8 +380,9 @@ class TransSearchPage extends Component {
} }
let params = { let params = {
access_token: token, access_token: token,
seller_name: subTransObj.seller_name, seller_name: subTransObj.seller_name,
org_name: subTransObj.org_name, org_name: subTransObj.org_name,
destination_collect_number: subTransObj.collect_number,
...seaForm ...seaForm
} }
this.changeLodingFlag(true) this.changeLodingFlag(true)
...@@ -424,7 +425,7 @@ class TransSearchPage extends Component { ...@@ -424,7 +425,7 @@ class TransSearchPage extends Component {
// show('请至少输入一个查询条件') // show('请至少输入一个查询条件')
// } // }
} }
// 修改加载中 // 修改加载中
changeLodingFlag(show) { changeLodingFlag(show) {
this.setState({ this.setState({
...@@ -487,7 +488,7 @@ class TransSearchPage extends Component { ...@@ -487,7 +488,7 @@ class TransSearchPage extends Component {
result = arr.reduce(function(init, item) { result = arr.reduce(function(init, item) {
if(!tmp[item[typeName1]+item[typeName2]+item[typeName3]]) { if(!tmp[item[typeName1]+item[typeName2]+item[typeName3]]) {
tmp[item[typeName1]+item[typeName2]+item[typeName3]] = true tmp[item[typeName1]+item[typeName2]+item[typeName3]] = true
init.push(item) init.push(item)
} }
return init return init
}, []) }, [])
...@@ -530,7 +531,7 @@ class TransSearchPage extends Component { ...@@ -530,7 +531,7 @@ class TransSearchPage extends Component {
handleSubSelected(show) { handleSubSelected(show) {
this.handleCloseSelectModal(true) this.handleCloseSelectModal(true)
} }
// 点击 确定 // 点击 确定
handleSubmit() { handleSubmit() {
this.handleCloseSelectModal(false) this.handleCloseSelectModal(false)
...@@ -545,7 +546,7 @@ class TransSearchPage extends Component { ...@@ -545,7 +546,7 @@ class TransSearchPage extends Component {
surgery_date_from: listOptionData[2].value, surgery_date_from: listOptionData[2].value,
surgery_date_to: listOptionData[3].value surgery_date_to: listOptionData[3].value
} }
this.props.setTransDetailOption(localSelectOption, searchForm) this.props.setTransDetailOption(localSelectOption, searchForm)
this.props.navigation.navigate('TransOrderPage', { title: '转单申请' }) this.props.navigation.navigate('TransOrderPage', { title: '转单申请' })
} }
...@@ -583,7 +584,7 @@ class TransSearchPage extends Component { ...@@ -583,7 +584,7 @@ class TransSearchPage extends Component {
{listOptionData[0].name} {listOptionData[0].name}
</ContTextStyle> </ContTextStyle>
{ this.renderRightArrowItem() } { this.renderRightArrowItem() }
{/* <TouchableOpacity {/* <TouchableOpacity
activeOpacity={.8} activeOpacity={.8}
style={styles.sea_scan_box} style={styles.sea_scan_box}
...@@ -625,7 +626,7 @@ class TransSearchPage extends Component { ...@@ -625,7 +626,7 @@ class TransSearchPage extends Component {
<CellTextStyle style={styles.cell_box}> <CellTextStyle style={styles.cell_box}>
<TitleTextStyle style={styles.cell_tit_size}>{'手术时间'}</TitleTextStyle> <TitleTextStyle style={styles.cell_tit_size}>{'手术时间'}</TitleTextStyle>
<View style={styles.qui_cell_rig_date}> <View style={styles.qui_cell_rig_date}>
<TouchableOpacity <TouchableOpacity
activeOpacity={.8} activeOpacity={.8}
style={styles.qui_date_box} style={styles.qui_date_box}
onPress={() => this.handleSurDateCheck('start') } onPress={() => this.handleSurDateCheck('start') }
...@@ -636,7 +637,7 @@ class TransSearchPage extends Component { ...@@ -636,7 +637,7 @@ class TransSearchPage extends Component {
</View> </View>
</TouchableOpacity> </TouchableOpacity>
<Text style={styles.qui_date_line}></Text> <Text style={styles.qui_date_line}></Text>
<TouchableOpacity <TouchableOpacity
activeOpacity={.8} activeOpacity={.8}
style={styles.qui_date_box} style={styles.qui_date_box}
onPress={() => this.handleSurDateCheck('end') } onPress={() => this.handleSurDateCheck('end') }
...@@ -678,7 +679,7 @@ class TransSearchPage extends Component { ...@@ -678,7 +679,7 @@ class TransSearchPage extends Component {
// 返回选择器 // 返回选择器
renderPickerModel() { renderPickerModel() {
let { let {
listCurrentOption, listCurrentOption,
currentItem, currentItem,
currentTitle, currentTitle,
...@@ -693,8 +694,8 @@ class TransSearchPage extends Component { ...@@ -693,8 +694,8 @@ class TransSearchPage extends Component {
itemValue={currentItem.value} itemValue={currentItem.value}
itemTitle={currentTitle} itemTitle={currentTitle}
closeModal={(show) => this.handleCloseModal(show)} closeModal={(show) => this.handleCloseModal(show)}
/> />
</SafeAreaView> </SafeAreaView>
) )
} }
...@@ -723,7 +724,7 @@ class TransSearchPage extends Component { ...@@ -723,7 +724,7 @@ class TransSearchPage extends Component {
当前查询({conDetaOption.length})数据 当前查询({conDetaOption.length})数据
</Text> </Text>
{ {
!isAllSelect ? !isAllSelect ?
<TouchableOpacity <TouchableOpacity
activeOpacity={.8} activeOpacity={.8}
style={styles.tit_btn_box} style={styles.tit_btn_box}
...@@ -738,15 +739,15 @@ class TransSearchPage extends Component { ...@@ -738,15 +739,15 @@ class TransSearchPage extends Component {
> >
<Text style={[styles.tit_btn, styles.cle_btn]}>取消全选</Text> <Text style={[styles.tit_btn, styles.cle_btn]}>取消全选</Text>
</TouchableOpacity> </TouchableOpacity>
} }
</View> </View>
<View style={styles.cont_list}> <View style={styles.cont_list}>
<FlatList <FlatList
style={styles.cons_cont} style={styles.cons_cont}
keyExtractor={item => item.id} keyExtractor={item => item.id}
data={this.state.conDetaOption} data={this.state.conDetaOption}
extraData={this.state} extraData={this.state}
renderItem={ ({item, index}) => this.renderSubListItem(item, index) } renderItem={ ({item, index}) => this.renderSubListItem(item, index) }
/> />
</View> </View>
</View> </View>
...@@ -768,7 +769,7 @@ class TransSearchPage extends Component { ...@@ -768,7 +769,7 @@ class TransSearchPage extends Component {
}} }}
> >
<View style={styles.sub_list_lef}> <View style={styles.sub_list_lef}>
{item.select ? {item.select ?
<TouchableOpacity <TouchableOpacity
activeOpacity={.8} activeOpacity={.8}
style={styles.sub_icon_box} style={styles.sub_icon_box}
...@@ -843,10 +844,10 @@ class TransSearchPage extends Component { ...@@ -843,10 +844,10 @@ class TransSearchPage extends Component {
) )
} }
render() { render() {
let {navigation} = this.props let {navigation} = this.props
let {title} = navigation.state.params let {title} = navigation.state.params
return ( return (
<View style={styles.search_container}> <View style={styles.search_container}>
<StatusBarView <StatusBarView
isReactStackNavigator={true} isReactStackNavigator={true}
...@@ -885,9 +886,9 @@ const styles = StyleSheet.create({ ...@@ -885,9 +886,9 @@ const styles = StyleSheet.create({
}, },
list_cont: { list_cont: {
flex: 1 flex: 1
}, },
item_container: { item_container: {
flex: 1 flex: 1
}, },
item_btn_cont: { item_btn_cont: {
alignItems: 'center', alignItems: 'center',
...@@ -1082,5 +1083,5 @@ const mapDispatchToProps = (dispatch) => { ...@@ -1082,5 +1083,5 @@ const mapDispatchToProps = (dispatch) => {
} }
} }
} }
export default connect(mapStateToProps, mapDispatchToProps)(TransSearchPage); export default connect(mapStateToProps, mapDispatchToProps)(TransSearchPage);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment