Commit a8938b2c by wong.peiyi

[调整] 多仓借还显隐调整

parent 1b5dbc4a
......@@ -215,7 +215,7 @@ class EquipConsuPage extends Component {
// ],
showNotEnogPop: false, // 库存不足弹窗
not_enough_items_list:[], // 库存不足数据
bor_ware_required: '', // APP借货仓库必填权限
bor_ware_required: 0, // APP借货仓库必填权限
}
}
......@@ -559,7 +559,7 @@ class EquipConsuPage extends Component {
let tempStatus = false
let tempTit = ''
let maxIndex = 10
if(bor_ware_required === 'Y'){
if(bor_ware_required === 3){
maxIndex = 11
}
for(let chIndex in listOptionData) {
......@@ -1325,10 +1325,10 @@ class EquipConsuPage extends Component {
console.log('sysRes:==', sysRes)
if(sysRes.error_code === 0){
this.setState({
bor_ware_required: sysRes.data.profile_value
bor_ware_required: Number(sysRes.data.profile_value) || 0
})
}else {
this.showWarnError(sysRes)
// }else {
// this.showWarnError(sysRes)
}
}
showWarnError(res){
......@@ -1437,15 +1437,19 @@ class EquipConsuPage extends Component {
listCallBack={() => this.handleOrderCheck(listOptionData[9])}
listHasArrow={true}
/>
{
bor_ware_required > 1 ?
<PageListArrow
listActOpa={.8}
listHasAster={bor_ware_required === 'Y'}
listHasAster={bor_ware_required === 3}
listItem={listOptionData[10]}
listName={'name'}
listTitle={'title'}
listCallBack={() => this.handleWareCheck(listOptionData[10])}
listHasArrow={true}
/>
: <Text></Text>
}
<DateModel
date={listOptionData[8].dateValue}
......
......@@ -172,7 +172,7 @@ class TransOrderPage extends Component {
],
isShowImage: false,
currShowImgIndex: 0,
bor_ware_required: '', // APP目标仓库必填权限
bor_ware_required: 0, // APP目标仓库显示及必填权限
}
}
......@@ -515,7 +515,7 @@ class TransOrderPage extends Component {
let tempStatus = false
let tempTit = ''
let maxIndex = 4
if(bor_ware_required === 'Y'){
if(bor_ware_required === 3){
maxIndex = 5
}
for(let chIndex in listOptionData) {
......@@ -1183,10 +1183,10 @@ class TransOrderPage extends Component {
console.log('sysRes:==', sysRes)
if(sysRes.error_code === 0){
this.setState({
bor_ware_required: sysRes.data.profile_value
bor_ware_required: Number(sysRes.data.profile_value) || 0
})
}else {
this.showWarnError(sysRes)
// }else {
// this.showWarnError(sysRes)
}
}
showWarnError(res){
......@@ -1240,15 +1240,18 @@ class TransOrderPage extends Component {
listHasArrow={true}
listMaxLines={3}
/>
{
bor_ware_required > 1 &&
<PageListArrow
listActOpa={.8}
listHasAster={bor_ware_required === 'Y'}
listHasAster={bor_ware_required === 3}
listItem={listOptionData[4]}
listName={'name'}
listTitle={'title'}
listCallBack={() => this.handleWareCheck(listOptionData[4])}
listHasArrow={true}
/>
}
{ 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