|
@ -52,7 +52,7 @@ |
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<locationCompare title="收货库位" :isShowEdit="jobContent.allowModifyLocation=='TRUE'" |
|
|
<locationCompare ref ="comScanLocation" title="收货库位" :isShowEdit="jobContent.allowModifyLocation=='TRUE'" |
|
|
:recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" |
|
|
:recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" |
|
|
@getLocation='scanLocationCode' :locationTypeList="toLocationTypeList"></locationCompare> |
|
|
@getLocation='scanLocationCode' :locationTypeList="toLocationTypeList"></locationCompare> |
|
|
</view> |
|
|
</view> |
|
@ -230,15 +230,9 @@ |
|
|
that.jobContent = res.data; |
|
|
that.jobContent = res.data; |
|
|
that.subList = res.data.subList; |
|
|
that.subList = res.data.subList; |
|
|
that.jobStatus = res.data.status |
|
|
that.jobStatus = res.data.status |
|
|
|
|
|
that.jobContent.allowModifyLocation = 'TRUE' |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
that.productionLineCode = that.subList[0].productionLineCode; |
|
|
that.productionLineCode = that.subList[0].productionLineCode; |
|
|
var valiDate = getSwitchInfoByCode("fgProductReceipCommitValidate") |
|
|
|
|
|
if(valiDate){ |
|
|
|
|
|
that.jobContent.allowModifyLocation = 'TRUE' |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
that.jobContent.allowModifyLocation = 'FALSE' |
|
|
|
|
|
} |
|
|
|
|
|
// if (that.jobContent.allowModifyLocation == 'FALSE') { |
|
|
// if (that.jobContent.allowModifyLocation == 'FALSE') { |
|
|
// that.toLocationCode = that.subList[0].toLocationCode |
|
|
// that.toLocationCode = that.subList[0].toLocationCode |
|
|
// } |
|
|
// } |
|
@ -455,7 +449,7 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
this.toLocationCode = this.jobToLocationCode |
|
|
this.toLocationCode = this.toLocationCode?this.toLocationCode:this.jobToLocationCode |
|
|
} |
|
|
} |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(subitem => { |
|
|
item.subList.forEach(subitem => { |
|
|