Commit 4aa94a16 authored by 高宇's avatar 高宇

1.默认将小写字母换成大写字母

parent cda88459
...@@ -211,6 +211,6 @@ export function successAudio(start) { ...@@ -211,6 +211,6 @@ export function successAudio(start) {
// 自定义转换成大写的 // 自定义转换成大写的
export function customUpperCase(sourceStr) { export function customUpperCase(sourceStr) {
return sourceStr && sourceStr !== ''? sourceStr.toUpperCase : sourceStr return sourceStr && sourceStr !== ''? sourceStr.toUpperCase(): sourceStr
} }
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
var list = [] var list = []
// 判断tableList中location和search及lot相同的元素个数 // 判断tableList中location和search及lot相同的元素个数
this.tableList.forEach((item, index) => { this.tableList.forEach((item, index) => {
if (customUpperCase(item.location) === customUpperCase(search) && customUpperCase(item.lot)=== customUpperCase(lot)()) { if (customUpperCase(item.location) === customUpperCase(search) && customUpperCase(item.lot)=== customUpperCase(lot)) {
list.push(index) list.push(index)
} }
}) })
......
...@@ -459,7 +459,7 @@ export default { ...@@ -459,7 +459,7 @@ export default {
// this.incomeWmsBoxList.pn = values[1] // this.incomeWmsBoxList.pn = values[1]
if (obj.labelId !== null && obj.labelId !== '' && obj.labelId !== undefined) { if (obj.labelId !== null && obj.labelId !== '' && obj.labelId !== undefined) {
if (this.incomeWmsLabelList.pn && this.incomeWmsLabelList.pn !== '' && this.incomeWmsLabelList.pn !== undefined) { if (this.incomeWmsLabelList.pn && this.incomeWmsLabelList.pn !== '' && this.incomeWmsLabelList.pn !== undefined) {
if (customUpperCase(obj.pn)!== customUpperCase( this.incomeWmsLabelList.pn)) { if (customUpperCase(obj.pn)!== customUpperCase(this.incomeWmsLabelList.pn)) {
playAudio(true) playAudio(true)
this.$message.error({ this.$message.error({
message: '输入的pn值:' + obj.pn + '与数据库中pn值:' + this.incomeWmsLabelList.pn + '不匹配,请重新输入', message: '输入的pn值:' + obj.pn + '与数据库中pn值:' + this.incomeWmsLabelList.pn + '不匹配,请重新输入',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment