Commit 16c9408a authored by hubaoshan's avatar hubaoshan

第二步

parent 9e05e45b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="enterBound"> <div class="enterBound">
<div class="enterForm"> <div class="enterForm">
<div class="search"> <div class="search">
<el-form @submit.native.prevent ref="queryForm" class="formClass" :model="queryForm" :rules="rules" label-width="80px"> <el-form ref="queryForm" class="formClass" :model="queryForm" :rules="rules" label-width="80px" @submit.native.prevent>
<el-form-item label="仓库:" prop="whId"> <el-form-item label="仓库:" prop="whId">
<el-select v-model="queryForm.whId" filterable class="normalSelect" placeholder="请选择"> <el-select v-model="queryForm.whId" filterable class="normalSelect" placeholder="请选择">
<el-option <el-option
...@@ -13,6 +13,20 @@ ...@@ -13,6 +13,20 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="cj" prop="cj">
<el-select
v-model="queryForm.cj"
class="normalSelect"
placeholder="请选择厂家"
>
<el-option
v-for="item in manufacturer"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item label="XX:" prop="value1"> <el-form-item label="XX:" prop="value1">
<el-input ref="input1" v-model="queryForm.value1" :disabled="enterTable.length>0" clearable @keyup.enter.native="handelTab(1,$event)" /> <el-input ref="input1" v-model="queryForm.value1" :disabled="enterTable.length>0" clearable @keyup.enter.native="handelTab(1,$event)" />
</el-form-item> </el-form-item>
...@@ -89,6 +103,7 @@ export default { ...@@ -89,6 +103,7 @@ export default {
data() { data() {
return { return {
queryForm: { queryForm: {
cj: '',
whId: '', whId: '',
location: '', // 假设 location 的值为 'A1' location: '', // 假设 location 的值为 'A1'
pn: '', // 假设 pn 的值为 'ABC' pn: '', // 假设 pn 的值为 'ABC'
...@@ -111,6 +126,19 @@ export default { ...@@ -111,6 +126,19 @@ export default {
userList: { userList: {
nickName: '' nickName: ''
}, },
manufacturer: [{
value: '1',
label: 'baidu'
}, {
value: '2',
label: 'ali'
}, {
value: '3',
label: 'taobao'
}],
// 表单校验 // 表单校验
rules: { rules: {
value1: [ value1: [
...@@ -128,6 +156,7 @@ export default { ...@@ -128,6 +156,7 @@ export default {
this.focusing() this.focusing()
this.getOrderCode() this.getOrderCode()
this.getLoginUser() this.getLoginUser()
this.queryForm.cj = this.manufacturer[0].value
}, },
methods: { methods: {
/** /**
...@@ -179,6 +208,7 @@ export default { ...@@ -179,6 +208,7 @@ export default {
clearForm(e) { clearForm(e) {
this.queryForm = { this.queryForm = {
queryForm: { queryForm: {
cj: '',
location: '', // 假设 location 的值为 'A1' location: '', // 假设 location 的值为 'A1'
pn: '', // 假设 pn 的值为 'ABC' pn: '', // 假设 pn 的值为 'ABC'
value1: '', value1: '',
...@@ -210,6 +240,7 @@ export default { ...@@ -210,6 +240,7 @@ export default {
if (valid && this.enterTable.length > 0) { if (valid && this.enterTable.length > 0) {
const obj = { const obj = {
boxList: this.enterTable boxList: this.enterTable
} }
batchAddIncomeWmsBox(obj).then(res => { batchAddIncomeWmsBox(obj).then(res => {
console.log('res', res) console.log('res', res)
...@@ -423,6 +454,8 @@ export default { ...@@ -423,6 +454,8 @@ export default {
const obj = { const obj = {
whId: this.queryForm.whId, whId: this.queryForm.whId,
lot: values[0], lot: values[0],
cj: this.queryForm.cj,
location: this.queryForm.location,
pn: values[1], pn: values[1],
qty: parseInt(values[3]), qty: parseInt(values[3]),
rank: values[2], rank: values[2],
......
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