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>
<view class="page-wraper">
<view class="" >
<view class="">
<com-blank-view @goScan='goScan()'></com-blank-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>
</template>
@ -16,7 +17,7 @@
import {
calc
} from '@/common/calc.js';
import {
getBusinessType,
} from '@/common/record.js';
@ -37,7 +38,7 @@
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue'
import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue'
import winScanPackLevel from '@/mycomponents/scan/winScanPackLevel.vue'
export default {
name: 'issueRequestSubmit',
components: {
@ -56,13 +57,12 @@
detailOptions: [],
scanOptions: [],
requestList: [], //
itemCodeTypeList:[],
useOnTheWay:"FALSE"
itemCodeTypeList: [],
useOnTheWay: "FALSE"
}
},
mounted() {
},
mounted() {},
onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
@ -85,26 +85,26 @@
goScan() {
this.$refs.scanPopup.openScanPopup();
},
getScanResult(result){
getScanResult(result) {
this.detailSource = {
subList:[]
subList: []
}
var labelInfo = result.label;
var data = {
itemCode:labelInfo.itemCode,
location:labelInfo.location,
qty:labelInfo.qty,
uom:labelInfo.uom,
packUnit:labelInfo.packUnit
itemCode: labelInfo.itemCode,
location: labelInfo.location,
qty: labelInfo.qty,
uom: labelInfo.uom,
packUnit: labelInfo.packUnit
};
this.detailSource.subList.push(data)
this.detailSource.productionLineCode=labelInfo.productionLineCode;
this.detailSource.workStationCode=labelInfo.workStationCode;
this.detailSource.productionLineCode = labelInfo.productionLineCode;
this.detailSource.workStationCode = labelInfo.workStationCode;
this.detailSource.warehouseCode = labelInfo.warehouseCode;
this.detailSource.workshopCode = labelInfo.workshopCode;
this.detailSource.priority =result.priorityCode
this.detailSource.priority = result.priorityCode
this.submit();
},
@ -123,9 +123,9 @@
issueRequestSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功\n生成发料申请[" + res.data+"]")
this.showCommitSuccessMessage("提交成功\n生成发料申请[" + res.data + "]")
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
this.showCommitSuccessMessage("提交成功")
}
}).catch(error => {
uni.hideLoading()
@ -135,12 +135,12 @@
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
this.closeScanPopup();
setTimeout(end=>{
setTimeout(end => {
this.goScan();
},500)
}, 500)
})
},
closeScanPopup() {
this.$refs.scanPopup.closeScanPopup();
},
@ -164,4 +164,4 @@
</script>
<style>
</style>
</style>
Loading…
Cancel
Save