Commit a266f6aa by Denglingling

完善转单历史查询接口,调整部分布局

(cherry picked from commit b5e41d1d)
parent 6d428278
......@@ -103,12 +103,9 @@ export function requestGetAllTrans(params) {
let {global_domain_config} = getState().login
GetRequest(global_domain_config, getUrlParams('/surgery/trans_header/search', params))
.then(res => {
console.log('--requestGetAllTrans-----res------', res)
if(res.error_code == 0) {
let { data: { sur_order_transfer_head_chs_v } } = res
dispatch(requestSearchSuccess(sur_order_transfer_head_chs_v));
} else if(res.error_code === 41006) {
show('登录过期,请重新登录');
dispatch(exitLoginStatus());
......
......@@ -37,7 +37,7 @@ import {
requestGetAllConsume,
requestGetAllTrans
} from '../../action/HistorAction';
import { show, cloneObject } from '../../utils/Utils';
import { show, cloneObject, dedupQuoteArray } from '../../utils/Utils';
import moment from 'moment';
import FilterModel from './module/FilterModel';
......@@ -165,7 +165,6 @@ class HistoricalOrderPage extends Component {
return
}
contOptionData = cloneObject(historOrderOption)
console.log('contOptionData--------', contOptionData)
switch(topActiveIndex) {
case 0:
contOptionData = contOptionData.map((supItem, ind) => {
......@@ -238,8 +237,6 @@ class HistoricalOrderPage extends Component {
default:
break;
}
console.log('------contOptionData-------', contOptionData)
this.setState({
contOptionData
})
......@@ -305,7 +302,6 @@ class HistoricalOrderPage extends Component {
this.setState({
isShowSelect: !isShowSelect
})
// 判断筛选颜色变化!!!!!===
}
// 关闭筛选弹窗 回调
......@@ -389,7 +385,6 @@ class HistoricalOrderPage extends Component {
}
</View>
</TouchableOpacity>
{/* 筛选弹窗 */}
<FilterModel
show={isShowSelect}
......@@ -403,7 +398,6 @@ class HistoricalOrderPage extends Component {
callSupClick={whetherCallClick}
callSupTopList={(data) => this.handleChangeTopList(data) }
/>
</View>
</View>
......@@ -424,8 +418,7 @@ class HistoricalOrderPage extends Component {
</TouchableOpacity>
</View>
: null
}
}
{/* 底部每一列数据 */}
{
contOptionData.map((item, index) =>
......@@ -452,7 +445,7 @@ class HistoricalOrderPage extends Component {
tempTit = '结单标识:'
tempNum = item.surgery_collect_number // 还是显示借货单号,但是接口还是传递消耗单号
}else if(topActiveIndex == 2) {
tempTit = '目标借货订单:'
tempTit = '目标借货订单:'
tempNum = item.local_his_number
}
......@@ -473,6 +466,18 @@ class HistoricalOrderPage extends Component {
<Text style={styles.cont_tip}>
{item.local_his_time}
</Text>
{
topActiveIndex == 2 ?
<Text style={styles.cont_tip}>
来源借货订单号:{item.source_surgery_order_number}
</Text> : null
}
{
topActiveIndex == 2 ?
<Text style={styles.cont_tip}>
{item.source_surgery_date ? moment(item.source_surgery_date).format('YYYY/MM/DD HH:mm') : '无'}
</Text> : null
}
</View>
<View style={styles.cont_rig}>
<Text
......@@ -501,11 +506,8 @@ class HistoricalOrderPage extends Component {
render() {
return (
<View style={styles.hist_main}>
{ this.renderContItem() }
{this.renderLodingItem()}
</View>
);
}
......
......@@ -223,8 +223,6 @@ class LineOrderPage extends Component {
order_number: supData.order_number
}
let conResult = await requestGetLineFormTrans(props.global_domain_config, params)
console.log('params========', params)
console.log('conResult========', conResult)
if(conResult.error_code == 0) {
that.changeSubLoding(false)
// 成功
......@@ -364,7 +362,7 @@ class LineOrderPage extends Component {
} else if(supIndex == 1) {
tempTit.push('结单标识:', '消耗时间:')
} else if(supIndex == 2) {
tempTit.push('目标借货订单:', '手术时间:')
tempTit.push('目标借货订单:', '手术时间:')
}
return (
......@@ -403,11 +401,22 @@ class LineOrderPage extends Component {
</Text>
</View> : null
}
<View style={styles.fo_cell_box}>
<Text style={styles.fo_tip_txt}>
客户名称:{orderSupOptions.customer_name ? orderSupOptions.customer_name : '无'}
</Text>
</View>
{
supIndex !== 2 ?
<View style={styles.fo_cell_box}>
<Text style={styles.fo_tip_txt}>
客户名称:{orderSupOptions.customer_name ? orderSupOptions.customer_name : '无'}
</Text>
</View> :
<View style={styles.fo_cell_box}>
<Text style={styles.fo_tip_txt}>
目标客户名称:{orderSupOptions.destination_customer_name ? orderSupOptions.destination_customer_name : '无'}
</Text>
<Text style={styles.fo_tip_txt}>
来源客户名称:{orderSupOptions.source_customer_name ? orderSupOptions.source_customer_name : '无'}
</Text>
</View>
}
<View style={styles.fo_cell_box}>
<Text style={styles.fo_tip_txt}>
订单号:{supIndex == 0 ? orderSupOptions.local_his_number :
......@@ -470,8 +479,8 @@ class LineOrderPage extends Component {
<Text style={[
styles.fo_sta_txt,
(orderSupOptions.local_his_status == '待审核' || orderSupOptions.local_his_status == '已提交') ? styles.status_audit : '',
orderSupOptions.local_his_status == '待还货' ? styles.status_return : '',
orderSupOptions.local_his_status == '其他' ? styles.status_other : ''
(orderSupOptions.local_his_status == '待还货' || orderSupOptions.local_his_status == '已输入' || orderSupOptions.local_his_status == '已驳回') ? styles.status_return : '',
(orderSupOptions.local_his_status == '其他' || orderSupOptions.local_his_status == '已取消') ? styles.status_other : ''
]}>
{orderSupOptions.local_his_status}
</Text>
......
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