Commit 9f7f990d authored by hubaoshan's avatar hubaoshan

删除console.log

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