| | |
| | | class="custom-input" size="medium"> |
| | | <template slot="append"> |
| | | <el-button :loading="loading" @click="handleBarcodeSubmit" type="primary" icon="el-icon-search" |
| | | :disabled="!form.locationType || !trayBarcode || !barcode || !from.warehouseType" size="medium"> |
| | | :disabled="!form.locationType || !trayBarcode || !barcode || !form.warehouseType" size="medium"> |
| | | {{ loading ? 'æ¥è¯¢ä¸...' : 'æ¥è¯¢' }} |
| | | </el-button> |
| | | </template> |
| | |
| | | trigger: 'change' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | // æ°å¢ï¼é®çäºä»¶ç嬿 è®° |
| | | keyPressListenerAdded: false, |
| | | isDialogClosing: false |
| | | } |
| | | }, |
| | | |
| | |
| | | return location ? location.locationTypeDesc : '' |
| | | } |
| | | }, |
| | | |
| | | watch: { |
| | | // çå¬showåéåå |
| | | show(newVal) { |
| | | if (newVal === true) { |
| | | console.log('å¼¹æ¡æå¼ï¼éç½®æ°æ®'); |
| | | this.isDialogClosing = false; |
| | | this.resetData(); |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.fetchUnpalletMaterialDetails(); |
| | | this.addKeyPressListener(); // æ·»å é®çäºä»¶çå¬ |
| | | }, 300); |
| | | }); |
| | | } else if (newVal === false && !this.isDialogClosing) { |
| | | console.log('å¼¹æ¡å
³éï¼ç§»é¤äºä»¶çå¬'); |
| | | this.isDialogClosing = true; |
| | | this.removeKeyPressListener(); // ç§»é¤é®çäºä»¶çå¬ |
| | | this.resetData(); |
| | | } |
| | | }, |
| | | |
| | | visible(newVal, oldVal) { |
| | | this.palletVisible = newVal; |
| | | |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | // ä¸å¨mountedæ¶æ·»å çå¬ï¼å¨å¼¹çªæå¼æ¶æ·»å |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | // ç¡®ä¿ç»ä»¶éæ¯æ¶ç§»é¤çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.clearAllTimers(); |
| | | }, |
| | | |
| | | methods: { |
| | | // æ·»å é®çäºä»¶çå¬ |
| | | addKeyPressListener() { |
| | | if (!this.keyPressListenerAdded) { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = true; |
| | | console.log('é®çäºä»¶çå¬å·²æ·»å '); |
| | | } |
| | | }, |
| | | |
| | | // ç§»é¤é®çäºä»¶çå¬ |
| | | removeKeyPressListener() { |
| | | if (this.keyPressListenerAdded) { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = false; |
| | | console.log('é®çäºä»¶çå¬å·²ç§»é¤'); |
| | | } |
| | | }, |
| | | |
| | | open() { |
| | | this.show = true; |
| | | this.orderNo = ""; |
| | |
| | | this.initLocationTypes(); |
| | | this.initwarehouseTypes(); |
| | | this.fetchUnpalletMaterialDetails(); |
| | | |
| | | // å¼¹çªæå¼æ¶æ·»å é®çäºä»¶çå¬ |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.addKeyPressListener(); |
| | | }, 100); |
| | | }); |
| | | }, |
| | | |
| | | validateLocationType(rule, value, callback) { |
| | | if (!this.form.warehouseType) { |
| | | callback(new Error('请å
éæ©ä»åº')); |
| | |
| | | })); |
| | | } |
| | | }, |
| | | |
| | | async initLocationTypes() { |
| | | try { |
| | | const { data } = await this.http.post("api/LocationInfo/GetLocationTypes") |
| | |
| | | this.$message.error('è·ååºåç±»å失败') |
| | | } |
| | | }, |
| | | |
| | | async initwarehouseTypes() { |
| | | try { |
| | | const { data } = await this.http.post("api/Warehouse/GetwarehouseTypes") |
| | |
| | | this.error = ''; |
| | | resolve(true); |
| | | } else { |
| | | if (!this.from.warehouseType) { |
| | | // ä¿®å¤æ¼åé误ï¼this.from.warehouseType åºè¯¥æ¯ this.form.warehouseType |
| | | if (!this.form.warehouseType) { |
| | | this.error = '请å
éæ©ä»åº'; |
| | | } |
| | | else if (this.form.locationType === null || this.form.locationType === undefined || this.form.locationType === '') { |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // èç¦å°æçè¾å
¥æ¡ |
| | | focusTrayInput() { |
| | | if (this.$refs.trayInput && this.$refs.trayInput.$el) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // éç½®æææ°æ® |
| | | resetData() { |
| | | // å
ç§»é¤é®çäºä»¶çå¬ |
| | | this.removeKeyPressListener(); |
| | | |
| | | this.trayBarcode = ''; |
| | | this.barcode = ''; |
| | | this.materials = []; |
| | |
| | | } |
| | | this.warehouseTypes = []; |
| | | this.locationTypes = []; |
| | | this.isDialogClosing = false; |
| | | this.keyPressListenerAdded = false; |
| | | |
| | | // æ¸
é¤è¡¨åéªè¯ç¶æ |
| | | this.$nextTick(() => { |
| | | if (this.$refs.locationForm) { |
| | |
| | | this.scanTimer = null; |
| | | } |
| | | }, |
| | | |
| | | handleDialogClose() { |
| | | // å
ç§»é¤é®çäºä»¶çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.show = false; |
| | | this.resetData(); |
| | | }, |
| | |
| | | this.$emit('back-success', result); |
| | | this.palletVisible = false; |
| | | }, |
| | | |
| | | // å¤çæçè¾å
¥ |
| | | handleTrayInput() { |
| | | // æ 记为æå¨è¾å
¥æ¨¡å¼ |
| | |
| | | |
| | | // å¤çæ«ç æªè¾å
¥ |
| | | handleKeyPress(event) { |
| | | // æ£æ¥å¼¹çªæ¯å¦æ¾ç¤º |
| | | if (!this.show || this.isDialogClosing) { |
| | | return; |
| | | } |
| | | |
| | | // å¦ææ¯æå¨è¾å
¥æ¨¡å¼ï¼ä¸å¤çæ«ç æªé»è¾ |
| | | if (this.isManualInput) { |
| | | return; |
| | |
| | | const seconds = String(date.getSeconds()).padStart(2, '0'); |
| | | |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
| | | }, |
| | | |
| | | // ä»åºåæ¢äºä»¶ |
| | | handleWarehouseChange() { |
| | | this.form.locationType = null; |
| | | this.trayBarcode = ''; |
| | | this.barcode = ''; |
| | | this.materials = []; |
| | | this.error = ''; |
| | | }, |
| | | |
| | | // åºå忢äºä»¶ |
| | | handleLocationChange() { |
| | | this.trayBarcode = ''; |
| | | this.barcode = ''; |
| | | this.materials = []; |
| | | this.error = ''; |
| | | } |
| | | } |
| | | } |
| | |
| | | import http from '@/api/http.js'; |
| | | import VolBox from '@/components/basic/VolBox.vue'; |
| | | |
| | | // 鲿彿°ä¿æä¸å |
| | | // 鲿彿° |
| | | function debounce(func, wait) { |
| | | let timeout; |
| | | return function () { |
| | |
| | | trigger: 'change' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | // æ°å¢ï¼é®çäºä»¶ç嬿 è®° |
| | | keyPressListenerAdded: false, |
| | | isDialogClosing: false |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | watch: { |
| | | // çå¬showåéåå |
| | | show(newVal) { |
| | | if (newVal === true) { |
| | | console.log('å¼¹æ¡æå¼ï¼éç½®æ°æ®'); |
| | | this.isDialogClosing = false; |
| | | this.resetData(); |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.fetchUnpalletMaterialDetails(); |
| | | this.addKeyPressListener(); // æ·»å é®çäºä»¶çå¬ |
| | | }, 300); |
| | | }); |
| | | } else if (newVal === false && !this.isDialogClosing) { |
| | | console.log('å¼¹æ¡å
³éï¼ç§»é¤äºä»¶çå¬'); |
| | | this.isDialogClosing = true; |
| | | this.removeKeyPressListener(); // ç§»é¤é®çäºä»¶çå¬ |
| | | this.resetData(); |
| | | } |
| | | }, |
| | | |
| | | visible(newVal, oldVal) { |
| | | this.palletVisible = newVal; |
| | | |
| | |
| | | }, |
| | | |
| | | mounted() { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | // ä¸å¨mountedæ¶æ·»å çå¬ï¼å¨å¼¹çªæå¼æ¶æ·»å |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | // ç¡®ä¿ç»ä»¶éæ¯æ¶ç§»é¤çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.clearAllTimers(); |
| | | }, |
| | | |
| | | methods: { |
| | | // æ·»å é®çäºä»¶çå¬ |
| | | addKeyPressListener() { |
| | | if (!this.keyPressListenerAdded) { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = true; |
| | | console.log('é®çäºä»¶çå¬å·²æ·»å '); |
| | | } |
| | | }, |
| | | |
| | | // ç§»é¤é®çäºä»¶çå¬ |
| | | removeKeyPressListener() { |
| | | if (this.keyPressListenerAdded) { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = false; |
| | | console.log('é®çäºä»¶çå¬å·²ç§»é¤'); |
| | | } |
| | | }, |
| | | |
| | | open() { |
| | | this.show = true; |
| | | this.orderNo = ""; |
| | |
| | | this.initLocationTypes(); |
| | | this.initwarehouseTypes(); |
| | | this.fetchUnpalletMaterialDetails(); |
| | | |
| | | // å¼¹çªæå¼æ¶æ·»å é®çäºä»¶çå¬ |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.addKeyPressListener(); |
| | | }, 100); |
| | | }); |
| | | }, |
| | | |
| | | validateLocationType(rule, value, callback) { |
| | |
| | | }, |
| | | |
| | | resetData() { |
| | | // å
ç§»é¤é®çäºä»¶çå¬ |
| | | this.removeKeyPressListener(); |
| | | |
| | | this.palletGroupedBarcodes = {}; |
| | | this.isSubmitting = false; |
| | | this.trayBarcode = ''; |
| | |
| | | }; |
| | | this.warehouseTypes = []; |
| | | this.locationTypes = []; |
| | | this.isDialogClosing = false; |
| | | this.keyPressListenerAdded = false; |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.$refs.locationForm) { |
| | |
| | | }, |
| | | |
| | | handleDialogClose() { |
| | | // å
ç§»é¤é®çäºä»¶çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.show = false; |
| | | this.resetData(); |
| | | }, |
| | |
| | | }); |
| | | }, |
| | | |
| | | // APIè¯·æ± |
| | | // APIè¯·æ± - 注æè¿éä¿®æ¹äºAPIå°å为/AllGroupPallet |
| | | fetchMaterialData(barcode) { |
| | | return http.post('/api/Inbound/AllGroupPallet', { |
| | | palletCode: this.trayBarcode, |
| | |
| | | |
| | | // å¤çæ«ç æªè¾å
¥ |
| | | handleKeyPress(event) { |
| | | // æ£æ¥å¼¹çªæ¯å¦æ¾ç¤º |
| | | if (!this.show || this.isDialogClosing) { |
| | | return; |
| | | } |
| | | |
| | | if (this.isManualInput || this.isSubmitting) { |
| | | return; |
| | | } |
| | |
| | | import http from '@/api/http.js'; |
| | | import VolBox from '@/components/basic/VolBox.vue'; |
| | | |
| | | // 鲿彿°ä¿æä¸å |
| | | // 鲿彿° |
| | | function debounce(func, wait) { |
| | | let timeout; |
| | | return function () { |
| | |
| | | trigger: 'change' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | // æ°å¢ï¼é®çäºä»¶ç嬿 è®° |
| | | keyPressListenerAdded: false, |
| | | isDialogClosing: false |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | watch: { |
| | | // çå¬showåéåå |
| | | show(newVal) { |
| | | if (newVal === true) { |
| | | console.log('å¼¹æ¡æå¼ï¼éç½®æ°æ®'); |
| | | this.isDialogClosing = false; |
| | | this.resetData(); |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.fetchUnpalletMaterialDetails(); |
| | | this.addKeyPressListener(); // æ·»å é®çäºä»¶çå¬ |
| | | }, 300); |
| | | }); |
| | | } else if (newVal === false && !this.isDialogClosing) { |
| | | console.log('å¼¹æ¡å
³éï¼ç§»é¤äºä»¶çå¬'); |
| | | this.isDialogClosing = true; |
| | | this.removeKeyPressListener(); // ç§»é¤é®çäºä»¶çå¬ |
| | | this.resetData(); |
| | | } |
| | | }, |
| | | |
| | | visible(newVal, oldVal) { |
| | | this.palletVisible = newVal; |
| | | |
| | |
| | | }, |
| | | |
| | | mounted() { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | // ä¸å¨mountedæ¶æ·»å çå¬ï¼å¨å¼¹çªæå¼æ¶æ·»å |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | // ç¡®ä¿ç»ä»¶éæ¯æ¶ç§»é¤çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.clearAllTimers(); |
| | | }, |
| | | |
| | | methods: { |
| | | // æ·»å é®çäºä»¶çå¬ |
| | | addKeyPressListener() { |
| | | if (!this.keyPressListenerAdded) { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = true; |
| | | console.log('é®çäºä»¶çå¬å·²æ·»å '); |
| | | } |
| | | }, |
| | | |
| | | // ç§»é¤é®çäºä»¶çå¬ |
| | | removeKeyPressListener() { |
| | | if (this.keyPressListenerAdded) { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = false; |
| | | console.log('é®çäºä»¶çå¬å·²ç§»é¤'); |
| | | } |
| | | }, |
| | | |
| | | open() { |
| | | this.show = true; |
| | | this.orderNo = ""; |
| | |
| | | this.initLocationTypes(); |
| | | this.initwarehouseTypes(); |
| | | this.fetchUnpalletMaterialDetails(); |
| | | |
| | | // å¼¹çªæå¼æ¶æ·»å é®çäºä»¶çå¬ |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.addKeyPressListener(); |
| | | }, 100); |
| | | }); |
| | | }, |
| | | |
| | | validateLocationType(rule, value, callback) { |
| | |
| | | }, |
| | | |
| | | handleDialogClose() { |
| | | // å
ç§»é¤é®çäºä»¶çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.show = false; |
| | | this.resetData(); |
| | | }, |
| | |
| | | |
| | | // å¤çæ«ç æªè¾å
¥ |
| | | handleKeyPress(event) { |
| | | // æ£æ¥å¼¹çªæ¯å¦æ¾ç¤º |
| | | if (!this.show || this.isDialogClosing) { |
| | | return; |
| | | } |
| | | |
| | | if (this.isManualInput || this.isSubmitting) { |
| | | return; |
| | | } |
| | |
| | | class="custom-input" size="medium"> |
| | | <template slot="append"> |
| | | <el-button :loading="loading" @click="handleBarcodeSubmit" type="primary" icon="el-icon-search" |
| | | :disabled="!form.locationType || !trayBarcode || !barcode || !from.warehouseType" size="medium"> |
| | | :disabled="!form.locationType || !trayBarcode || !barcode || !form.warehouseType" size="medium"> |
| | | {{ loading ? 'æ¥è¯¢ä¸...' : 'æ¥è¯¢' }} |
| | | </el-button> |
| | | </template> |
| | |
| | | trigger: 'change' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | // æ°å¢ï¼é®çäºä»¶ç嬿 è®° |
| | | keyPressListenerAdded: false, |
| | | isDialogClosing: false |
| | | } |
| | | }, |
| | | |
| | |
| | | return location ? location.locationTypeDesc : '' |
| | | } |
| | | }, |
| | | |
| | | watch: { |
| | | // çå¬showåéåå |
| | | show(newVal) { |
| | | if (newVal === true) { |
| | | console.log('å¼¹æ¡æå¼ï¼éç½®æ°æ®'); |
| | | this.isDialogClosing = false; |
| | | this.resetData(); |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.fetchUnpalletMaterialDetails(); |
| | | this.addKeyPressListener(); // æ·»å é®çäºä»¶çå¬ |
| | | }, 300); |
| | | }); |
| | | } else if (newVal === false && !this.isDialogClosing) { |
| | | console.log('å¼¹æ¡å
³éï¼ç§»é¤äºä»¶çå¬'); |
| | | this.isDialogClosing = true; |
| | | this.removeKeyPressListener(); // ç§»é¤é®çäºä»¶çå¬ |
| | | this.resetData(); |
| | | } |
| | | }, |
| | | |
| | | visible(newVal, oldVal) { |
| | | this.palletVisible = newVal; |
| | | |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | // ä¸å¨mountedæ¶æ·»å çå¬ï¼å¨å¼¹çªæå¼æ¶æ·»å |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | // ç¡®ä¿ç»ä»¶éæ¯æ¶ç§»é¤çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.clearAllTimers(); |
| | | }, |
| | | |
| | | methods: { |
| | | // æ·»å é®çäºä»¶çå¬ |
| | | addKeyPressListener() { |
| | | if (!this.keyPressListenerAdded) { |
| | | document.addEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = true; |
| | | console.log('é®çäºä»¶çå¬å·²æ·»å '); |
| | | } |
| | | }, |
| | | |
| | | // ç§»é¤é®çäºä»¶çå¬ |
| | | removeKeyPressListener() { |
| | | if (this.keyPressListenerAdded) { |
| | | document.removeEventListener('keypress', this.handleKeyPress); |
| | | this.keyPressListenerAdded = false; |
| | | console.log('é®çäºä»¶çå¬å·²ç§»é¤'); |
| | | } |
| | | }, |
| | | |
| | | open() { |
| | | this.show = true; |
| | | this.orderNo = ""; |
| | |
| | | this.initLocationTypes(); |
| | | this.initwarehouseTypes(); |
| | | this.fetchUnpalletMaterialDetails(); |
| | | |
| | | // å¼¹çªæå¼æ¶æ·»å é®çäºä»¶çå¬ |
| | | this.$nextTick(() => { |
| | | setTimeout(() => { |
| | | this.addKeyPressListener(); |
| | | }, 100); |
| | | }); |
| | | }, |
| | | |
| | | validateLocationType(rule, value, callback) { |
| | | if (!this.form.warehouseType) { |
| | | callback(new Error('请å
éæ©ä»åº')); |
| | |
| | | })); |
| | | } |
| | | }, |
| | | |
| | | async initLocationTypes() { |
| | | try { |
| | | const { data } = await this.http.post("api/LocationInfo/GetLocationTypes") |
| | |
| | | this.$message.error('è·ååºåç±»å失败') |
| | | } |
| | | }, |
| | | |
| | | async initwarehouseTypes() { |
| | | try { |
| | | const { data } = await this.http.post("api/Warehouse/GetwarehouseTypes") |
| | |
| | | this.error = ''; |
| | | resolve(true); |
| | | } else { |
| | | if (!this.from.warehouseType) { |
| | | // ä¿®å¤æ¼åé误ï¼this.from.warehouseType åºè¯¥æ¯ this.form.warehouseType |
| | | if (!this.form.warehouseType) { |
| | | this.error = '请å
éæ©ä»åº'; |
| | | } |
| | | else if (this.form.locationType === null || this.form.locationType === undefined || this.form.locationType === '') { |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // èç¦å°æçè¾å
¥æ¡ |
| | | focusTrayInput() { |
| | | if (this.$refs.trayInput && this.$refs.trayInput.$el) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // éç½®æææ°æ® |
| | | resetData() { |
| | | // å
ç§»é¤é®çäºä»¶çå¬ |
| | | this.removeKeyPressListener(); |
| | | |
| | | this.trayBarcode = ''; |
| | | this.barcode = ''; |
| | | this.materials = []; |
| | |
| | | } |
| | | this.warehouseTypes = []; |
| | | this.locationTypes = []; |
| | | this.isDialogClosing = false; |
| | | this.keyPressListenerAdded = false; |
| | | |
| | | // æ¸
é¤è¡¨åéªè¯ç¶æ |
| | | this.$nextTick(() => { |
| | | if (this.$refs.locationForm) { |
| | |
| | | this.scanTimer = null; |
| | | } |
| | | }, |
| | | |
| | | handleDialogClose() { |
| | | // å
ç§»é¤é®çäºä»¶çå¬ |
| | | this.removeKeyPressListener(); |
| | | this.show = false; |
| | | this.resetData(); |
| | | }, |
| | |
| | | this.$emit('back-success', result); |
| | | this.palletVisible = false; |
| | | }, |
| | | |
| | | // å¤çæçè¾å
¥ |
| | | handleTrayInput() { |
| | | // æ 记为æå¨è¾å
¥æ¨¡å¼ |
| | |
| | | |
| | | // å¤çæ«ç æªè¾å
¥ |
| | | handleKeyPress(event) { |
| | | // æ£æ¥å¼¹çªæ¯å¦æ¾ç¤º |
| | | if (!this.show || this.isDialogClosing) { |
| | | return; |
| | | } |
| | | |
| | | // å¦ææ¯æå¨è¾å
¥æ¨¡å¼ï¼ä¸å¤çæ«ç æªé»è¾ |
| | | if (this.isManualInput) { |
| | | return; |
| | |
| | | const seconds = String(date.getSeconds()).padStart(2, '0'); |
| | | |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
| | | }, |
| | | |
| | | // ä»åºåæ¢äºä»¶ |
| | | handleWarehouseChange() { |
| | | this.form.locationType = null; |
| | | this.trayBarcode = ''; |
| | | this.barcode = ''; |
| | | this.materials = []; |
| | | this.error = ''; |
| | | }, |
| | | |
| | | // åºå忢äºä»¶ |
| | | handleLocationChange() { |
| | | this.trayBarcode = ''; |
| | | this.barcode = ''; |
| | | this.materials = []; |
| | | this.error = ''; |
| | | } |
| | | } |
| | | } |
| | |
| | | this.calculateUnpickedStats(); // éç½®ç»è®¡æ°æ® |
| | | |
| | | // å好æç¤º + 交äºä¼å |
| | | this.$message.warning({ |
| | | message: `æçã${this.scanForm.palletCode}ãææ æ£éè®°å½`, |
| | | this.$message.success({ |
| | | message: `æçã${this.scanForm.palletCode}ãå·²æ£éå®æï¼ææ æ£éè®°å½`, |
| | | duration: 3000, // æç¤ºæ¾ç¤º3ç§ |
| | | showClose: true // å
许æå¨å
³é |
| | | }); |