|
|
|
|
@ -41,15 +41,15 @@ |
|
|
|
|
|
|
|
|
|
<el-form-item label="库区编号"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="enterForm.areaId" |
|
|
|
|
v-model="enterForm.id" |
|
|
|
|
placeholder="请选择库区编号" |
|
|
|
|
clearable |
|
|
|
|
style="width: 240px" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in areaIdhList" |
|
|
|
|
:key="item.areaCode" |
|
|
|
|
:label="item.areaName" |
|
|
|
|
:key="item.storageCode" |
|
|
|
|
:label="item.storageName" |
|
|
|
|
:value="item.id" |
|
|
|
|
> |
|
|
|
|
</el-option> |
|
|
|
|
@ -170,6 +170,7 @@ export default { |
|
|
|
|
mounted() { |
|
|
|
|
this.getBasicList() |
|
|
|
|
this.getBasicListsto() |
|
|
|
|
this.listAreaByStorage() |
|
|
|
|
}, |
|
|
|
|
async created() { |
|
|
|
|
this.tableConfig = await this.getTableHeaderCom('busin_inventory', tableConfig.call(this)) |
|
|
|
|
@ -190,14 +191,16 @@ export default { |
|
|
|
|
// 根绝库别编号获得库区 |
|
|
|
|
selectStoId(val) { |
|
|
|
|
this.enterForm.areaId = '' |
|
|
|
|
|
|
|
|
|
if (val) { |
|
|
|
|
this.listAreaByStorage(val) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 库区 |
|
|
|
|
listAreaByStorage(val) { |
|
|
|
|
listAreaByStorage(val).then((res) => { |
|
|
|
|
listAreaByStorage().then((res) => { |
|
|
|
|
this.areaIdhList = res.data |
|
|
|
|
// console.log(this.areaIdhList) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 表格复选框选中 |
|
|
|
|
|