...
|
...
|
@@ -9,6 +9,12 @@ |
|
|
<template slot="prepend">库位编号</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="7">
|
|
|
<el-input v-model="queryInfo.areaid" prefix-icon="el-icon-search" size="small" style="width: 280px"
|
|
|
placeholder="库位编号" clearable>
|
|
|
<template slot="prepend">库区编号</template>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-button type="primary" icon="el-icon-search" size="small" @click="getList()">
|
|
|
查询
|
...
|
...
|
@@ -25,6 +31,7 @@ |
|
|
:cell-style="{textAlign:'center'}"
|
|
|
style="border-radius: 10px 10px 0px 0px;line-height: 25px"
|
|
|
:header-cell-style="{background:'#6F8294',color:'#FFFFFF'}" size="small"
|
|
|
@row-dblclick="tableRowClick"
|
|
|
>
|
|
|
<el-table-column
|
|
|
fixed
|
...
|
...
|
@@ -223,6 +230,12 @@ |
|
|
</el-dialog>
|
|
|
</el-row>
|
|
|
</el-card>
|
|
|
<el-dialog title="库存" :visible.sync="dialogVisible" fullscreen >
|
|
|
<INVENTROY :parent-locations-id="selectedLoId" />
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="info" @click="dialogVisible = false">关 闭</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -234,14 +247,19 @@ |
|
|
ediLocation,
|
|
|
selectByAreaid
|
|
|
} from '../../api/consigner/station';
|
|
|
import jsutil from "@/common/js/util";
|
|
|
import INVENTROY from "./inventroy"
|
|
|
|
|
|
export default {
|
|
|
name: "locations",
|
|
|
// name: "locations",
|
|
|
props:['parentAreaId'],
|
|
|
components:{INVENTROY},
|
|
|
data() {
|
|
|
return {
|
|
|
queryInfo: {
|
|
|
locationno:'',
|
|
|
housename:'',
|
|
|
areaid:'',
|
|
|
// 当前页数
|
|
|
pageNum: 1,
|
|
|
// 每页大小
|
...
|
...
|
@@ -301,6 +319,8 @@ |
|
|
// ], { required: true, message: '请选择申请状态', trigger: 'change' }
|
|
|
],
|
|
|
},
|
|
|
dialogVisible:false,
|
|
|
selectedLoId:''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -308,16 +328,16 @@ |
|
|
getArea:function(query){
|
|
|
this.areaids=[];
|
|
|
this.loading = true;
|
|
|
selectByAreaid({areano:query}).then(res =>{
|
|
|
selectByAreaid({areaid:query}).then(res =>{
|
|
|
if (res !== '') {
|
|
|
setTimeout(() => {
|
|
|
this.loading = false;
|
|
|
this.areaids=res.data.data;
|
|
|
}, 200);
|
|
|
} else {
|
|
|
this.areaids = [];
|
|
|
}
|
|
|
|
|
|
}).finally(() =>{
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
handleSizeChange(val) {
|
...
|
...
|
@@ -332,7 +352,7 @@ |
|
|
const _this = this
|
|
|
selectLocations(this.queryInfo).then((response) => {
|
|
|
const res = response.data
|
|
|
console.log(response.data)
|
|
|
// console.log(response.data)
|
|
|
if (res.code !== '200') {
|
|
|
return _this.$message.error('获取消息收发记录,失败!')
|
|
|
}
|
...
|
...
|
@@ -441,11 +461,28 @@ |
|
|
}).catch(() => {
|
|
|
})
|
|
|
},
|
|
|
//行点击事件
|
|
|
tableRowClick(row, column, event) {
|
|
|
this.dialogVisible = true
|
|
|
this.selectedLoId = row.locationno
|
|
|
// console.log(row+column,event);
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
if (jsutil.checkNull(this.parentAreaId)){
|
|
|
this.queryInfo.areaid = this.parentAreaId;
|
|
|
}
|
|
|
this.getList();
|
|
|
// this.getYardList();
|
|
|
|
|
|
},
|
|
|
watch: {
|
|
|
parentHouseId(value) {
|
|
|
if (jsutil.checkNull(this.parentAreaId)){
|
|
|
this.queryInfo.areaid = this.parentAreaId;
|
|
|
}
|
|
|
this.getList();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|