From 39c97289fd8ed3cac58c84c6edc775f28ea5ad1a Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 4 Sep 2024 14:30:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=AB=E6=8F=8F=E5=8F=AB?= =?UTF-8?q?=E6=96=99=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/request/issueScanRequest.vue | 52 ++++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue index da4b36e1..04463e6f 100644 --- a/src/pages/issue/request/issueScanRequest.vue +++ b/src/pages/issue/request/issueScanRequest.vue @@ -1,10 +1,11 @@ @@ -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 @@ + \ No newline at end of file