Browse Source

修改扫描叫料提示

hella_online_20240904
lijuncheng 2 weeks ago
parent
commit
39c97289fd
  1. 52
      src/pages/issue/request/issueScanRequest.vue

52
src/pages/issue/request/issueScanRequest.vue

@ -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>
@ -16,7 +17,7 @@
import { import {
calc calc
} from '@/common/calc.js'; } from '@/common/calc.js';
import { import {
getBusinessType, getBusinessType,
} from '@/common/record.js'; } from '@/common/record.js';
@ -37,7 +38,7 @@
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue' import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue'
import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue' import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue'
import winScanPackLevel from '@/mycomponents/scan/winScanPackLevel.vue' import winScanPackLevel from '@/mycomponents/scan/winScanPackLevel.vue'
export default { export default {
name: 'issueRequestSubmit', name: 'issueRequestSubmit',
components: { components: {
@ -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,12 +135,12 @@
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)
}) })
}, },
closeScanPopup() { closeScanPopup() {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}, },
@ -164,4 +164,4 @@
</script> </script>
<style> <style>
</style> </style>
Loading…
Cancel
Save