|
@ -1,10 +1,11 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page-wraper"> |
|
|
<view class="page-wraper"> |
|
|
<view class="" > |
|
|
<view class=""> |
|
|
<com-blank-view @goScan='goScan()'></com-blank-view> |
|
|
<com-blank-view @goScan='goScan()'></com-blank-view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<winScanPackLevel ref="scanPopup" @getResult='getScanResult' headerType="HCMQ" title="叫料标签" :isShowHistory="false"></winScanPackLevel> |
|
|
<winScanPackLevel ref="scanPopup" @getResult='getScanResult' headerType="HCMQ" title="叫料标签" :isShowHistory="false"> |
|
|
|
|
|
</winScanPackLevel> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -56,13 +57,12 @@ |
|
|
detailOptions: [], |
|
|
detailOptions: [], |
|
|
scanOptions: [], |
|
|
scanOptions: [], |
|
|
requestList: [], //需求信息 |
|
|
requestList: [], //需求信息 |
|
|
itemCodeTypeList:[], |
|
|
itemCodeTypeList: [], |
|
|
useOnTheWay:"FALSE" |
|
|
useOnTheWay: "FALSE" |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() {}, |
|
|
}, |
|
|
|
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title: option.title |
|
|
title: option.title |
|
@ -85,26 +85,26 @@ |
|
|
goScan() { |
|
|
goScan() { |
|
|
this.$refs.scanPopup.openScanPopup(); |
|
|
this.$refs.scanPopup.openScanPopup(); |
|
|
}, |
|
|
}, |
|
|
getScanResult(result){ |
|
|
getScanResult(result) { |
|
|
this.detailSource = { |
|
|
this.detailSource = { |
|
|
subList:[] |
|
|
subList: [] |
|
|
} |
|
|
} |
|
|
var labelInfo = result.label; |
|
|
var labelInfo = result.label; |
|
|
|
|
|
|
|
|
var data = { |
|
|
var data = { |
|
|
itemCode:labelInfo.itemCode, |
|
|
itemCode: labelInfo.itemCode, |
|
|
location:labelInfo.location, |
|
|
location: labelInfo.location, |
|
|
qty:labelInfo.qty, |
|
|
qty: labelInfo.qty, |
|
|
uom:labelInfo.uom, |
|
|
uom: labelInfo.uom, |
|
|
packUnit:labelInfo.packUnit |
|
|
packUnit: labelInfo.packUnit |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
this.detailSource.subList.push(data) |
|
|
this.detailSource.subList.push(data) |
|
|
this.detailSource.productionLineCode=labelInfo.productionLineCode; |
|
|
this.detailSource.productionLineCode = labelInfo.productionLineCode; |
|
|
this.detailSource.workStationCode=labelInfo.workStationCode; |
|
|
this.detailSource.workStationCode = labelInfo.workStationCode; |
|
|
this.detailSource.warehouseCode = labelInfo.warehouseCode; |
|
|
this.detailSource.warehouseCode = labelInfo.warehouseCode; |
|
|
this.detailSource.workshopCode = labelInfo.workshopCode; |
|
|
this.detailSource.workshopCode = labelInfo.workshopCode; |
|
|
this.detailSource.priority =result.priorityCode |
|
|
this.detailSource.priority = result.priorityCode |
|
|
this.submit(); |
|
|
this.submit(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -123,9 +123,9 @@ |
|
|
issueRequestSubmit(params).then(res => { |
|
|
issueRequestSubmit(params).then(res => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
this.showCommitSuccessMessage("提交成功\n生成发料申请[" + res.data+"]") |
|
|
this.showCommitSuccessMessage("提交成功\n生成发料申请[" + res.data + "]") |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
this.showCommitSuccessMessage("提交成功") |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
@ -135,9 +135,9 @@ |
|
|
showCommitSuccessMessage(hint) { |
|
|
showCommitSuccessMessage(hint) { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
this.closeScanPopup(); |
|
|
this.closeScanPopup(); |
|
|
setTimeout(end=>{ |
|
|
setTimeout(end => { |
|
|
this.goScan(); |
|
|
this.goScan(); |
|
|
},500) |
|
|
}, 500) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|