修复bug

wang
郑明梁 3 years ago
parent 83938bc082
commit acda1b581b

@ -17,7 +17,9 @@
:label="item.name" :label="item.name"
:value="item.code"> :value="item.code">
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{
item.warehouseName
}}</span>
</el-option> </el-option>
</el-select> </el-select>
@ -59,7 +61,7 @@
<span>接受委托仓库:&nbsp;</span> <span>接受委托仓库:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.entrustSubInv" placeholder="接受委托仓库" <el-select v-model="inputQuery.entrustSubInv" placeholder="接受委托仓库"
@change="entrustSubInvChange" @change="subInvChangeMeg"
filterable filterable
clearable> clearable>
<el-option <el-option
@ -68,7 +70,9 @@
:label="item.name" :label="item.name"
:value="item.code"> :value="item.code">
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{
item.warehouseName
}}</span>
</el-option> </el-option>
</el-select> </el-select>
@ -134,7 +138,7 @@ import {
import {filterAll, filterNext, warehouseBussinessTypeList, warehouseUserList} from "@/api/basic/invWarehouse"; import {filterAll, filterNext, warehouseBussinessTypeList, warehouseUserList} from "@/api/basic/invWarehouse";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {filterNoUseBusType} from "@/api/basic/EntrustRece"; import {filterNoUseBusType} from "@/api/basic/EntrustRece";
import {filterSubByInv,filterSub} from "@/api/basic/invSubWarehouse"; import {filterSubByInv, filterSub} from "@/api/basic/invSubWarehouse";
export default { export default {
@ -204,7 +208,7 @@ export default {
findSubInvByInv() { findSubInvByInv() {
this.subInvList = []; this.subInvList = [];
let query = { let query = {
filter:3 filter: 3
}; };
filterSubByInv(query) filterSubByInv(query)
.then((response) => { .then((response) => {
@ -311,6 +315,38 @@ export default {
}); });
}, },
subInvChangeMeg() {
this.$set(this.inputQuery, "entrustAction", "");
this.$set(this.inputQuery, "entrustUser", "");
//
this.entrustSubInvList.forEach(item => {
if (item.code === this.inputQuery.entrustSubInv) {
this.inputQuery.entrustInv = item.parentId;
}
})
let query = {
code: this.inputQuery.entrustSubInv,
}
//
warehouseUserList(query).then((res) => {
this.entrustUserArray = [];
this.entrustUserArray = res.data.list;
}).catch((error) => {
this.$message.error("用户数据加载失败")
});
//
warehouseBussinessTypeList(query).then((res) => {
this.entrustBusArray = res.data.list;
}).catch((error) => {
this.$message.error("单据类型数据加载失败")
});
},
}, },
computed: { computed: {
corpType() { corpType() {

@ -422,7 +422,9 @@ export default {
} }
}, },
getBusType() { getBusType() {
this.filterQuery.locStorageCode= this.subInvList.find(item => item.code == this.filterQuery.invWarehouseCode).parentId if(this.subInvList.length>0){
this.filterQuery.locStorageCode= this.subInvList.find(item => item.code == this.filterQuery.invWarehouseCode).parentId
}
let query = { let query = {
code: this.filterQuery.invWarehouseCode, code: this.filterQuery.invWarehouseCode,
enabled: true, enabled: true,

Loading…
Cancel
Save