|
@ -18,6 +18,14 @@ |
|
|
<uni-td align="center">箱码</uni-td> |
|
|
<uni-td align="center">箱码</uni-td> |
|
|
<uni-td>{{item.packingCode}}</uni-td> |
|
|
<uni-td>{{item.packingCode}}</uni-td> |
|
|
</uni-tr> |
|
|
</uni-tr> |
|
|
|
|
|
<uni-tr> |
|
|
|
|
|
<uni-td align="center">批次</uni-td> |
|
|
|
|
|
<uni-td>{{item.lot}}</uni-td> |
|
|
|
|
|
</uni-tr> |
|
|
|
|
|
<uni-tr> |
|
|
|
|
|
<uni-td align="center">库位</uni-td> |
|
|
|
|
|
<uni-td>{{item.recommendLocationCode}}</uni-td> |
|
|
|
|
|
</uni-tr> |
|
|
<uni-tr> |
|
|
<uni-tr> |
|
|
<uni-td align="center">单位</uni-td> |
|
|
<uni-td align="center">单位</uni-td> |
|
|
<uni-td>{{item.uom}}</uni-td> |
|
|
<uni-td>{{item.uom}}</uni-td> |
|
@ -133,8 +141,7 @@ |
|
|
props: { |
|
|
props: { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() {}, |
|
|
}, |
|
|
|
|
|
onPullDownRefresh() { |
|
|
onPullDownRefresh() { |
|
|
uni.stopPullDownRefresh() |
|
|
uni.stopPullDownRefresh() |
|
|
}, |
|
|
}, |
|
@ -165,7 +172,7 @@ |
|
|
if (res) { |
|
|
if (res) { |
|
|
this.allDataList.splice(index, 1); |
|
|
this.allDataList.splice(index, 1); |
|
|
this.allCount = this.allDataList.length; |
|
|
this.allCount = this.allDataList.length; |
|
|
var title =this.allCount>0?"客户退货"+"("+this.allCount+")":"客户退货" |
|
|
var title = this.allCount > 0 ? "客户退货箱码" + "(" + this.allCount + ")" : "客户退货箱码" |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title: title |
|
|
title: title |
|
|
}) |
|
|
}) |
|
@ -186,23 +193,41 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
locations(resultData.recommendLocationCode).then(res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
//不用隔离、在途、待检 |
|
|
|
|
|
if (res.type == 1 || res.type == 6 || res.type == 13) { |
|
|
|
|
|
that.showMessage("来源库位不可以是待检、隔离、在途库位类型"); |
|
|
|
|
|
} else { |
|
|
var item = { |
|
|
var item = { |
|
|
packingCode: resultData.code, |
|
|
packingCode: resultData.code, |
|
|
itemCode: resultData.itemCode, |
|
|
itemCode: resultData.itemCode, |
|
|
itemName: resultData.itemName, |
|
|
itemName: resultData.itemName, |
|
|
itemDesc1: resultData.itemDesc1, |
|
|
itemDesc1: resultData.itemDesc1, |
|
|
stdPackQty: resultData.stdPackQty, |
|
|
stdPackQty: resultData.stdPackQty, |
|
|
|
|
|
lot:resultData.lot, |
|
|
|
|
|
recommendLocationCode:resultData.recommendLocationCode, |
|
|
uom: resultData.uom, |
|
|
uom: resultData.uom, |
|
|
qty: resultData.stdPackQty |
|
|
qty: resultData.qty |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
this.allDataList.unshift(item) |
|
|
this.allDataList.unshift(item) |
|
|
this.allCount = this.allDataList.length; |
|
|
this.allCount = this.allDataList.length; |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title: "客户退货"+"("+this.allCount+")" |
|
|
title: "客户退货箱码" + "(" + this.allCount + ")" |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
this.$forceUpdate(); |
|
|
this.$forceUpdate(); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showMessage('来源库位【' + resultData.recommendLocationCode + '】不存在'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
this.showMessage(err.message); |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -215,16 +240,27 @@ |
|
|
locations(locationCode).then(res => { |
|
|
locations(locationCode).then(res => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
if (res) { |
|
|
if (res) { |
|
|
|
|
|
if (res.type == 2) { |
|
|
this.toLocationInfo = res; |
|
|
this.toLocationInfo = res; |
|
|
this.toLocationCode = res.code |
|
|
this.toLocationCode = res.code |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.toLocationInfo = {} |
|
|
|
|
|
this.toLocationCode = "" |
|
|
|
|
|
this.$refs.comCollapseLocation.clearLocation(); |
|
|
|
|
|
this.showMessage('目标库位必须是原料库位类型'); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.toLocationInfo = {} |
|
|
|
|
|
this.toLocationCode = "" |
|
|
this.showMessage('目标库位【' + locationCode + '】不存在'); |
|
|
this.showMessage('目标库位【' + locationCode + '】不存在'); |
|
|
|
|
|
this.$refs.comCollapseLocation.clearLocation(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
this.toLocationInfo = {} |
|
|
this.toLocationInfo = {} |
|
|
this.toLocationCode = "" |
|
|
this.toLocationCode = "" |
|
|
|
|
|
this.$refs.comCollapseLocation.clearLocation(); |
|
|
this.showMessage(err.message); |
|
|
this.showMessage(err.message); |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
@ -267,7 +303,6 @@ |
|
|
.catch(err => { |
|
|
.catch(err => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
this.showMessage(err.message); |
|
|
this.showMessage(err.message); |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -301,7 +336,10 @@ |
|
|
toLocationGroup: this.toLocationInfo.locationGroupCode, |
|
|
toLocationGroup: this.toLocationInfo.locationGroupCode, |
|
|
toLocationErpCode: this.toLocationInfo.erpLocationCode, |
|
|
toLocationErpCode: this.toLocationInfo.erpLocationCode, |
|
|
recommendPackingCode: res.packingCode, |
|
|
recommendPackingCode: res.packingCode, |
|
|
handledPackingCode :res.packingCode |
|
|
recommendLot: res.lot, |
|
|
|
|
|
handledPackingCode: res.packingCode, |
|
|
|
|
|
handledLot: res.lot, |
|
|
|
|
|
handledQty:res.qty |
|
|
} |
|
|
} |
|
|
item.details.push(detail) |
|
|
item.details.push(detail) |
|
|
}) |
|
|
}) |
|
@ -410,7 +448,7 @@ |
|
|
this.allCount = 0; |
|
|
this.allCount = 0; |
|
|
this.loadingType = "" |
|
|
this.loadingType = "" |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title: "客户退货" |
|
|
title: "客户退货箱码" |
|
|
}) |
|
|
}) |
|
|
this.$refs.comCollapseLocation.clearLocation(); |
|
|
this.$refs.comCollapseLocation.clearLocation(); |
|
|
}, |
|
|
}, |
|
|