4/1 手动扫码退货页面优化1.0

dev2.5_scan
wangwei 2 days ago
parent c561f52ea0
commit 367fa63866

@ -26,11 +26,7 @@
<el-table-column label="应扫码数量" prop="scanActCount">
<template v-slot="scope">
<div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
{{
scope.row.shouldCount === 0
? '无需扫码'
: `${scope.row.scanCount}/${scope.row.shouldCount}`
}}
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
</div>
</template>
</el-table-column>

@ -533,7 +533,6 @@ export default {
item => /^YPCFTF/.test(item.documentTypeCode || "") //
);
this.formData.busType = this.formDataVisible.documentTypeCode
console.log("djdjjdj",this.formData.busType)
//scanType
// 1.
// 2.
@ -932,7 +931,9 @@ export default {
this.curRow = this.formData
this.$refs.inputRef.focus()
this.refreshCodesPanel(this)
}else {
}else if(res.code == 502){
return this.$message.error("非此单追溯码")
} else{
return this.$message.error(res.message)
}
}).catch(() => {
@ -1000,6 +1001,7 @@ export default {
const audio = new Audio(require('@/assets/audioFiles/order.mp3'))
audio.play()
this.reset()
return this.$message.success("退货成功")
if (this.formDataVisible.scanType != 1) {
this.findCurOrder()
}
@ -1112,6 +1114,7 @@ export default {
this.formData = row
this.formData.workPlaceCode = this.workplaceId
this.startDeal()
this.selectPrescriptionVisible = false
// this.generateBarcode()
},

@ -137,12 +137,11 @@
</el-table-column>
<el-table-column label="应扫码数量" prop="scanActCount">
<template v-slot="scope">
<div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
{{
scope.row.shouldCount === 0
? '无需扫码'
: `${scope.row.scanCount}/${scope.row.shouldCount}`
}}
<div v-if="scope.row.autoTagStatus == 2" :style="getCellStyle1(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
无需扫码
</div>
<div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;" v-else>
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
</div>
</template>
</el-table-column>
@ -384,6 +383,14 @@ export default {
return rowBackground
},
getCellStyle1(row) {
let cellStyle = {}
if (row.autoTagStatus == 2) {
cellStyle.fontSize = '30px'
cellStyle.color = '#E6A23C'
return cellStyle
}
},
getCellStyle(row) {
let cellStyle = {
fontSize: '50px'
@ -404,13 +411,14 @@ export default {
// return { height: '60px' };
// },
getTagColor(row) {
if (row.autoTagStatus == 2) {
this.codingStatus = '预赋码'
return 'warning' //
}
if (row.scanActCount < row.count) {
this.codingStatus = '未赋码'
return 'danger' //
} else if (row.autoTagStatus == 2) {
this.codingStatus = '预赋码'
return 'warning' //
} else if (row.scanActCount >= row.count) {
} else if (row.scanActCount >= row.count) {
this.codingStatus = '已赋码'
return 'success' // 绿
}

Loading…
Cancel
Save