|
|
|
|
@ -90,10 +90,14 @@ |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="货位"> |
|
|
|
|
<el-form-item |
|
|
|
|
label="货位/商品编号" |
|
|
|
|
style="width: 250px" |
|
|
|
|
> |
|
|
|
|
<el-input |
|
|
|
|
v-model="enterForm.locationCode" |
|
|
|
|
placeholder="请输入货位" |
|
|
|
|
v-model="locationCode" |
|
|
|
|
style="width: 250px" |
|
|
|
|
placeholder="根据商品或者货位查询" |
|
|
|
|
clearable |
|
|
|
|
></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
@ -151,6 +155,7 @@ export default { |
|
|
|
|
return { |
|
|
|
|
tableProps: {}, |
|
|
|
|
ids: [], |
|
|
|
|
locationCode: '', |
|
|
|
|
enterForm: { |
|
|
|
|
consignorId: '', |
|
|
|
|
storageId: '', |
|
|
|
|
@ -180,16 +185,31 @@ export default { |
|
|
|
|
this.enterForm.storageId = res.data[0].id |
|
|
|
|
this.listAreaByStorage(this.enterForm.storageId) |
|
|
|
|
}) |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.enterForm.invType = JSON.parse(JSON.stringify(this.dict.type.inv_type_dict))[0].label |
|
|
|
|
}, 500) |
|
|
|
|
this.enterForm.invType = 'QP' |
|
|
|
|
}, |
|
|
|
|
async created() { |
|
|
|
|
this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this)) |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
//侦听 locationCode的变化 |
|
|
|
|
locationCode(newVal, oldVal) { |
|
|
|
|
this.enterForm.goodCode = this.locationCode |
|
|
|
|
this.enterForm.locationCode = undefined |
|
|
|
|
if (newVal.indexOf('-') !== -1) { |
|
|
|
|
this.enterForm.locationCode = this.locationCode |
|
|
|
|
this.enterForm.goodCode = undefined |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 货主请求 |
|
|
|
|
getBasicList() { |
|
|
|
|
consignorList().then((res) => { |
|
|
|
|
this.options = res.rows |
|
|
|
|
console.log(this.options) |
|
|
|
|
// console.log(this.options) |
|
|
|
|
this.enterForm.consignorId = this.options[0].id |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
@ -226,7 +246,7 @@ export default { |
|
|
|
|
queryTable() { |
|
|
|
|
// if (!this.enterForm.consignorId) return this.$message('业主名称必填!') |
|
|
|
|
if (!this.enterForm.invWay) return this.$message('盘点方式必选!') |
|
|
|
|
if (!this.enterForm.invType) return this.$message('盘点类型必选!') |
|
|
|
|
// if (!this.enterForm.invType) return this.$message('盘点类型必选!') |
|
|
|
|
this.loading = true |
|
|
|
|
queryGoods({ |
|
|
|
|
pageSize: this.paging.size, |
|
|
|
|
|