| | |
| | | <!-- æ«ç æä½åºå --> |
| | | <el-card class="scan-section-card" shadow="never"> |
| | | <div class="scan-section"> |
| | | <el-alert title="请å
æ«ææçç ï¼åæ«æç©ææ¡ç è¿è¡æ£é" type="info" :closable="false" show-icon class="scan-alert"> |
| | | <el-alert title="æ«ææçç å¯è¿è¡ååºï¼æ«æç©ææ¡ç è¿è¡æ£é" type="info" :closable="false" show-icon class="scan-alert"> |
| | | <template #default> |
| | | <div> |
| | | <div>1. æ«ææçç â 2. æ«æç©ææ¡ç èªå¨æ£é</div> |
| | | <div style="margin-top: 8px; font-size: 13px; color: #666;"> |
| | | <i class="el-icon-info" style="color: #409EFF;"></i> |
| | | æ«ææ¡ç åä¼èªå¨è¯·æ±æ£éæ¥å£ï¼æ éæå¨ç¹å»ç¡®è®¤ |
| | |
| | | globalLoading: false, |
| | | loadingInstance: null, |
| | | pickLoading: false, |
| | | returnLoading: false |
| | | returnLoading: false, |
| | | // æçç æ£åè¡¨è¾¾å¼ |
| | | palletCodeRegex: /^[A-Z]\d{9}$/ |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | |
| | | async handlePalletScan() { |
| | | if (this.scanForm.palletCode) { |
| | | this.scanForm.materialBarcode = '' |
| | | } else { |
| | | if (!this.scanForm.palletCode) { |
| | | this.$message.warning('请è¾å
¥æçç ') |
| | | return |
| | | } |
| | | |
| | | // éªè¯æçç æ ¼å¼ |
| | | if (!this.palletCodeRegex.test(this.scanForm.palletCode)) { |
| | | this.$message.error('æçç æ ¼å¼éè¯¯ï¼æ£ç¡®æ ¼å¼åºä¸ºï¼å¤§å忝å¼å¤´ + 9使°åï¼å¦A123456789ï¼') |
| | | // éªè¯å¤±è´¥ï¼æ¸
空æçç è¾å
¥æ¡å¹¶ä¿æèç¦ï¼æ¹ä¾¿è¿ç»æ«æ |
| | | this.scanForm.palletCode = '' |
| | | this.$nextTick(() => { |
| | | this.$refs.palletInput.focus() |
| | | }) |
| | | return |
| | | } |
| | | |
| | | // éªè¯éè¿ï¼æ¸
ç©ºç©ææ¡ç å¹¶èç¦å°ç©ææ¡ç è¾å
¥æ¡ |
| | | this.scanForm.materialBarcode = '' |
| | | this.$nextTick(() => { |
| | | if (this.$refs.materialInput) { |
| | | this.$refs.materialInput.focus() |
| | | } |
| | | }) |
| | | this.$message.success('æçç éªè¯éè¿ï¼è¯·æ«æç©ææ¡ç ') |
| | | }, |
| | | |
| | | async handleMaterialScan() { |
| | |
| | | return |
| | | } |
| | | |
| | | // é¢å¤éªè¯ï¼ååºæä½åä¹éªè¯æçç æ ¼å¼ |
| | | if (!this.palletCodeRegex.test(this.scanForm.palletCode)) { |
| | | this.$message.error('æçç æ ¼å¼éè¯¯ï¼æ£ç¡®æ ¼å¼åºä¸ºï¼å¤§å忝å¼å¤´ + 9使°åï¼å¦A123456789ï¼') |
| | | this.scanForm.palletCode = '' |
| | | this.$nextTick(() => { |
| | | this.$refs.palletInput.focus() |
| | | }) |
| | | return |
| | | } |
| | | |
| | | this.confirmMessage = `ç¡®å®è¦å°æç ${this.scanForm.palletCode} ååºåï¼` |
| | | this.currentAction = 'returnToWarehouse' |
| | | this.confirmDialogVisible = true |