Commit 9f7f990d authored by hubaoshan's avatar hubaoshan

删除console.log

parent 3922937d
......@@ -211,8 +211,6 @@ export default {
tempTypeList.push(item.type)
}
})
console.log('tempIndexList', tempIndexList)
console.log('tempTypeList', tempTypeList)
if (tempIndexList.length > 0) {
this.actionIndex = tempIndexList[1]
}
......@@ -247,7 +245,6 @@ export default {
businessId: item.businessId
}
validNumber(obj).then(res => {
console.log('res', res)
if (res.data) {
this.$router.push({
path: '/setup/dispose',
......
......@@ -313,9 +313,7 @@ export default {
businessId: this.businessId,
boxList: this.tableList
}
console.log('参数', obj)
persistOut(obj).then(res => {
console.log('res', res)
if (res.code === 200) {
this.$router.push({
path: '/setup/applicationTable'
......
......@@ -135,7 +135,6 @@ export default {
getWarehouseList() {
// 获取仓库的数据字段
getDict('WAREHOUSE').then(res => {
console.log('仓库数据字典', res)
this.warehouseList = res.data
const whId = res.data[0].dictValue
this.form.whId = whId
......@@ -176,7 +175,6 @@ export default {
if (!that.$refs['input' + i]) {
return
}
console.log('校验xx')
/**
* 1.判断xx是否包含,
* 2.如果包含的话判断是否根据,转成数组 取数组中的第一的数据
......@@ -184,20 +182,16 @@ export default {
// var location = ''
// if (this.form.value1.includes(',')) {
// var list = this.form.value1.split(',')
// console.log(list)
// location = list[0]
// } else {
// location = this.form.value1
// console.log('location',location);
// }
var location = ''
if (this.form.value1.includes(',') || this.form.value1.includes(',')) {
var list = this.form.value1.split(/,|,/)
console.log(list)
location = list[0]
} else {
location = this.form.value1
console.log('location', location)
}
if (location && location !== '') {
findByLocation(location).then(res => {
......@@ -263,16 +257,12 @@ export default {
lot: values[1],
pn: values[0],
bzq: values[2],
10: values[3],
unit: values[4],
cj_name: values[5]
}
console.log(obj.pn)
this.newPn = obj.pn
if (this.responsePn !== '' && this.responsePn !== null) {
if (customUpperCase(obj.pn) !== customUpperCase(this.responsePn)) {
console.log('obj.pn', obj.pn)
console.log(this.responsePn)
this.$message.error({
message: '您输入的pn ' + obj.pn + ' 与返回pn ' + this.responsePn + ' 不一样',
duration: 2000
......@@ -284,7 +274,6 @@ export default {
lot: values[1],
pn: values[0],
bzq: values[2],
ten: values[3],
unit: values[4],
cj_name: values[5]
}
......@@ -306,44 +295,25 @@ export default {
**/
SubmitForm() {
const value = this.form.value2.replace(/\s+/g, '')
console.log('value', value)
const values = value.split(',')
const newObj = {
lot: values[1],
pn: values[0],
bzq: values[2],
10: values[3],
unit: values[4],
cj_name: values[5]
}
console.log('newObj', newObj)
this.$refs.from.validate(valid => {
console.log(111)
if (valid) {
console.log(222)
if (!values[0] && !values[1] && !values[2] && !values[3] && !values[4]) {
console.log(333)
this.$message.error({
message: '前5个值不能为空,请检查',
duration: 2000
})
this.form.value2 = ''
} else if (this.responsePn && this.responsePn !== '' && this.responsePn !== undefined) {
console.log(444)
if (customUpperCase(values[0]) !== customUpperCase(this.responsePn) && this.responsePn === '') {
console.log('customUpperCase(this.responsePn)', customUpperCase(this.responsePn))
console.log('2')
this.$message.error({
message: '您输入的pn:' + values[0] + '与返回pn:' + this.responsePn + '的不一样',
duration: 2000
})
this.form.pn = ''
this.form.value2 = ''
console.log('this.form.value2', this.form.value2)
} else {
console.log(666)
const NewQty = this.form.qty * values[3]
console.log('NweQty1', NewQty)
const newLot = values[1]
const tooPn = values[0]
const item = {
......@@ -356,7 +326,6 @@ export default {
cheUnit: values[4],
cheCjName: values[5]
}
console.log('item', item)
addIncomeWmsBox(item).then(res => {
if (res.code === 200) {
this.$message.success('保存成功')
......@@ -370,7 +339,6 @@ export default {
}
} else {
const NewQty = this.form.qty * values[3]
console.log('NweQty2', NewQty)
const newLot = values[1]
const tooPn = values[0]
const item = {
......@@ -383,7 +351,6 @@ export default {
cheCjName: values[5],
...this.form
}
console.log('item', item)
addIncomeWmsBox(item).then(res => {
if (res.code === 200) {
this.$message.success('保存成功')
......
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