| | |
| | | <template> |
| | | <div class="picking-container"> |
| | | <div class="picking-container" v-loading="globalLoading" element-loading-text="å¤çä¸..." |
| | | element-loading-background="rgba(255, 255, 255, 0.8)" element-loading-spinner="el-icon-loading" |
| | | element-loading-custom-class="custom-loading"> |
| | | <!-- é¡¶é¨è®¢åä¿¡æ¯ --> |
| | | <el-card class="order-info-card" shadow="never"> |
| | | <div class="order-header"> |
| | |
| | | <span class="order-label">订åå·ï¼</span> |
| | | <span class="order-value">{{ orderNo }}</span> |
| | | </div> |
| | | <div class="order-status" v-if="orderInfo"> |
| | | <el-tag :type="getStatusType(orderInfo.status)" size="medium"> |
| | | <div class="order-status"> |
| | | <el-tag v-if="orderInfo" :type="getStatusType(orderInfo.orderStatus)" size="medium" |
| | | style="margin-left: 10px;"> |
| | | {{ orderInfo.statusName || 'è¿è¡ä¸' }} |
| | | </el-tag> |
| | | </div> |
| | |
| | | <!-- æ«ç æä½åºå --> |
| | | <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> |
| | | <span>1. 请å
æ«ææçç â 2. åæ«æç©ææ¡ç </span> |
| | | <div> |
| | | <div>1. è¾å
¥/æ«ææçç â 2. å车触åç³»ç»è·å订åå·å¹¶å è½½æ°æ®</div> |
| | | <div style="margin-top: 8px; font-size: 13px; color: #666;"> |
| | | <i class="el-icon-info" style="color: #409EFF;"></i> |
| | | æ¯ææ«æçç æ´ç®±åºåºï¼æ«ææçç åå¯ç´æ¥è¿è¡æ´ç®±ç©ææ£éï¼æ éåæ«æç©ææ ç¾ç ã |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </el-alert> |
| | | |
| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="æçç " prop="palletCode"> |
| | | <el-input ref="palletInput" v-model="scanForm.palletCode" placeholder="è¯·æ«ææçç " |
| | | size="large" clearable @keyup.enter="handlePalletScan"> |
| | | <!-- ãæ ¸å¿è°æ´ãä»
ä¿çå车触åï¼æ ä»»ä½é¢å¤äºä»¶ï¼æ¢å¤åææ ·å¼ --> |
| | | <el-input ref="palletInput" v-model="scanForm.palletCode" placeholder="è¯·æ«æ/è¾å
¥æçç " size="large" |
| | | clearable @keyup.enter="handlePalletScan"> |
| | | <template #prefix> |
| | | <i class="el-icon-box"></i> |
| | | </template> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | |
| | | <!-- 忣ç»è®¡ä¿¡æ¯ --> |
| | | <div class="picking-stats" v-if="scanForm.palletCode && unpickedData.length > 0"> |
| | | <el-divider content-position="left"> |
| | | <span style="color: #409EFF; font-size: 14px;"> |
| | | <i class="el-icon-data-analysis"></i> æç忣ç»è®¡ |
| | | </span> |
| | | </el-divider> |
| | | <div class="stats-container"> |
| | | <div class="stat-item"> |
| | | <el-tag type="primary" size="medium" effect="dark"> |
| | | <i class="el-icon-s-order"></i> |
| | | åæ£æ»æ°ï¼<b>{{ calculateTotalAssignQuantity() }}</b> |
| | | </el-tag> |
| | | </div> |
| | | <div class="stat-item"> |
| | | <el-tag type="success" size="medium" effect="dark"> |
| | | <i class="el-icon-circle-check"></i> |
| | | 已忣ï¼<b>{{ calculateTotalSortedQuantity() }}</b> |
| | | </el-tag> |
| | | </div> |
| | | <div class="stat-item"> |
| | | <el-tag type="warning" size="medium" effect="dark"> |
| | | <i class="el-icon-time"></i> |
| | | æªåæ£ï¼<b>{{ calculateTotalUnsortedQuantity() }}</b> |
| | | </el-tag> |
| | | </div> |
| | | <div class="stat-item"> |
| | | <el-tag :type="hasWholeOut() ? 'success' : 'warning'" size="medium" effect="dark"> |
| | | <i class="el-icon-box"></i> |
| | | æ¯å¦æ´åºï¼{{ hasWholeOut() ? 'æ¯' : 'å¦' }} |
| | | </el-tag> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | | |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="unit" label="åä½" width="60" /> |
| | | <el-table-column prop="locationCode" label="åºä½" /> |
| | | <!-- <el-table-column label="æä½" width="80" align="center"> |
| | | <template #default="scope"> |
| | | <el-button type="text" size="small" @click="quickPick(scope.row)" |
| | | :disabled="!scanForm.palletCode"> |
| | | æ£é |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | |
| | | <div class="table-footer"> |
| | |
| | | <el-table-column prop="createDate" label="æ£éæ¶é´" width="160" /> |
| | | <el-table-column prop="originalBarcode" label="åç©æç " width="160" /> |
| | | <el-table-column prop="newBarcode" label="æ°ç©æç " width="160" /> |
| | | <!-- <el-table-column label="æä½" width="80" align="center"> |
| | | <template #default="scope"> |
| | | <el-button type="text" size="small" @click="undoPick(scope.row)"> |
| | | æ¤é |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | |
| | | <div class="table-footer"> |
| | |
| | | </el-row> |
| | | </div> |
| | | |
| | | <print-view ref="printView" @parentcall="parentcall"></print-view> |
| | | |
| | | <!-- ç¡®è®¤å¯¹è¯æ¡ --> |
| | | <el-dialog v-model="confirmDialogVisible" title="æä½ç¡®è®¤" width="400px" :before-close="handleDialogClose"> |
| | | <div class="confirm-content"> |
| | |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | |
| | | <!-- æ´åºç¡®è®¤å¯¹è¯æ¡ --> |
| | | <el-dialog v-model="wholeOutDialogVisible" title="æ´åºæä½ç¡®è®¤" width="500px" :before-close="handleWholeOutDialogClose" |
| | | custom-class="whole-out-dialog" style="margin-right: 0px;"> |
| | | <div class="whole-out-content" v-if="wholeOutInfo"> |
| | | <!-- è¦åæç¤º --> |
| | | <el-alert title="该æçå
å«éè¦æ´åºçç©æ" type="warning" :closable="false" show-icon class="whole-out-alert"> |
| | | <template #default> |
| | | <div>æ´åºæä½å°ä¸æ¬¡æ§æ£éè¯¥ç©æçææåºåï¼è¯·ç¡®è®¤ä¿¡æ¯æ è¯¯åæ§è¡</div> |
| | | </template> |
| | | </el-alert> |
| | | |
| | | <!-- æçä¿¡æ¯ --> |
| | | <div class="info-section"> |
| | | <h4 class="section-title"> |
| | | <i class="el-icon-box"></i> |
| | | æçä¿¡æ¯ |
| | | </h4> |
| | | <div class="info-grid"> |
| | | <div class="info-item"> |
| | | <label>æçç ï¼</label> |
| | | <span class="info-value">{{ wholeOutInfo.palletCode }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <label>åºä½ï¼</label> |
| | | <span class="info-value">{{ wholeOutInfo.locationCode || 'æªæå®' }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- æ´åºç©æè¯¦æ
--> |
| | | <div class="info-section"> |
| | | <h4 class="section-title"> |
| | | <i class="el-icon-s-grid"></i> |
| | | æ´åºç©æè¯¦æ
|
| | | </h4> |
| | | <div class="info-grid"> |
| | | <div class="info-item"> |
| | | <label>ç©æç¼ç ï¼</label> |
| | | <span class="info-value">{{ wholeOutInfo.materielCode }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <label>ç©æåç§°ï¼</label> |
| | | <span class="info-value">{{ wholeOutInfo.materielName }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <label>æ¹æ¬¡å·ï¼</label> |
| | | <span class="info-value">{{ wholeOutInfo.batchNo }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <label>æ´åºæ°éï¼</label> |
| | | <span class="info-value highlight">{{ wholeOutInfo.assignQuantity }} {{ wholeOutInfo.unit }}</span> |
| | | </div> |
| | | <div class="info-item"> |
| | | <label>å½ååºåï¼</label> |
| | | <span class="info-value">{{ wholeOutInfo.currentStock || wholeOutInfo.originalQuantity }} {{ wholeOutInfo.unit }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- æä½æç¤º --> |
| | | <div class="operation-tip"> |
| | | <i class="el-icon-info"></i> |
| | | <span>确认æ§è¡æ´åºæä½åï¼æ¤æä½å°ä¸æ¬¡æ§æ£éè¯¥ç©æçææåºåã</span> |
| | | </div> |
| | | </div> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="wholeOutDialogVisible = false" size="medium">åæ¶</el-button> |
| | | <el-button type="warning" @click="executeWholeOut" :loading="executeLoading" size="medium"> |
| | | <i class="el-icon-check"></i> |
| | | 确认æ´åº |
| | | </el-button> |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import printView from "@/extension/outbound/extend/printView.vue" |
| | | import { stationManager, STATION_STORAGE_KEY } from "@/../src/uitils/stationManager"; |
| | | import { ElLoading } from 'element-plus' |
| | | |
| | | // 导å
¥é³é¢æä»¶ï¼éé
src/assetsç®å½ï¼webpackèªå¨å¤çï¼ |
| | | const successAudioSrc = require('@/assets/audio/success.mp3'); |
| | | const errorAudioSrc = require('@/assets/audio/error.mp3'); |
| | | |
| | | export default { |
| | | components: { printView }, |
| | | name: 'OutPicking', |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | scanRules: { |
| | | palletCode: [ |
| | | { required: true, message: 'è¯·æ«ææçç ', trigger: 'blur' } |
| | | { required: true, message: 'è¯·æ«æ/è¾å
¥æçç ', trigger: 'blur' } |
| | | ], |
| | | materialBarcode: [ |
| | | { required: true, message: 'è¯·æ«æç©ææ¡ç ', trigger: 'blur' } |
| | |
| | | confirmDialogVisible: false, |
| | | confirmMessage: '', |
| | | currentAction: null, |
| | | executeLoading: false |
| | | executeLoading: false, |
| | | matMixed: true, |
| | | wholeOutDialogVisible: false, |
| | | wholeOutInfo: null, |
| | | globalLoading: false, |
| | | loadingInstance: null, |
| | | // é³é¢å®ä¾ï¼ç¼åï¼é¿å
éå¤åå»ºï¼ |
| | | successAudio: null, |
| | | errorAudio: null, |
| | | selectedPalletCode: '' |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | mounted() { |
| | | this.initPage() |
| | | // åå§åé³é¢å®ä¾ï¼æå è½½ï¼ä»
åå»ºä¸æ¬¡ï¼ |
| | | this.initAudioInstance() |
| | | }, |
| | | beforeDestroy() { |
| | | // 鿝é³é¢å®ä¾ï¼éæ¾èµæº |
| | | this.successAudio = null |
| | | this.errorAudio = null |
| | | // ãå·²æ¸
çãç§»é¤å³æ¶è§¦åç¸å
³ç鲿宿¶å¨æ¸
é¤ä»£ç |
| | | }, |
| | | methods: { |
| | | // åå§åé³é¢å®ä¾ï¼æ ¸å¿ï¼éé
src/assetsè·¯å¾ï¼ç¼åå®ä¾ï¼ |
| | | initAudioInstance() { |
| | | // æåé³é¢å®ä¾ |
| | | if (!this.successAudio) { |
| | | this.successAudio = new Audio(successAudioSrc) |
| | | this.successAudio.onerror = (err) => { |
| | | console.error('ãæåé³é¢ãå 载失败', err) |
| | | } |
| | | } |
| | | if (!this.errorAudio) { |
| | | this.errorAudio = new Audio(errorAudioSrc) |
| | | this.errorAudio.onerror = (err) => { |
| | | console.error('ãé误é³é¢ãå 载失败', err) |
| | | } |
| | | } |
| | | }, |
| | | // ææ¾æåé³é¢ |
| | | playSuccessAudio() { |
| | | try { |
| | | // éç½®ææ¾è¿åº¦ï¼é¿å
éå¤ææ¾æ¶é³é¢æªç»æï¼ |
| | | this.successAudio.currentTime = 0 |
| | | // ææ¾ï¼å
¼å®¹æµè§å¨èªå¨ææ¾çç¥éå¶ï¼ |
| | | this.successAudio.play().catch((err) => { |
| | | console.warn('æåé³é¢ææ¾å¤±è´¥ï¼æµè§å¨èªå¨ææ¾çç¥éå¶ï¼', err) |
| | | }) |
| | | } catch (err) { |
| | | console.error('ææ¾æåé³é¢å¼å¸¸', err) |
| | | } |
| | | }, |
| | | playErrorAudio() { |
| | | try { |
| | | this.errorAudio.currentTime = 0 |
| | | this.errorAudio.play().catch((err) => { |
| | | console.warn('é误é³é¢ææ¾å¤±è´¥ï¼æµè§å¨èªå¨ææ¾çç¥éå¶ï¼', err) |
| | | }) |
| | | } catch (err) { |
| | | console.error('ææ¾é误é³é¢å¼å¸¸', err) |
| | | } |
| | | }, |
| | | initPage() { |
| | | // ä»è·¯ç±åæ°è·å订åå· |
| | | this.orderNo = this.$route.query.orderNo || '' |
| | | if (!this.orderNo) { |
| | | this.$message.error('订åå·ä¸è½ä¸ºç©º') |
| | | this.$router.back() |
| | | return |
| | | this.orderNo = this.$route.query.orderNo || ''; |
| | | |
| | | // æ¯æéè¿æçå·è·å订åå·ï¼ä¸å¼ºå¶è¿åä¸ä¸é¡µ |
| | | if (this.orderNo) { |
| | | this.loadOrderInfo(); |
| | | } else { |
| | | this.$message.info('è¯·æ«æ/è¾å
¥æçç è·åå
³è订å'); |
| | | } |
| | | |
| | | // èªå¨èç¦å°æçç è¾å
¥æ¡ |
| | | this.$nextTick(() => { |
| | | if (this.$refs.palletInput) { |
| | | this.$refs.palletInput.focus() |
| | | this.$refs.palletInput.focus(); |
| | | } |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | loadPalletData() { |
| | | if (!this.scanForm.palletCode) { |
| | | this.unpickedData = [] |
| | | return |
| | | } |
| | | |
| | | async loadOrderInfo() { |
| | | if (!this.orderNo) return; |
| | | |
| | | try { |
| | | this.loadUnpickedData(); |
| | | this.loadPickedData(); |
| | | |
| | | this.showFullScreenLoading(); |
| | | const response = await this.http.get(`/api/Outbound/GetOrderInfo?orderNo=${this.orderNo}`); |
| | | if (response.status) { |
| | | this.orderInfo = response.data; |
| | | } else { |
| | | this.$message.error(response.message || 'è·å订åä¿¡æ¯å¤±è´¥'); |
| | | } |
| | | } catch (error) { |
| | | console.error('å è½½æçæ°æ®å¤±è´¥:', error) |
| | | this.unpickedData = [] |
| | | this.$message.error(`è·å订åä¿¡æ¯å¼å¸¸ï¼${error.message || 'ç½ç»é误'}`); |
| | | console.error('ãå 载订åä¿¡æ¯å¤±è´¥ã', error); |
| | | } finally { |
| | | this.hideFullScreenLoading(); |
| | | } |
| | | }, |
| | | loadUnpickedData() { |
| | | async loadPalletData() { |
| | | if (!this.scanForm.palletCode || !this.orderNo) { |
| | | this.unpickedData = []; |
| | | return; |
| | | } |
| | | |
| | | try { |
| | | this.showFullScreenLoading(); |
| | | await Promise.all([ |
| | | this.loadUnpickedData(), |
| | | this.loadPickedData() |
| | | ]); |
| | | } catch (error) { |
| | | this.unpickedData = []; |
| | | console.error('ãå è½½æçæ°æ®å¤±è´¥ã', error); |
| | | } finally { |
| | | this.hideFullScreenLoading(); |
| | | } |
| | | }, |
| | | // æ ¸å¿é»è¾ï¼èªå¨æåCK订åå·å¹¶èµå¼ï¼éèæå®æç¤º |
| | | loadUnpickedData() { |
| | | return new Promise((resolve, reject) => { |
| | | // å
æ¸
空ä¹åçæç¤ºï¼é¿å
éå¤æç¤º |
| | | this.$message.closeAll(); |
| | | |
| | | this.http.post(`/api/Outbound/QueryPickingTasks?orderNo=${this.orderNo}&palletCode=${this.scanForm.palletCode}`, {}).then(response => { |
| | | if (response.status) { |
| | | if (response.data.length > 0) { |
| | | this.unpickedData = response.data |
| | | this.calculateUnpickedStats() |
| | | |
| | | // èªå¨èç¦å°ç©ææ¡ç è¾å
¥æ¡ |
| | | if (response.data.outStockLockInfos && response.data.outStockLockInfos.length > 0) { |
| | | this.unpickedData = response.data.outStockLockInfos; |
| | | this.matMixed = response.data.isMatMixed; |
| | | this.orderOver = response.data.orderOver; |
| | | this.calculateUnpickedStats(); |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.hasWholeOut()) { |
| | | this.showWholeOutConfirm(); |
| | | } |
| | | }); |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.$refs.materialInput) { |
| | | this.$refs.materialInput.focus() |
| | | this.$refs.materialInput.focus(); |
| | | } |
| | | }) |
| | | }); |
| | | } else { |
| | | this.$message.warning('该æçæ æªæ£éä»»å¡') |
| | | this.unpickedData = [] |
| | | this.unpickedData = []; |
| | | this.calculateUnpickedStats(); |
| | | |
| | | this.$message.success({ |
| | | message: `æçã${this.scanForm.palletCode}ãå·²æ£éå®æï¼ææ æ£éè®°å½`, |
| | | duration: 3000, |
| | | showClose: true |
| | | }); |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.$refs.palletInput) { |
| | | this.$refs.palletInput.focus(); |
| | | this.$refs.palletInput.$el.querySelector('input').select(); |
| | | } |
| | | // è¡¨æ ¼é«äº®éä¸å½åæç |
| | | if (this.$refs.unpickedTable) { |
| | | const targetRow = this.unpickedData.find(item => item.palletCode === this.scanForm.palletCode); |
| | | if (targetRow) this.$refs.unpickedTable.setCurrentRow(targetRow); |
| | | } |
| | | }); |
| | | |
| | | this.scanForm.materialBarcode = ''; |
| | | this.$nextTick(() => { |
| | | if (this.$refs.palletInput) { |
| | | this.$refs.palletInput.focus(); |
| | | } |
| | | }); |
| | | } |
| | | resolve(); |
| | | } else { |
| | | this.$message.error(response.message || 'è·åæçæ°æ®å¤±è´¥') |
| | | this.unpickedData = [] |
| | | const errorMsg = response.message || `è·åæçã${this.scanForm.palletCode}ãæ£éæ°æ®å¤±è´¥`; |
| | | const targetOrderNo = this.extractCKOrderNo(errorMsg); |
| | | |
| | | if (targetOrderNo) { |
| | | // èªå¨èµå¼ï¼ä¸æ¾ç¤ºé误æç¤ºï¼éç¯æµç¨ |
| | | this.orderNo = targetOrderNo; |
| | | this.$forceUpdate(); |
| | | this.loadOrderInfo().then(() => { |
| | | this.loadPalletData(); |
| | | }); |
| | | resolve("èªå¨èµå¼æ°è®¢åå·ï¼éæ°è¯·æ±æ°æ®"); |
| | | } else { |
| | | this.$message.error({ |
| | | message: errorMsg, |
| | | duration: 5000, |
| | | showClose: true |
| | | }); |
| | | |
| | | this.scanForm.palletCode = ''; |
| | | this.$nextTick(() => { |
| | | if (this.$refs.palletInput) { |
| | | this.$refs.palletInput.focus(); |
| | | } |
| | | }); |
| | | reject(errorMsg); |
| | | } |
| | | |
| | | this.unpickedData = []; |
| | | this.calculateUnpickedStats(); |
| | | } |
| | | } |
| | | ) |
| | | |
| | | } catch (error) { |
| | | console.error('å è½½æªæ£éæ°æ®å¤±è´¥:', error) |
| | | } |
| | | }).catch(error => { |
| | | this.unpickedData = []; |
| | | this.calculateUnpickedStats(); |
| | | |
| | | this.$message.error({ |
| | | message: `è·åæçã${this.scanForm.palletCode}ãæ£éæ°æ®å¼å¸¸ï¼${error.message || 'ç½ç»é误ï¼è¯·éè¯'}`, |
| | | duration: 5000, |
| | | showClose: true |
| | | }); |
| | | console.error("ãQueryPickingTasks ç½ç»å¼å¸¸ã", error); |
| | | reject(error); |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | loadPickedData() { |
| | | try { |
| | | return new Promise((resolve, reject) => { |
| | | this.http.post(`/api/Outbound/QueryPickedList?orderNo=${this.orderNo}&palletCode=${this.scanForm.palletCode}`, {}).then(response => { |
| | | if (response.status) { |
| | | if (response.data.length > 0) { |
| | | this.pickedData = response.data |
| | | this.calculatePickedStats() |
| | | this.pickedData = response.data; |
| | | this.calculatePickedStats(); |
| | | } else { |
| | | this.$message.warning('该æçæ æªæ£éä»»å¡') |
| | | this.unpickedData = [] |
| | | this.pickedData = []; |
| | | } |
| | | resolve(); |
| | | } else { |
| | | this.$message.error(response.message || 'è·åæçæ°æ®å¤±è´¥') |
| | | this.unpickedData = [] |
| | | const errorMsg = response.message || 'è·åæçå·²æ£éæ°æ®å¤±è´¥'; |
| | | const targetOrderNo = this.extractCKOrderNo(errorMsg); |
| | | |
| | | if (targetOrderNo) { |
| | | this.orderNo = targetOrderNo; |
| | | this.$forceUpdate(); |
| | | resolve("èªå¨èµå¼æ°è®¢åå·"); |
| | | } else { |
| | | reject(errorMsg); |
| | | } |
| | | this.pickedData = []; |
| | | } |
| | | } |
| | | ) |
| | | |
| | | } catch (error) { |
| | | console.error('å 载已æ£éæ°æ®å¤±è´¥:', error) |
| | | } |
| | | }).catch(error => { |
| | | console.error("ãQueryPickedList ç½ç»å¼å¸¸ã", error); |
| | | reject(error); |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | // è®¡ç®æªæ£é |
| | | calculateUnpickedStats() { |
| | | // æªæ£éæ¡ç®æ°é |
| | | this.unpickedCount = this.unpickedData.length |
| | | |
| | | // è®¡ç®æªæ£éçæ»æ°éï¼åæ£æ°é - 已忣æ°éï¼ |
| | | this.unpickedCount = this.unpickedData.length; |
| | | this.unpickedQuantity = this.unpickedData.reduce((sum, item) => { |
| | | const assignQty = item.assignQuantity || 0 |
| | | const sortedQty = item.sortedQuantity || 0 |
| | | const remainingQty = Math.max(0, assignQty - sortedQty) |
| | | return sum + remainingQty |
| | | }, 0) |
| | | |
| | | // æ»æ¡ç®æ°ï¼ä¸æ¡ç®æ°éç¸åï¼è¿éä¿çåéä¸è´æ§ï¼ |
| | | this.unpickedTotal = this.unpickedCount |
| | | const assignQty = item.assignQuantity || 0; |
| | | const sortedQty = item.sortedQuantity || 0; |
| | | const remainingQty = Math.max(0, assignQty - sortedQty); |
| | | return sum + remainingQty; |
| | | }, 0); |
| | | this.unpickedTotal = this.unpickedCount; |
| | | }, |
| | | |
| | | // 计ç®å·²æ£é |
| | | calculatePickedStats() { |
| | | // å·²æ£éæ¡ç®æ°é |
| | | this.pickedCount = this.pickedData.length |
| | | |
| | | // 计ç®å·²æ£éçæ»æ°é |
| | | this.pickedCount = this.pickedData.length; |
| | | this.pickedQuantity = 0 - this.pickedData.reduce((sum, item) => { |
| | | return (sum + item.changeQuantity) |
| | | }, 0) |
| | | |
| | | // æ»æ¡ç®æ°ï¼ä¸æ¡ç®æ°éç¸åï¼ |
| | | this.pickedTotal = this.pickedCount |
| | | return (sum + item.changeQuantity); |
| | | }, 0); |
| | | this.pickedTotal = this.pickedCount; |
| | | }, |
| | | // å·¥å
·æ¹æ³ - æåCKå¼å¤´è®¢åå· |
| | | extractCKOrderNo(message) { |
| | | if (!message) return null; |
| | | const ckOrderReg = /CK\d+/g; |
| | | const matchResult = message.match(ckOrderReg); |
| | | return matchResult && matchResult.length > 0 ? matchResult[0] : null; |
| | | }, |
| | | // æ ¸å¿ï¼è°ç¨è·å订åå·æ¥å£ï¼å®æ´è·¯å¾ï¼å车触åï¼ |
| | | async getOrderNoByPallet(palletCode) { |
| | | if (!palletCode) { |
| | | this.$message.warning('æçå·ä¸è½ä¸ºç©º'); |
| | | return null; |
| | | } |
| | | |
| | | handlePalletScan() { |
| | | if (this.scanForm.palletCode) { |
| | | // this.$message.success(`æçç : ${this.scanForm.palletCode}`) |
| | | this.loadPalletData() |
| | | try { |
| | | this.showFullScreenLoading(); |
| | | const response = await this.http.get(`/api/OutboundOrder/GetOrderNoByPalletCode?palletCode=${palletCode}`); |
| | | |
| | | |
| | | if (response.status && response.data) { |
| | | const validOrderNo = response.data; |
| | | this.playSuccessAudio(); |
| | | this.$message.success(`æåè·å订åå·ï¼${validOrderNo}`); |
| | | return validOrderNo; |
| | | } else { |
| | | this.playErrorAudio(); |
| | | const errorMsg = response.message || '该æçå·æªå
³èä»»ä½è®¢å'; |
| | | this.$message.error(errorMsg); |
| | | return null; |
| | | } |
| | | } catch (error) { |
| | | this.playErrorAudio(); |
| | | const errorMsg = `æ¥å£è°ç¨å¼å¸¸ï¼${error.message || 'ç½ç»é误/æ¥å£ä¸åå¨'}`; |
| | | this.$message.error(errorMsg); |
| | | console.error("ãæ¥å£è°ç¨å¤±è´¥ã", error); |
| | | return null; |
| | | } finally { |
| | | this.hideFullScreenLoading(); |
| | | } |
| | | }, |
| | | // å车触åçæ ¸å¿æ¹æ³ï¼æ 峿¶è§¦åï¼é¿å
é¢ç¹è°ç¨æ¥å£ |
| | | async handlePalletScan(flag = true) { |
| | | const palletCode = this.scanForm.palletCode.trim(); |
| | | if (!palletCode) { |
| | | this.$message.warning('请è¾å
¥ææçæçå·'); |
| | | return; |
| | | } |
| | | |
| | | // è°ç¨è®¢åå·æ¥å£ï¼ä»
å车触å䏿¬¡ |
| | | const orderNoFromApi = await this.getOrderNoByPallet(palletCode); |
| | | |
| | | if (orderNoFromApi) { |
| | | this.orderNo = orderNoFromApi; |
| | | this.$forceUpdate(); |
| | | } |
| | | |
| | | if (this.orderNo) { |
| | | await this.loadOrderInfo(); |
| | | this.loadPalletData(flag); |
| | | } else { |
| | | this.loadPalletData(flag); |
| | | } |
| | | }, |
| | | handleMaterialScan() { |
| | | if (!this.scanForm.palletCode) { |
| | | this.$message.warning('请å
æ«ææçç ') |
| | | this.$refs.palletInput.focus() |
| | | return |
| | | this.$message.warning('请å
æ«æ/è¾å
¥æçç '); |
| | | this.$refs.palletInput.focus(); |
| | | return; |
| | | } |
| | | |
| | | if (!this.scanForm.materialBarcode) { |
| | | this.$message.warning('è¯·æ«æç©ææ¡ç ') |
| | | return |
| | | this.$message.warning('è¯·æ«æç©ææ¡ç '); |
| | | return; |
| | | } |
| | | |
| | | // èªå¨æ§è¡ç¡®è®¤æ£é |
| | | this.handleConfirmPick() |
| | | this.handleConfirmPick(); |
| | | }, |
| | | |
| | | handleConfirmPick() { |
| | | async handleConfirmPick() { |
| | | if (!this.scanForm.palletCode || !this.scanForm.materialBarcode) { |
| | | this.$message.warning('请å
æ«ææçç åç©ææ¡ç ') |
| | | return |
| | | this.$message.warning('请å
æ«ææçç åç©ææ¡ç '); |
| | | return; |
| | | } |
| | | |
| | | this.confirmLoading = true |
| | | this.confirmLoading = true; |
| | | this.showFullScreenLoading(); |
| | | |
| | | try { |
| | | this.http.post('/api/Outbound/CompleteOutboundWithBarcode', { |
| | | const response = await this.http.post('/api/Outbound/CompleteOutboundWithBarcode', { |
| | | orderNo: this.orderNo, |
| | | palletCode: this.scanForm.palletCode, |
| | | barcode: this.scanForm.materialBarcode, |
| | | operator: this.getUserName() |
| | | }).then(response => { |
| | | if (response.status) { |
| | | this.$message.success('æ£é确认æå') |
| | | this.resetMaterialBarcode() |
| | | // this.loadUnpickedData() |
| | | // this.loadPickedData() |
| | | this.loadPalletData() |
| | | } else { |
| | | this.$message.error(response.message || 'æ£é确认失败') |
| | | }); |
| | | if (response.status) { |
| | | if (response.data.scannedDetail.isUnpacked && response.data.scannedDetail.materialCodes.length > 0) { |
| | | this.$refs.printView.open(response.data.scannedDetail.materialCodes); |
| | | } |
| | | }) |
| | | this.$message.success('æ£é确认æå'); |
| | | this.playSuccessAudio(); |
| | | this.resetMaterialBarcode(); |
| | | await this.loadPalletData(false); |
| | | } else { |
| | | this.$message.error(response.message || 'æ£é确认失败'); |
| | | this.playErrorAudio(); |
| | | } |
| | | } catch (error) { |
| | | console.error('æ£é确认失败:', error) |
| | | this.$message.error('æ£é确认失败') |
| | | this.$message.error('æ£é确认失败'); |
| | | this.playErrorAudio(); |
| | | } finally { |
| | | this.confirmLoading = false |
| | | this.confirmLoading = false; |
| | | this.hideFullScreenLoading(); |
| | | } |
| | | }, |
| | | |
| | | handleEmptyBox() { |
| | | if (!this.scanForm.palletCode) { |
| | | this.$message.warning('请å
æ«ææçç ') |
| | | return |
| | | this.$message.warning('请å
æ«æ/è¾å
¥æçç '); |
| | | return; |
| | | } |
| | | |
| | | this.confirmMessage = `ç¡®å®è¦å空æç ${this.scanForm.palletCode} åï¼` |
| | | this.currentAction = 'emptyBox' |
| | | this.confirmDialogVisible = true |
| | | this.confirmMessage = `ç¡®å®è¦å空æç ${this.scanForm.palletCode} åï¼`; |
| | | this.currentAction = 'emptyBox'; |
| | | this.confirmDialogVisible = true; |
| | | }, |
| | | |
| | | handleReturnToWarehouse() { |
| | | if (!this.scanForm.palletCode) { |
| | | this.$message.warning('请å
æ«ææçç ') |
| | | return |
| | | this.$message.warning('请å
æ«æ/è¾å
¥æçç '); |
| | | return; |
| | | } |
| | | |
| | | this.confirmMessage = `ç¡®å®è¦å°æç ${this.scanForm.palletCode} ååºåï¼` |
| | | this.currentAction = 'returnToWarehouse' |
| | | this.confirmDialogVisible = true |
| | | this.confirmMessage = `ç¡®å®è¦å°æç ${this.scanForm.palletCode} ååºåï¼`; |
| | | this.currentAction = 'returnToWarehouse'; |
| | | this.confirmDialogVisible = true; |
| | | }, |
| | | |
| | | executeConfirm() { |
| | | this.executeLoading = true |
| | | async executeConfirm() { |
| | | this.executeLoading = true; |
| | | this.showFullScreenLoading(); |
| | | |
| | | try { |
| | | let apiUrl = '' |
| | | let apiUrl = ''; |
| | | let params = { |
| | | orderNo: this.orderNo, |
| | | palletCode: this.scanForm.palletCode |
| | | } |
| | | |
| | | palletCode: this.scanForm.palletCode, |
| | | station: stationManager.getStation() |
| | | }; |
| | | if (this.currentAction === 'emptyBox') { |
| | | apiUrl = '/api/Outbound/EmptyBox' |
| | | apiUrl = '/api/Outbound/EmptyBox'; |
| | | } else if (this.currentAction === 'returnToWarehouse') { |
| | | apiUrl = '/api/Outbound/ReturnToWarehouse' |
| | | apiUrl = '/api/Outbound/ReturnToWarehouse'; |
| | | } |
| | | |
| | | this.http.post(apiUrl, params).then(response => { |
| | | const response = await this.http.post(apiUrl, params); |
| | | |
| | | if (response.status) { |
| | | this.$message.success('æä½æå') |
| | | this.confirmDialogVisible = false |
| | | this.resetForm() |
| | | // this.loadUnpickedData() |
| | | // this.loadPickedData() |
| | | } else { |
| | | this.$message.error(response.message || 'æä½å¤±è´¥') |
| | | } |
| | | }) |
| | | if (response.status) { |
| | | this.$message.success('æä½æå'); |
| | | this.confirmDialogVisible = false; |
| | | this.resetForm(); |
| | | } else { |
| | | this.$message.error(response.message || 'æä½å¤±è´¥'); |
| | | } |
| | | } catch (error) { |
| | | console.error('æä½å¤±è´¥:', error) |
| | | this.$message.error('æä½å¤±è´¥') |
| | | this.$message.error('æä½å¤±è´¥'); |
| | | } finally { |
| | | this.executeLoading = false |
| | | this.executeLoading = false; |
| | | this.hideFullScreenLoading(); |
| | | } |
| | | }, |
| | | |
| | | handleDialogClose() { |
| | | if (!this.executeLoading) { |
| | | this.confirmDialogVisible = false |
| | | this.confirmDialogVisible = false; |
| | | } |
| | | }, |
| | | |
| | | quickPick(row) { |
| | | this.scanForm.materialBarcode = row.materielCode |
| | | this.handleConfirmPick() |
| | | showWholeOutConfirm() { |
| | | const wholeOutItem = this.unpickedData.find(item => item.assignQuantity === item.originalQuantity); |
| | | if (wholeOutItem) { |
| | | this.wholeOutInfo = { |
| | | palletCode: this.scanForm.palletCode, |
| | | locationCode: wholeOutItem.locationCode, |
| | | materielCode: wholeOutItem.materielCode, |
| | | materielName: wholeOutItem.materielName, |
| | | batchNo: wholeOutItem.batchNo, |
| | | assignQuantity: wholeOutItem.assignQuantity, |
| | | currentStock: wholeOutItem.currentStock, |
| | | originalQuantity: wholeOutItem.originalQuantity, |
| | | unit: wholeOutItem.unit |
| | | }; |
| | | this.wholeOutDialogVisible = true; |
| | | } |
| | | }, |
| | | handleWholeOutDialogClose() { |
| | | if (!this.executeLoading) { |
| | | this.wholeOutDialogVisible = false; |
| | | this.wholeOutInfo = null; |
| | | } |
| | | }, |
| | | async executeWholeOut() { |
| | | if (!this.wholeOutInfo) { |
| | | this.$message.error('æ´åºä¿¡æ¯æ æ'); |
| | | return; |
| | | } |
| | | |
| | | this.executeLoading = true; |
| | | this.showFullScreenLoading(); |
| | | |
| | | try { |
| | | const response = await this.http.post('/api/Outbound/CompleteOutboundWithPallet', { |
| | | orderNo: this.orderNo, |
| | | palletCode: this.scanForm.palletCode, |
| | | operator: this.getUserName() |
| | | }); |
| | | if (response.status) { |
| | | this.$message.success('æ´åºæä½æå'); |
| | | this.wholeOutDialogVisible = false; |
| | | this.wholeOutInfo = null; |
| | | await this.loadPalletData(); |
| | | } else { |
| | | this.$message.error(response.message || 'æ´åºæä½å¤±è´¥'); |
| | | } |
| | | } catch (error) { |
| | | this.$message.error('æ´åºæä½å¤±è´¥'); |
| | | } finally { |
| | | this.executeLoading = false; |
| | | this.hideFullScreenLoading(); |
| | | } |
| | | }, |
| | | quickPick(row) { |
| | | this.scanForm.materialBarcode = row.materielCode; |
| | | this.handleConfirmPick(); |
| | | }, |
| | | undoPick(row) { |
| | | try { |
| | | this.$confirm('ç¡®å®è¦æ¤éè¿æ¡æ£éè®°å½åï¼', 'æç¤º', { |
| | | type: 'warning' |
| | | }) |
| | | |
| | | const response = this.http.post('/api/Outbound/UndoPicking', { |
| | | id: row.id |
| | | }).then(response => { |
| | | if (response.status) { |
| | | this.$message.success('æ¤éæå') |
| | | this.loadUnpickedData() |
| | | this.loadPickedData() |
| | | } else { |
| | | this.$message.error(response.message || 'æ¤é失败') |
| | | } |
| | | }) |
| | | }).then(() => { |
| | | this.http.post('/api/Outbound/UndoPicking', { |
| | | id: row.id |
| | | }).then(response => { |
| | | if (response.status) { |
| | | this.$message.success('æ¤éæå'); |
| | | this.loadUnpickedData(); |
| | | this.loadPickedData(); |
| | | } else { |
| | | this.$message.error(response.message || 'æ¤é失败'); |
| | | } |
| | | }); |
| | | }).catch(() => {}); |
| | | } catch (error) { |
| | | if (error !== 'cancel') { |
| | | console.error('æ¤é失败:', error) |
| | | this.$message.error('æ¤é失败') |
| | | this.$message.error('æ¤é失败'); |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // handleUnpickedRowClick(row) { |
| | | // // ç¹å»æªæ£éè¡æ¶èªå¨å¡«å
ç©ææ¡ç |
| | | // this.scanForm.materialBarcode = row.materielCode |
| | | // }, |
| | | |
| | | refreshUnpickedTable() { |
| | | if (this.scanForm.palletCode) { |
| | | this.loadPalletData() |
| | | this.loadPalletData(); |
| | | } |
| | | }, |
| | | |
| | | refreshPickedTable() { |
| | | this.loadPickedData() |
| | | this.loadPickedData().catch(error => { |
| | | console.error('å·æ°å·²æ£éå表失败:', error); |
| | | }); |
| | | }, |
| | | |
| | | resetMaterialBarcode() { |
| | | this.scanForm.materialBarcode = '' |
| | | this.scanForm.materialBarcode = ''; |
| | | this.$nextTick(() => { |
| | | if (this.$refs.materialInput) { |
| | | this.$refs.materialInput.focus() |
| | | this.$refs.materialInput.focus(); |
| | | } |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | resetForm() { |
| | | this.scanForm.palletCode = '' |
| | | this.scanForm.materialBarcode = '' |
| | | this.unpickedData = [] |
| | | this.scanForm.palletCode = ''; |
| | | this.scanForm.materialBarcode = ''; |
| | | this.unpickedData = []; |
| | | this.$nextTick(() => { |
| | | if (this.$refs.palletInput) { |
| | | this.$refs.palletInput.focus() |
| | | this.$refs.palletInput.focus(); |
| | | } |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | getUserName() { |
| | | // å°è¯ä» Vuex store è·åç¨æ·å |
| | | if (this.$store && this.$store.state && this.$store.state.userInfo) { |
| | | return this.$store.state.userInfo.userName || this.$store.state.userInfo.username || 'æªç»å½ç¨æ·' |
| | | return this.$store.state.userInfo.userName || this.$store.state.userInfo.username || 'æªç»å½ç¨æ·'; |
| | | } |
| | | |
| | | // å°è¯ä» localStorage è·å |
| | | try { |
| | | const userInfo = localStorage.getItem('user') |
| | | const userInfo = localStorage.getItem('user'); |
| | | if (userInfo) { |
| | | const user = JSON.parse(userInfo) |
| | | return user.userName || user.username || 'æªç»å½ç¨æ·' |
| | | const user = JSON.parse(userInfo); |
| | | return user.userName || user.username || 'æªç»å½ç¨æ·'; |
| | | } |
| | | } catch (error) { |
| | | console.error('è·åç¨æ·ä¿¡æ¯å¤±è´¥:', error) |
| | | } |
| | | } catch (error) {} |
| | | |
| | | return 'æªç»å½ç¨æ·' |
| | | return 'æªç»å½ç¨æ·'; |
| | | }, |
| | | |
| | | calculateTotalAssignQuantity() { |
| | | return this.unpickedData.reduce((sum, item) => { |
| | | return sum + (item.assignQuantity || 0); |
| | | }, 0); |
| | | }, |
| | | calculateTotalSortedQuantity() { |
| | | return this.unpickedData.reduce((sum, item) => { |
| | | return sum + (item.sortedQuantity || 0); |
| | | }, 0); |
| | | }, |
| | | calculateTotalUnsortedQuantity() { |
| | | return this.unpickedData.reduce((sum, item) => { |
| | | const assignQty = item.assignQuantity || 0; |
| | | const sortedQty = item.sortedQuantity || 0; |
| | | return sum + Math.max(0, assignQty - sortedQty); |
| | | }, 0); |
| | | }, |
| | | hasWholeOut() { |
| | | return this.unpickedData.some(item => item.assignQuantity === item.originalQuantity) && !this.matMixed && !this.orderOver; |
| | | }, |
| | | getStatusType(status) { |
| | | const statusMap = { |
| | | 0: 'info', // å¾
å¤ç |
| | | 10: 'warning', // è¿è¡ä¸ |
| | | 20: 'primary', // æ£éä¸ |
| | | 30: 'success', // 已宿 |
| | | 40: 'danger' // å¼å¸¸ |
| | | 0: 'info', |
| | | 1: 'warning', |
| | | 20: 'primary', |
| | | 30: 'success', |
| | | 40: 'danger' |
| | | }; |
| | | return statusMap[status] || 'info'; |
| | | }, |
| | | showFullScreenLoading() { |
| | | if (this.loadingInstance) { |
| | | this.loadingInstance.close(); |
| | | } |
| | | return statusMap[status] || 'info' |
| | | this.loadingInstance = ElLoading.service({ |
| | | lock: true, |
| | | text: 'å¤çä¸...', |
| | | background: 'rgba(0, 0, 0, 0.7)', |
| | | customClass: 'custom-full-loading' |
| | | }); |
| | | }, |
| | | hideFullScreenLoading() { |
| | | if (this.loadingInstance) { |
| | | this.loadingInstance.close(); |
| | | this.loadingInstance = null; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .el-dialog__header { |
| | | margin: 0; |
| | | } |
| | | </style> |
| | | |
| | | <style scoped> |
| | | .picking-container { |
| | | padding: 20px; |
| | | background-color: #f5f5f5; |
| | | min-height: 100vh; |
| | | position: relative; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 订åä¿¡æ¯å¡ç */ |
| | | .order-info-card { |
| | | margin-bottom: 20px; |
| | | background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | flex-direction: column; |
| | | align-items: flex-start; |
| | | } |
| | | |
| | | .order-title { |
| | |
| | | letter-spacing: 1px; |
| | | } |
| | | |
| | | /* æ«ç åºå */ |
| | | .scan-section-card { |
| | | margin-bottom: 20px; |
| | | } |
| | |
| | | margin: 0; |
| | | } |
| | | |
| | | /* è¡¨æ ¼åºå */ |
| | | .tables-section { |
| | | margin-top: 20px; |
| | | } |
| | |
| | | border-top: 1px solid #ebeef5; |
| | | } |
| | | |
| | | /* è¡¨æ ¼è¡æ ·å¼ */ |
| | | .el-table tbody tr:hover>td { |
| | | background-color: #f0f9ff !important; |
| | | } |
| | |
| | | background-color: #e1f3ff !important; |
| | | } |
| | | |
| | | /* å¯¹è¯æ¡æ ·å¼ */ |
| | | .confirm-content { |
| | | padding: 20px 0; |
| | | text-align: center; |
| | |
| | | text-align: center; |
| | | } |
| | | |
| | | /* ååºå¼è®¾è®¡ */ |
| | | @media (max-width: 1200px) { |
| | | .action-buttons .el-button { |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | |
| | | /* Element UI ç»ä»¶æ ·å¼è¦ç */ |
| | | ::v-deep .el-card__header { |
| | | padding: 18px 20px; |
| | | border-bottom: 1px solid #ebeef5; |
| | |
| | | border: none; |
| | | } |
| | | |
| | | /* 徿 æ ·å¼ */ |
| | | .el-icon-document, |
| | | .el-icon-box, |
| | | .el-icon-s-grid, |
| | |
| | | font-size: 18px; |
| | | } |
| | | |
| | | /* æè¿°åè¡¨æ ·å¼ */ |
| | | ::v-deep .el-descriptions__label { |
| | | font-weight: bold; |
| | | color: #909399; |
| | |
| | | ::v-deep .el-descriptions__content { |
| | | color: #606266; |
| | | } |
| | | |
| | | ::v-deep .el-table th { |
| | | background-color: #fafafa; |
| | | font-weight: 600; |
| | | color: #303133; |
| | | } |
| | | |
| | | ::v-deep .el-table .el-text { |
| | | font-weight: 500; |
| | | } |
| | | |
| | | ::v-deep .el-tag--small { |
| | | font-weight: 500; |
| | | } |
| | | |
| | | .scan-alert ::v-deep .el-alert__content { |
| | | width: 100%; |
| | | } |
| | | |
| | | .scan-alert ::v-deep .el-alert__description { |
| | | margin-top: 8px; |
| | | } |
| | | |
| | | .picking-stats { |
| | | margin-top: 20px; |
| | | padding: 0 10px; |
| | | } |
| | | |
| | | .stats-container { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | gap: 12px; |
| | | align-items: center; |
| | | } |
| | | |
| | | .stat-item { |
| | | display: inline-flex; |
| | | align-items: center; |
| | | } |
| | | |
| | | .stat-item .el-tag { |
| | | display: flex; |
| | | align-items: center; |
| | | padding: 6px 12px; |
| | | font-size: 13px; |
| | | border-radius: 20px; |
| | | } |
| | | |
| | | .stat-item .el-tag i { |
| | | margin-right: 6px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .stat-item b { |
| | | margin-left: 4px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | ::v-deep .el-divider__text { |
| | | background-color: #f5f5f5; |
| | | padding: 0 20px; |
| | | } |
| | | |
| | | ::v-deep .custom-loading { |
| | | background-color: rgba(0, 0, 0, 0.7) !important; |
| | | z-index: 9999 !important; |
| | | } |
| | | |
| | | ::v-deep .custom-loading .el-loading-mask { |
| | | background-color: rgba(0, 0, 0, 0.7) !important; |
| | | } |
| | | |
| | | ::v-deep .custom-loading .el-loading-spinner { |
| | | z-index: 10000 !important; |
| | | } |
| | | |
| | | ::v-deep .custom-loading .el-loading-text { |
| | | color: #ffffff !important; |
| | | font-weight: bold !important; |
| | | font-size: 16px !important; |
| | | } |
| | | |
| | | ::v-deep .el-loading-mask { |
| | | background-color: rgba(0, 0, 0, 0.7) !important; |
| | | z-index: 9999 !important; |
| | | } |
| | | |
| | | ::v-deep .el-loading-spinner { |
| | | z-index: 10000 !important; |
| | | } |
| | | |
| | | ::v-deep .el-loading-text { |
| | | color: #ffffff !important; |
| | | font-weight: bold !important; |
| | | } |
| | | |
| | | ::v-deep .custom-full-loading { |
| | | z-index: 999999 !important; |
| | | } |
| | | |
| | | ::v-deep .custom-full-loading .el-loading-mask { |
| | | z-index: 999999 !important; |
| | | } |
| | | |
| | | ::v-deep .custom-full-loading .el-loading-spinner { |
| | | z-index: 1000000 !important; |
| | | } |
| | | |
| | | ::v-deep .custom-full-loading .el-loading-text { |
| | | color: #ffffff !important; |
| | | font-weight: bold !important; |
| | | font-size: 18px !important; |
| | | } |
| | | |
| | | ::v-deep .el-dialog { |
| | | z-index: 2000 !important; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__wrapper { |
| | | z-index: 2000 !important; |
| | | } |
| | | </style> |