|
@ -15,7 +15,8 @@ |
|
|
<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"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<comJobDetailCard :dataContent="item" :index="index" :settingParam="jobContent" |
|
|
<comJobDetailCard :dataContent="item" :index="index" :settingParam="jobContent" |
|
|
@remove="updateData" @updateData="updateData" :locationAreaTypeList='toLocationAreaTypeList'> |
|
|
@remove="updateData" @updateData="updateData" |
|
|
|
|
|
:locationAreaTypeList='toLocationAreaTypeList'> |
|
|
</comJobDetailCard> |
|
|
</comJobDetailCard> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -26,8 +27,8 @@ |
|
|
<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='comScanLocation' title="目标库位" :recommendLocationCode="jobToLocationCode" :locationCode="toLocationCode" |
|
|
<locationCompare ref='comScanLocation' title="目标库位" :recommendLocationCode="jobToLocationCode" |
|
|
@getLocation='scanLocationCode' |
|
|
:locationCode="toLocationCode" @getLocation='scanLocationCode' |
|
|
:locationAreaTypeList="toLocationAreaTypeList"></locationCompare> |
|
|
:locationAreaTypeList="toLocationAreaTypeList"></locationCompare> |
|
|
</view> |
|
|
</view> |
|
|
<view class=" uni-flex uni-row"> |
|
|
<view class=" uni-flex uni-row"> |
|
@ -37,7 +38,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<winScanPackAndLocationNoBalance ref="scanPopup" @getResult='getScanResult' :allowNullBalance ="true"></winScanPackAndLocationNoBalance> |
|
|
<winScanPackAndLocationNoBalance ref="scanPopup" @getResult='getScanResult' :allowNullBalance="true"> |
|
|
|
|
|
</winScanPackAndLocationNoBalance> |
|
|
|
|
|
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
@ -101,8 +103,8 @@ |
|
|
fromLocationCode: "", |
|
|
fromLocationCode: "", |
|
|
toLocationCode: "", |
|
|
toLocationCode: "", |
|
|
toLocationAreaTypeList: [], |
|
|
toLocationAreaTypeList: [], |
|
|
jobStatus:"", |
|
|
jobStatus: "", |
|
|
jobToLocationCode:"", |
|
|
jobToLocationCode: "", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
@ -128,7 +130,7 @@ |
|
|
onBackPress(e) { |
|
|
onBackPress(e) { |
|
|
//已经接收但是没提交任务 |
|
|
//已经接收但是没提交任务 |
|
|
if (e.from == 'backbutton') { |
|
|
if (e.from == 'backbutton') { |
|
|
if (this.jobStatus=="2") { |
|
|
if (this.jobStatus == "2") { |
|
|
//取消承接任务 |
|
|
//取消承接任务 |
|
|
cancleTakePutawayJob(this.id).then(res => { |
|
|
cancleTakePutawayJob(this.id).then(res => { |
|
|
uni.navigateBack(); |
|
|
uni.navigateBack(); |
|
@ -288,13 +290,13 @@ |
|
|
if (item != undefined) { |
|
|
if (item != undefined) { |
|
|
subItem.scaned = true |
|
|
subItem.scaned = true |
|
|
subItem.handleQty = 0; |
|
|
subItem.handleQty = 0; |
|
|
item=undefined |
|
|
item = undefined |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(isExit == undefined){ |
|
|
if (isExit == undefined) { |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result |
|
|
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result |
|
|
.fromLocationCode + "】不在列表中") |
|
|
.fromLocationCode + "】不在列表中") |
|
|
}else { |
|
|
} else { |
|
|
if (isExit.scaned) { |
|
|
if (isExit.scaned) { |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
} else { |
|
|
} else { |
|
@ -306,13 +308,13 @@ |
|
|
calcTreeHandleQty(this.detailSource); |
|
|
calcTreeHandleQty(this.detailSource); |
|
|
this.$forceUpdate() |
|
|
this.$forceUpdate() |
|
|
} else { |
|
|
} else { |
|
|
var scanedLength =0; |
|
|
var scanedLength = 0; |
|
|
itemDetail.packList.forEach(res=>{ |
|
|
itemDetail.packList.forEach(res => { |
|
|
if(res.scaned){ |
|
|
if (res.scaned) { |
|
|
scanedLength++; |
|
|
scanedLength++; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (itemDetail.scaned&&scanedLength==itemDetail.packList.length) { |
|
|
if (itemDetail.scaned && scanedLength == itemDetail.packList.length) { |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
this.showMessage("箱码【" + packingNumber + "】已经扫描") |
|
|
} else { |
|
|
} else { |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
|