|
@ -1,11 +1,10 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page-wraper"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-blank-view @goScan='openScanPopup' 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="uni-flex uni-column" v-if="detailSource.length>0"> |
|
|
<view class="page-wraper" v-if="detailSource.length>0"> |
|
|
<view class=""> |
|
|
<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=""> |
|
@ -18,12 +17,11 @@ |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="page-footer"> |
|
|
<view class="page-footer" v-if="detailSource.length>0"> |
|
|
<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=""> |
|
|
<!-- <requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocationCode' |
|
|
|
|
|
:locationAreaTypeList="tolocationTypeList"></requiredLocation> --> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class=" uni-flex uni-row"> |
|
|
<view class=" uni-flex uni-row"> |
|
|
<button class="btn_single_reject" style="margin-right:5px ;" hover-class="btn_commit_after" |
|
|
<button class="btn_single_reject" style="margin-right:5px ;" hover-class="btn_commit_after" |
|
@ -34,6 +32,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<win-scan-package ref="scanPopup" @getResult='getScanResult'></win-scan-package> |
|
|
<win-scan-package ref="scanPopup" @getResult='getScanResult'></win-scan-package> |
|
|
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getToLocationCode' |
|
|
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getToLocationCode' |
|
|
:locationAreaTypeList="toLocationAreaTypeList"></win-scan-location> |
|
|
:locationAreaTypeList="toLocationAreaTypeList"></win-scan-location> |
|
@ -101,6 +100,7 @@ |
|
|
toLocationCode: "", |
|
|
toLocationCode: "", |
|
|
fromLocationAreaTypeList: [], |
|
|
fromLocationAreaTypeList: [], |
|
|
tolocationTypeList: [], |
|
|
tolocationTypeList: [], |
|
|
|
|
|
toLocationAreaTypeList: [], |
|
|
inInventoryStatus: "", //目标入库库存状态 |
|
|
inInventoryStatus: "", //目标入库库存状态 |
|
|
outInventoryStatus: "", //来源出库库存状态:"", |
|
|
outInventoryStatus: "", //来源出库库存状态:"", |
|
|
bussinessCode: "ProductPutaway", |
|
|
bussinessCode: "ProductPutaway", |
|
@ -110,17 +110,24 @@ |
|
|
editItem: null |
|
|
editItem: null |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
// 装配收货:type = 'assemble' |
|
|
uni.setNavigationBarTitle({ |
|
|
// 预生产收货:type = 'predict' |
|
|
title: option.title |
|
|
props: { |
|
|
}) |
|
|
putawayType: 'assemble', |
|
|
this.type = option.type |
|
|
}, |
|
|
// if (this.type == 'predict') { |
|
|
|
|
|
// updateTitle('制品上架记录') |
|
|
//返回首页 |
|
|
// } else if (this.type == 'assemble') { |
|
|
onNavigationBarButtonTap(e) { |
|
|
// updateTitle('装配上架记录') |
|
|
if (e.index === 0) { |
|
|
// } |
|
|
goHome(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
//拦截返回按钮事件 |
|
|
|
|
|
onBackPress(e) {}, |
|
|
|
|
|
|
|
|
|
|
|
onPullDownRefresh() {}, |
|
|
|
|
|
|
|
|
|
|
|
mounted() { |
|
|
getBusinessType(this.bussinessCode, res => { |
|
|
getBusinessType(this.bussinessCode, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.businessType = res.businessType; |
|
|
this.businessType = res.businessType; |
|
@ -132,20 +139,8 @@ |
|
|
this.showErrorMessage(res.message) |
|
|
this.showErrorMessage(res.message) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
//返回首页 |
|
|
|
|
|
onNavigationBarButtonTap(e) { |
|
|
|
|
|
if (e.index === 0) { |
|
|
|
|
|
goHome(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
//拦截返回按钮事件 |
|
|
|
|
|
onBackPress(e) {}, |
|
|
|
|
|
|
|
|
|
|
|
onPullDownRefresh() {}, |
|
|
|
|
|
|
|
|
|
|
|
mounted() {}, |
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
getScanResult(result) { |
|
|
getScanResult(result) { |
|
|
let label = result.label; |
|
|
let label = result.label; |
|
@ -301,7 +296,6 @@ |
|
|
// if (res.success) { |
|
|
// if (res.success) { |
|
|
// this.managementList = res.list; |
|
|
// this.managementList = res.list; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var params = this.setParams() |
|
|
var params = this.setParams() |
|
|
console.log("提交" + JSON.stringify(params)) |
|
|
console.log("提交" + JSON.stringify(params)) |
|
|
productPutawayRecordSubmit(params).then(res => { |
|
|
productPutawayRecordSubmit(params).then(res => { |
|
@ -358,9 +352,10 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setParams() { |
|
|
setParams() { |
|
|
|
|
|
let that = this; |
|
|
var subList = [] |
|
|
var subList = [] |
|
|
var creator = this.$store.state.user.id |
|
|
var creator = this.$store.state.user.id |
|
|
this.detailSource.forEach(item => { |
|
|
that.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
|
if (detail.scaned) { |
|
|
if (detail.scaned) { |
|
|
var submitItem = deepCopyData(detail) |
|
|
var submitItem = deepCopyData(detail) |
|
@ -397,12 +392,10 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
this.dataContent.subList = subList; |
|
|
that.dataContent.subList = subList; |
|
|
if (this.type) { |
|
|
that.dataContent.creator = creator; |
|
|
this.dataContent.type = this.type; |
|
|
that.dataContent.type = that.putawayType; |
|
|
} |
|
|
return that.dataContent; |
|
|
this.dataContent.creator = creator; |
|
|
|
|
|
return this.dataContent; |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -463,38 +456,5 @@ |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
page { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
background-color: #fff; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.page-wraper { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.page-main { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
position: relative; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.page-main-scroll { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
right: 0; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.page-main-list { |
|
|
|
|
|
/* height: 80rpx; |
|
|
|
|
|
line-height: 80rpx; */ |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
background: #e0e0e0; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
</style> |