Commit 81e0c089 by wong.peiyi

Merge branch 'develop_temp' into develop

parents 576c3a2c a8938b2c
...@@ -215,7 +215,7 @@ class EquipConsuPage extends Component { ...@@ -215,7 +215,7 @@ class EquipConsuPage extends Component {
// ], // ],
showNotEnogPop: false, // 库存不足弹窗 showNotEnogPop: false, // 库存不足弹窗
not_enough_items_list:[], // 库存不足数据 not_enough_items_list:[], // 库存不足数据
bor_ware_required: '', // APP借货仓库必填权限 bor_ware_required: 0, // APP借货仓库必填权限
} }
} }
...@@ -223,7 +223,7 @@ class EquipConsuPage extends Component { ...@@ -223,7 +223,7 @@ class EquipConsuPage extends Component {
this.getSellerName() this.getSellerName()
this.getAudioAuthorize() this.getAudioAuthorize()
this.getOrganizationData() this.getOrganizationData()
// this.getSysConfigValue() this.getSysConfigValue()
} }
// 赋值销售员 初始化数据 // 赋值销售员 初始化数据
...@@ -559,7 +559,7 @@ class EquipConsuPage extends Component { ...@@ -559,7 +559,7 @@ class EquipConsuPage extends Component {
let tempStatus = false let tempStatus = false
let tempTit = '' let tempTit = ''
let maxIndex = 10 let maxIndex = 10
if(bor_ware_required === 'Y'){ if(bor_ware_required === 3){
maxIndex = 11 maxIndex = 11
} }
for(let chIndex in listOptionData) { for(let chIndex in listOptionData) {
...@@ -1223,7 +1223,7 @@ class EquipConsuPage extends Component { ...@@ -1223,7 +1223,7 @@ class EquipConsuPage extends Component {
tempSubOption.template_collect_number = state.listOptionData[7].value tempSubOption.template_collect_number = state.listOptionData[7].value
tempSubOption.surgery_date = state.listOptionData[8].value tempSubOption.surgery_date = state.listOptionData[8].value
tempSubOption.order_type_code = state.listOptionData[9].value tempSubOption.order_type_code = state.listOptionData[9].value
// tempSubOption.collect_src_inv_code = state.listOptionData[10].value tempSubOption.collect_src_inv_code = state.listOptionData[10].value
tempSubOption.surgery_desc = state.listOptionData[11].value tempSubOption.surgery_desc = state.listOptionData[11].value
tempSubOption.voice_url = state.listOptionData[12].value tempSubOption.voice_url = state.listOptionData[12].value
let params = { let params = {
...@@ -1325,10 +1325,10 @@ class EquipConsuPage extends Component { ...@@ -1325,10 +1325,10 @@ class EquipConsuPage extends Component {
console.log('sysRes:==', sysRes) console.log('sysRes:==', sysRes)
if(sysRes.error_code === 0){ if(sysRes.error_code === 0){
this.setState({ this.setState({
bor_ware_required: sysRes.data.profile_value bor_ware_required: Number(sysRes.data.profile_value) || 0
}) })
}else { // }else {
this.showWarnError(sysRes) // this.showWarnError(sysRes)
} }
} }
showWarnError(res){ showWarnError(res){
...@@ -1437,15 +1437,19 @@ class EquipConsuPage extends Component { ...@@ -1437,15 +1437,19 @@ class EquipConsuPage extends Component {
listCallBack={() => this.handleOrderCheck(listOptionData[9])} listCallBack={() => this.handleOrderCheck(listOptionData[9])}
listHasArrow={true} listHasArrow={true}
/> />
{/* <PageListArrow {
bor_ware_required > 1 ?
<PageListArrow
listActOpa={.8} listActOpa={.8}
listHasAster={bor_ware_required === 'Y'} listHasAster={bor_ware_required === 3}
listItem={listOptionData[10]} listItem={listOptionData[10]}
listName={'name'} listName={'name'}
listTitle={'title'} listTitle={'title'}
listCallBack={() => this.handleWareCheck(listOptionData[10])} listCallBack={() => this.handleWareCheck(listOptionData[10])}
listHasArrow={true} listHasArrow={true}
/> */} />
: <Text></Text>
}
<DateModel <DateModel
date={listOptionData[8].dateValue} date={listOptionData[8].dateValue}
......
...@@ -172,7 +172,7 @@ class TransOrderPage extends Component { ...@@ -172,7 +172,7 @@ class TransOrderPage extends Component {
], ],
isShowImage: false, isShowImage: false,
currShowImgIndex: 0, currShowImgIndex: 0,
bor_ware_required: '', // APP目标仓库必填权限 bor_ware_required: 0, // APP目标仓库显示及必填权限
} }
} }
...@@ -181,7 +181,7 @@ class TransOrderPage extends Component { ...@@ -181,7 +181,7 @@ class TransOrderPage extends Component {
this.getSellerName() this.getSellerName()
this.getAudioAuthorize() this.getAudioAuthorize()
this.getOrganizationData() this.getOrganizationData()
// this.getSysConfigValue() this.getSysConfigValue()
} }
// 赋值销售员 初始化数据 // 赋值销售员 初始化数据
...@@ -515,7 +515,7 @@ class TransOrderPage extends Component { ...@@ -515,7 +515,7 @@ class TransOrderPage extends Component {
let tempStatus = false let tempStatus = false
let tempTit = '' let tempTit = ''
let maxIndex = 4 let maxIndex = 4
if(bor_ware_required === 'Y'){ if(bor_ware_required === 3){
maxIndex = 5 maxIndex = 5
} }
for(let chIndex in listOptionData) { for(let chIndex in listOptionData) {
...@@ -1093,7 +1093,7 @@ class TransOrderPage extends Component { ...@@ -1093,7 +1093,7 @@ class TransOrderPage extends Component {
let tempSubOption = state.submitOption let tempSubOption = state.submitOption
tempSubOption.org_code = state.listOptionData[1].value tempSubOption.org_code = state.listOptionData[1].value
tempSubOption.collect_number = state.listOptionData[3].value tempSubOption.collect_number = state.listOptionData[3].value
// tempSubOption.destination_inv_code = state.listOptionData[4].value tempSubOption.destination_inv_code = state.listOptionData[4].value
tempSubOption.remark = state.listOptionData[5].value tempSubOption.remark = state.listOptionData[5].value
tempSubOption.voice_url = state.listOptionData[6].value tempSubOption.voice_url = state.listOptionData[6].value
tempSubOption.sur_order_transfer_line = state.listOptionData[7].subOption tempSubOption.sur_order_transfer_line = state.listOptionData[7].subOption
...@@ -1183,10 +1183,10 @@ class TransOrderPage extends Component { ...@@ -1183,10 +1183,10 @@ class TransOrderPage extends Component {
console.log('sysRes:==', sysRes) console.log('sysRes:==', sysRes)
if(sysRes.error_code === 0){ if(sysRes.error_code === 0){
this.setState({ this.setState({
bor_ware_required: sysRes.data.profile_value bor_ware_required: Number(sysRes.data.profile_value) || 0
}) })
}else { // }else {
this.showWarnError(sysRes) // this.showWarnError(sysRes)
} }
} }
showWarnError(res){ showWarnError(res){
...@@ -1240,15 +1240,18 @@ class TransOrderPage extends Component { ...@@ -1240,15 +1240,18 @@ class TransOrderPage extends Component {
listHasArrow={true} listHasArrow={true}
listMaxLines={3} listMaxLines={3}
/> />
{/* <PageListArrow {
bor_ware_required > 1 &&
<PageListArrow
listActOpa={.8} listActOpa={.8}
listHasAster={bor_ware_required === 'Y'} listHasAster={bor_ware_required === 3}
listItem={listOptionData[4]} listItem={listOptionData[4]}
listName={'name'} listName={'name'}
listTitle={'title'} listTitle={'title'}
listCallBack={() => this.handleWareCheck(listOptionData[4])} listCallBack={() => this.handleWareCheck(listOptionData[4])}
listHasArrow={true} listHasArrow={true}
/> */} />
}
{ this.renderPickerModel() } { this.renderPickerModel() }
......
This diff could not be displayed because it is too large.
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