diff --git a/src/views/logisticsManagement/components/returnDialog.vue b/src/views/logisticsManagement/components/returnDialog.vue index 3dddd0e..01b2789 100644 --- a/src/views/logisticsManagement/components/returnDialog.vue +++ b/src/views/logisticsManagement/components/returnDialog.vue @@ -5,6 +5,8 @@ 送料 叫料 + + 回库 @@ -15,7 +17,13 @@ placeholder="请扫描箱条码" /> - + - + - - 暂无可配送物料 + 暂无可配送物料 - + - - + + + + + 输送线终点 + @@ -145,6 +164,15 @@ export default { if (this.form.bindType == 'unbind') { this.getStationRegionList(); } + if (this.form.bindType == 'intoStock') { + // this.form.endLocationId = '' + // 获取输送线终点 作业中心id + const selected = this.workCenterOptions.find(item => item.wcName == '输送线终点'); + console.log(989898989, Object.keys(selected).length > 0); + if (Object.keys(selected).length > 0) { + this.form.endLocationId = selected.id; + } + } }, regionDataStartChange(val) { const selected = this.regionDataStart.find( @@ -162,7 +190,9 @@ export default { getStationRegionList().then(res => { this.regionDataStart = res.data.data; // 查找“蓝色周转盒放置区” - const targetRegion = this.regionDataStart.find(item => item.stationRegion == '蓝色周转盒放置区'); + const targetRegion = this.regionDataStart.find( + item => item.stationRegion == '蓝色周转盒放置区' + ); if (targetRegion) { // 默认选中该区域 @@ -216,8 +246,9 @@ export default { else if (this.form.bindType === 'unbind') { params.startStationCode = this.form.regionCode; params.endStationCode = this.form.endStationCode; + } else if (this.form.bindType === 'intoStock') { + params.startStationCode = this.form.stationCode; } - console.log(9898989898989, params); boxBinding(params) .then(res => { diff --git a/src/views/logisticsManagement/logisticsDistribution.vue b/src/views/logisticsManagement/logisticsDistribution.vue index 818a8c7..1b2a7f4 100644 --- a/src/views/logisticsManagement/logisticsDistribution.vue +++ b/src/views/logisticsManagement/logisticsDistribution.vue @@ -148,14 +148,14 @@ export default { hide: true, searchOrder: 20, }, - { - label: '起点-作业中心', - prop: 'startWcName', - search: false, - sortable: true, - span: 12, - width: 120, - }, + // { + // label: '起点-作业中心', + // prop: 'startWcName', + // search: false, + // sortable: true, + // span: 12, + // width: 120, + // }, { label: '起点-区域', prop: 'startStationRegion',