Commit 2970a610 by Denglingling

优化【消耗确认】联动信息选择后,查询出联动字段只有一条数据时,给联动字段赋值这条数据;

parent 30919775
...@@ -67,6 +67,10 @@ export function requestEquipSurgeryHospital(params) { ...@@ -67,6 +67,10 @@ export function requestEquipSurgeryHospital(params) {
} }
} }
export const reqEquipSurgeryHospital = async (global_domain_config, params) => {
return await GetRequest(global_domain_config, getUrlParams('/sale/seller_customer/search', params))
}
// 获取订单信息 params={access_token:'', org_code:'', seller_code:'', customer_code:'', collect_header_status: 'RETURNED,COLLECTED'} // 获取订单信息 params={access_token:'', org_code:'', seller_code:'', customer_code:'', collect_header_status: 'RETURNED,COLLECTED'}
export function requestEquipOrderInfo(params) { export function requestEquipOrderInfo(params) {
return (dispatch, getState) => { return (dispatch, getState) => {
...@@ -94,13 +98,17 @@ export function requestEquipOrderInfo(params) { ...@@ -94,13 +98,17 @@ export function requestEquipOrderInfo(params) {
} }
} }
export const reqEquipOrderInfo = async (global_domain_config, params) => {
return await GetRequest(global_domain_config, getUrlParams('/surgery/collect_order/search', params))
}
function requestListDataing() { function requestListDataing() {
return { return {
type: EQUIP_CONSU_LIST_DOING type: EQUIP_CONSU_LIST_DOING
} }
} }
function requestListDataSuccess(data) { export function requestListDataSuccess(data) {
return { return {
type: EQUIP_CONSU_LIST_SUCCESS, type: EQUIP_CONSU_LIST_SUCCESS,
rawData: data rawData: data
......
...@@ -512,7 +512,6 @@ class EquipConsuPage extends Component { ...@@ -512,7 +512,6 @@ class EquipConsuPage extends Component {
this.setState({ this.setState({
listOptionData: listOptionData.map((item, index) => { listOptionData: listOptionData.map((item, index) => {
if(index > curIndex && index < 11 ) { if(index > curIndex && index < 11 ) {
// console.log('----优化,客户名称选择之后,收单地点、收货地点只有一个时,赋值第一个--', this.state.localCustomersOption)
item.name = localOtherObj.name item.name = localOtherObj.name
item.value = localOtherObj.value item.value = localOtherObj.value
if(listOptionData[1].value && item.title == '客户名称') { if(listOptionData[1].value && item.title == '客户名称') {
......
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