|
@ -4,19 +4,21 @@ |
|
|
<view class="header_job_top"> |
|
|
<view class="header_job_top"> |
|
|
<jobTopAsn :dataContent="jobContent"></jobTopAsn> |
|
|
<jobTopAsn :dataContent="jobContent"></jobTopAsn> |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-flex u-col-center" style="width: 100%;margin-top: 10rpx; margin-left: 10rpx; align-items: center; "> |
|
|
|
|
|
<view class="" style="font-size: 33rpx; font-weight: 600; "> |
|
|
<view class="uni-flex uni-row " style=";margin-top: 10rpx; margin-left: 10rpx; text-align: right;"> |
|
|
|
|
|
<view class="font_default" style="display: block; "> |
|
|
整单收货 |
|
|
整单收货 |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-flex" style="margin-left: 50rpx; align-items: center; text-align: center;"> |
|
|
<view class="uni-flex" style="margin-left: 20rpx; align-items: center; text-align: center;"> |
|
|
<u-switch v-model="isAllReceived" active-color="#4DD865" inactive-color="#eee" size="42" @change="switchChange"></u-switch> |
|
|
<u-switch v-model="isAllReceived" active-color="#5FCB94" inactive-color="#eee" size="35" |
|
|
|
|
|
@change="switchChange"></u-switch> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<u-line color="#D8D8D8" style="margin-top: 10rpx; margin-bottom: 10rpx;" /> |
|
|
|
|
|
<!-- <required-location ref="locationCompare" title="默认收货库位 :" :locationCode="jobToLocationCode" |
|
|
<!-- <required-location ref="locationCompare" title="默认收货库位 :" :locationCode="jobToLocationCode" |
|
|
:isShowEdit="false"></required-location> |
|
|
:isShowEdit="false"></required-location> |
|
|
<u-line color="#D8D8D8" /> --> |
|
|
<u-line color="#D8D8D8" /> --> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="split_line"></view> |
|
|
<view class="page-main"> |
|
|
<view class="page-main"> |
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
@ -33,8 +35,9 @@ |
|
|
<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 ref="locationCompare" title="收货库位:" :recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" |
|
|
<locationCompare ref="locationCompare" title="收货库位:" :recommendLocationCode="jobToLocationCode" |
|
|
@getLocation='scanLocationCode' :locationTypeList="toLocationTypeList"> |
|
|
:locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
|
|
|
:locationTypeList="toLocationTypeList"> |
|
|
</locationCompare> |
|
|
</locationCompare> |
|
|
</view> |
|
|
</view> |
|
|
<view class=" uni-flex uni-row"> |
|
|
<view class=" uni-flex uni-row"> |
|
@ -46,7 +49,6 @@ |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<winScanPackAndCont ref="scanPopup" @getResult='getScanResult'></winScanPackAndCont> |
|
|
<winScanPackAndCont ref="scanPopup" @getResult='getScanResult'></winScanPackAndCont> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -114,7 +116,7 @@ |
|
|
businessTypeInfo: {}, |
|
|
businessTypeInfo: {}, |
|
|
managementList: [], |
|
|
managementList: [], |
|
|
jobStatus: "", |
|
|
jobStatus: "", |
|
|
isAllReceived:false |
|
|
isAllReceived: false |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
@ -291,13 +293,13 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
scanLocationCode(location, code) { |
|
|
if(this.jobContent.allowModifyLocation == 'TRUE'){ |
|
|
if (this.jobContent.allowModifyLocation == 'TRUE') { |
|
|
|
|
|
this.toLocationCode = code; |
|
|
|
|
|
} else { |
|
|
|
|
|
if (code == this.jobToLocationCode) { |
|
|
this.toLocationCode = code; |
|
|
this.toLocationCode = code; |
|
|
}else { |
|
|
} else { |
|
|
if(code==this.jobToLocationCode){ |
|
|
this.showErrorMessage("任务设置中不允许修改库位,扫描的库位【" + code + "】与推荐的库位【" + this.jobToLocationCode + "】不一致") |
|
|
this.toLocationCode =code; |
|
|
|
|
|
}else { |
|
|
|
|
|
this.showErrorMessage("任务设置中不允许修改库位,扫描的库位【"+code+"】与推荐的库位【"+this.jobToLocationCode+"】不一致") |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -435,12 +437,12 @@ |
|
|
return isPass; |
|
|
return isPass; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
switchChange(isOn){ |
|
|
switchChange(isOn) { |
|
|
this.isAllReceived =isOn |
|
|
this.isAllReceived = isOn |
|
|
if(this.isAllReceived){ |
|
|
if (this.isAllReceived) { |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
|
detail.scaned =true |
|
|
detail.scaned = true |
|
|
detail.handleQty = detail.qty; |
|
|
detail.handleQty = detail.qty; |
|
|
detail.toLocationCode = this.toLocationCode; |
|
|
detail.toLocationCode = this.toLocationCode; |
|
|
detail.labelQty = detail.qty; |
|
|
detail.labelQty = detail.qty; |
|
@ -449,8 +451,7 @@ |
|
|
}) |
|
|
}) |
|
|
console.log(JSON.stringify(this.detailSource)) |
|
|
console.log(JSON.stringify(this.detailSource)) |
|
|
calcHandleQty(this.detailSource); |
|
|
calcHandleQty(this.detailSource); |
|
|
this.continueScan() |
|
|
} else { |
|
|
}else { |
|
|
|
|
|
this.getDetail() |
|
|
this.getDetail() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|