Commit dc87fb35 by lhc

feat: 添加customer_code

parent a311bae1
This diff could not be displayed because it is too large.
...@@ -300,6 +300,7 @@ class ChooseProductPage extends Component { ...@@ -300,6 +300,7 @@ class ChooseProductPage extends Component {
if (navigation.state.params.selfData) { if (navigation.state.params.selfData) {
cur_org_code = navigation.state.params.selfData.org_code cur_org_code = navigation.state.params.selfData.org_code
cur_doctor_name = navigation.state.params.selfData.doctor_name cur_doctor_name = navigation.state.params.selfData.doctor_name
customer_code = navigation.state.params.selfData.customer_code
} }
let topItem = topProcOptionList[topActiveIndex] let topItem = topProcOptionList[topActiveIndex]
if (leftIndex === 0) { if (leftIndex === 0) {
...@@ -307,6 +308,7 @@ class ChooseProductPage extends Component { ...@@ -307,6 +308,7 @@ class ChooseProductPage extends Component {
access_token: token, access_token: token,
org_code: cur_org_code, org_code: cur_org_code,
manufacturer_code: topItem.supplier_code, manufacturer_code: topItem.supplier_code,
customer_code,
// doctor_name: cur_doctor_name // doctor_name: cur_doctor_name
} }
console.log('params=', params) console.log('params=', params)
...@@ -343,6 +345,7 @@ class ChooseProductPage extends Component { ...@@ -343,6 +345,7 @@ class ChooseProductPage extends Component {
access_token: token, access_token: token,
manufacturer_code: topItem.supplier_code, manufacturer_code: topItem.supplier_code,
category_code: cur_category_code, category_code: cur_category_code,
customer_code,
} }
console.log('params=', params) console.log('params=', params)
let nail_equip_head_search = await reqNailEquipHeadSearch(global_domain_config, params) let nail_equip_head_search = await reqNailEquipHeadSearch(global_domain_config, params)
...@@ -372,6 +375,7 @@ class ChooseProductPage extends Component { ...@@ -372,6 +375,7 @@ class ChooseProductPage extends Component {
let params = { let params = {
access_token: token, access_token: token,
manufacturer_code: topItem.supplier_code, manufacturer_code: topItem.supplier_code,
customer_code,
} }
console.log('params=', params) console.log('params=', params)
let scat_head_search = await reqScatEquipmentSearch(global_domain_config, params) let scat_head_search = await reqScatEquipmentSearch(global_domain_config, params)
...@@ -404,6 +408,7 @@ class ChooseProductPage extends Component { ...@@ -404,6 +408,7 @@ class ChooseProductPage extends Component {
manufacturer_code: topItem.supplier_code, manufacturer_code: topItem.supplier_code,
org_code: cur_org_code, org_code: cur_org_code,
leftIndex: leftIndex, // 测试 leftIndex: leftIndex, // 测试
customer_code,
} }
console.log('params=', params) console.log('params=', params)
let single_all_search = await reqSingleConsumSearch(global_domain_config, params) let single_all_search = await reqSingleConsumSearch(global_domain_config, params)
...@@ -898,6 +903,7 @@ class ChooseProductPage extends Component { ...@@ -898,6 +903,7 @@ class ChooseProductPage extends Component {
selfData: { selfData: {
org_code: cur_org_code, org_code: cur_org_code,
authorizations, authorizations,
customer_code: navigation.state.params.selfData.customer_code,
}, },
}) })
}} }}
......
...@@ -110,7 +110,7 @@ class SearchPage extends Component { ...@@ -110,7 +110,7 @@ class SearchPage extends Component {
const { navigation, global_domain_config, token } = this.props const { navigation, global_domain_config, token } = this.props
const { topActiveIndex, searchValue, page, data } = this.state const { topActiveIndex, searchValue, page, data } = this.state
const { selfData, topProcOptionList } = navigation.state.params const { selfData, topProcOptionList } = navigation.state.params
const { authorizations } = selfData const { authorizations, customer_code } = selfData
const productLineCategory = authorizations?.product_line_category_list const productLineCategory = authorizations?.product_line_category_list
?.map(item => item.product_line_category_code) ?.map(item => item.product_line_category_code)
...@@ -121,6 +121,7 @@ class SearchPage extends Component { ...@@ -121,6 +121,7 @@ class SearchPage extends Component {
orgCode: selfData.org_code, orgCode: selfData.org_code,
manufacturerCode: topProcOptionList[topActiveIndex].supplier_code, manufacturerCode: topProcOptionList[topActiveIndex].supplier_code,
productLineCategory, productLineCategory,
customer_code,
keyword: encodeURIComponent(searchValue), keyword: encodeURIComponent(searchValue),
page, page,
} }
...@@ -140,11 +141,13 @@ class SearchPage extends Component { ...@@ -140,11 +141,13 @@ class SearchPage extends Component {
// 获取搜索到的类目 // 获取搜索到的类目
async getLeftOptionList(item) { async getLeftOptionList(item) {
const { navigation, global_domain_config, token } = this.props const { navigation, global_domain_config, token } = this.props
const { topProcOptionList } = navigation.state.params const { topProcOptionList, selfData } = navigation.state.params
const { defalutLeftItem, topActiveIndex } = this.state const { defalutLeftItem, topActiveIndex } = this.state
const { customer_code } = selfData
const params = { const params = {
access_token: token, access_token: token,
manufacturer_code: topProcOptionList[topActiveIndex].supplier_code, manufacturer_code: topProcOptionList[topActiveIndex].supplier_code,
customer_code,
} }
console.log('params=', params) console.log('params=', params)
this.refs.LoadingModel.show() this.refs.LoadingModel.show()
...@@ -180,11 +183,13 @@ class SearchPage extends Component { ...@@ -180,11 +183,13 @@ class SearchPage extends Component {
const { navigation, global_domain_config, token } = this.props const { navigation, global_domain_config, token } = this.props
const { topActiveIndex } = this.state const { topActiveIndex } = this.state
const { topProcOptionList, selfData } = navigation.state.params const { topProcOptionList, selfData } = navigation.state.params
const { customer_code } = selfData
let params = { let params = {
access_token: token, access_token: token,
category_code: item.big_category.category_code, category_code: item.big_category.category_code,
manufacturer_code: topProcOptionList[topActiveIndex].supplier_code, manufacturer_code: topProcOptionList[topActiveIndex].supplier_code,
org_code: selfData.org_code, org_code: selfData.org_code,
customer_code,
// leftIndex: leftIndex, // 测试 // leftIndex: leftIndex, // 测试
} }
console.log('params=', params) console.log('params=', 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