|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page-wraper"> |
|
|
<view class="page-wraper"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-blank-view @goScan='showFromLocationPopup' v-if="detailSource.length==0"></com-blank-view> |
|
|
<com-blank-view @goScan='openScanPopup' 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"> |
|
@ -9,8 +9,9 @@ |
|
|
<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=""> |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" :isShowStatus="false" |
|
|
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent" |
|
|
@removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack"> |
|
|
:isShowStatus="false" @removeItem="removeItem(index,item)" @updateData="updateData" |
|
|
|
|
|
@removePack="removePack"> |
|
|
</record-com-detail-card> |
|
|
</record-com-detail-card> |
|
|
</view> |
|
|
</view> |
|
|
<view class='split_line'></view> |
|
|
<view class='split_line'></view> |
|
@ -33,9 +34,15 @@ |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<win-scan-pack-and-location :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> |
|
|
<win-scan-package ref="scanPopup" @getResult='getScanResult'></win-scan-package> |
|
|
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' |
|
|
|
|
|
:locationAreaTypeList="fromLocationAreaTypeList"></win-scan-location> |
|
|
<!-- <win-scan-pack-and-location :balanceFromInventoryStatuses="false" ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> --> |
|
|
|
|
|
<!-- <win-com-scan-balance ref="scanPopup" @getBalance='getScanResult' :bussinessCode="bussinessCode"> |
|
|
|
|
|
</win-com-scan-balance> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' |
|
|
|
|
|
:locationAreaTypeList="fromLocationAreaTypeList"></win-scan-location> --> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
@ -73,6 +80,8 @@ |
|
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
|
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
|
|
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
|
|
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
|
|
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
|
|
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
|
|
|
|
|
import winScanPackage from '@/mycomponents/scan/winScanPackage.vue' |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
updateTitle |
|
|
updateTitle |
|
|
} from '@/common/basic.js'; |
|
|
} from '@/common/basic.js'; |
|
@ -87,7 +96,8 @@ |
|
|
comBlankView, |
|
|
comBlankView, |
|
|
winScanLocation, |
|
|
winScanLocation, |
|
|
winScanPackAndLocation, |
|
|
winScanPackAndLocation, |
|
|
recordComDetailCard |
|
|
recordComDetailCard, |
|
|
|
|
|
winScanPackage |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -101,10 +111,11 @@ |
|
|
fromLocationAreaTypeList: [], |
|
|
fromLocationAreaTypeList: [], |
|
|
tolocationTypeList: [], |
|
|
tolocationTypeList: [], |
|
|
inInventoryStatus: "", //目标入库库存状态 |
|
|
inInventoryStatus: "", //目标入库库存状态 |
|
|
outInventoryStatus: "", //来源出库库存状态 |
|
|
outInventoryStatus: "", //来源出库库存状态:"", |
|
|
|
|
|
bussinessCode: "ProductPutaway", |
|
|
businessType: {}, |
|
|
businessType: {}, |
|
|
managementList: [], |
|
|
managementList: [], |
|
|
type:'' |
|
|
type: '' |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
@ -112,19 +123,18 @@ |
|
|
title: option.title |
|
|
title: option.title |
|
|
}) |
|
|
}) |
|
|
this.type = option.type |
|
|
this.type = option.type |
|
|
if(this.type=='predict'){ |
|
|
if (this.type == 'predict') { |
|
|
updateTitle('制品上架记录') |
|
|
updateTitle('制品上架记录') |
|
|
}else if(this.type=='assemble'){ |
|
|
} else if (this.type == 'assemble') { |
|
|
updateTitle('装配上架记录') |
|
|
updateTitle('装配上架记录') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var typeCode = "ProductPutaway" |
|
|
getBusinessType(this.bussinessCode, res => { |
|
|
getBusinessType(typeCode, res => { |
|
|
|
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.businessType = res.businessType; |
|
|
this.businessType = res.businessType; |
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; |
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; |
|
|
this.tolocationTypeList = res.tolocationTypeList; |
|
|
this.tolocationTypeList = res.tolocationTypeList; |
|
|
this.showFromLocationPopup(); |
|
|
this.openScanPopup(); |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage(res.message) |
|
|
this.showErrorMessage(res.message) |
|
|
} |
|
|
} |
|
@ -211,18 +221,20 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
openScanPopup() { |
|
|
openScanPopup() { |
|
|
if (this.fromLocationCode == "") { |
|
|
setTimeout(r => { |
|
|
this.showFromLocationPopup(); |
|
|
this.$refs.scanPopup.openScanPopupByBusinessType(this.businessType); |
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType); |
|
|
|
|
|
}, |
|
|
|
|
|
showFromLocationPopup() { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.scanLocationCode.openScanPopup(); |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
// setTimeout(r => { |
|
|
|
|
|
// this.$refs.scanPopup.openScanPopup(this.businessType); |
|
|
|
|
|
// this.scanPopupGetFocus(); |
|
|
|
|
|
// }) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// showFromLocationPopup() { |
|
|
|
|
|
// this.$nextTick(() => { |
|
|
|
|
|
// this.$refs.scanLocationCode.openScanPopup(); |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
// }, |
|
|
closeScanPopup() { |
|
|
closeScanPopup() { |
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
@ -346,13 +358,13 @@ |
|
|
submitItem.toLocationCode = detail.toLocationCode; |
|
|
submitItem.toLocationCode = detail.toLocationCode; |
|
|
|
|
|
|
|
|
submitItem.qty = detail.handleQty; |
|
|
submitItem.qty = detail.handleQty; |
|
|
submitItem.package =""; |
|
|
submitItem.package = ""; |
|
|
subList.push(submitItem) |
|
|
subList.push(submitItem) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
this.dataContent.subList = subList; |
|
|
this.dataContent.subList = subList; |
|
|
if(this.type){ |
|
|
if (this.type) { |
|
|
this.dataContent.type = this.type; |
|
|
this.dataContent.type = this.type; |
|
|
} |
|
|
} |
|
|
this.dataContent.creator = creator; |
|
|
this.dataContent.creator = creator; |
|
@ -406,7 +418,7 @@ |
|
|
this.clearData(); |
|
|
this.clearData(); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
clearData(){ |
|
|
clearData() { |
|
|
this.fromLocationCode = ''; |
|
|
this.fromLocationCode = ''; |
|
|
this.subList = []; |
|
|
this.subList = []; |
|
|
this.detailSource = []; |
|
|
this.detailSource = []; |
|
|