Commit c53c9ce9 authored by Hagsn3's avatar Hagsn3

修改代码

parent f9b9fb17
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
v-for="(item,index) in warehouseList" v-for="(item,index) in warehouseList"
:key="index" :key="index"
:label="item.dictLabel" :label="item.dictLabel"
:value="item.dictValue"> :value="item.dictValue"
</el-option> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="XX:" prop="value1"> <el-form-item label="XX:" prop="value1">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-form-item> <el-form-item>
<div class="location"> location: {{ queryForm.location }}</div> <div class="location"> location: {{ queryForm.location }}</div>
<div v-show="showPN(queryForm.location,incomeWmsLabelList.pn)"> <div v-show="showPN(queryForm.location,incomeWmsLabelList.pn)">
<!-- 库PN: {{ incomeWmsLabelList.pn }}--> <!-- 库PN: {{ incomeWmsLabelList.pn }}-->
<span style="color: black;">库PN: </span><span style="color: red;">{{ incomeWmsLabelList.pn }}</span> <span style="color: black;">库PN: </span><span style="color: red;">{{ incomeWmsLabelList.pn }}</span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -81,8 +81,7 @@ import { ...@@ -81,8 +81,7 @@ import {
} from '@/api/incomeWmsBox' } from '@/api/incomeWmsBox'
import { findByLocation, updateIncomeWmsLabel } from '@/api/incomeWmsLabel' import { findByLocation, updateIncomeWmsLabel } from '@/api/incomeWmsLabel'
import { getInfo } from '@/api/login' import { getInfo } from '@/api/login'
import { error } from 'autoprefixer/lib/utils' import { getDict } from '@/api/system/dict/data'
import {getDict} from "@/api/system/dict/data";
export default { export default {
name: 'EnterBound', name: 'EnterBound',
data() { data() {
...@@ -138,9 +137,9 @@ export default { ...@@ -138,9 +137,9 @@ export default {
getDictData() { getDictData() {
// 获取仓库的数据字段 // 获取仓库的数据字段
getDict('WAREHOUSE').then(res => { getDict('WAREHOUSE').then(res => {
console.log('仓库数据字典',res) console.log('仓库数据字典', res)
this.warehouseList = res.data this.warehouseList = res.data
let whId = res.data[0].dictValue const whId = res.data[0].dictValue
this.queryForm.whId = whId this.queryForm.whId = whId
}) })
}, },
...@@ -293,6 +292,8 @@ export default { ...@@ -293,6 +292,8 @@ export default {
} }
} else { } else {
this.$message.error('数据库中无对应数据') this.$message.error('数据库中无对应数据')
this.incomeWmsLabelList.pn = ''
this.queryForm.value2 = ''
} }
} }
}) })
...@@ -332,6 +333,8 @@ export default { ...@@ -332,6 +333,8 @@ export default {
} }
} else { } else {
this.$message.error('数据库中无对应数据') this.$message.error('数据库中无对应数据')
this.incomeWmsLabelList.pn = ''
this.queryForm.value2 = ''
} }
} }
}) })
...@@ -422,6 +425,11 @@ export default { ...@@ -422,6 +425,11 @@ export default {
} }
} }
} else { } else {
const inputValues = this.queryForm.value1.split(',')
this.queryForm.location = inputValues[0].trim()
findByLocation(this.queryForm.location).then(res => {
if (res.code === 200) {
if (res.data != null) {
let isLegalLot = false let isLegalLot = false
this.enterTable.forEach(item => { this.enterTable.forEach(item => {
if (item.lot === obj.lot) { if (item.lot === obj.lot) {
...@@ -457,6 +465,11 @@ export default { ...@@ -457,6 +465,11 @@ export default {
} }
}) })
} }
} else {
this.$message.error('请输入有效的location值')
}
}
})
} }
} else { } else {
this.$message.error('输入格式不符合要求,请重新输入') this.$message.error('输入格式不符合要求,请重新输入')
......
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