Compare commits

...

2 Commits

Author SHA1 Message Date
wangwei d6837684f0 4/9 优化1.1 3 months ago
wangwei 4fef6f4056 4/9 优化1.0 3 months ago

@ -1037,16 +1037,22 @@ export default {
}
} else if (res.code == 502) {
loading.close();
this.$confirm(res.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.formData.confirmFinish = true
this.finishOrder()
this.reset()
}).catch(() => {
})
if (this.formDataVisible.coercionSubmit == 1){
this.confirmDialogVisible = false
return this.$message.error("单据已经开启强制提交")
}else {
this.$confirm(res.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.formData.confirmFinish = true
this.finishOrder()
this.reset()
}).catch(() => {
})
}
} else if (res.code == 503) {
loading.close();
this.$alert('该单据未全部赋码无法完成,请检查后重试', '提示', {
@ -1056,11 +1062,7 @@ export default {
})
} else {
loading.close();
this.$alert(res.message, '提示', {
confirmButtonText: '确定',
callback: action => {
}
})
return this.$message.error(res.message)
}
}).catch(() => {
loading.close();
@ -1673,8 +1675,9 @@ export default {
this.handleConfirm()
return
} else {
MessageBox.close()
this.finishOrder()
MessageBox.close()
}

@ -26,14 +26,20 @@
</el-table-column>
<el-table-column label="应扫码数量" prop="scanActCount" :min-width="120" width="200">
<template v-slot="scope">
<!--<div v-if="scope.row.autoTagStatus === 2" class="table-cell warning">-->
<!-- 无需扫码-->
<!--</div> v-else -->
<div :class="getScanCountClass(scope.row)" class="table-cell">
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
</div>
</template>
</el-table-column>
<el-table-column label="拆零数量" prop="scanActCount" :min-width="120" width="200">
<template v-slot="scope">
<div class="table-cell count" :class="getSplitCountClass(scope.row)" style="font-size: 26px">
{{ scope.row.splitCount }}
</div>
</template>
</el-table-column>
<el-table-column label="制剂规格" prop="prepnSpec" width="200">
<template v-slot="scope">
<div class="table-cell">{{ scope.row.prepnSpec }}</div>
@ -233,6 +239,7 @@ export default {
return 'warning'
}
if (row.scanActCount == null) return 'danger'
if (row.scanActCount + row.tempWorkPlaceCount > row.count) return 'success'
if (row.scanActCount < row.count) return 'danger'
if (row.scanActCount >= row.count) return 'success'
return "success"
@ -274,6 +281,27 @@ export default {
return row.scanCount < row.shouldCount ? 'error' : 'success'
},
getSplitCountClass(row) {
//
if (row.autoTagStatus === 2){
if (row.scanCount > row.shouldCount){
return "success"
}
return 'warning'
}
if (row.scanCount === 0 && row.splitCount > row.tempWorkPlaceCount){
return 'error'
}
if (row.splitCount != 0 &&row.splitCount <= row.tempWorkPlaceCount && (row.scanActCount + row.tempWorkPlaceCount < row.count) ){
return 'warning'
}
if(row.scanActCount + row.tempWorkPlaceCount >= row.count){
return "success"
}
if(row.scanActCount < row.count){
return "error"
}
},
customSort(a, b) {
//
if (a.scanCount >= a.shouldCount ) {

Loading…
Cancel
Save