|
@ -3,21 +3,28 @@ |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view> |
|
|
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="page-wraper" v-if="detailSource.length>0"> |
|
|
<view class="page-wraper" v-if="detailSource.length>0"> |
|
|
|
|
|
<view class="cen_card" style="background-color: #fff; margin:10px 0px 0px 10px;"> |
|
|
|
|
|
<view class="cell_box uni-flex uni-row"> |
|
|
|
|
|
<view class="cell_info"> |
|
|
|
|
|
<view class="text_lightblue">库位</view> |
|
|
|
|
|
<view>{{fromLocationCode}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="cell_info"> |
|
|
|
|
|
<view class="text_lightblue">包装规格</view> |
|
|
|
|
|
<view>{{getPackUnitName(fromPack.packUnit)}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="cell_info"> |
|
|
|
|
|
<view class="text_lightblue">包装数量</view> |
|
|
|
|
|
<view>{{fromPack.packQty}}{{getUomInfo(fromPack.uom)}}</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</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"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<view class="" style="padding: 20rpx; font-size: 32rpx;"> |
|
|
|
|
|
<view> 来源库位 : {{item.subList[0].locationCode}} |
|
|
|
|
|
</view> |
|
|
|
|
|
<view> 来源包装规格 : |
|
|
|
|
|
{{fromPackUnit}}/{{item.subList[0].packQty}}{{getUomInfo(item.subList[0].uom)}} |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<record-com-detail-card :dataContent="item" :index="index" |
|
|
<record-com-detail-card :dataContent="item" :index="index" |
|
|
@removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack" |
|
|
@removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack" |
|
|
:isShowFromLocation="false" :isShowToLocation="false"> |
|
|
:isShowFromLocation="false" :isShowToLocation="false"> |
|
@ -32,15 +39,14 @@ |
|
|
<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=""> |
|
|
<view class="uni-flex uni-row title u-col-center" style="font-size: 28rpx;"> |
|
|
<view class="uni-flex uni-row"> |
|
|
<text>目标包装规格 :</text> |
|
|
<text>目标包装规格:</text> |
|
|
<view class="uni-flex u-col-center uni-row" @click="showPackage"> |
|
|
<view class="uni-flex u-col-center uni-row" @click="showPackage"> |
|
|
<view class="" style="margin-left: 5rpx;width: 100%;"> |
|
|
<view class="" style="margin-left: 5rpx;width: 100%;"> |
|
|
{{toPackUnitShow}} |
|
|
{{toPackUnitShow}} |
|
|
</view> |
|
|
</view> |
|
|
<u-select v-model="show" mode="single-column" :list="packageList" |
|
|
<u-select v-model="show" mode="single-column" :list="packageList" |
|
|
@confirm="confirmSelect"> |
|
|
@confirm="confirmSelect"> |
|
|
|
|
|
|
|
|
</u-select> |
|
|
</u-select> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -122,9 +128,10 @@ |
|
|
businessType: {}, |
|
|
businessType: {}, |
|
|
dataContent: {}, |
|
|
dataContent: {}, |
|
|
fromPackUnit: "", |
|
|
fromPackUnit: "", |
|
|
|
|
|
fromPack: {}, |
|
|
packageList: [], |
|
|
packageList: [], |
|
|
show: false, |
|
|
show: false, |
|
|
toPackUnitShow: "包装规格", |
|
|
toPackUnitShow: "请选择", |
|
|
toPackQty: "", |
|
|
toPackQty: "", |
|
|
itemCode: "" |
|
|
itemCode: "" |
|
|
}; |
|
|
}; |
|
@ -170,9 +177,11 @@ |
|
|
getPackUnitByItemCode(this.itemCode).then(res => { |
|
|
getPackUnitByItemCode(this.itemCode).then(res => { |
|
|
if (res.data != null && res.data.list.length > 0) { |
|
|
if (res.data != null && res.data.list.length > 0) { |
|
|
res.data.list.forEach(item => { |
|
|
res.data.list.forEach(item => { |
|
|
item.value = item.packQty; |
|
|
// item.value = item.packQty; |
|
|
item.label = item.packUnit + "/" + item.packQty + this |
|
|
item.value = item.packUnit; |
|
|
.getUomInfo(item.uom); |
|
|
item.label = this.getPackUnitName(item.packUnit) + "(" + item.packQty + this |
|
|
|
|
|
.getUomInfo(item.uom) + ")"; |
|
|
|
|
|
item.data = 'a'; |
|
|
}) |
|
|
}) |
|
|
this.packageList = res.data.list |
|
|
this.packageList = res.data.list |
|
|
this.show = true; |
|
|
this.show = true; |
|
@ -183,17 +192,19 @@ |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
this.showErrorMessage("未查找到包装规格" + error); |
|
|
this.showErrorMessage("未查找到包装规格" + error); |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
confirmSelect(e) { |
|
|
confirmSelect(e) { |
|
|
if (this.fromPackUnit == e[0].label) { |
|
|
if (this.fromPackUnit == e[0].label) { |
|
|
this.showErrorMessage("来源包装规格【" + this.fromPackUnit + "】与目标包装规格【" + e[0].label + "】不能相等") |
|
|
this.showErrorMessage("来源包装规格【" + this.fromPackUnit + "】与目标包装规格【" + e[0].label + "】不能相等") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
// var toPackUnit = e[0].label.split("(")[0] |
|
|
|
|
|
// this.toPackUnit = toPackUnit |
|
|
|
|
|
// this.toPackQty = e[0].value |
|
|
|
|
|
this.toPackUnit = e[0].value |
|
|
|
|
|
let pack = this.packageList.filter(r => r.packUnit == this.toPackUnit)[0]; |
|
|
|
|
|
this.toPackQty = pack.packQty; |
|
|
this.toPackUnitShow = e[0].label |
|
|
this.toPackUnitShow = e[0].label |
|
|
var toPackUnit = e[0].label.split("/")[0] |
|
|
|
|
|
this.toPackUnit =toPackUnit |
|
|
|
|
|
this.toPackQty = e[0].value |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
getScanResult(result) { |
|
@ -201,6 +212,7 @@ |
|
|
let label = result.label; |
|
|
let label = result.label; |
|
|
let pack = result.package; |
|
|
let pack = result.package; |
|
|
this.fromPackUnit = pack.packUnit; |
|
|
this.fromPackUnit = pack.packUnit; |
|
|
|
|
|
this.fromPack = pack; |
|
|
var item = this.detailSource.find(res => { |
|
|
var item = this.detailSource.find(res => { |
|
|
if (res.itemCode == balance.itemCode) { |
|
|
if (res.itemCode == balance.itemCode) { |
|
|
return res |
|
|
return res |
|
@ -308,7 +320,7 @@ |
|
|
//包装提示 |
|
|
//包装提示 |
|
|
if (tempHandleQty % toPackQty > 0) { |
|
|
if (tempHandleQty % toPackQty > 0) { |
|
|
// var count = Math.ceil(tempHandleQty / toPackQty); |
|
|
// var count = Math.ceil(tempHandleQty / toPackQty); |
|
|
this.$refs.comMessage.showQuestionMessage( "扫描数量【" + tempHandleQty + |
|
|
this.$refs.comMessage.showQuestionMessage("扫描数量【" + tempHandleQty + |
|
|
"】,将有1个非整包,是否提交?", res => { |
|
|
"】,将有1个非整包,是否提交?", res => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
this.submitJob() |
|
|
this.submitJob() |
|
|