Commit fa026b12 by Denglingling

调整转单模块,新增多仓调整

parent 70928b94
...@@ -158,11 +158,11 @@ class TransSearchPage extends Component { ...@@ -158,11 +158,11 @@ class TransSearchPage extends Component {
// 选择器弹窗回调函数 // 选择器弹窗回调函数
handleCallBack(item, itemTitle) { handleCallBack(item, itemTitle) {
let { listOptionData} = this.state let { listOptionData} = this.state
let self = this let that = this
self.setState({ that.setState({
currentItem: item, currentItem: item,
}) })
self.setState({ that.setState({
listOptionData: listOptionData.map((chItem) => { listOptionData: listOptionData.map((chItem) => {
if(chItem.title === itemTitle) { if(chItem.title === itemTitle) {
chItem.name = item.name chItem.name = item.name
...@@ -232,11 +232,13 @@ class TransSearchPage extends Component { ...@@ -232,11 +232,13 @@ class TransSearchPage extends Component {
access_token: props.token, access_token: props.token,
org_code: subTransObj.org_code, org_code: subTransObj.org_code,
seller_code: props.userInfo.user_name, seller_code: props.userInfo.user_name,
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'
} }
let { global_domain_config } = that.props let { global_domain_config } = that.props
that.changeLodingFlag(true) that.changeLodingFlag(true)
let sourResult = await requestSubSourBorOrdNum(global_domain_config, params) let sourResult = await requestSubSourBorOrdNum(global_domain_config, params)
console.log('来源借货订单号 res=====', sourResult);
if(sourResult.error_code === 0) { if(sourResult.error_code === 0) {
that.changeLodingFlag(false) that.changeLodingFlag(false)
let { data: { surgery_collect_headers } } = sourResult let { data: { surgery_collect_headers } } = sourResult
...@@ -389,7 +391,7 @@ class TransSearchPage extends Component { ...@@ -389,7 +391,7 @@ class TransSearchPage extends Component {
if(detailResult.error_code === 0) { if(detailResult.error_code === 0) {
let { data: { sur_transfer_lines }} = detailResult let { data: { sur_transfer_lines }} = detailResult
if(sur_transfer_lines.length == 0) { if(sur_transfer_lines.length == 0) {
show('当前明细为空!') show('当前订单无明细数据,请重新选择订单!')
} else { } else {
let {subTransDetOption} = this.props // 【转单】主页面已存在的明细 let {subTransDetOption} = this.props // 【转单】主页面已存在的明细
subTransDetOption.length && subTransDetOption.forEach((item) => { subTransDetOption.length && subTransDetOption.forEach((item) => {
......
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