Commit 4e303644 by peii

消耗历史弹窗显示生产信息

parent 273c8399
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
ScrollView, ScrollView,
SafeAreaView SafeAreaView
} from 'react-native'; } from 'react-native';
import * as R from 'ramda';
import { import {
promary_color, promary_color,
safe_view, safe_view,
...@@ -552,6 +553,11 @@ class LineOrderPage extends Component { ...@@ -552,6 +553,11 @@ class LineOrderPage extends Component {
// 返回弹窗 // 返回弹窗
renderDetailModel() { renderDetailModel() {
let {popFormItem, toolShowPopup} = this.state let {popFormItem, toolShowPopup} = this.state
const { sysProfiles } = this.props
let {supIndex} = this.props.navigation.state.params
const showSalePrice = R.compose(R.equals('Y'), R.prop('SUR_MOBILE_HISTORY_SALE_PRICE_SHOW_FLAG'))(sysProfiles)
console.log(supIndex);
return ( return (
<ShowModel <ShowModel
title={ popFormItem.item_name} title={ popFormItem.item_name}
...@@ -586,6 +592,36 @@ class LineOrderPage extends Component { ...@@ -586,6 +592,36 @@ class LineOrderPage extends Component {
</Text> : null </Text> : null
} }
{ {
popFormItem.serial_number ?
<Text style={styles.mo_cont_tip}>
序列号:{popFormItem.serial_number}
</Text> : null
}
{
popFormItem.production_batch_number ?
<Text style={styles.mo_cont_tip}>
生产批号:{popFormItem.production_batch_number}
</Text> : null
}
{
popFormItem.production_serial_number ?
<Text style={styles.mo_cont_tip}>
生产序号:{popFormItem.production_serial_number}
</Text> : null
}
{
popFormItem.production_date ?
<Text style={styles.mo_cont_tip}>
生产日期:{moment(popFormItem.production_date).format('YYYY-MM-DD')}
</Text> : null
}
{
popFormItem.expiration_date ?
<Text style={styles.mo_cont_tip}>
过期日期:{moment(popFormItem.expiration_date).format('YYYY-MM-DD')}
</Text> : null
}
{
popFormItem.plan_quantity ? popFormItem.plan_quantity ?
<Text style={styles.mo_cont_tip}> <Text style={styles.mo_cont_tip}>
计划数量:{popFormItem.plan_quantity} 计划数量:{popFormItem.plan_quantity}
...@@ -604,10 +640,10 @@ class LineOrderPage extends Component { ...@@ -604,10 +640,10 @@ class LineOrderPage extends Component {
</Text> : null </Text> : null
} }
{ {
popFormItem.sale_price ? !popFormItem.sale_price || !showSalePrice && supIndex === 0 ? null :
<Text style={styles.mo_cont_tip}> <Text style={styles.mo_cont_tip}>
销售价格:{popFormItem.sale_price} 销售价格:{popFormItem.sale_price}
</Text> : null </Text>
} }
</View> </View>
</View> </View>
...@@ -770,7 +806,8 @@ const mapStateToProps = (state) => { ...@@ -770,7 +806,8 @@ const mapStateToProps = (state) => {
return { return {
token: state.login.token, token: state.login.token,
loginState: state.login.loginState, loginState: state.login.loginState,
global_domain_config: state.login.global_domain_config global_domain_config: state.login.global_domain_config,
sysProfiles: state.login.sysProfiles,
} }
} }
......
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