Commit dd130d86 by Denglingling

增加【转单】历史订单查询功能,还未对接后端接口

parent 31a18c1f
......@@ -22,6 +22,11 @@ export const requestHistorOrderType = async (global_domain_config, params) => {
return await GetRequest(global_domain_config, getUrlParams('/system/value_set/search', params))
}
// 获取来源借货订单号 parmas={access_token: '', org_code: '', seller_code: '', customer_code: '', collect_header_status: 'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED'}
export const requestHistorSourBorOrdNum = async (global_domain_config, params) => {
return await GetRequest(global_domain_config, getUrlParams('/surgery/collect_order/search', params))
}
// 借货订单查询 params: {access_token: '', ...}
export function requestGetAllBorrow(params) {
return (dispatch, getState) => {
......@@ -64,7 +69,6 @@ export function requestGetAllConsume(params) {
if(res.error_code == 0) {
let { data: { sur_consume_headers } } = res
dispatch(requestSearchSuccess(sur_consume_headers));
} else if(res.error_code === 41006) {
show('登录过期,请重新登录');
dispatch(exitLoginStatus());
......@@ -75,7 +79,7 @@ export function requestGetAllConsume(params) {
}
})
.catch(err => {
console.log('------err--====requestGetAllBorrow----', Object.keys(err), err)
console.log('------err--====requestGetAllConsume----', Object.keys(err), err)
show(err.error);
dispatch(requestSearchFail());
})
......@@ -87,8 +91,39 @@ export const requestGetLineFormConsume = async (global_domain_config, params) =>
return await GetRequest(global_domain_config, getUrlParams('/surgery/consume_line/search', params))
}
// 转单订单查询
// 转单订单查询 params: {access_token: '', ...} ----- 待定
export function requestGetAllTrans(params) {
return (dispatch, getState) => {
dispatch(requestSearching())
let {global_domain_config} = getState().login
GetRequest(global_domain_config, getUrlParams('xxxx', params))
.then(res => {
if(res.error_code == 0) {
// let { data: { sur_consume_headers } } = res
// dispatch(requestSearchSuccess(sur_consume_headers));
} else if(res.error_code === 41006) {
show('登录过期,请重新登录');
dispatch(exitLoginStatus());
} else {
let error_msg = res.error_msg || res.message
show(error_msg);
dispatch(requestSearchFail());
}
})
.catch(err => {
console.log('------err--====requestGetAllTrans----', Object.keys(err), err)
show(err.error);
dispatch(requestSearchFail());
})
}
}
// 转单订单-行表查询 params: {access_token: '', xxx: ''} ----- 待定
export const requestGetLineFormTrans = async (global_domain_config, params) => {
return await GetRequest(global_domain_config, getUrlParams('xxx', params))
}
function requestSearching() {
return {
......
......@@ -4,7 +4,6 @@ import {
Text,
StyleSheet,
Modal,
ScrollView,
TouchableOpacity,
SafeAreaView
} from 'react-native';
......
......@@ -38,12 +38,17 @@ class HeadBackItem extends Component {
}
goLogin() {
let { navigation } = this.props
let { callback, navigation } = this.props
this.props.exitLoginStatus()
show('退出登录')
setTimeout(() => {
if(callback && callback instanceof Function) {
callback()
setTimeout(() => {
navigation.navigate('LoginPage')
}, 500)
} else {
navigation.navigate('LoginPage')
}, 300)
}
}
render() {
......
......@@ -34,7 +34,8 @@ import {
} from '../../base/ActionTypes';
import {
requestGetAllBorrow,
requestGetAllConsume
requestGetAllConsume,
requestGetAllTrans
} from '../../action/HistorAction';
import { show, cloneObject } from '../../utils/Utils';
import moment from 'moment';
......@@ -56,9 +57,10 @@ class HistoricalOrderPage extends Component {
title: '消耗订单',
selIsAct: false
},
// {
// title: '转单订单'
// }
{
title: '转单订单',
selIsAct: false
}
],
topActiveIndex: 0,
contOptionData: [
......@@ -89,11 +91,14 @@ class HistoricalOrderPage extends Component {
"COLLECTED,RETURNING_WAITING_CONFIRM",
"RETURNED,CLOSED,REJECTED,CANCELED,CONSUMED"
],
searchComsumeStatus: [ // 【借货】对应的状态值
searchComsumeStatus: [ // 【消耗】对应的状态值
"N",
"Y"
],
searchTransStatus: [ // 【转单】对应的状态值
"N",
"Y"
],
searchTransStatus: [], // 【转单】对应的状态值
whetherCallClick: false, // 是否调用筛选弹窗的查询
wheShowNoData: false, // 是否展示无数据提示
......@@ -240,6 +245,7 @@ class HistoricalOrderPage extends Component {
props.requestGetAllConsume(params)
break;
case 2:
props.requestGetAllTrans(params)
break;
default:
break;
......@@ -442,7 +448,7 @@ class HistoricalOrderPage extends Component {
<Text
style={[
styles.cont_rig_status,
item.local_his_status == '待审核' ? styles.status_audit : '',
(item.local_his_status == '待审核' || item.local_his_status == '已提交') ? styles.status_audit : '',
item.local_his_status == '待还货' ? styles.status_return : '',
item.local_his_status == '其他' ? styles.status_other : ''
]}>
......@@ -502,8 +508,8 @@ const styles = StyleSheet.create({
borderBottomWidth: 1
},
top_touch_cont: {
// width: '33.33333%'
width: '50%'
width: '33.33333%'
// width: '50%'
},
top_inner: {
justifyContent: 'center',
......@@ -634,6 +640,9 @@ const mapDispatchToProps = (dispatch) => {
},
requestGetAllConsume: (params) => {
dispatch(requestGetAllConsume(params))
},
requestGetAllTrans: (params) => {
dispatch(requestGetAllTrans(params))
}
}
}
......
......@@ -40,7 +40,8 @@ import {
import {
requestHistorOrganizations,
requestHistorSurgeryHospital,
requestHistorOrderType
requestHistorOrderType,
requestHistorSourBorOrdNum
} from '../../../action/HistorAction';
import { show, dedupQuoteArray, cloneObject } from '../../../utils/Utils';
import moment from 'moment';
......@@ -172,7 +173,7 @@ class FilterModel extends Component {
name: '状态筛选',
status: ['待审核','已消耗'],
curStatus: []
}, {
},{
"id": "1",
title: '销售员',
name: '周星驰',
......@@ -182,17 +183,17 @@ class FilterModel extends Component {
title: '组织',
name: '请选择',
value: ''
}, {
},{
"id": "3",
title: '客户名称',
name: '请选择',
value: ''
}, {
},{
"id": "4",
title: '患者姓名',
name: '请输入',
value: ''
}, {
},{
"id": "5",
title: '病历号',
name: '请输入',
......@@ -231,41 +232,80 @@ class FilterModel extends Component {
name: '状态筛选',
status: ['已提交','已完成'],
curStatus: []
}, {
},{
"id": "1",
title: '销售员',
name: '周星驰',
value: 'zhou.xingchi'
},{
"id": "2",
title: '组织',
name: '请选择',
value: ''
}, {
"id": "2",
},{
"id": "3",
title: '客户名称',
name: '请选择',
value: ''
}, {
"id": "3",
title: '主治医生',
name: '请选择',
value: '',
showInput: false,
inputValue: ''
}, {
},{
"id": "4",
title: '手术类型',
title: '来源借货订单号',
name: '请选择',
value: ''
}, {
},{
"id": "5",
title: '申请单号',
name: '请输入',
value: ''
},{
"id": "6",
title: '手术时间',
name: '开始时间',
value: '',
dateValue: new Date()
}, {
"id": "6",
},{
"id": "7",
title: '手术时间',
name: '结束时间',
value: '',
dateValue: new Date()
}],
},
// {
// "id": "1",
// title: '组织',
// name: '请选择',
// value: ''
// }, {
// "id": "2",
// title: '客户名称',
// name: '请选择',
// value: ''
// }, {
// "id": "3",
// title: '主治医生',
// name: '请选择',
// value: '',
// showInput: false,
// inputValue: ''
// }, {
// "id": "4",
// title: '手术类型',
// name: '请选择',
// value: ''
// }, {
// "id": "5",
// title: '手术时间',
// name: '开始时间',
// value: '',
// dateValue: new Date()
// }, {
// "id": "6",
// title: '手术时间',
// name: '结束时间',
// value: '',
// dateValue: new Date()
// }
],
subBorrowInitListOption: [], // 初始化 [借货]
subConsumeInitListOption: [], // 初始化 [消耗]
subTransferInitListOption: [], // 初始化 [转单]
......@@ -286,20 +326,24 @@ class FilterModel extends Component {
value:'运动医学'
}
],
localCustomersOption: [], // 当前医院信息:手术医院、收单地点、收货地点、主治医生
localCustomersOption: [], // 当前医院信息:客户名称、收单地点、收货地点、主治医生
searchBorrowStatus: [ // 【借货】对应的状态值
"ENTERED,SUBMITTED",
"APPROVED,COLLECTING_WAITING_CONFIRM",
"COLLECTED,RETURNING_WAITING_CONFIRM",
"RETURNED,CLOSED,REJECTED,CANCELED,CONSUMED"
],
searchComsumeStatus: [ // 【借货】对应的状态值
searchComsumeStatus: [ // 【消耗】对应的状态值
"N",
"Y"
],
searchTransStatus: [ // 【转单】对应的状态值
"N",
"Y"
],
searchTransStatus: [], // 【转单】对应的状态值
errorPopType: false, // 错误提示弹窗
errorTit: '', // 错误提示文字
isRightExit: true
}
}
......@@ -536,7 +580,7 @@ class FilterModel extends Component {
// 日期选择器回调
dateModalCallback(date) {
// console.warn('date------', date)
let {topActiveIndex, borrowListOptionData, consumeListOptionData, currentTitle} = this.state
let {topActiveIndex, borrowListOptionData, consumeListOptionData, transferListOptionData, currentTitle} = this.state
switch(topActiveIndex) {
case 0:
if(currentTitle.includes('start')) {
......@@ -561,6 +605,15 @@ class FilterModel extends Component {
}
break;
case 2:
if(currentTitle.includes('start')) {
transferListOptionData[6].name = date
transferListOptionData[6].value = date
transferListOptionData[6].dateValue = new Date(date)
} else if(currentTitle.includes('end')) {
transferListOptionData[7].name = date
transferListOptionData[7].value = date
transferListOptionData[7].dateValue = new Date(date)
}
break;
default:
break;
......@@ -600,7 +653,12 @@ class FilterModel extends Component {
}
break;
case 2:
// transferListOptionData[0].curStatus = ind
if(transferListOptionData[0].curStatus.includes(ind)) {
let tempInd = transferListOptionData[0].curStatus.indexOf(ind)
transferListOptionData[0].curStatus.splice(tempInd, 1)
} else {
transferListOptionData[0].curStatus.push(ind)
}
break;
default:
break;
......@@ -608,7 +666,7 @@ class FilterModel extends Component {
this.setState({
borrowListOptionData,
consumeListOptionData,
// transferListOptionData
transferListOptionData
})
}
......@@ -633,9 +691,9 @@ class FilterModel extends Component {
org_code = consumeListOptionData[2].value
break;
case 2:
// obj.name = transferListOptionData[ind].name
// obj.value = transferListOptionData[ind].value
// org_code = transferListOptionData[1].value
obj.name = transferListOptionData[ind].name
obj.value = transferListOptionData[ind].value
org_code = transferListOptionData[2].value
break;
default:
break;
......@@ -767,7 +825,7 @@ class FilterModel extends Component {
if( localCustomersOption.length ) {
localCustomersOption.forEach((item, index) => {
if(item.customer_code === borrowListOptionData[3].value) {
// 保证是当前手术医院下的地点
// 保证是当前客户名称下的地点
let obj = {}
obj.value = item.bill_to_site_code
obj.name = item.bill_to_site_name
......@@ -803,7 +861,7 @@ class FilterModel extends Component {
if( localCustomersOption.length ) {
localCustomersOption.forEach((item, index) => {
if(item.customer_code === borrowListOptionData[3].value) {
// 保证是当前手术医院下的地点
// 保证是当前客户名称下的地点
let obj = {}
obj.value = item.ship_to_site_code
obj.name = item.ship_to_site_name
......@@ -850,7 +908,7 @@ class FilterModel extends Component {
if( localCustomersOption.length ) {
localCustomersOption.forEach((item, index) => {
if(item.customer_code === borrowListOptionData[3].value) {
// 保证是当前手术医院下的地点
// 保证是当前客户名称下的地点
let obj = {}
obj.value = item.customer_doctor
obj.name = item.customer_doctor
......@@ -899,7 +957,7 @@ class FilterModel extends Component {
// 手术时间/消耗时间 - 筛选
handleSurDateCheck(typeName) {
// console.log('筛选 - 手术时间---', typeName)
let {topActiveIndex, borrowListOptionData, consumeListOptionData} = this.state
let {topActiveIndex, borrowListOptionData, consumeListOptionData, transferListOptionData} = this.state
let tempCurTit = ''
let tempCurDate = new Date()
switch(topActiveIndex) {
......@@ -920,6 +978,12 @@ class FilterModel extends Component {
}
break;
case 2:
tempCurTit = '手术时间'
if(typeName == 'start') {
tempCurDate = transferListOptionData[6].dateValue
} else if(typeName == 'end') {
tempCurDate = transferListOptionData[7].dateValue
}
break;
default:
break;
......@@ -942,8 +1006,7 @@ class FilterModel extends Component {
name: borrowListOptionData[10].name,
value: borrowListOptionData[10].value
}
}, async () => {
}, async() => {
let params = {
access_token: props.token,
value_set_code:'SUR_ORDER_TYPE'
......@@ -1037,9 +1100,76 @@ class FilterModel extends Component {
})
}
// 来源借货订单号 - 筛选
handleSourOrdCheck() {
let { transferListOptionData } = this.state
let { props } = this
let that = this
this.setState({
currentTitle: '来源借货订单号',
currentItem: {
name: transferListOptionData[4].name,
value: transferListOptionData[4].value
}
}, async() => {
let params = {
access_token: props.token,
org_code: transferListOptionData[2].value,
seller_code: props.userInfo.user_name,
customer_code: '',
// collect_header_status: 'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED'
}
let orgResult = await requestHistorSourBorOrdNum(props.global_domain_config, params)
that.props.callSupLoading(true)
if(orgResult.error_code == 0) {
that.props.callSupLoading(false)
// 修改当前选择器数据
let { data: { surgery_collect_headers } } = orgResult
if(surgery_collect_headers.length === 0) {
that.showErrorModel(`当前来源借货订单号为空`)
return
}
let resultArr = []
surgery_collect_headers.forEach(item => {
let obj = {}
let collect_number = item.collect_number ? item.collect_number : '空'
let surgery_name = item.surgery_name ? item.surgery_name : '空'
let create_time = item.create_time ? moment(item.create_time).format("YYYY-MM-DD") : '空'
let tempName = `${collect_number}-${surgery_name}-${create_time}`
obj.name = tempName,
obj.value = item.collect_number
resultArr.push(obj)
})
let tempOption = [...resultArr]
that.setState({
showTypePop: true,
listCurrentOption: [...tempOption]
})
} else if(orgResult.error_code == 41006) {
that.props.callSupLoading(false)
that.showErrorModel(`登录过期,请重新登录`)
props.exitLoginStatus();
} else {
that.props.callSupLoading(false)
let error_msg = orgResult.error_msg || orgResult.message
that.showErrorModel(error_msg);
}
})
}
// 申请单号 - 筛选
handleRequeNumInput(text) {
// console.log('筛选 - 申请单号---', text)
let {transferListOptionData} = this.state
transferListOptionData[5].value = text
this.setState({
transferListOptionData
})
}
// 判断组织是否为空
judgeOrgIsNull() {
let {topActiveIndex, borrowListOptionData, consumeListOptionData } = this.state
let {topActiveIndex, borrowListOptionData, consumeListOptionData, transferListOptionData } = this.state
let orgVal = ''
let titVal = ''
switch(topActiveIndex) {
......@@ -1052,6 +1182,8 @@ class FilterModel extends Component {
titVal = consumeListOptionData[2].title;
break;
case 2:
orgVal = transferListOptionData[2].value;
titVal = transferListOptionData[2].title;
break;
default:
break;
......@@ -1065,7 +1197,7 @@ class FilterModel extends Component {
}
}
// 判断手术医院是否为空
// 判断客户名称是否为空
judgeCustomerIsNull() {
let {topActiveIndex, borrowListOptionData } = this.state
let coumVal = ''
......@@ -1097,9 +1229,11 @@ class FilterModel extends Component {
let {
topActiveIndex,
borrowListOptionData,
consumeListOptionData,
consumeListOptionData,
transferListOptionData,
subBorrowInitListOption,
subConsumeInitListOption
subConsumeInitListOption,
subTransferInitListOption
} = this.state
switch(topActiveIndex) {
case 0:
......@@ -1115,6 +1249,10 @@ class FilterModel extends Component {
})
break;
case 2:
transferListOptionData = cloneObject(subTransferInitListOption)
this.setState({
transferListOptionData
})
break;
default:
break;
......@@ -1128,10 +1266,13 @@ class FilterModel extends Component {
topActiveIndex,
borrowListOptionData,
consumeListOptionData,
transferListOptionData,
searchBorrowStatus,
searchComsumeStatus,
searchTransStatus,
borrowSearchOption,
consumeSearchOption
consumeSearchOption,
transferSearchOption
} = this.state
let {props} = this
let that = this
......@@ -1212,8 +1353,10 @@ class FilterModel extends Component {
topActiveIndex,
borrowListOptionData,
consumeListOptionData,
transferListOptionData,
subBorrowInitListOption,
subConsumeInitListOption,
subTransferInitListOption,
topProcOptionList
} = this.state
......@@ -1233,6 +1376,11 @@ class FilterModel extends Component {
this.props.callSupTopList(topProcOptionList)
break;
case 2:
topProcOptionList[2].selIsAct = this.bothArrayIsCom(transferListOptionData, subTransferInitListOption);
this.setState({
topProcOptionList
})
this.props.callSupTopList(topProcOptionList)
break;
default:
break;
......@@ -1846,13 +1994,24 @@ class FilterModel extends Component {
<Text style={styles.sea_qui_tit}>快捷筛选</Text>
<View style={styles.sea_qui_box}>
<View style={styles.qui_cell}>
<Text style={styles.qui_cell_tit}>销售员</Text>
<TouchableOpacity
activeOpacity={1}
style={styles.qui_cell_rig}
>
<Text style={styles.cell_rig_sel}>{transferListOptionData[1].name}</Text>
<View style={styles.arr_icon_box}>
</View>
</TouchableOpacity>
</View>
<View style={styles.qui_cell}>
<Text style={styles.qui_cell_tit}>组织</Text>
<TouchableOpacity
activeOpacity={.8}
style={styles.qui_cell_rig}
// onPress={() => this.handleOrganizationCheck() }
>
<Text style={styles.cell_rig_sel}>请选择</Text>
<Text style={styles.cell_rig_sel}>{transferListOptionData[2].name}</Text>
<View style={styles.arr_icon_box}>
<Image source={require('../../../images/arr_rig.png')} style={icon_style} />
</View>
......@@ -1865,47 +2024,38 @@ class FilterModel extends Component {
style={styles.qui_cell_rig}
// onPress={() => this.handleCustomerCheck() }
>
<Text style={styles.cell_rig_sel}>请选择</Text>
<Text style={styles.cell_rig_sel}>{transferListOptionData[3].name}</Text>
<View style={styles.arr_icon_box}>
<Image source={require('../../../images/arr_rig.png')} style={icon_style} />
</View>
</TouchableOpacity>
</View>
<View style={styles.qui_cell}>
<Text style={styles.qui_cell_tit}>主治医生</Text>
<Text style={styles.qui_cell_tit}>来源借货订单号</Text>
<TouchableOpacity
activeOpacity={.8}
style={styles.qui_cell_inp}>
<TextInput
placeholder={'请输入'}
style={[styles.cell_rig_sel, styles.cell_rig_input]}
placeholderTextColor = {placehold_text_color}
underlineColorAndroid = {'transparent'}
onChangeText={(text) => this.handleDoctorInput(text)}
/>
</TouchableOpacity>
{/* <TouchableOpacity
activeOpacity={.8}
style={styles.qui_cell_rig}
onPress={() => this.handleDoctorCheck() }
// onPress={() => this.handleSourOrdCheck() }
>
<Text style={styles.cell_rig_sel}>请选择</Text>
<Text style={styles.cell_rig_sel}>{transferListOptionData[4].name}</Text>
<View style={styles.arr_icon_box}>
<Image source={require('../../../images/arr_rig.png')} style={icon_style} />
</View>
</TouchableOpacity> */}
</TouchableOpacity>
</View>
<View style={styles.qui_cell}>
<Text style={styles.qui_cell_tit}>手术类型</Text>
<Text style={styles.qui_cell_tit}>申请单号</Text>
<TouchableOpacity
activeOpacity={.8}
style={styles.qui_cell_rig}
// onPress={() => this.handleSurTypeCheck() }
>
<Text style={styles.cell_rig_sel}>请选择</Text>
<View style={styles.arr_icon_box}>
<Image source={require('../../../images/arr_rig.png')} style={icon_style} />
</View>
style={styles.qui_cell_inp}>
<TextInput
placeholder={'请输入'}
style={[styles.cell_rig_sel, styles.cell_rig_input]}
placeholderTextColor = {placehold_text_color}
underlineColorAndroid = {'transparent'}
// onChangeText={(text) => this.handleRequeNumInput(text)}
defaultValue={transferListOptionData[5].value}
/>
</TouchableOpacity>
</View>
<View style={styles.qui_cell}>
......@@ -1914,9 +2064,9 @@ class FilterModel extends Component {
<TouchableOpacity
activeOpacity={.8}
style={styles.qui_date_box}
// onPress={() => this.handleSurDateCheck('start') }
onPress={() => this.handleSurDateCheck('start') }
>
<Text style={styles.qui_date_inp}>开始日期</Text>
<Text style={styles.qui_date_inp}>{transferListOptionData[6].name}</Text>
<View style={styles.date_icon_box}>
<Image source={require('../../../images/date_icon.png')} style={icon_style} />
</View>
......@@ -1925,9 +2075,9 @@ class FilterModel extends Component {
<TouchableOpacity
activeOpacity={.8}
style={styles.qui_date_box}
// onPress={() => this.handleSurDateCheck('end') }
onPress={() => this.handleSurDateCheck('end') }
>
<Text style={styles.qui_date_inp}>结束日期</Text>
<Text style={styles.qui_date_inp}>{transferListOptionData[7].name}</Text>
<View style={styles.date_icon_box}>
<Image source={require('../../../images/date_icon.png')} style={icon_style} />
</View>
......@@ -2021,7 +2171,8 @@ class FilterModel extends Component {
render() {
let {navigation} = this.props
let { navigation } = this.props
let { isRightExit } = this.state
return (
<View style={styles.dia_container}>
<Modal
......@@ -2036,7 +2187,7 @@ class FilterModel extends Component {
barStyle = 'light-content'
/>
<SafeAreaView style={safe_view}>
<HeadBackItem title={'骨科智慧仓'} navigation={navigation} callback={() => this.handelGoBack()} />
<HeadBackItem title={'骨科智慧仓'} navigation={navigation} callback={() => this.handelGoBack()} isRightExit={isRightExit} />
<View style={styles.container}>
{this.renderDialog()}
</View>
......@@ -2083,8 +2234,8 @@ const styles = StyleSheet.create({
borderBottomWidth: 1
},
top_touch_cont: {
// width: '33.33333%'
width: '50%'
width: '33.33333%'
// width: '50%'
},
top_inner: {
justifyContent: 'center',
......
......@@ -29,7 +29,8 @@ import { CellTextStyle } from '../../common/CellTextStyle';
import LodingModel from '../../common/LodingModel';
import {
requestGetLineFormBorrow,
requestGetLineFormConsume
requestGetLineFormConsume,
requestGetLineFormTrans
} from '../../../action/HistorAction';
import { connect } from 'react-redux';
import { show } from '../../../utils/Utils';
......@@ -125,6 +126,7 @@ class LineOrderPage extends Component {
break;
case 2:
// 转单
this.getReqTransLineData(data)
break;
default:
break;
......@@ -210,6 +212,48 @@ class LineOrderPage extends Component {
}
}
// 获取转单订单行数据 -- 待定
async getReqTransLineData(supData) {
// let that = this
// let {consumaData} = that.state
// let {props} = this
// that.changeSubLoding(true)
// let params = {
// access_token: props.token,
// consume_order_number: supData.local_his_number
// }
// let conResult = await requestGetLineFormTrans(props.global_domain_config, params)
// if(conResult.error_code == 0) {
// that.changeSubLoding(false)
// // 成功
// let {sur_consume_lines} = conResult.data
// let tempSum = 0
// let tempConQuanSum = 0
// sur_consume_lines.length && sur_consume_lines.forEach(item => {
// if(item.sale_price) {
// tempSum += Number(item.sale_price)
// }
// if(item.consumed_quantity) {
// tempConQuanSum += Number(item.consumed_quantity)
// }
// })
// consumaData.subOption = [...sur_consume_lines]
// consumaData.allOptSum = tempSum
// consumaData.allConmQuanSum = tempConQuanSum
// that.setState({
// consumaData
// })
// } else if(conResult.error_code == 41006) {
// that.changeSubLoding(false)
// show('登录过期,请重新登录');
// props.exitLoginStatus();
// } else {
// that.changeSubLoding(false)
// let error_msg = conResult.error_msg || conResult.message
// show(error_msg);
// }
}
// 耗材明细 隐藏/显示子项
handleDetailBtmCheck(flagType) {
let {consumaData} = this.state
......@@ -403,7 +447,7 @@ class LineOrderPage extends Component {
<View style={styles.fo_sta_inner}>
<Text style={[
styles.fo_sta_txt,
orderSupOptions.local_his_status == '待审核' ? styles.status_audit : '',
(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 : ''
]}>
......
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