Commit 30a28f13 by wong.peiyi

同部分业务员可转单

parent 74185580
Showing with 21 additions and 7 deletions
...@@ -505,12 +505,15 @@ class TransOrderPage extends Component { ...@@ -505,12 +505,15 @@ class TransOrderPage extends Component {
let { listOptionData, localOtherObj } = this.state let { listOptionData, localOtherObj } = this.state
let that = this let that = this
this.setState({ this.setState({
listOptionData: listOptionData.map((item, index) => { listOptionData: listOptionData.map(async (item, index) => {
if(index > startIndex && index < endIndex) { if(index > startIndex && index < endIndex) {
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 == '客户名称') {
await that.getDepartmentsByOrg(listOptionData[1].value)
setTimeout(() => {
that.organizationGetCustomerData() that.organizationGetCustomerData()
}, 0);
} }
if(listOptionData[2].value && item.title == '目标订单信息') { if(listOptionData[2].value && item.title == '目标订单信息') {
that.customerGetTargetOrder() that.customerGetTargetOrder()
...@@ -568,9 +571,8 @@ class TransOrderPage extends Component { ...@@ -568,9 +571,8 @@ class TransOrderPage extends Component {
chItem.name = item.name chItem.name = item.name
chItem.value = item.value chItem.value = item.value
if(itemTitle === '组织') { if(itemTitle === '组织') {
that.clearInitNameAndValue(1)
that.clearInitNameAndValue(8, 10) that.clearInitNameAndValue(8, 10)
that.getDepartmentsByOrg(item.value) that.clearInitNameAndValue(1)
} }
if(itemTitle === '客户名称') { if(itemTitle === '客户名称') {
that.clearInitNameAndValue(2) that.clearInitNameAndValue(2)
...@@ -697,9 +699,11 @@ class TransOrderPage extends Component { ...@@ -697,9 +699,11 @@ class TransOrderPage extends Component {
listOptionData[1].value = filterOpt[0].org_code listOptionData[1].value = filterOpt[0].org_code
that.setState({ that.setState({
listOptionData listOptionData
}, () => { }, async () => {
await that.getDepartmentsByOrg(listOptionData[1].value)
setTimeout(() => {
that.organizationGetCustomerData() that.organizationGetCustomerData()
that.getDepartmentsByOrg(listOptionData[1].value) }, 0);
}) })
} }
}else { }else {
...@@ -857,11 +861,16 @@ class TransOrderPage extends Component { ...@@ -857,11 +861,16 @@ class TransOrderPage extends Component {
let params = { let params = {
access_token: props.token, access_token: props.token,
org_code: state.listOptionData[1].value, org_code: state.listOptionData[1].value,
seller_code: props.userInfo.user_name, // seller_code: props.userInfo.user_name,
customer_code: state.listOptionData[2].value, customer_code: state.listOptionData[2].value,
collect_header_status: 'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED', collect_header_status: 'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED',
setting_type: 'COLLECT' setting_type: 'COLLECT'
} }
if (state.sysValues.OBS_MOBILE_TRANS_DEPARTMENT_DISPLAY > 0) {
params.department_code = state.listOptionData[9].value
} else {
params.seller_code = props.userInfo.user_name
}
props.requestTransTargetOrderInfo(params) props.requestTransTargetOrderInfo(params)
}) })
} }
...@@ -872,10 +881,15 @@ class TransOrderPage extends Component { ...@@ -872,10 +881,15 @@ class TransOrderPage extends Component {
let params = { let params = {
access_token: props.token, access_token: props.token,
org_code: state.listOptionData[1].value, org_code: state.listOptionData[1].value,
seller_code: props.userInfo.user_name, // seller_code: props.userInfo.user_name,
customer_code: state.listOptionData[2].value, customer_code: state.listOptionData[2].value,
collect_header_status: 'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED' collect_header_status: 'COLLECTING_WAITING_CONFIRM,CONFIRM_COLLECT,COLLECTED_WAITING_CONFIRMED,APPROVED,COLLECTED'
} }
if (state.sysValues.OBS_MOBILE_TRANS_DEPARTMENT_DISPLAY > 0) {
params.department_code = state.listOptionData[9].value
} else {
params.seller_code = props.userInfo.user_name
}
let that = this let that = this
let { global_domain_config } = props let { global_domain_config } = props
let cusResult = await requestSubSourBorOrdNum(global_domain_config, params); let cusResult = await requestSubSourBorOrdNum(global_domain_config, params);
......
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