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