Commit c547c435 by peii

【BUG】全局搜索bug修复

parent 9724c77e
......@@ -133,9 +133,17 @@ class ChooseProductPage extends Component {
handleGoBack() {
let { topProcOptionList, originManufacterList } = this.state
let { setSelectProductOpts } = this.props
setSelectProductOpts(originManufacterList)
console.log('originManufacterList', originManufacterList)
this.props.navigation.state.params.productCallBack(originManufacterList)
const res = R.map(item => {
const topItem = R.find(R.propEq('supplier_code', item.supplier_code))(topProcOptionList)
if (isNotBlank(topItem)) {
item = R.mergeDeepLeft(topItem, item)
}
return item
})(originManufacterList)
setSelectProductOpts(res)
this.props.navigation.state.params.productCallBack(res)
this.props.navigation.goBack()
}
......
......@@ -133,6 +133,7 @@ class SearchPage extends Component {
this.refs.LoadingModel.hide()
console.log('single_all_search', single_all_search)
const oldData = data.item
this.setState({
data: {
...single_all_search?.data,
......@@ -329,6 +330,7 @@ class SearchPage extends Component {
show('添加成功')
},
)
console.log(JSON.stringify(topProcOptionList));
return Promise.resolve(topProcOptionList)
}
......
......@@ -2,7 +2,7 @@
* @FilePath: /BoneHouse_Business_APP/app/reducers/module/mixConsume.js
* @Author: PEII
* @Date: 2022-08-04 17:28:07
* @LastEditTime: 2022-10-12 15:49:35
* @LastEditTime: 2022-10-21 12:54:50
* @LastEditors: PEII
* @Vision: 1.0
* @Description: 混单消耗
......@@ -15,7 +15,6 @@ const initState = {
}
export default (state = initState, action) => {
console.log(action)
switch (action.type) {
case SET_MIX_CONSUME_ORDERS:
return Object.assign({}, state, {
......
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